var timestamp=Math.round(Math.random()*1E3*Math.random()*100),alphabet="abcdefghijklmnopqrstuvwxyz",pop=0,popups=[];function save(a){typeof $!=="undefined"&&typeof $.fn.editable!=="undefined"&&$.fn.editable.clear_editors();switch(a){case 1:document.mainform.state.value="save & preview";break;case 2:document.mainform.state.value="save";break;case 3:document.mainform.state.value="preview";break}document.mainform.submit()}
function logout(){var a="USER",b=new Date;b.setFullYear(b.getFullYear()-1);document.cookie=a+"=null; expires="+b.toGMTString();self.location="/index.html"}
function shade(a){refstr="0123456789ABCDEF";attrib=[];attrib[0]=a.slice(1,3);attrib[1]=a.slice(3,5);attrib[2]=a.slice(5,7);for(at=0;at<3;at++){fv=attrib[at].slice(0,1);fv=fv.toUpperCase();a=refstr.indexOf(fv);fv=a>7?refstr.slice(a-1,a):refstr.slice(a+1,a+2);sv=attrib[at].slice(1);sv=sv.toUpperCase();a=refstr.indexOf(sv);sv=a>7?refstr.slice(a-1,a):refstr.slice(a+1,a+2);attrib[at]=fv+sv}return a="#"+attrib[0]+attrib[1]+attrib[2]}
function imageinfo(a,b,d,c,e,f){a=a+","+b+","+d+","+c+","+e+","+f;d=d-0+20;c=c-0+100;b=(800-d)/2;e=(600-c)/2;alert("c:"+d+" d:"+c);window.open("/image_inspector.html?"+a,"imageinspector","width="+d+",height="+c+",top="+e+",left="+b+",SCREENX="+b+",SCREENY="+e,false)}function templates(a){window.open("/_tools/templates_F.html?"+a,"Templates","height=60,width=450,left=200,top=200,screenX=200,screenY=200",true)}
function navigate_old(a){if(page.length==1)var b=-1,d=alphabet.indexOf(page);else{b=alphabet.indexOf(page.charAt(1));d=alphabet.indexOf(page.charAt(0))}if(a=="prev"){if(b==-1){var c=7,e=d-1;c=action+alphabet.charAt(e)+alphabet.charAt(c)}else{c=b-1;e=d;c=action+alphabet.charAt(e)+alphabet.charAt(c)}if(edit_mode==3)c+=".html";b==-1&&d==0?document.write("&nbsp;"):document.write("<A HREF='"+c+"'><FONT SIZE='1' COLOR='#"+textst+"'>&lt;&lt; Previous</FONT></A>")}if(a=="next"){if(b==7){a=0;c=d+1;c=action+
alphabet.charAt(c)}else{a=b+1;c=d;c=action+alphabet.charAt(c)+alphabet.charAt(a)}if(edit_mode==3)c+=".html";b==7&&d==7?document.write("&nbsp;"):document.write("<A HREF='"+c+"'><FONT SIZE='1' COLOR='#"+ +textst+"'>Next &gt;&gt;</FONT></A>")}}function doLink(a){url="/_tools/html/pop_link.html?"+a;pop=window.open(url,"LinkEd","WIDTH=300,HEIGHT=260",1)}function doStyle(a){url="/_tools/html/pop_style.html?"+a;pop=window.open(url,"StyleEd","WIDTH=300,HEIGHT=280",1)}
function doList(a){url="/_tools/html/pop_list.html?"+a;pop=window.open(url,"ListEd","WIDTH=300,HEIGHT=280",1)}function controls(a){document.write('<font size="1">( ');document.write("<a href=\"javascript:doLink('"+a+"');\">Add Link</A> | ");document.write("<a href=\"javascript:doStyle('"+a+"');\">Add Style</A> | ");document.write("<a href=\"javascript:doList('"+a+"');\">Add List</A>");document.write(" )</font>")}
function infopop(a){pop=window.open("/_tools/quickhelp/info.html?"+a,"QuickHelp","WIDTH=300,HEIGHT=100")}function popup(a,b,d){now=new Date;mils=now.getMilliseconds();pop=window.open("http://www.take2theweb.com/_tools/popup.html?"+a,"popup"+mils.toString(),"WIDTH="+b+",HEIGHT="+(d+20))}function update_link(a){var b=a.name.slice(0,a.name.length-5);b=eval("document.mainform."+b);b.value=a.value+".html"};


