// Web software by DavidRegier.com
IE=false,AOL=false,SF=false,MZ=false;if(navigator.appName=="Microsoft Internet Explorer"){IE=true;if(navigator.userAgent.indexOf("AOL")>=0)AOL=true;}
else if(navigator.userAgent.indexOf("Safari")>=0)SF=true;else if(navigator.appName=="Netscape")MZ=true;winOS=(navigator.platform.substring(0,3)=="Win");winIE=(winOS&&IE);macOS=(navigator.platform.substring(0,3)=="Mac");macIE=(macOS&&IE);theHost=document.location.hostname;theHostLC=theHost.toLowerCase();var local = ( /^\d+\.\d+\.\d+\.\d+$/.test(theHost)||theHost==""||theHost=="localhost");var live=!local;qStr=unescape(document.location.search).substring(1);homePage="default.aspx"
path=document.location.pathname;if(path.charAt(path.length-1)=="/")path+=homePage;Path=path.split("/");fileName=Path[Path.length-1];cookieDomain=null;if(live&&theHost){var Host=theHost.split("."),hLen=Host.length;if(hLen>=2)cookieDomain="."+Host[hLen-2]+"."+Host[hLen-1];}
if(fileName!="uploader.aspx"){eMailOut="";eMailIn=DB.EmailRecipient.replace(/\s{2}/g, "." );
eMailIn=eMailIn.replace(/\s{1}/g, "@" );
for(i=0;i<=eMailIn.length;i++)eMailOut=eMailIn.charAt(i)+eMailOut;DB.EmailRecipient=eMailOut;eMailOut="";eMailIn=DB.OrderRecipient.replace(/\s{2}/g, "." );
eMailIn=eMailIn.replace(/\s{1}/g, "@" );
for(i=0;i<=eMailIn.length;i++)eMailOut=eMailIn.charAt(i)+eMailOut;DB.OrderRecipient=eMailOut;}
Msg=new Array();Msg.cart="View & edit items in your shopping cart";Msg.checkout="Submit your Shopping Cart Order";Msg.enlarge="Click to enlarge";Msg.Home="Get our address, phone, client log-in, etc.";Msg.logIn="SPEware client log-in...";Msg.prodServ="We provide SPE solutions to many extractions problems";function PreLoader(){this.Files=["images/logoSmall.gif","solid-phase-extraction.aspx","images/bkgDerivatizingAgents.jpg","images/cerexFormat.gif","96-well-plates.aspx","images/SIDE_wellPlates.jpg","images/Openbox-0111Sm.jpg","positive-pressure-manifolds.aspx","images/SIDE_PPmanifoldPage.jpg","images/Cerex48_WithoutHeaterSm.jpg","images/Cerex48_HeaterSm.jpg","solvent-evaporators.aspx","images/SIDE_product2.jpg","images/Evap_downTNB.jpg","derivatizing-agents.aspx","images/SIDE_solvantEvaporator.jpg","column-heaters.aspx","images/bkgSPE.jpg","images/Colnm_HeatersTNB.jpg","support.aspx","images/SIDE_Cerex96.jpg","search.aspx","images/bkgPositivePressureManifolds.jpg","cart.aspx","images/bkg96WellPlates.jpg","default.aspx","images/logo-new.gif","images/bkgHome.jpg","ss.aspx?db=images-96.js","images-96.js","ss.aspx?db=ss.aspx?db=images-48.js","images-48.js","all-products.aspx","spe-columns.aspx","spe-products.aspx","all-products.js","checkout.js","product-data.js","speware2.js","speware3.js",null];this.debug=0;try{if(top.qStr&&top.qStr.indexOf("preloader=show")!=-1)this.debug=1;}
catch(Err){}
if(this.debug)DeleteCookie("nFilesCached");this.Request=null;this.timer=0;this.nFilesCachedCookie=GetCookie("nFilesCached");this.nFilesCached=(this.nFilesCachedCookie)?parseInt(this.nFilesCachedCookie):0;this.run=run;if(this.debug)top.document.title="File preloader started...";function run(){if(window.XMLHttpRequest){try{this.Request=new XMLHttpRequest();}
catch(Err){this.Request=null;}}
else if(window.ActiveXObject){try{this.Request=new ActiveXObject("Msxml2.XMLHTTP");}
catch(Err){try{this.Request=new ActiveXObject("Microsoft.XMLHTTP");}
catch(Err){this.Request=null;}}}
clearTimeout(PL.timer);if(this.Request){if(this.nFilesCached<this.Files.length-1){this.Request.onreadystatechange=function(){try{if(PL.Request.readyState==4){if(PL.Request.status==200){if(PL.debug)top.document.title=PL.Files[PL.nFilesCached]+" preloaded; #"+((PL.nFilesCached+1)+" of "+(PL.Files.length-1));}
else{if(PL.debug)alert("File preloader encountered an error retrieving: \n "+PL.Files[PL.nFilesCached]+"\n Status: "+PL.Request.status+"\n StatusText: "+PL.Request.statusText+"\n Number "+((PL.nFilesCached+1)+" of "+(PL.Files.length-1)));}
PL.nFilesCached++;SetCookie("nFilesCached",PL.nFilesCached);PL.timer=setTimeout("if( window.PL ) PL.run();",100);}}
catch(Err){var eMsg="Exception at PL.run()\n\n";for(var i in Err)eMsg+=i+": "+Err[i]+"\n";try{if(PL.debug)alert(eMsg);} catch(Err){}}}
this.Request.open("GET",this.Files[this.nFilesCached],true);this.Request.send(null);}}
else if(PL.debug)top.document.title="Browser does not support the HttpRequest Request Protocol";}}
PL=new PreLoader();function getVal(key){var value=null;var strToSearch=this.toString();var KeyVals=strToSearch.split("&");for(member in KeyVals){var ThisPair=KeyVals[member].split("=");if(key==ThisPair[0]){value=ThisPair[1];break;}}
if(typeof value=="undefined")value="";return value;}
String.prototype.getVal=getVal;function replaceLiteral(target,replacement){var tilda=(target=="~")?"":"~";var str=tilda+this.toString()+tilda;str=str.split(target).join(replacement);return str.substring(tilda.length,str.length-tilda.length);}
String.prototype.replaceLiteral=replaceLiteral;function trim(){var str=this.toString();str=str.replace(/^\s*|\s*$/g, "" );
str=str.replace(/^\n*|\n*$/g, "" );
return str;}
String.prototype.trim=trim;function randompick(){return randompick.arguments[Math.floor(Math.random()*randompick.arguments.length)];}
function getTransition(transNum,duration){var trans="";if(winIE){var d=duration;if(parseFloat(navigator.userAgent.split("MSIE")[1])>=5.5){var thisTrans=(transNum==1)?Math.floor(Math.random()*17)+2:transNum;switch(thisTrans){case 2:trans="Fade(duration="+d+",overlap=1)";break;case 3:trans="Blinds(duration="+d+",bands="+randompick(2,4,6,8)+",direction="+randompick('up','down','right','left')+")";break;case 4:trans="CheckerBoard(duration="+d+",squaresX="+randompick(2,4,8,12)+",squaresY="+randompick(2,4,8,12)+",direction="+randompick('up','down','right','left')+")";break;case 5:trans="Barn(duration="+d+",motion="+randompick('in','out')+",orientation=",randompick('horizontal','vertical')+")";break;case 6:trans="GradientWipe(duration="+d+",gradientSize="+randompick(0,0.1,0.3,0.5,0.7,0.9,1)+",wipeStyle="+randompick(0,1)+",motion="+randompick('forward','reverse')+")";break;case 7:trans="Inset(duration="+d+")";break;case 8:trans="Iris(duration="+d+",irisStyle="+randompick('DIAMOND','CIRCLE','CROSS','PLUS','SQUARE','STAR')+",motion="+randompick('in','out')+")";break;case 9:trans="RadialWipe(duration="+d+",wipeStyle="+randompick('CLOCK','WEDGE','RADIAL')+")";break;case 10:trans="RandomBars(duration="+d+",orientation="+randompick('horizontal','vertical')+")";break;case 11:trans="RandomBars(duration="+d+")";break;case 12:trans="Slide(duration="+d+",pushStyle="+randompick('HIDE','PUSH','SWAP')+",bands="+randompick(1,2,3,4,5,6,7)+")";break;case 13:trans="Spiral(duration="+d+",gridSizeX="+randompick(8,16,32,64)+",gridSizeY="+randompick(8,16,32,64)+")";break;case 14:trans="Stretch(duration="+d+",stretchStyle="+randompick('HIDE','PUSH','SPIN')+")";break;case 15:trans="Strips(duration="+d+",motion="+randompick('leftdown','leftup','rightdown','rightup')+")";break;case 16:trans="Wheel(duration="+d+",spokes="+randompick(2,4,10,16,20)+")";break;case 17:trans="Zigzag(duration="+d+",gridSizeX="+randompick(8,16,32,64)+",gridSizeY="+randompick(8,16,32,64)+")";break;case 18:trans="RandomDissolve(duration="+d+")";break;default:alert("SWITCH/CASE ERROR: Case caught by default handler in \"getTransition\"");}
trans="progid:DXImageTransform.Microsoft."+trans;}
else{switch(transNum){case 2:trans="blendTrans(duration="+d+")";break;default:trans="revealTrans(duration="+d+",transition="+Math.floor(Math.random()*23)+")";}}}
return trans;}
function getRGB(abbrev){var rgb=abbrev;switch(abbrev){case "b":rgb="0,0,0";break;case "w":rgb="255,255,255";break;}
var reRGB=/^\d{1,3},\d{1,3},\d{1,3}$/,badRGB=false;if( !reRGB.test(rgb))badRGB=true;else{var Channels=rgb.split(",");for(var i=0;i<3;i++)if(parseInt(Channels[i])>255)badRGB=true;}
if(badRGB){reportError("Errant Data","Bad RGB value \""+rgb+"\"");rgb="255,255,255";}
return rgb;}
function getOpacity(dissolveSF,dissolveMZ){var opac="";if(winIE)opac="visibility:hidden;";else if(MZ&&dissolveMZ)opac="opacity:0;"
else if(SF&&dissolveSF)opac="opacity:0;"
return opac;}
function startFade(FadeInPhoto,transNum,transDur,transDelay,dissolveSF,dissolveMZ){window.FadeInPhoto=FadeInPhoto;window.transNum=transNum;window.transDur=transDur;window.transDelay=transDelay;if(winIE)setTimeout("fadeInDirectX()",transDelay);else if((MZ&&dissolveMZ)||(SF&&dissolveSF)){FadeInPhoto.onload=function(){};(transDelay)?setTimeout("fadeIn( FadeInPhoto )",transDelay):fadeIn(FadeInPhoto);}
else{if(SF)FadeInPhoto.style.opacity=1.0;else FadeInPhoto.style.visibility="visible";}}
function fadeInDirectX(){try{FadeInPhoto.style.filter=getTransition(transNum,transDur);FadeInPhoto.filters(0).apply();FadeInPhoto.style.visibility="visible";FadeInPhoto.filters(0).play();}
catch(Err){if(local){var eMsg="Exception Caught in fadeInDirectX function:\n\n";for(var i in Err)eMsg+=i+": "+Err[i]+"\n";alert(eMsg);}
FadeInPhoto.style.visibility="visible";}}
GuiObj=null,fadeOpacity=0,fadeOpacityTimer=0;function fadeIn(GuiObj){if(MZ)GuiObj.style.opacity=fadeOpacity;else GuiObj.style.opacity=fadeOpacity;this.fadeOpacity+=.05;if(fadeOpacity<1){window.GuiObj=GuiObj;fadeOpacityTimer=setTimeout("fadeIn( GuiObj )",40);}
else{if(MZ)GuiObj.style.opacity=0.9999;else GuiObj.style.opacity=0.9999;clearTimeout(fadeOpacityTimer);GuiObj=null;fadeOpacity=0;fadeOpacityTimer=0;}}
function dissolveDirectX(OldPhoto,newPhotoSrc,borderWid,borderCol,transNum,transDur){try{OldPhoto.style.filter=getTransition(transNum,transDur);OldPhoto.filters(0).apply();OldPhoto.src=newPhotoSrc;if(borderWid)OldPhoto.style.borderColor="rgb( "+getRGB(borderCol)+" )";OldPhoto.filters(0).play();}
catch(Err){if(local){var eMsg="Exception Caught in dissolveDirectX function:\n\n";for(var i in Err)eMsg+=i+": "+Err[i]+"\n";alert(eMsg);}
OldPhoto.src=newPhotoSrc;if(borderWid)OldPhoto.style.borderColor="rgb( "+getRGB(borderCol)+" )";}}
function directX(OldPhoto,newPhotoSrc,borderWid,borderCol,transNum,transDur){try{OldPhoto.parentNode.style.filter=getTransition(transNum,transDur);OldPhoto.parentNode.filters(0).apply();OldPhoto.src=newPhotoSrc;if(borderWid)OldPhoto.style.borderColor="rgb( "+getRGB(borderCol)+" )";OldPhoto.parentNode.filters(0).play();}
catch(Err){if(local){var eMsg="Exception Caught in directX function:\n\n";for(var i in Err)eMsg+=i+": "+Err[i]+"\n";alert(eMsg);}
OldPhoto.src=newPhotoSrc;if(borderWid)OldPhoto.style.borderColor="rgb( "+getRGB(borderCol)+" )";}}
function initImagesArr(){try{Images.length=Images.length-1;}
catch(Err){reportError("Image Data Error","ERROR: Images array cannot be initialized because:\n 1) Data file \""+window.dataFile+"\" is non-existent; OR\n 2) The data it contains is malformed (bad syntax)");}}
fileNameErr=false;function checkImgName(fileName){var rePattern=/\s+/g;if( !fileNameErr && rePattern.test(fileName)){fileNameErr=true;reportError("Image File Name Error","ERROR: An image file name \""+fileName+"\" contains forbidden white-space characters.");}}
ImgReal=null;checkDimTimer=0;function checkDim(imgRealSrc,widDB,hgtDB){if(ImgReal==null){ImgReal=new Image();ImgReal.src=imgRealSrc;}
if(ImgReal.complete){clearTimeout(checkDimTimer);var realWid=ImgReal.width,realHgt=ImgReal.height;if(realWid>1&&realHgt>1&&(realWid!=widDB||realHgt!=hgtDB)){var FileComponents=ImgReal.src.split("/");var fileName=FileComponents[FileComponents.length-1];var eMsg="\""+fileName+"\" has incorrect dimensions: \n  1) "+widDB+" x "+hgtDB+" are the errant values \n  2) "+realWid+" x "+realHgt+" are the true values";reportError("Image Dimension Error",eMsg);}
ImgReal=null;}
else{clearTimeout(checkDimTimer);eval("checkDimTimer = setTimeout( 'checkDim( \""+imgRealSrc+"\", "+widDB+", "+hgtDB+" )', 250 );");}}
function writeCookMsg(){if(!navigator.cookieEnabled)document.write("<div align='center' style='margin:0px 0px 10px 0px;'><iframe src='cookies.html' width='700' height='80' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' align='top'></iframe></div>");}
function getEmailLink(subject){if(subject)subject="?subject="+escape(subject);return "<a href='mailto:"+DB.EmailRecipient+subject+"' title='Send us an e-mail' class='bold' style='color:black;'>Send E-Mail</a>";}
function requestLogIn(subject){if(subject)subject="?subject="+escape(subject);return "<a href='mailto:"+DB.OrderRecipient+subject+"' title='Send us an e-mail'>Send E-Mail</a>";}
function getCookieVal(offset){var endstr=document.cookie.indexOf(";",offset);if(endstr==-1)endstr=document.cookie.length;return unescape(document.cookie.substring(offset,endstr));}
function GetCookie(name){var arg=name+"=";var alen=arg.length;var clen=document.cookie.length;var i=0;while(i<clen){var j=i+alen;if(document.cookie.substring(i,j)==arg)return getCookieVal(j);i=document.cookie.indexOf(" ",i)+1;if(i==0)break;}
  return null;}
function SetCookie(name,value,expires,path,domain,secure){document.cookie=name+"="+escape(value)+((expires)?"; expires="+expires.toGMTString():"")+((path)?"; path="+path:"")+((domain)?"; domain="+domain:"")+((secure)?"; secure":"");}
function DeleteCookie(name,path,domain){if(GetCookie(name)){document.cookie=name+"="+((path)?"; path="+path:"")+((domain)?"; domain="+domain:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}}
var expDate12Mon=new Date();expDate12Mon.setTime(expDate12Mon.getTime()+(24*60*60*365*1000));productOff=new Image();productOff.src="images/productOff.gif";productOn=new Image();productOn.src="images/productOn.gif";newsOff=new Image();newsOff.src="images/newsOff.gif";newsOn=new Image();newsOn.src="images/newsOn.gif";feedbackOff=new Image();feedbackOff.src="images/feedbackOff.gif";feedbackOn=new Image();feedbackOn.src="images/feedbackOn.gif";homeOff=new Image();homeOff.src="images/homeOff.gif";homeOn=new Image();homeOn.src="images/homeOn.gif";var timeoutTop=0;var timeoutBot=0;var topMsg="";var botMsg="";var topId=null;var botId=null;function activateMsg(index,theId){if(theId=="calloutTop")clearTimeout(timeoutTop);else clearTimeout(timeoutBot);document.getElementById(theId).innerHTML=Msg[index];}
function deActivateMsg(theId){if(theId=="calloutTop"){topId=theId;topMsg="&nbsp; ";timeoutTop=setTimeout("try{ document.getElementById( topId ).innerHTML = topMsg } catch(e){}",500);}
else{botId=theId;botMsg="&nbsp; ";timeoutBot=setTimeout("try{ document.getElementById( botId ).innerHTML = botMsg } catch(e){}",500);}}
function getCalloutTop(){return "<DIV ID='calloutTop' STYLE='margin:10px 0px 10px 0px;' ALIGN=right WIDTH=100% class='fColorOrange fSize11'>&nbsp; </DIV>";}
function getCalloutBot(){return "<DIV ID='calloutBot' STYLE='margin:10px 0px 10px 0px;' ALIGN=center WIDTH=100% class='fColorOrange fSize11'>&nbsp; </DIV>";}
function loadSite(){document.location.href=document.other_links.the_site[document.other_links.the_site.selectedIndex].value;}
function getURL(page){var theURL=page;if(live){if(page=="checkout.aspx"){if(GetCookie("userHasWritePrivleges"))theURL="http://www.speware.com/"+page;else
theURL="https://www.speware.com/"+page;}
else
theURL="http://www.speware.com/"+page;}
return theURL;}
function PopUp(){this.winName="speWin";this.Win=null;this.openWin=openWin;this.closeWin=closeWin;this.linkToWin=linkToWin;function openWin(url,tBar,lBar,sBar,mBar,wWid,wHgt,scBar,reSize,wPos){var nArgs=arguments.length;if(nArgs==2||nArgs==10){if(nArgs==2){switch(tBar){case 1:tBar=1;lBar=1;sBar=1;mBar=1;wWid=.8;wHgt=.6;scBar=1;reSize=1;wPos=1;break;case 2:tBar=0;lBar=0;sBar=1;mBar=0;wWid=.7;wHgt=.5;scBar=1;reSize=1;wPos=1;break;case 3:tBar=0;lBar=0;sBar=1;mBar=0;wWid=1;wHgt=1;scBar=1;reSize=1;wPos=1;break;}}
this.closeWin();var avWid=screen.availWidth-10;var avHgt=screen.availHeight-30;if(wWid<1)wWid=wWid*avWid;if(wHgt<1)wHgt=wHgt*avHgt;if(wWid>avWid*0.90||wWid==1)wWid=avWid*0.90;if(wHgt>avHgt*0.70||wHgt==1)wHgt=avHgt*0.70;var leftPos=0;var topPos=0;switch(wPos){case 1:leftPos=parseInt((avWid-wWid)/2);break;case 2:leftPos=parseInt((avWid-wWid)/2);topPos=parseInt((avHgt-wHgt)/2);break;}
this.Win=window.open(url,PopUp.winName,"toolbar="+tBar+",location="+lBar+",directories=0,status="+sBar+",menubar="+mBar+",scrollbars="+scBar+",resizable="+reSize+",width="+wWid+",height="+wHgt+",top="+topPos+",left="+leftPos);}
else
alert("ERROR: "+nArgs+" arguments have been passed to method \"PopUp.openWin\", it accepts either 2 or 10 arguments.");}
function closeWin(){try{if(this.Win&&this.Win.open&&!this.Win.closed){this.Win.close();this.Win=null;}}
catch(e){}}
function linkToWin(){if(PopUp&&PopUp.Win&&PopUp.Win.registered)PopUp.Win.MyOpener=self;else setTimeout("PopUp.linkToWin()",250);}}
PopUp=new PopUp();function DynamicMenu(FormElements){this.homePage="default.aspx";this.Links=new Array();this.Links["prodServ"]=new Array();var AllProd=(GetCookie("all-products"))?["Entire Product Line",getURL("all-products.aspx"),"Entire inventory sorted by part number/description or price"]:null;this.Links["prodServ"][0]=["Solid Phase Extraction Columns",getURL("solid-phase-extraction.aspx"),"Columns are available in a wide selection of sorbent chemistries"];this.Links["prodServ"][1]=["96-Well Products",getURL("96-well-plates.aspx"),"For demanding sample throughput requirements of automation & analytical techniques"];this.Links["prodServ"][2]=["Positive Pressure Manifolds",getURL("positive-pressure-manifolds.aspx"),"Our processors offer high throughput processing of multiple SPE formats"];this.Links["prodServ"][3]=["Evaporators for SPE Processing",getURL("solvent-evaporators.aspx"),"Evaporators can be used in conjunction with Positive Pressure Manifolds"];this.Links["prodServ"][4]=["Derivatizing Agents",getURL("derivatizing-agents.aspx"),"Derivatizing Agents for GC/MS confirmation"];this.Links["prodServ"][5]=["HPLC Column Heaters",getURL("column-heaters.aspx"),""];this.Links["prodServ"][6]=["Manuals & Instructions",getURL("support.aspx"),"View operating manuals for our products"];var nMenuItems=7;if(AllProd){this.Links["prodServ"][nMenuItems]=AllProd;nMenuItems++;}
this.Links["prodServ"][nMenuItems]=["Search Products",getURL("search.aspx"),"Search our entire data-base by Part Number or Description"];this.Links["prodServ"][nMenuItems+1]=["",[5,8],[0,-4],[0,0],[0,-4],[0,0]];this.Menu=null;this.OldLink=null;this.timer=0;this.start=start;this.hide=hide;this.killOthers=killOthers;this.keepInWin=keepInWin;this.show=show;this.setElemVis=setElemVis;this.resetTimer=resetTimer;function start(Link,theEvent,arrName,menuPosition){killOthers(Link);show(Link,theEvent,arrName,menuPosition);}
function hide(delay){if(!arguments.length)delay=1000;if(DM.timer==0&&DM.Menu){DM.timer=setTimeout("DM.Menu.innerHTML = '';DM.Menu = null;DM.timer = 0;DM.setElemVis( '', 'visible' );",delay);}}
function killOthers(NewLink){resetTimer();if(DM.Menu&&DM.OldLink&&DM.OldLink!=NewLink){DM.Menu.innerHTML='';DM.Menu=null;DM.timer=0;DM.OldLink=null;DM.setElemVis("","visible");}}
function keepInWin(topEdge,leftEdge,IeBody){var bodyHgt=(IE)?IeBody.clientHeight:window.innerHeight;var bodyWid=(IE)?IeBody.clientWidth:window.innerWidth;var menuHgt=DM.Menu.offsetHeight;var yOffset=(IE)?IeBody.scrollTop:window.pageYOffset;var vScreenPos=topEdge-yOffset;var vSkew=bodyHgt-vScreenPos;if(vSkew<menuHgt+10)topEdge-=menuHgt-vSkew+10;else if(vScreenPos<10)topEdge=10+yOffset;var menuWid=DM.Menu.offsetWidth;var xOffset=(IE)?IeBody.scrollLeft:window.pageXOffset;var hScreenPos=leftEdge-xOffset;var hSkew=bodyWid-hScreenPos;if(hSkew<menuWid+10)leftEdge-=menuWid-hSkew+10;else if(hScreenPos<10)leftEdge=10+xOffset;return[topEdge,leftEdge];}
function show(Link,theEvent,arrName,menuPosition){if(!DM.Menu){DM.setElemVis(arrName,"hidden");var e=(window.event)?event:theEvent;var nLinks=DM.Links[arrName].length-1;var menuTitle=DM.Links[arrName][nLinks][0];var table="<table align='left' border='0' cellspacing='0' cellpadding='0' class='dmBorder' onMouseover='DM.resetTimer();' onMouseout='DM.hide( 0 );'>";for(var i=0;i<nLinks;i++){if(menuTitle&&i==0){table+="<tr><td nowrap class='dmTitleBg'><div style='width:100%;'><div class='dmTitleFg'>"+menuTitle+"</div></div></td></tr>";}
table+="<tr align='left' valign='middle'>";var content="link";if(DM.Links[arrName][i][1]=="-")content="separator";else if(DM.Links[arrName][i][1]=="text")content="text";var target=(DM.Links[arrName][i][4])?DM.Links[arrName][i][4]:"_self";var domTarget=(target.indexOf("_")==0)?target.substring(1,target.length):"parent."+target;var thePage=eval(domTarget+".document.location.href");var newPage=eval("!"+domTarget+".document.location.hash");var pageShowing=((thePage.substring(thePage.length-DM.Links[arrName][i][1].length,thePage.length)==DM.Links[arrName][i][1]&&newPage)||(thePage.charAt(thePage.length-1)=="/"&&DM.Links[arrName][i][1]==DM.homePage)||DM.pageShowing==DM.Links[arrName][i][1]);var selfStatusCode="";if(DM.Links[arrName][i][2]&&!pageShowing)selfStatusCode="self.status = \""+DM.Links[arrName][i][2]+"\"; ";var mouseOutCode=(DM.Links[arrName][i][2])?"self.status = \"\"; ":"";var cursorType=(pageShowing)?"default":(IE)?"hand":"pointer";var onClickMore=(DM.Links[arrName][i][3])?DM.Links[arrName][i][3]:" return true;";if(content=="link"){table+="<td nowrap class='dmMenuBgOff' onMouseOver='"+selfStatusCode+"firstChild.firstChild.className=\""+((pageShowing)?"dmMenuFgDisable":"dmMenuFgOn")+"\"; className=\""+((pageShowing)?"dmMenuBgOff":"dmMenuBgOn")+"\"; return true;' onMouseOut='"+mouseOutCode+"firstChild.firstChild.className=\""+((pageShowing)?"dmMenuFgDisable":"dmMenuFgOff")+"\";  className=\"dmMenuBgOff\"; return true;'><a href='"+((pageShowing)?"javascript:void(0);":DM.Links[arrName][i][1])+"' TARGET='"+target+"' style='text-decoration:none;' onClick='if( href != \"javascript:void(0);\" ) { DM.hide( 0 ); DM.pageShowing = this.href; "+onClickMore+" } else return false;' onMouseOver='style.cursor = \""+cursorType+"\"; return true;'><div style='width:100%;' class='"+((pageShowing)?"dmMenuFgDisable":"dmMenuFgOff")+"'>"+DM.Links[arrName][i][0]+"</div></a></td>";}
else if(content=="separator"){table+="<td align='center' class='dmMenuBgOff'><table border='0' cellspacing='0' cellpadding='0' style='width:100%; margin:2px 0px 2px 0px;'><tr><td style='height:1px; width:100%;' class='dmSepCol'></td></tr></table></td>";}
else{table+="<td align='center' class='dmMenuBgOff'><div class='dmTxt' onClick='self.status=\""+DM.Links[arrName][i][2]+"\"; return true;' onMouseout='self.status=\"\"; return true;'>"+DM.Links[arrName][i][0]+"</div></td>";}
table+="</tr>";}
table+="</table><br>";DM.Menu=document.createElement("DIV");document.body.appendChild(DM.Menu);DM.OldLink=Link;DM.Menu.style.zIndex=20000;DM.Menu.style.visibility="hidden";DM.Menu.style.position="absolute";DM.Menu.style.top=(screen.height*-1)+"px";DM.Menu.style.left=(screen.width*-1)+"px";DM.Menu.innerHTML=table;var ieCSS=(IE&&document.compatMode)?document.compatMode=="CSS1Compat":false;var IeBody=null;if(IE)IeBody=(ieCSS)?document.documentElement:document.body;var useLnkPos=(winIE||MZ||SF),useEvtPos=!useLnkPos;var x=0,y=0;if(useEvtPos||menuPosition=="relative"){x=(IE)?e.clientX+IeBody.scrollLeft:e.pageX;y=(IE)?e.clientY+IeBody.scrollTop:e.pageY;}
else{var ThisLink=Link;var parPosAbs=false;while(ThisLink){if(SF){if(!parPosAbs)parPosAbs=(ThisLink.style.position=="absolute");if(parPosAbs&&ThisLink==document.body)break;}
y+=ThisLink.offsetTop;x+=ThisLink.offsetLeft;ThisLink=ThisLink.offsetParent;}}
switch(menuPosition){case "relative":var topEdge=(IE)?e.clientY+IeBody.scrollTop:e.pageY;topEdge+=DM.Links[arrName][nLinks][1][1];var leftEdge=(IE)?e.clientX+IeBody.scrollLeft:e.pageX;leftEdge+=DM.Links[arrName][nLinks][1][0];break;case "above":var skewY=(useEvtPos)?parseInt(Link.offsetHeight/2):0;var skewX=(useEvtPos)?parseInt(DM.Menu.offsetWidth/2):0;var topEdge=y-skewY-DM.Menu.offsetHeight+DM.Links[arrName][nLinks][2][1];var leftEdge=x-skewX+DM.Links[arrName][nLinks][2][0];break;case "right":var skewX=(useEvtPos)?Link.offsetWidth:0;var topEdge=y+DM.Links[arrName][nLinks][3][1];var leftEdge=x-skewX+Link.offsetWidth+DM.Links[arrName][nLinks][3][0];break;case "below":var skewY=(useEvtPos)?parseInt(Link.offsetHeight/2):0;var skewX=(useEvtPos)?parseInt(DM.Menu.offsetWidth/2):0;var topEdge=y-skewY+Link.offsetHeight+DM.Links[arrName][nLinks][4][1];var leftEdge=x-skewX+DM.Links[arrName][nLinks][4][0];break;case "left":var topEdge=y+DM.Links[arrName][nLinks][5][1];var leftEdge=x-DM.Menu.offsetWidth+DM.Links[arrName][nLinks][5][0];break;default:alert("SWITCH/CASE ERROR: menuPosition \""+menuPosition+"\" is invalid.");}
var MenuPos=DM.keepInWin(topEdge,leftEdge,IeBody);DM.Menu.style.top=MenuPos[0]+"px";DM.Menu.style.left=MenuPos[1]+"px";DM.Menu.style.visibility="visible";}}
function setElemVis(arrName,vis){if(winIE&&DM.formElements){for(member in DM.formElements){if(vis=="visible"||arrName==DM.formElements[member][0]){if(document.getElementById(DM.formElements[member][1]))document.getElementById(DM.formElements[member][1]).style.visibility=vis;}}}}
function resetTimer(){clearTimeout(DM.timer);DM.timer=0;}}
function reportError(sub,msg){var Now=new Date();var diagnostics=" \nURL: "+document.location.href;try{var topURL=top.document.location.href;}
catch(e){var topURL="Exception thrown while reading top URL";}
try{var ref=document.referrer;}
catch(e){var ref="Exception thrown while reading Referrer";}
diagnostics+=" \nTop URL: "+topURL;diagnostics+=" \nTime: "+Now.toLocaleString()+" (client's time)";diagnostics+=" \nPrior Page: "+ref;diagnostics+=" \nGMT Offset: "+Now.getTimezoneOffset()/60+" hours";diagnostics+=" \nMonitor: "+screen.width+"x"+screen.height+"x"+screen.colorDepth;diagnostics+=" \nJava Enabled: "+navigator.javaEnabled();for(i in navigator){if(typeof navigator[i]!="object")diagnostics+=" \n"+i+": "+navigator[i];}
if(confirm(sub+"\n\n"+msg+"\n\n==> Help us improve our site, click OK to report this problem to our Web Site Administrator..."))document.location.href="mailto:"+DB.OrderRecipient+"?subject="+escape("SPEware.com"+"; "+sub)+"&body="+escape(msg+" \n\nDIAGNOSTICS: This info may be used to help us troubleshoot technical problems"+diagnostics);}
function getCloseLinkDW(divStyle){return "<div style='"+divStyle+"'><a href='javascript:DW.removeWin();' onMouseOver='self.status=this.title; return true;' onMouseOut='self.status=\"\"; return true;' title='Close this pop-up window' class='dwCloseLink'>Close</a></div>";}
function largePic(cap,wid,hgt,Link,evt){if(window.DW){DW.createWindow([cap,"imgSrc="+Link.href],[0,wid,hgt],Link,evt,0,[4,0,0]);return false;}
else
return true;}
function DynamicWindow(transNum,transDur){this.dissolveMZ=1;this.dissolveSF=1;this.addImageOverlay=1;this.gDisableContextImgMenu=0;this.Msg=new Array();this.Msg.fullSize="View this image full-size";if(GetCookie("userWithWritePrivileges"))this.gDisableContextImgMenu=0;window.gClickPos=null;this.maxDissolve=1000*1000;this.transNum=(transNum)?transNum:2;this.transDur=(transDur)?transDur:0.8;this.dWinOffsetX=0;this.dWinOffsetY=0;this.Window=null;this.overTitleBar=false;this.Photo=null;this.disableContextImgMenu=false;this.TheBody=null;this.imageMap=false;this.createWindow=createWindow;this.showImg=showImg;this.keepInWin=keepInWin;this.getClickPosition=getClickPosition;this.getData=getData;this.loadingImage=loadingImage;this.mouseDown=mouseDown;this.mouseMove=mouseMove;this.otherFunctionalityOnRemoveWin=otherFunctionalityOnRemoveWin;this.removeWin=removeWin;this.mouseUp=mouseUp;document.onmousedown=this.mouseDown;document.onmousemove=this.mouseMove;document.onmouseup=this.mouseUp;function otherFunctionalityOnRemoveWin(){}
function createWindow(dataSrc,WinDim,TheLink,theEvent,bodyMargin,RequestedPos,disableContextImgMenu){this.TheBody=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;if(TheLink)TheLink.blur();if(!bodyMargin)bodyMargin=0;this.disableContextImgMenu=(typeof disableContextImgMenu=="boolean")?disableContextImgMenu:this.gDisableContextImgMenu;var Data=this.getData(dataSrc,TheLink),title,body;title=Data[0].replace(/\^\^/g, "'" );
title=title.replace(/\^/g, "\"" );
body=Data[1].replace(/\^\^/g, "'" );
body=body.replace(/\^/g, "\"" );
var showImg=(body.indexOf("imgSrc=")==0);var scrollStyle=(WinDim[0])?" overflow:auto;":"";var winWid=WinDim[1];var winHgt=WinDim[2];var clickPos=(RequestedPos)?(RequestedPos[0]==1):true;var aboveClkPos=(RequestedPos)?(RequestedPos[0]==2):false;var topCent=(RequestedPos)?(RequestedPos[0]==3):false;var center=(RequestedPos)?(RequestedPos[0]==4):false;var botCent=(RequestedPos)?(RequestedPos[0]==5):false;var xOffset=(RequestedPos)?RequestedPos[1]:0;var yOffset=(RequestedPos)?RequestedPos[2]:10;this.imageMap=false;if(showImg){var mzDissolve=(MZ&&this.dissolveMZ&&(winWid*winHgt<=this.maxDissolve));var sfDissolve=(SF&&this.dissolveSF);var absImgName=body.split("imgSrc=")[1];var imgName=absImgName.substring(absImgName.lastIndexOf("/")+1,absImgName.length);var ImageMaps=document.getElementsByTagName("map");for(var i=0;i<ImageMaps.length;i++){if(ImageMaps[i].name==imgName.substring(imgName.lastIndexOf("/")+1,imgName.length)){this.imageMap=true;break;}}
var body="<img src='"+absImgName+"' width='"+winWid+"' height='"+winHgt+"' border='0' hspace='0' vspace='0' galleryimg='no' style='"+getOpacity(sfDissolve,mzDissolve)+"' onload='DW.showImg( this );' onAbort='this.src=this.src;'"+" usemap='#"+imgName+"' id='"+imgName+"'>";this.title=title;var loading="Loading Image<span id='dot1' class='dotOff'>.</span><span id='dot2' class='dotOff'>.</span><span id='dot3' class='dotOff'>.</span><span id='dot4' class='dotOff'>.</span>";if(title.indexOf("[")!=-1){title=title.replace(/^.*?\[/, loading + "[" );
title=title.replace(/\[/g, "<div class='dwTitleLine2Off'>" );
title=title.replace(/]/g, "</div>" );}
else
title=loading;}
var Window=document.getElementById("dWinID");if(Window)document.body.removeChild(Window);var NewWindow=document.createElement("DIV"),scrollSt,bodyHgtSt;bodyHgtStyle=(winHgt)?" height:"+winHgt+"px;":"";NewWindow.id="dWinID";NewWindow.className="dwWin";document.body.appendChild(NewWindow);NewWindow.style.visibility="hidden"
NewWindow.style.position="absolute";NewWindow.style.width=(IE&&document.compatMode!="CSS1Compat")?(winWid+2*parseInt(NewWindow.currentStyle["borderWidth"]))+"px":winWid+"px";NewWindow.style.top=(screen.height*-1)+"px";NewWindow.style.left=(screen.width*-1)+"px";NewWindow.style.zIndex=10000;var myWindow="<div class='dwTitleRow' id='dwTitleRowID'><table align='center' border='0' cellspacing='0' cellpadding='0'><tr><td class='dwTitle' style='width:100%; text-align:center;' onmouseover='DW.overTitleBar=true;' onmouseout='DW.overTitleBar=false;' id='dwTitleTd1ID'><div id='dwTitleBarID'>"+title+"</div>"+((this.imageMap)?"<div id='ImageMapMsg' class='imageMapMsg' style='visibility:hidden;'>"+document.getElementById(imgName+".msg").value+"</div>":"")+"</td><td valign='top' id='dwTitleTd2ID'><a href='javascript:DW.removeWin();' onMouseOver='self.status=this.title; return true;' onMouseOut='self.status=\"\"; return true;' title='Close' class='dwX'>&times;</a></td></tr></table></div><div class='"+((showImg)?"dwBodyParentImg":"dwBodyParent")+"' style='width:100%;"+bodyHgtStyle+scrollStyle+"'><div class='dwBody' id='dwBodyID' style='margin:"+bodyMargin+"px;'>"+body+"</div></div>";NewWindow.innerHTML=myWindow;var xPos=0,yPos=0;if(clickPos||aboveClkPos){if(theEvent)var ClickPos=this.getClickPosition(theEvent);else if(window.gClickPos)var ClickPos=gClickPos;window.gClickPos=ClickPos;xPos=ClickPos[0];var vPortWid=(document.body.clientWidth)?document.body.clientWidth:window.innerWidth;var skew=Math.round(100*xPos/vPortWid)/100;xPos=xPos-(skew*NewWindow.offsetWidth);if(clickPos)yPos=ClickPos[1]+yOffset;else
yPos=ClickPos[1]-NewWindow.offsetHeight+yOffset;}
else if(topCent||center||botCent){var scrollX,scrollY,bodyWid,bodyHgt;if(IE){scrollX=this.TheBody.scrollLeft;scrollY=this.TheBody.scrollTop;bodyWid=this.TheBody.clientWidth;bodyHgt=this.TheBody.clientHeight;}
else{scrollX=window.pageXOffset;scrollY=window.pageYOffset;bodyWid=window.innerWidth;bodyHgt=window.innerHeight;}
winHgt=NewWindow.offsetHeight;winWid=NewWindow.offsetWidth;xPos=parseInt((bodyWid-winWid)/2+scrollX+xOffset);if(topCent)yPos=parseInt(scrollY+yOffset);else if(center)yPos=parseInt((bodyHgt-winHgt)/2+scrollY+yOffset);else yPos=parseInt(bodyHgt-winHgt+scrollY+yOffset);}
else{var Component=(window.ComponentDW)?window.ComponentDW:document.getElementById(RequestedPos[3]);var CurComponent=Component;var parPosAbs=false;while(CurComponent){if(SF){if(!parPosAbs)parPosAbs=(CurComponent.style.position=="absolute");if(parPosAbs&&CurComponent==this.TheBody)break;}
yPos+=CurComponent.offsetTop;xPos+=CurComponent.offsetLeft;CurComponent=CurComponent.offsetParent;}
switch(RequestedPos[0]){case 10:xPos+=xOffset;yPos-=NewWindow.offsetHeight-yOffset;break;case 11:xPos+=Component.offsetWidth+xOffset;yPos-=NewWindow.offsetHeight-yOffset;break;case 12:xPos+=Component.offsetWidth+xOffset;yPos+=yOffset;break;case 13:xPos+=Component.offsetWidth+xOffset;yPos+=Component.offsetHeight+yOffset;break;case 14:xPos+=xOffset;yPos+=Component.offsetHeight+yOffset;break;case 15:xPos+=Component.offsetWidth+xOffset-NewWindow.offsetWidth;yPos+=Component.offsetHeight+yOffset;break;case 16:xPos+=xOffset-NewWindow.offsetWidth;yPos+=Component.offsetHeight+yOffset;break;case 17:xPos+=xOffset-NewWindow.offsetWidth;yPos+=yOffset;break;default:alert("Switch/Case Error at DW.createWindow: RequestedPos[ 0 ] has a value of "+RequestedPos[0]+" which is invalid.");}}
var NewWindowPos=this.keepInWin(NewWindow,xPos,yPos);xPos=Math.round(NewWindowPos[0]);yPos=Math.round(NewWindowPos[1]);NewWindow.style.left=xPos+"px";NewWindow.style.top=yPos+"px";if(showImg&&this.addImageOverlay){window.onscroll=function(){var Overlay=document.getElementById("dwOverlay");if(Overlay)document.body.removeChild(Overlay);}
var Overlay=document.createElement("DIV");Overlay.id="dwOverlay";Overlay.className="dwOverlay";Overlay.onclick=function(event){document.body.removeChild(this);}
document.body.appendChild(Overlay);try{var wid=(this.TheBody.scrollWidth>this.TheBody.clientWidth)?this.TheBody.scrollWidth:this.TheBody.clientWidth;var hgt=(this.TheBody.scrollHeight>this.TheBody.clientHeight)?this.TheBody.scrollHeight:this.TheBody.clientHeight;Overlay.style.width=wid+"px";Overlay.style.height=hgt+"px";}
catch(Err){document.body.removeChild(Overlay);}}
NewWindow.style.visibility="visible";if(showImg)this.loadingImage();}
function loadingImage(){var Dot1=document.getElementById("dot1");var Dot2=document.getElementById("dot2");var Dot3=document.getElementById("dot3");var Dot4=document.getElementById("dot4");if(Dot1&&Dot2&&Dot3&&Dot4){if(Dot1.className=="dotOff")Dot1.className="dotOn";else if(Dot2.className=="dotOff")Dot2.className="dotOn";else if(Dot3.className=="dotOff")Dot3.className="dotOn";else if(Dot4.className=="dotOff")Dot4.className="dotOn";else{Dot1.className="dotOff";Dot2.className="dotOff";Dot3.className="dotOff";Dot4.className="dotOff";}
setTimeout("DW.loadingImage()",300);}}
function showImg(Photo){Photo.oncontextmenu=function(){if(DW.disableContextImgMenu)return false;};if(this.imageMap)document.getElementById("ImageMapMsg").style.visibility="visible";else{Photo.onclick=DW.removeWin;Photo.title="Click to close";Photo.style.cursor="pointer";}
try{checkDim(Photo.src,Photo.width,Photo.height);var title=this.title;title=title.replace(/\[/g, "<div class='dwTitleLine2'>" ).replace(/]/g, "</div>" );
document.getElementById("dwTitleBarID").innerHTML=title;var mzDissolve=(MZ&&this.dissolveMZ&&(Photo.width*Photo.height<=this.maxDissolve));var sfDissolve=(SF&&this.dissolveSF);startFade(Photo,this.transNum,this.transDur,0,sfDissolve,mzDissolve);}
catch(Err){self.status="Exception thrown at method DW.showImg...";}}
function keepInWin(NewWindow,leftEdge,topEdge){var bodyHgt=(IE)?this.TheBody.clientHeight:window.innerHeight;var bodyWid=(IE)?this.TheBody.clientWidth:window.innerWidth;var winHgt=NewWindow.offsetHeight;var yOffset=(IE)?this.TheBody.scrollTop:window.pageYOffset;var vScreenPos=topEdge-yOffset;var vSkew=bodyHgt-vScreenPos;if(vSkew<winHgt+10)topEdge-=winHgt-vSkew+10;else if(vScreenPos<10)topEdge=10+yOffset;var winWid=NewWindow.offsetWidth;var xOffset=(IE)?this.TheBody.scrollLeft:window.pageXOffset;var hScreenPos=leftEdge-xOffset;var hSkew=bodyWid-hScreenPos;if(hSkew<winWid+10){leftEdge-=winWid-hSkew+10;if(!IE&&this.TheBody.scrollHeight>bodyHgt)leftEdge-=15;}
else if(hScreenPos<10)leftEdge=10+xOffset;return[leftEdge,topEdge];}
function getClickPosition(theEvent){try{if(IE){var x=event.clientX+this.TheBody.scrollLeft;var y=event.clientY+this.TheBody.scrollTop;}
else{var x=theEvent.pageX;var y=theEvent.pageY;}}
catch(err){var x=0;var y=0;}
return[x,y];}
function getData(dataSrc,TheLink){if(dataSrc=="nextSibling"){if(eval("typeof this.LastSrc")=="object")eval("this.LastSrc.innerHTML = this.lastData");try{var DataSource=(TheLink.nextSibling.innerHTML)?TheLink.nextSibling:TheLink.nextSibling.nextSibling;}
catch(err){alert("EXCEPTION: Data source not found");return false;}
try{var Title=(DataSource.firstChild.innerHTML)?DataSource.firstChild:DataSource.firstChild.nextSibling;var title=Title.innerHTML;}
catch(err){alert("EXCEPTION: Title source not found");return false;}
try{var Body=(Title.nextSibling.innerHTML)?Title.nextSibling:Title.nextSibling.nextSibling;var body=Body.innerHTML;}
catch(err){alert("EXCEPTION: Body source not found");return false;}
eval("this.LastSrc = DataSource");eval("this.lastData = DataSource.innerHTML");DataSource.innerHTML="";}
else{var title=dataSrc[0];var body=dataSrc[1];}
return[title,body];}
function mouseDown(e){if(DW.overTitleBar){this.Window=document.getElementById("dWinID");if(IE){this.dWinOffsetX=event.offsetX;this.dWinOffsetY=event.offsetY;}
else{this.dWinOffsetX=e.layerX;this.dWinOffsetY=e.layerY;return false;}}}
function mouseMove(e){if(this.Window){var ClickPos=DW.getClickPosition(e);if(ClickPos[0]<=0||ClickPos[1]<=0){this.Window=null;return false;}
if(IE){if(event.button!=1)return false;this.Window.style.left=(event.clientX-this.dWinOffsetX+DW.TheBody.scrollLeft)+"px";this.Window.style.top=(event.clientY-this.dWinOffsetY+DW.TheBody.scrollTop)+"px";return false;}
else{this.Window.style.top=(e.pageY-this.dWinOffsetY)+"px";this.Window.style.left=(e.pageX-this.dWinOffsetX)+"px";}}}
function removeWin(){var Window=document.getElementById("dWinID");if(Window)document.body.removeChild(Window);var Overlay=document.getElementById("dwOverlay");if(Overlay)document.body.removeChild(Overlay);var Rectangle=document.getElementById("RectangleID");if(Rectangle)document.body.removeChild(Rectangle);DW.otherFunctionalityOnRemoveWin();}
function mouseUp(){this.Window=null;}}
function setButton(Button,command,defButVal){switch(command){case "enable":Button.value=defButVal;Button.disabled=false;break;case "disable":Button.value="Please Wait...";Button.disabled=true;break;default:alert("Switch/Case Error caught by default handler in setButton");}}
function FileWriter(){this.HtmlButtons="<button onClick='FW.insertTags( \"<br>\", \"\", \"EditedHTML\" ); return false;' title='Inserts line-break tag at cursor position' class='htmlTags'>&lt;br&gt;</button><button onClick='FW.insertTags( \"<b>\", \"</b>\", \"EditedHTML\" ); return false;' title='Inserts bold tags around highlighted text' class='htmlTags'><b>B</b></button><button onClick='FW.insertTags( \"<i>\", \"</i>\", \"EditedHTML\" ); return false;' title='Inserts italic tags around highlighted text' class='htmlTags'><i>I</i></button>";this.DataButtons="";this.AdminLinks="";if(!GetCookie("userHasWritePrivleges"))return;this.help=help;this.showHelp=showHelp;this.restore=restore;this.insertTags=insertTags;this.init=init;this.checkContent=checkContent;this.resetUI=resetUI;this.reLoad=reLoad;this.logOff=logOff;this.cursorReadyHtm=false;this.cursorReadyJS=false;this.init();function showHelp(Link){var PlsMin=Link.previousSibling;var Content=Link.nextSibling;if(Content.className=="fw1"){Content.className="fw0";PlsMin.innerHTML="+";}
else{Content.className="fw1";PlsMin.innerHTML="-";}}
function help(nType,Link,evt){function getHelpTxt(helpType){var htm="<div class='fwHelpSect'><a href='javascript:void(0)' onClick='FW.showHelp(this.nextSibling);' class='fwPlusMinus'>+</a><a href='javascript:void(0);' onClick='FW.showHelp(this);' class='fw'>Reload & Cache</a><div class='fw0'><u>Cache Defined</u>: All browsers seamlessly store all recent pages that you have visited on your hard drive. This process is called \"caching\" and it greatly speeds up your web browsing because your browser is able to later retrieve these web pages off your hard drive much quicker than downloading them again from server.<br><br><u>Caching will cause problems for you</u> because after you press Publish, and the page reloads, you may be looking at a cached version of that page rather than the most recent version which you just published and are naturally expecting to see.<br><br><u>Here's a cure to all your cache problems</u>: After you press Publish, & once the page loads, don't evaluate it just yet - better yet, immediately go down to the Reload button (next to Publish) & press it. Now, after this full reload, where you can be sure cache is not an issue, you may evaluate the page to make sure it looks as you were expecting.<br><br><u>Remember this mantra</u> & you will eliminate cache frustrations forever!<br>&nbsp;&nbsp;\"Just Published but don't see your changes? Then press Reload\"</div></div><div class='fwHelpSect'><a href='javascript:void(0)' onClick='FW.showHelp(this.nextSibling);' class='fwPlusMinus'>+</a><a href='javascript:void(0);' onClick='FW.showHelp(this);' class='fw'>Publish "+helpType+"</a><div class='fw0'>Press Publish-"+helpType+" after you have made your edits. Your changes will be permanently written to file and the page will be reloaded. After the page reloads, verify your changes. If you don't see them press Reload.";if(helpType=="HTML")htm+="<br><br>Need help with your HTML skills? Try <a href='javascript:PopUp.openWin( \"http://www.w3schools.com/html/html_primary.asp\", 1 );' class='fw'>W3schools.com</a>";else if(helpType=="XML")htm+=" Changes made to XML data update across entire site immediately.";htm+="</div></div><div class='fwHelpSect'><a href='javascript:void(0)' onClick='FW.showHelp(this.nextSibling);' class='fwPlusMinus'>+</a><a href='javascript:void(0);' onClick='FW.showHelp(this);' class='fw'>Reset</a><div class='fw0'>Press Reset if you made edit(s) but then changed your mind or you just want to start over! The content in the text-box will revert back to original start-up values since you last published.</div></div><div class='fwHelpSect'><a href='javascript:void(0)' onClick='FW.showHelp(this.nextSibling);' class='fwPlusMinus'>+</a><a href='javascript:void(0);' onClick='FW.showHelp(this);' class='fw'>Restore</a><div class='fw0'>Restore is the ultimate \"safety net\" and more powerful that Reset because it let's you go back to an earlier date & time. If you made a serious mistake, which you only realized after publishing, then restore is the solution. Before you consider using restore, please understand that you will lose the current working file as you will be reverting to an earlier time - so don't try this casually!<div align='center' style='margin:4px 0px 0px 0px;'><form>";if(helpType=="HTML"){var BackUpHTM=document.AspForm.BackUpHTM;htm+="<input type='button' value='Restore To:' onMouseOver='self.status=this.title; return true;' onMouseOut='self.status=\"\"; return true;' onClick='return FW.restore( \"RestoreHTM\" );' title='Restore this file to a prior selected time' />&nbsp;&nbsp;";htm+="<select onMouseOver='self.status=this.title; return true;' onMouseOut='self.status=\"\"; return true;' title='Select a prior restore point; reported time is from server&#39;s time zone' onChange='document.AspForm.BackUpHTM.selectedIndex=this.selectedIndex;'>";for(var i=0;i<BackUpHTM.length;i++)htm+="<option value='"+BackUpHTM[i].value+"'>"+BackUpHTM[i].text+"</option>";htm+="</select>";}
else if(helpType=="JavaScript"){var BackUpJS=document.AspForm.BackUpJS;htm+="<input type='button' value='Restore To:' onMouseOver='self.status=this.title; return true;' onMouseOut='self.status=\"\"; return true;' onClick='return FW.restore( \"RestoreJS\" );' title='Restore this file to a prior selected time' />&nbsp;&nbsp;";htm+="<select onMouseOver='self.status=this.title; return true;' onMouseOut='self.status=\"\"; return true;' title='Select a prior restore point; reported time is from server&#39;s time zone' onChange='document.AspForm.BackUpJS.selectedIndex=this.selectedIndex;'>";for(var i=0;i<BackUpJS.length;i++)htm+="<option value='"+BackUpJS[i].value+"'>"+BackUpJS[i].text+"</option>";htm+="</select>";}
else{var BackUpXML=document.AspForm.BackUpXML;htm+="<input type='button' value='Restore To:' onMouseOver='self.status=this.title; return true;' onMouseOut='self.status=\"\"; return true;' onClick='return FW.restore( \"RestoreXML\" );' title='Restore this file to a prior selected time' />&nbsp;&nbsp;";htm+="<select onMouseOver='self.status=this.title; return true;' onMouseOut='self.status=\"\"; return true;' title='Select a prior restore point; reported time is from server&#39;s time zone' onChange='document.AspForm.BackUpXML.selectedIndex=this.selectedIndex;'>";for(var i=0;i<BackUpXML.length;i++)htm+="<option value='"+BackUpXML[i].value+"'>"+BackUpXML[i].text+"</option>";htm+="</select>";}
htm+="</form></div><ol style='margin-top:4px; margin-bottom:4px;'><li style='margin-left:-10px;'>Select a restore date. They will be listed & numbered with the most recent at the top. Remember that the dates & times showing are from your server's time zone, not yours.</li><li style='margin-left:-10px;'>If you don't know which date to select then try the immediate prior backup. It will be already selected for you (#1 at the top). Press Restore to revert to the selected date & time. If that doesn't help try #2, #3 and so on...</li><li style='margin-left:-10px;'>After restoring, if it appears the problem is not resolved, try a reload first before doing another restore.</li></ol></div></div>";return htm;}
var DataSrc;switch(nType){case 1:DataSrc=["Publishing HTML",getHelpTxt("HTML")];break;case 2:DataSrc=["Publishing JavaScript",getHelpTxt("JavaScript")];break;case 3:DataSrc=["Publishing XML",getHelpTxt("XML")];break;}
if(window.DW)DW.createWindow(DataSrc,[1,600,300],Link,evt,6,[2,0,-15]);}
function restore(aspJob){var Form=document.AspForm;if(aspJob=="RestoreHTM"&&Form.BackUpHTM&&Form.BackUpHTM[Form.BackUpHTM.selectedIndex].value==""||aspJob=="RestoreJS"&&Form.BackUpJS&&Form.BackUpJS[Form.BackUpJS.selectedIndex].value==""||aspJob=="RestoreXML"&&Form.BackUpXML&&Form.BackUpXML[Form.BackUpXML.selectedIndex].value==""){alert("No action taken: There are no restore dates...");return false;}
Form.ASP_Job.value=aspJob;Form.submit();}
function insertTags(tagOpen,tagClose,TextBoxID){var editHTML=(TextBoxID=="EditedHTML");var editDATA=!editHTML;if(this.cursorReadyHtm&&editHTML||this.cursorReadyJS&&editDATA){var TextArea=document.getElementById(TextBoxID);if(IE){var theSelection=document.selection.createRange().text;TextArea.focus();if(theSelection.charAt(theSelection.length-1)==" "){theSelection=theSelection.substring(0,theSelection.length-1);document.selection.createRange().text=tagOpen+theSelection+tagClose+" ";}
else
document.selection.createRange().text=tagOpen+theSelection+tagClose;}
else{var replaced=false;var startPos=TextArea.selectionStart;var endPos=TextArea.selectionEnd;if(endPos-startPos)replaced=true;var scrollTop=TextArea.scrollTop;var myText=(TextArea.value).substring(startPos,endPos);if(myText.charAt(myText.length-1)==" ")subst=tagOpen+myText.substring(0,(myText.length-1))+tagClose+" ";else
subst=tagOpen+myText+tagClose;TextArea.value=TextArea.value.substring(0,startPos)+subst+TextArea.value.substring(endPos,TextArea.value.length);TextArea.focus();if(replaced){var cPos=startPos+(tagOpen.length+myText.length+tagClose.length);TextArea.selectionStart=cPos;TextArea.selectionEnd=cPos;}
else{TextArea.selectionStart=startPos+tagOpen.length;TextArea.selectionEnd=startPos+tagOpen.length+myText.length;}
TextArea.scrollTop=scrollTop;}
if(TextArea.createTextRange)TextArea.caretPos=document.selection.createRange().duplicate();}
else{if(tagOpen=="<br>")alert("To insert a line break you must place your cursor at the location you would like to add it.");else{if(editHTML)alert("To insert HTML formatting tags you must first highlight the text you would like formatted.");else{if(tagOpen=="\\\"")alert("To insert double quotes you must first highlight the text you would like quoted.");else
alert("To auto-insert you must place your cursor at the location you would like to add it.");}}}}
function init(){var help="About Caching, Reload, Publish, Reset & Restore";var justPub="Refresh page to override cached (old) version";try{var EditContainerHTM=document.getElementById("EditContainerHTM");if(EditContainerHTM&&EditContainerHTM.className=="on"){document.getElementById("htmTitle").innerHTML="HTML CONTENT FOR THIS PAGE<br>"+this.HtmlButtons;var EditedHTML=document.getElementById("EditedHTML");EditedHTML.onfocus=function(){this.title="Edit text then press \"Publish HTML\"";self.status=this.title;FW.cursorReadyHtm=true;}
EditedHTML.onblur=function(){self.status="";}
var HelpHTM=document.getElementById("HelpHTM");HelpHTM.onmouseover=function(){this.title=help;self.status=this.title;}
HelpHTM.onmouseout=function(){self.status="";}
var ReloadHTM=document.getElementById("ReloadHTM");ReloadHTM.onmouseover=function(){this.title=justPub;self.status=this.title;}
ReloadHTM.onmouseout=function(){self.status="";}
ReloadHTM.onclick=function(){FW.reLoad("EditedHTML");}
var PublishHTM=document.getElementById("PublishHTM");PublishHTM.onmouseover=function(){this.title="Write HTML to file";self.status=this.title;}
PublishHTM.onmouseout=function(){self.status="";}
PublishHTM.onclick=function(){return FW.checkContent(1,1);}
PublishHTM.oncontextmenu=function(){return FW.checkContent(1,0);}
var ResetHTM=document.getElementById("ResetHTM");ResetHTM.onmouseover=function(){this.title="Revert HTML back to original values since you last published";self.status=this.title;}
ResetHTM.onmouseout=function(){self.status="";}
ResetHTM.onclick=function(){FW.resetUI("EditedHTML");}}
var EditContainerJS=document.getElementById("EditContainerJS");if(EditContainerJS&&EditContainerJS.className=="on"){document.getElementById("dataTitleJS").innerHTML="JAVASCRIPT DATA<br>TIP: Need to use a double quote within a text string? Then \\\"<a href='javascript:void(0);' onClick='FW.insertTags( \"\\\\\\\"\", \"\\\\\\\"\", \"EditedJS\" ); return false;' title='Inserts double quotes around highlighted data text' class='fw'>escape</a>\\\" it."+((this.DataButtons)?"<br>"+this.DataButtons:"");var EditedJS=document.getElementById("EditedJS");EditedJS.onfocus=function(){this.title="Edit data then press \"Publish Data\"";self.status=this.title;FW.cursorReadyJS=true;}
EditedJS.onblur=function(){self.status="";}
var HelpJS=document.getElementById("HelpJS");HelpJS.onmouseover=function(){this.title=help;self.status=this.title;}
HelpJS.onmouseout=function(){self.status="";}
var ReloadJS=document.getElementById("ReloadJS");ReloadJS.onmouseover=function(){this.title=justPub;self.status=this.title;}
ReloadJS.onmouseout=function(){self.status="";}
ReloadJS.onclick=function(){FW.reLoad("EditedJS");}
var PublishJS=document.getElementById("PublishJS");PublishJS.onmouseover=function(){this.title="Write JavaScript to file";self.status=this.title;}
PublishJS.onmouseout=function(){self.status="";}
PublishJS.onclick=function(){return FW.checkContent(2,1);}
PublishJS.oncontextmenu=function(){return FW.checkContent(2,0);}
var ResetJS=document.getElementById("ResetJS");ResetJS.onmouseover=function(){this.title="Revert JavaScript back to original values since you last published";self.status=this.title;}
ResetJS.onmouseout=function(){self.status="";}
ResetJS.onclick=function(){FW.resetUI("EditedJS");}}
var EditContainerXML=document.getElementById("EditContainerXML");if(EditContainerXML&&EditContainerXML.className=="on"){document.getElementById("dataTitleXML").innerHTML="GLOBAL XML DATA";var EditedXML=document.getElementById("EditedXML");EditedXML.onfocus=function(){this.title="Edit data then press \"Publish XML\"";self.status=this.title;}
EditedXML.onblur=function(){self.status="";}
var HelpXML=document.getElementById("HelpXML");HelpXML.onmouseover=function(){this.title=help;self.status=this.title;}
HelpXML.onmouseout=function(){self.status="";}
var ReloadXML=document.getElementById("ReloadXML");ReloadXML.onmouseover=function(){this.title=justPub;self.status=this.title;}
ReloadXML.onmouseout=function(){self.status="";}
ReloadXML.onclick=function(){FW.reLoad("EditedXML");}
var PublishXML=document.getElementById("PublishXML");PublishXML.onmouseover=function(){this.title="Write XML to file";self.status=this.title;}
PublishXML.onmouseout=function(){self.status="";}
PublishXML.onclick=function(){return FW.checkContent(3,1);}
PublishXML.oncontextmenu=function(){return FW.checkContent(3,0);}
var ResetXML=document.getElementById("ResetXML");ResetXML.onmouseover=function(){this.title="Revert XML back to original values since you last published";self.status=this.title;}
ResetXML.onmouseout=function(){self.status="";}
ResetXML.onclick=function(){FW.resetUI("EditedXML");}}
var htm="<div class='otherFunctions'><a href='javascript:FW.logOff();' onMouseOver='self.status=this.title; return true;' onMouseOut='self.status=\"\"; return true;' title='Log off as administrator' class='fw'>Log Off</a>&nbsp;&#149;&nbsp;<a href='javascript:PopUp.openWin( \"uploader.aspx\", 0, 0, 1, 0, 650, 300, 1, 1, 2 );' onMouseOver='self.status=this.title; return true;' onMouseOut='self.status=\"\"; return true;' title='Upload files to the server' class='fw'>Upload</a>";htm+=this.AdminLinks;htm+="</div>";document.getElementById("fwBottomRow").innerHTML=htm;self.status="";}
catch(e){setTimeout("FW.init();",250);self.status="Initializing File Writer: FW.init()...";}}
function checkContent(formType,leftClick){var Form=document.AspForm;var EditedHTML=Form.EditedHTML;var EditedJS=Form.EditedJS;var EditedXML=Form.EditedXML;if(formType==1){EditedHTML.value=EditedHTML.value.trim();if(leftClick&&EditedHTML.value==EditedHTML.defaultValue){alert("Edit the text then press Publish HTML...");EditedHTML.focus();FW.cursorReadyHtm=false;return false;}
else{setButton(document.getElementById("PublishHTM"),"disable","Publish HTML");Form.Which_Button.value="html";}}
else if(formType==2){EditedJS.value=EditedJS.value.trim();if(leftClick&&EditedJS.value==EditedJS.defaultValue){alert("Edit the data then press Publish JavaScript...");EditedJS.focus();FW.cursorReadyJS=false;return false;}
else{try{eval(EditedJS.value);}
catch(Err){var err="";for(member in Err)err+=member+": "+Err[member]+"\n";alert("Sorry, you have mistakenly broken JavaScript's rigid syntax. As a result, the file cannot be saved to disk. Fix the error & try again or click \"Reset\"...\n\n"+err);return false;}
setButton(document.getElementById("PublishJS"),"disable","Publish Data");Form.Which_Button.value="js";}}
else{EditedXML.value=EditedXML.value.trim();if(leftClick){if(EditedXML.value==EditedXML.defaultValue){alert("Edit the text then press Publish XML...");EditedXML.focus();return false;}
else{var textOrig=EditedXML.defaultValue;var textNew=EditedXML.value;var xmlOrig=textOrig.replace(/>[^<>]*</g, "><" );
var nLinesOrig=textOrig.split("\n").length;var xmlNew=textNew.replace(/>[^<>]*</g, "><" );
var nLinesNew=textNew.split("\n").length;if(xmlOrig==xmlNew&&nLinesOrig==nLinesNew){setButton(document.getElementById("PublishXML"),"disable","Publish XML");Form.Which_Button.value="xml";}
else{var err=", as a result, the file cannot be saved to disk. Please edit the data only then press Publish XML.\n\n==> Fix the error & try again or click \"Reset\"";if(nLinesOrig!=nLinesNew)alert("ERROR: You have added or removed lines"+err);else
alert("ERROR: You have edited XML tag(s)"+err);EditedXML.focus();return false;}}}
else{setButton(document.getElementById("PublishXML"),"disable","Publish XML");Form.Which_Button.value="xml";}}
Form.ASP_Job.value="File_Writer";Form.submit();return(leftClick)?true:false;}
function resetUI(TextBox){if(TextBox=="EditedHTML")this.cursorReadyHtm=false;else if(TextBox=="EditedJS")this.cursorReadyJS=false;eval("document.AspForm."+TextBox+".value = document.AspForm."+TextBox+".defaultValue;");}
function reLoad(TextBox){if(eval("document.AspForm."+TextBox+".value")==eval("document.AspForm."+TextBox+".defaultValue"))document.location.reload(true);else if(confirm("You have made edits that you have not published. Click OK to reload the page & clear all non-published edits."))document.location.reload(true);}
function logOff(){document.location.replace(fileName+"?user=logoff");}}
function setRef(){try{var ref=document.referrer;if(qStr&&qStr.indexOf("referrer=")==0)ref=qStr.split("referrer=")[1];if(ref&&!GetCookie("speReferrer"))SetCookie("speReferrer",ref,null,"/",cookieDomain);}
catch(Err){}}
setRef();Item=new Array();Client=new Array();Ship=new Array();Ship["Floor"]=new Array();CalifTax=new Array();document.write("<script language='javascript1.2' src='&#112;&#114;&#111;&#100;&#117;&#99;&#116;-&#100;&#97;&#116;&#97;&#46;&#106;&#115;'><\/script>");function fadeInElement(){window.FadeInElement=document.getElementById("FadeInElement");if(MZ){FadeInElement.style.opacity=0;FadeInElement.style.visibility="visible";}
else if(SF){FadeInElement.style.opacity=0;FadeInElement.style.visibility="visible";}
setTimeout("startFade( FadeInElement, 2, 0.8, 0, 1, 1 )",500);}
function initPage(){try{var Images=document.images;for(var i=0;i<Images.length;i++){if(Images[i].className=="tn"||Images[i].className=="tnLeft"||Images[i].className=="tnRight")Images[i].title=Msg.enlarge;}
self.status="";}
catch(Err){if(local)alert(Err);self.status="Initializing at initPage()...";setTimeout("initPage()",200);}}
defImageMapMsg="";function showRegion(Area,msg){var ImageMapMsg=document.getElementById("ImageMapMsg");if(!defImageMapMsg)defImageMapMsg=ImageMapMsg.innerHTML;var Rectangle=document.getElementById("RectangleID");if(!Rectangle){var Body=(IE&&document.compatMode=="CSS1Compat")?document.documentElement:document.body;var Dim=Area.coords.split(",");for(var i in Dim)Dim[i]=parseInt(Dim[i]);var wid=Dim[2]-Dim[0];var hgt=Dim[3]-Dim[1];var Rectangle=document.createElement("div");if(IE){Area.onmouseout=function(event){var Rectangle=document.getElementById("RectangleID");if(Rectangle){document.body.removeChild(Rectangle);ImageMapMsg.innerHTML=defImageMapMsg;}}}
else{Rectangle.onmouseout=function(){document.body.removeChild(this);ImageMapMsg.innerHTML=defImageMapMsg;}}
ImageMapMsg.innerHTML=msg;Rectangle.id="RectangleID";Rectangle.className="rectangle";var xPos=0;yPos=0;var Img=document.getElementById("dwBodyID");var CurComponent=Img;var parPosAbs=false;while(CurComponent){if(SF){if(!parPosAbs)parPosAbs=(CurComponent.style.position=="absolute");if(parPosAbs&&CurComponent=="Body")break;}
yPos+=CurComponent.offsetTop;xPos+=CurComponent.offsetLeft;CurComponent=CurComponent.offsetParent;}
Rectangle.style.width=wid+"px";Rectangle.style.height=hgt+"px";Rectangle.style.top=(yPos+Dim[1])+"px";Rectangle.style.left=(xPos+Dim[0])+"px";Rectangle.title=msg;Area.title=msg;document.body.appendChild(Rectangle);}
else{document.body.removeChild(Rectangle);ImageMapMsg.innerHTML=defImageMapMsg;showRegion(Area,msg)}}