// 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;local=(theHost==""||theHost=="localhost"||theHost=="127.0.0.1"||theHost.indexOf("192.168.2.")==0);live=!local;qStr=unescape(document.location.search).substring(1);homePage="default.aspx"
path=document.location.pathname;delimeter=(path.indexOf("\\")>=0)?"\\":"/";if(path.charAt(path.length-1)==delimeter)path+=homePage;Path=path.split(delimeter);fileName=Path[Path.length-1];if(typeof window.DB=="object"){if(typeof window.DB.Administrators=="object"){for(var key in DB.Administrators){eMailOut="";eMailIn=DB.Administrators[key][0].replace(/\s{2}/g, "." );
eMailIn=eMailIn.replace(/\s{1}/g, "@" );
for(i=0;i<=eMailIn.length;i++)eMailOut=eMailIn.charAt(i)+eMailOut;DB.Administrators[key][0]=eMailOut;}}
if(typeof window.DB.Contact=="object"){eMailOut="";eMailIn=DB.Contact.Email.replace(/\s{2}/g, "." );
eMailIn=eMailIn.replace(/\s{1}/g, "@" );
for(i=0;i<=eMailIn.length;i++)eMailOut=eMailIn.charAt(i)+eMailOut;DB.Contact.Email=eMailOut;}}
Msg=new Array();Msg.Rates="Get our rates";Msg.Home="To our Homepage";Msg.ContactUs="Contact us via phone, e-mail or mail";Msg.Inquire="Send us an e-mail inquiry";Msg.Services="About the various services we provide";Msg.enlarge="Click to enlarge";Msg.XML="Edit your contact & administrator data";Msg.LogOff="Log-off as administrator";function getCookieDomain(){var cookieDomain=null;if(live&&theHost){var Host=theHost.split("."),hLen=Host.length;if(hLen>=2)cookieDomain="."+Host[hLen-2]+"."+Host[hLen-1];}
return cookieDomain;}
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){var path="/",domain=getCookieDomain(),secure=null;document.cookie=name+"="+escape(value)+((expires)?"; expires="+expires.toGMTString():"")+((path)?"; path="+path:"")+((domain)?"; domain="+domain:"")+((secure)?"; secure":"");}
function DeleteCookie(name){var path="/",domain=getCookieDomain();if(GetCookie(name)){document.cookie=name+"="+((path)?"; path="+path:"")+((domain)?"; domain="+domain:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}}
function recordToCookie(key,value,CookieExpDate){var cookieName=this.toString();var data=GetCookie(cookieName);if(!data)data="";value=value.toString();value=value.replace(/&/g, "and" ).replace(/=/g, "is" );
var KeyVals=data.split("&");var existingKey=0;for(var i=0;i<KeyVals.length;i++){var ThisPair=KeyVals[i].split("=");if(key==ThisPair[0]){if(value)KeyVals[i]=key+"="+value;else
KeyVals.splice(i,1);data=KeyVals.join("&");existingKey=1;break;}}
if(value&&!existingKey)data+=((data)?"&":"")+key+"="+value;if(data)SetCookie(cookieName,data,((CookieExpDate)?CookieExpDate:null));else
DeleteCookie(cookieName);}
String.prototype.recordToCookie=recordToCookie;var expDate12Mon=new Date();expDate12Mon.setTime(expDate12Mon.getTime()+(24*60*60*365*1000));userWithWritePrivileges=GetCookie("userWithWritePrivileges");if(userWithWritePrivileges)userWithWritePrivileges=userWithWritePrivileges.replace(/_/, " " );
function getAjaxRequest(){var Request=null;if(window.XMLHttpRequest){try{Request=new XMLHttpRequest();}
catch(Err){Request=null;}}
else if(window.ActiveXObject){try{Request=new ActiveXObject("Msxml2.XMLHTTP");}
catch(Err){try{Request=new ActiveXObject("Microsoft.XMLHTTP");}
catch(Err){Request=null;}}}
return Request;}
function initAJAX(){(window.FW&&userWithWritePrivileges)?FW.pollAdministrators():PL.run();}
function PreLoader(){this.Files=["images/ContactUs.jpg","images/A_Tropical_Face_Header_Pages.gif","images/cornerTL.gif","images/cornerTR.gif","images/cornerBR.gif","images/cornerBL.gif","rates.aspx","images/headerFotolia_1003168_S.jpg","images/labelRates.gif","services.aspx","images/headerBrideBouquet.jpg","images/labelServices.gif","data.aspx","images/headerGuyGreenShirt.jpg","images/labelXML.gif","inquire.aspx","images/headerRaquel.jpg","images/labelInquire.gif","images/ThankYouPopUpPhoto.jpg","raquelInquire.js","default.aspx","images-homepage.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;function run(){this.Request=getAjaxRequest();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||PL.Request.status==304){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 trim(){var str=this.toString();return str.replace(/^\s*|\s*$/g, "" );}
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 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 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,fadeStartTime=0;opacityStep=(window.Settings&&window.Settings.SS&&Settings.transDur)?1/(Settings.transDur/.04):.05;function fadeIn(GuiObj){if(MZ)GuiObj.style.opacity=fadeOpacity;else GuiObj.style.opacity=fadeOpacity;fadeOpacity+=opacityStep;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;var fadeEndTime=new Date().getTime();var fadeDuration=fadeEndTime-fadeStartTime;fadeStartTime=0;if(fadeDuration>1500)opacityStep+=.03;}}
function startFade(FadeInPhoto,transNum,transDur,transDelay){window.FadeInPhoto=FadeInPhoto;window.transNum=transNum;window.transDur=transDur;window.transDelay=transDelay;if(winIE)setTimeout("fadeInDirectX()",transDelay);else if(MZ||SF){fadeStartTime=new Date().getTime();FadeInPhoto.onload=function(){};(transDelay)?setTimeout("fadeIn( FadeInPhoto )",transDelay):fadeIn(FadeInPhoto);}
else
FadeInPhoto.style.visibility="visible";}
function initImagesArr(){try{Images.pop();}
catch(Err){alert("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;alert("An image file named \""+fileName+"\" contains forbidden white-space characters.");}}
ImgReal=null;checkDimTimer=0;function checkDim(imgRealSrc,widDB,hgtDB){if((userWithWritePrivileges||local)&&widDB>0&&hgtDB>0){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\n\n";eMsg+="This is an admin-only message, it will not appear to the public.";if(IE)eMsg+="\n\nWe see you are using Internet Explorer. It suffers from a peculiar bug such that even if you correct the dimensions, it may continue to report this error! If so, then change the file name too, for example:\nbeach.jpg \u2192 beach1.jpg";alert(eMsg);}
ImgReal=null;}
else{clearTimeout(checkDimTimer);eval("checkDimTimer = setTimeout( 'checkDim( \""+imgRealSrc+"\", "+widDB+", "+hgtDB+" )', 250 );");}}}
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 showHawaiiTime(){var gmtOffset=10;var now=new Date();var difhrs=now.getTimezoneOffset()/60;var lochrs=now.getHours();GMThours=lochrs+difhrs;now.setHours(GMThours-gmtOffset);var am_pm="AM";var hours=now.getHours();if(hours>=12)am_pm="PM";if(hours>=13)hours-=12;if(hours==0)hours="12";var minutes=now.getMinutes();if(minutes<10)minutes="0"+minutes;var seconds=now.getSeconds();if(seconds<10)seconds="0"+seconds;try{document.getElementById("hawaii_time").innerHTML=hours+":"+minutes+":"+seconds+" "+am_pm;}
catch(Err){}
finally{setTimeout("showHawaiiTime()",1000);}}
function getEmailLink(){return "<a href='mailto:"+DB.Contact.Email+"?subject="+escape("MakeupArtistInHawaii.com Web Site E-Mail")+"' title='Send us an e-mail' class='dwLink'>"+DB.Contact.Email+"</a>";}
function DynamicWindow(transNum,transDur){var htm="<table align='left' border='0' cellspacing='0' cellpadding='0'><tr><td valign='middle'><img src='images/ContactUs.jpg' class='ContactUs' title='Raquel Lei Binns'></td><td align='left'><table align='center' border='0' cellspacing='0' cellpadding='0'>";if(DB.Contact.Name)htm+="<tr><td class='ContactUsCol1' style='padding-top:0px;'>Name:</td><td class='ContactUsCol2' style='padding-top:0px;'>"+DB.Contact.Name+"</td></tr>";if(DB.Contact.Address1||DB.Contact.Address2)htm+="<tr><td class='ContactUsCol1'>Mail:</td><td class='ContactUsCol2'>"+DB.Contact.Address1+"<br>"+DB.Contact.Address2+"</td></tr>";if(DB.Contact.PhonePrimary)htm+="<tr><td class='ContactUsCol1'>Phone:</td><td class='ContactUsCol2'>"+DB.Contact.PhonePrimary+"</td></tr>";if(DB.Contact.PhoneOther)htm+="<tr><td class='ContactUsCol1'>Other Tel:</td><td class='ContactUsCol2'>"+DB.Contact.PhoneOther+"</td></tr>";htm+="<tr><td class='ContactUsCol1'>Hawaii Time:</td><td class='ContactUsCol2' id='hawaii_time'></td></tr><tr><td class='ContactUsCol1'>Contact Us:</td><td class='ContactUsCol2'><a href='inquire.aspx' onMouseOver='this.title=Msg.Inquire;'>Artist Request Form</a></td></tr></table></td></tr></table>";var adminNotes=(userWithWritePrivileges&&DB.Administrators[userWithWritePrivileges][1]==1)?"<div style='font-variant:normal; font-weight:normal; font-size:9pt;'>To change photo upload a new one<br> named ContactUs.jpg at 111&times;160 pixels</div>":"";this.ContactUs=["A Tropical Face"+adminNotes,htm];this.ssTnskewIeX=2;this.ssTnskewIeY=6;this.skewIeX=2;this.skewIeY=2;this.Msg=new Array();this.Msg.enlarge="Click to enlarge";window.gClickPos=null;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.TheBody=null;this.winType;this.addOverlay=addOverlay;this.cancelEvt=cancelEvt;this.reCenter=reCenter;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.moveTopImage=moveTopImage;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,winType){this.TheBody=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;if(TheLink)TheLink.blur();if(!bodyMargin)bodyMargin=0;this.winType=(winType)?winType:"";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;if(showImg){var imgSrc=body.split("imgSrc=")[1];var body="<img src='"+imgSrc+"' border='0' hspace='0' vspace='0' galleryimg='no' style='"+getOpacity(1,1)+" width:"+winWid+"px; height:"+winHgt+"px;' onload='DW.showImg( this );' onAbort='this.src=this.src;' id='ImageDW'>";if(this.winType=="TN"){var titleBarGUI="<table align='center' border='0' cellspacing='0' cellpadding='0' id='tnTable'><tr align='center'><td class='dwBackEnlargementSsTn' id='SsTnBackTD' onmousedown='DW.cancelEvt( event );'><a href='javascript:TN.nextImage( 0 );' title='Last enlargement' onmousedown='DW.cancelEvt( event );'><img src='images/arrowLeftSsTnOff.gif' class='dwArrowSsTn' onMouseover='src=\"images/arrowLeftSsTnOn.gif\";' onMouseout='src=\"images/arrowLeftSsTnOff.gif\";' /></a></td><td class='dwTitle dwImgTitleSS' id='SsTnTitle'>"+title+"</td><td class='dwNextEnlargementSsTn'><a href='javascript:TN.nextImage( 1 );' title='Next enlargement, or click photo...' onmousedown='DW.cancelEvt( event );' id='SsTnNext'><img src='images/arrowRightSsTnOff.gif' class='dwArrowSsTn' onMouseover='src=\"images/arrowRightSsTnOn.gif\";' onMouseout='src=\"images/arrowRightSsTnOff.gif\";' /></a></td></tr></table>";this.title=titleBarGUI;}
else if(this.winType=="SS"){var titleBarGUI="<table align='center' border='0' cellspacing='0' cellpadding='0' id='tnTable'><tr align='center'><td class='dwBackEnlargementSsTn' id='SsTnBackTD' onmousedown='DW.cancelEvt( event );'><a href='javascript:SS.back();' title='Back' onmousedown='DW.cancelEvt( event );'><img src='images/arrowLeftSsTnOff.gif' class='dwArrowSsTn' onMouseover='src=\"images/arrowLeftSsTnOn.gif\";' onMouseout='src=\"images/arrowLeftSsTnOff.gif\";' /></a></td><td class='dwTitle dwImgTitleSS' id='SsTnTitle'>"+title+"</td><td class='dwNextEnlargementSsTn'><a href='javascript:SS.next();' title='Next' onmousedown='DW.cancelEvt( event );' id='SsTnNext'><img src='images/arrowRightSsTnOff.gif' class='dwArrowSsTn' onMouseover='src=\"images/arrowRightSsTnOn.gif\";' onMouseout='src=\"images/arrowRightSsTnOff.gif\";' /></a></td></tr></table>";this.title=titleBarGUI;}
else
this.title=title;var loading="<div class='loadingImg'>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></div>";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 counterCell=(this.winType=="TN"||this.winType=="SS")?"<td class='dwCounterSsTn' id='dwTitleLeft'></td>":"";var pauseBut=(this.winType=="SS")?"<a href='javascript:SS.pause( ( SS.running ) ? 1 : 0 );' class='dwPauseSs' title='Pause'><img src='images/pauseSsOff.gif' id='PauseSs' class='dwPauseSs' onMouseover='SS.highlightPause( this, 1 );' onMouseout='SS.highlightPause( this, 0 );'></a><span style='cursor:default;'>&nbsp;</span>":"";var myWindow="<div class='dwTitleRow' id='dwTitleRowID' onmouseover='DW.overTitleBar=true;' onmouseout='DW.overTitleBar=false;'><table align='center' border='0' cellspacing='0' cellpadding='0'><tr>"+counterCell+"<td class='dwTitle' style='width:100%; text-align:center;' id='dwTitleCenter'>"+title+"</td><td valign='top' id='dwTitleRight' onmousedown='DW.cancelEvt( event );' style='white-space:nowrap;'>"+pauseBut+"<a href='javascript:DW.removeWin();' title='Close' class='dwX'>&nbsp;&times;&nbsp;</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.addOverlay();NewWindow.style.visibility="visible";if(showImg)this.loadingImage();}
function addOverlay(){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";if(this.winType=="TN"||this.winType=="SS"){var TopImage=document.getElementById("TopImage");if(TopImage){document.body.removeChild(TopImage);(this.winType=="SS")?SS.TopImage=null:TN.TopImage=null;}}
else{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);}}
function reCenter(DW){var scrollX,scrollY,bodyWid,bodyHgt,xPos,yPos;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=DW.offsetHeight;winWid=DW.offsetWidth;xPos=parseInt((bodyWid-winWid)/2+scrollX);yPos=parseInt((bodyHgt-winHgt)/2+scrollY);DW.style.left=xPos+"px";DW.style.top=yPos+"px";}
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="dwDotOn";else if(Dot2.className=="dotOff")Dot2.className="dwDotOn";else if(Dot3.className=="dotOff")Dot3.className="dwDotOn";else if(Dot4.className=="dotOff")Dot4.className="dwDotOn";else{Dot1.className="dotOff";Dot2.className="dotOff";Dot3.className="dotOff";Dot4.className="dotOff";}
setTimeout("DW.loadingImage()",300);}}
function showImg(Photo){Photo.oncontextmenu=function(event){if(DW.winType=="SS")return SS.rightClick(this,event);else if(Settings.disableContextImgMenu)return false;};if(this.winType=="TN"){Photo.title="Next enlargement";Photo.onclick=function(){TN.nextImage(1);this.title="";}
document.getElementById("dwTitleLeft").onmouseover=function(){var Numbers=this.innerHTML.split("/");this.title="Photo #"+Numbers[0]+" of "+Numbers[1];}
TN.preloadNext();}
else if(this.winType=="SS"){Photo.title="Next";Photo.onclick=function(){SS.next();this.title="";}
document.getElementById("dwTitleLeft").onmouseover=function(){var Numbers=this.innerHTML.split("/");this.title="Photo #"+Numbers[0]+" of "+Numbers[1];}
SS.preLoadNext();}
else{Photo.onclick=DW.removeWin;Photo.title="Click to close";}
Photo.style.cursor="pointer";var title=this.title;title=title.replace(/\[/g, "<div class='dwTitleLine2'>" ).replace(/]/g, "</div>" );
document.getElementById("dwTitleCenter").innerHTML=title;startFade(Photo,this.transNum,this.transDur,0);setTimeout("if( window.checkDim ) checkDim( \""+Photo.src+"\", "+Photo.width+", "+Photo.height+" );",(this.transDur*1000+100));if(this.winType=="SS")setTimeout("if( window.SS ) SS.playMusic();",(this.transDur*1000+101));}
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){var borderWid=parseInt(this.Window.currentStyle.borderWidth);if(DW.winType=="TN"||DW.winType=="SS"){this.dWinOffsetX=event.offsetX+borderWid+DW.ssTnskewIeX;this.dWinOffsetY=event.offsetY+borderWid+DW.ssTnskewIeY;var Elem=event.srcElement,ParentElem=Elem.offsetParent;if(Elem.id=="dwTitleCenter")this.dWinOffsetX+=document.getElementById("dwTitleLeft").scrollWidth;else if(Elem.id=="SsTnTitle"||ParentElem.id=="SsTnTitle"){var CurComponent=Elem;var xPos=0,yPos=0;while(CurComponent){if(CurComponent.id=="tnTable"){yPos=CurComponent.offsetTop;xPos=CurComponent.offsetLeft;break;}
CurComponent=CurComponent.offsetParent;}
this.dWinOffsetX+=document.getElementById("dwTitleLeft").scrollWidth+document.getElementById("SsTnBackTD").scrollWidth+xPos;}
else if(Elem.id=="dwTitleRight"){var CurComponent=Elem;var xPos=0,yPos=0;while(CurComponent){if(CurComponent.id=="dwTitleRight"){yPos=CurComponent.offsetTop;xPos=CurComponent.offsetLeft;break;}
CurComponent=CurComponent.offsetParent;}
this.dWinOffsetX+=xPos;}}
else{this.dWinOffsetX=event.offsetX+borderWid+DW.skewIeX;this.dWinOffsetY=event.offsetY+borderWid+DW.skewIeY;}}
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";DW.moveTopImage();return false;}
else{this.Window.style.top=(e.pageY-this.dWinOffsetY)+"px";this.Window.style.left=(e.pageX-this.dWinOffsetX)+"px";DW.moveTopImage();}}}
function removeWin(){var Window=document.getElementById("dWinID");if(Window)document.body.removeChild(Window);var Overlay=document.getElementById("dwOverlay");if(Overlay)document.body.removeChild(Overlay);DW.overTitleBar=false;switch(DW.winType){case "SS":SS.kill();break;case "TN":TN.kill();break;}
DW.otherFunctionalityOnRemoveWin();}
function moveTopImage(){var TopImage=document.getElementById("TopImage");if(TopImage){var BotImage=document.getElementById("ImageDW");var x=0;var y=0;TheElement=BotImage;var parPosAbs=false;while(TheElement){if(SF){if(!parPosAbs)parPosAbs=(TheElement.style.position=="absolute");if(parPosAbs&&TheElement==document.body)break;}
y+=TheElement.offsetTop;x+=TheElement.offsetLeft;TheElement=TheElement.offsetParent;}
TopImage.style.left=(x+Settings.borderWidDW-parseInt(BotImage.parentNode.style.marginLeft))+"px";TopImage.style.top=(y+Settings.borderWidDW-parseInt(BotImage.parentNode.style.marginTop))+"px";}}
function mouseUp(){this.Window=null;}
function cancelEvt(evt){if(window.event&&window.event.cancelBubble!=null)window.event.cancelBubble=true;else
evt.stopPropagation();}}
function initNavLinks(){try{var Links=document.links;for(var i=0;i<Links.length;i++){if(Links[i].href.indexOf(fileName)>=0){var ParTag=Links[i].parentNode;var parTagName=ParTag.tagName.toLowerCase();ParTag.className=(parTagName=="td")?"linkDisableTop":"linkDisableBot";ParTag.innerHTML=Links[i].innerHTML;}}
self.status="";}
catch(Err){self.status="Initializing initNavLinks function, one moment please...";setTimeout("initNavLinks();",250);}}
function init(){try{var Div=document.getElementsByTagName("div");for(var i=0;i<Div.length;i++){if(Div[i].className=="pageTitle"||Div[i].className=="tnTitle")Div[i].onclick=function(event){FW.getLogInGUI(event);}}
self.status="";}
catch(Err){self.status="Initializing init function, one moment please...";setTimeout("init();",250);}}
function PopUp(){this.winName="raquelWin";this.PrinterFriendlyContactInfo=null;this.printerFriendlyCss="";this.Win=null;this.openWin=openWin;this.printerFriendly=printerFriendly;this.closeWin=closeWin;this.linkToWin=linkToWin;function openWin(url,wWid,wHgt,wPos,tBar,lBar,sBar,mBar,scBar,reSize){this.closeWin();if(typeof wWid=="undefined")wWid=.8;if(typeof wHgt=="undefined")wHgt=.6;if(typeof wPos=="undefined")wPos=1;if(typeof tBar=="undefined")tBar=1;if(typeof lBar=="undefined")lBar=1;if(typeof sBar=="undefined")sBar=1;if(typeof mBar=="undefined")mBar=1;if(typeof scBar=="undefined")scBar=1;if(typeof reSize=="undefined")reSize=1;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);}
function printerFriendly(removeImages,ExcludedPfContentSections){if(ExcludedPfContentSections){for(var i=0;i<ExcludedPfContentSections.length;i++){if(document.getElementById(ExcludedPfContentSections[i]))document.getElementById(ExcludedPfContentSections[i]).className="pfHide";}}
var nTitle=1;var pageTitle="";while(document.getElementById("pfTitle"+nTitle)){pageTitle+=document.getElementById("pfTitle"+nTitle).innerHTML+" ";pageTitle=pageTitle.replace(/<a\s.*?>/gi , "" );
pageTitle=pageTitle.replace(/<\/a.*?>/gi , "" );
nTitle++;}
var pfPageTitle=(pageTitle)?pageTitle:document.title;var htm="<html><head><title>"+document.title+"</title><link rel='stylesheet' href='"+this.printerFriendlyCss+"' type='text\/css'></head>";htm+=(live)?"<body onLoad='if( window.print ) window.print();'>":"<body>";htm+="<div class='pfTitle'>"+pfPageTitle+"</div><div class='pfOtherData'>"+theHost;if(this.PrinterFriendlyContactInfo){for(var i=0;i<this.PrinterFriendlyContactInfo.length;i++){htm+=this.PrinterFriendlyContactInfo[i][0]+eval(this.PrinterFriendlyContactInfo[i][1])+this.PrinterFriendlyContactInfo[i][2];}}
htm+="</div>";var nContent=1;outer:while(document.getElementById("pfContent"+nContent)){var content=document.getElementById("pfContent"+nContent).innerHTML;content=content.replace(/<a\s.*?>/gi , "" );
content=content.replace(/<\/a.*?>/gi , "" );
if(removeImages)content=content.replace(/<img\s.*?>/gi , "" );
content=content.replace(/<script[\d\D]*?<\/script>/gi , "" );
htm+=content;nContent++;}
if(document.getElementById("pfFooter"))htm+="<p class='pfFooter'>"+document.getElementById("pfFooter").innerHTML+"</p>";htm+="</body></html>";if(nContent>1){this.closeWin();this.openWin("",1);this.Win.document.write(htm);this.Win.document.close();}
else
alert("Error at PopUp.printerFriendly. No printer friendly sections (pfContent*) found...");if(ExcludedPfContentSections){for(var i=0;i<ExcludedPfContentSections.length;i++){if(document.getElementById(ExcludedPfContentSections[i]))document.getElementById(ExcludedPfContentSections[i]).className="pfShow";}}}
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){if(PopUp.Win.MyOpener!=self)PopUp.Win.MyOpener=self;}
else setTimeout("PopUp.linkToWin()",250);}} PopUp=new PopUp();function FileWriter(){this.HtmNotes="A couple tips to remember...<ol><li>Just Published but don't see your changes? Then press Reload</li><li>Completely ruined a page? Go to Help &rarr; Restore</li></ol>";this.HtmButtons="<button onClick='FW.insertTags( \"<br>\", \"\", \"EditedHTML\" ); return false;' title='Insert line-break tag at cursor position' class='htmlTags'>&lt;br&gt;</button><button onClick='FW.insertTags( \"<br><br>\", \"\", \"EditedHTML\" ); return false;' title='Insert 2 line-breaks at cursor position' class='htmlTags'>&lt;br&gt;&lt;br&gt;</button><button onClick='FW.insertTags( \"<b>\", \"</b>\", \"EditedHTML\" ); return false;' title='Insert bold tags around highlighted text' class='htmlTags'><b>B</b></button><button onClick='FW.insertTags( \"<i>\", \"</i>\", \"EditedHTML\" ); return false;' title='Insert italic tags around highlighted text' class='htmlTags'><i>I</i></button>";this.JsButtons="<button onClick='PopUp.openWin( \"uploader.aspx\", 650, 300, 2, 0, 0, 1, 0, 0, 0 ); return false;' title='Upload images to the server' class='htmlTags'>Upload</button><button onClick='FW.insertTags( \"[\\\"\", \"\\\",240,360],\", \"EditedJS\" ); return false;' title='Insert new image data structure at cursor position' class='htmlTags'>New Image</button>";this.JsNotes="The Images Array below controls the photos that show on the slide-show and ALL these images must be sized to exactly 240 &times; 360 pixels. Need help? Here's <a href='javascript:PopUp.openWin( \"http://www.davidregier.com/webdesign/other/images.html?ss=ss\" );' class='fw' title='Preparing images for the Slide-Show'>instructions</a> on preparing images for your slide-show.<ol><li>Right-click a photo to get image-properties & pause the slide-show.</li><li>To add a new photo you will first prepare & <a href='javascript:PopUp.openWin( \"uploader.aspx\", 650, 300, 2, 0, 0, 1, 0, 0, 0 );' title='Upload files to the server' class='fw'>upload</a> the image per the instructions above.<li>After uploading, you may easily auto-insert the new image data by clicking the link in the uploader pop-up, otherwise read on for instructions on manually entering image data:</li><ol type='a'><li>Enter a new blank line at the position you would like your new photo to appear.</li><li>With your cursor at the beginning of the new line, click the \"New Image\" button. A blank data structure is auto-inserted.</li><li>Fill out the photo information. From left to right it is: (1) \"Image_Filename\", (2) Photo width in pixels, (3) Photo height in pixels.</li></ol></ol>";this.XmlNotes="<div class='underline'>Here's why you may need to edit this XML data:</div><ol><li>Change contact information like Name, Address, Phone, etc.</li><li>To change Administrator Names, E-mails, Passwords & Editing Privileges<ol class='fSize10' type='a'><li>Set it to yes to allow administrator to edit that particular data type</li><li>Set it to no to prohibit administrator from editing that particular data type</li></ol></li><li>To add new administrators. There are several blank administrator records for you. Anytime you need to add a new administrator just fill one out & publish.</ol>";this.AdminLinks=" &#149; <a href='javascript:PopUp.openWin( \"uploader.aspx\", 650, 300, 2, 0, 0, 1, 0, 0, 0 );' title='Upload files to the server' class='fw'>Upload</a>";this.getLogInGUI=getLogInGUI;this.logIn=logIn;this.recordPW=recordPW;this.pollAdministrators=pollAdministrators;if(!userWithWritePrivileges)return;this.dataUnmodified=dataUnmodified;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='dwLink'>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 the 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 past cached version of that page rather than the most recent version which you just published and are naturally expecting to see.<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='dwLink'>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=="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='dwLink'>Reset</a><div class='fw0'>Press Reset if you made edits 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, or if you haven't published, since you logged in. If you need to go back to an earlier date or time, try Restore...</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='dwLink'>Restore</a><div class='fw0'>Restore is the ultimate &ldquo;safety net&rdquo; and more powerful that reset because it let's you go back to an earlier date & time. If you made a mistake, which you only realized after publishing, then try restore.<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:' onClick='return FW.restore( \"RestoreHTM\" );' title='Restore this file to a prior selected time' />&nbsp;&nbsp;";htm+="<select id='BackUpHTM_PopUp' title='Select a prior restore point'>";if(BackUpHTM.length>1){for(var i=0;i<BackUpHTM.length;i++){if(i==0)htm+="<option value='"+BackUpHTM[i].value+"'>Undo Restore</option>";else
htm+="<option value='"+BackUpHTM[i].value+"'"+((i==1)?" selected='selected'":"")+">"+i+". "+(new Date(parseInt(BackUpHTM[i].text))).toLocaleString()+"</option>";}}
else
htm+="<option value=''>"+BackUpHTM[0].text+"</option>";htm+="</select>";}
else if(helpType=="JavaScript"){var BackUpJS=document.AspForm.BackUpJS;htm+="<input type='button' value='Restore To:' onClick='return FW.restore( \"RestoreJS\" );' title='Restore this file to a prior selected time' />&nbsp;&nbsp;";htm+="<select id='BackUpJS_PopUp' title='Select a prior restore point'>";if(BackUpJS.length>1){for(var i=0;i<BackUpJS.length;i++){if(i==0)htm+="<option value='"+BackUpJS[i].value+"'>Undo Restore</option>";else
htm+="<option value='"+BackUpJS[i].value+"'"+((i==1)?" selected='selected'":"")+">"+i+". "+(new Date(parseInt(BackUpJS[i].text))).toLocaleString()+"</option>";}}
else
htm+="<option value=''>"+BackUpJS[0].text+"</option>";htm+="</select>";}
else{var BackUpXML=document.AspForm.BackUpXML;htm+="<input type='button' value='Restore To:' onClick='return FW.restore( \"RestoreXML\" );' title='Restore this file to a prior selected time' />&nbsp;&nbsp;";htm+="<select id='BackUpXML_PopUp' title='Select a prior restore point'>";if(BackUpXML.length>1){for(var i=0;i<BackUpXML.length;i++){if(i==0)htm+="<option value='"+BackUpXML[i].value+"'>Undo Restore</option>";else
htm+="<option value='"+BackUpXML[i].value+"'"+((i==1)?" selected='selected'":"")+">"+i+". "+(new Date(parseInt(BackUpXML[i].text))).toLocaleString()+"</option>";}}
else
htm+="<option value=''>"+BackUpXML[0].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.</li><li style='margin-left:-10px;'>If you don't know which date to select, try the immediate prior backup. It will be #1 and selected for you by default. \"Restore 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, first press reload before doing another restore.</li><li style='margin-left:-10px;'>The restore process itself is completely reversible and you can go back in time, then come forward again. After performing restore(s), you can even come right back to where you began by restoring to &ldquo;Undo Restore&rdquo; from the top of the list.</li></ol></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='dwLink'>About "+helpType+"</a><div class='fw0'>";if(helpType=="HTML")htm+="<ol style='margin-top:4px; margin-bottom:4px;'><li style='margin-left:-10px;'>HTML (<b>H</b>yper <b>T</b>ext <b>M</b>arkup <b>L</b>anguage) is a web formating language: <a href='javascript:PopUp.openWin( \"http://en.wikipedia.org/wiki/Html\" );' class='dwLink'>Learn more</a></li><li style='margin-left:-10px;'>Need help with your HTML skills? Try <a href='javascript:PopUp.openWin( \"http://www.w3schools.com/html/html_primary.asp\" );' class='dwLink'>W3schools.com</a></li></ol>";else if(helpType=="JavaScript")htm+="JavaScript is a popular web programming language: <a href='javascript:PopUp.openWin( \"http://en.wikipedia.org/wiki/JavaScript\" );' class='dwLink'>Learn more</a>";else
htm+="XML (e<b>X</b>tensible <b>M</b>arkup <b>L</b>anguage) is a web data-base language: <a href='javascript:PopUp.openWin( \"http://en.wikipedia.org/wiki/Xml\" );' class='dwLink'>Learn more</a>";htm+="</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;}
switch(aspJob){case "RestoreHTM":Form.BackUpHTM.selectedIndex=document.getElementById("BackUpHTM_PopUp").selectedIndex;break;case "RestoreJS":Form.BackUpJS.selectedIndex=document.getElementById("BackUpJS_PopUp").selectedIndex;break;case "RestoreXML":Form.BackUpXML.selectedIndex=document.getElementById("BackUpXML_PopUp").selectedIndex;break;default:alert("Switch/Case Error at FW.restore");}
Form.ASP_Job.value=aspJob;Form.submit();}
function insertTags(tagOpen,tagClose,TextBoxID){tagOpen=tagOpen.replace(/\{/g, "&" ).replace(/\}/g, ";" );
tagClose=tagClose.replace(/\{/g, "&" ).replace(/\}/g, ";" );
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();if(editHTML)document.getElementById("PublishHTM").className="publishOn";else
document.getElementById("PublishJS").className="publishOn";}
else{if(!tagClose)alert("To auto-insert you must place your cursor at the location where you are inserting into.");else
alert("To auto-insert you must first highlight the text you would like formatted.");}}
function init(){var help="About Caching, Reload, Publish, Reset & Restore";var justPub="Refresh page to override cached (old) version";try{var TheBody=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;var textBoxWid=TheBody.clientWidth-140;textBoxWid=(textBoxWid>1200)?1200:textBoxWid;var EditContainerHTM=document.getElementById("EditContainerHTM");var table1="<table align='center' border='0' cellspacing='0' cellpadding='0'><tr><td>",table2="</td></tr></table>";if(EditContainerHTM&&EditContainerHTM.className=="on"){var HtmTitle=document.getElementById("HtmTitle");if(HtmTitle.innerHTML=="")HtmTitle.innerHTML="HTML CONTENT FOR THIS PAGE";var HtmNotes=document.getElementById("HtmNotes");if(HtmNotes.innerHTML=="")HtmNotes.innerHTML=table1+this.HtmNotes+table2;HtmNotes.style.width=textBoxWid+"px";var HtmButtons=document.getElementById("HtmButtons");if(HtmButtons.innerHTML=="")HtmButtons.innerHTML=this.HtmButtons;var EditedHTML=document.getElementById("EditedHTML");EditedHTML.onfocus=function(){this.title="Edit text then press \"Publish HTML\"";FW.cursorReadyHtm=true;}
EditedHTML.onkeyup=function(){document.getElementById("PublishHTM").className=(this.value==this.defaultValue)?"publishOff":"publishOn";}
EditedHTML.style.width=textBoxWid+"px";var HelpHTM=document.getElementById("HelpHTM");HelpHTM.onmouseover=function(){this.title=help;}
var ReloadHTM=document.getElementById("ReloadHTM");ReloadHTM.onmouseover=function(){this.title=justPub;}
ReloadHTM.onclick=function(){FW.reLoad("EditedHTML");}
var PublishHTM=document.getElementById("PublishHTM");PublishHTM.style.width=(PublishHTM.offsetWidth+10)+"px";PublishHTM.onmouseover=function(){this.title="Save HTML to the web";}
PublishHTM.onclick=function(){return FW.checkContent(1);}
var ResetHTM=document.getElementById("ResetHTM");ResetHTM.onmouseover=function(){this.title="Revert HTML back to original values since you last published";}
ResetHTM.onclick=function(){FW.resetUI("EditedHTML");}}
var EditContainerJS=document.getElementById("EditContainerJS");if(EditContainerJS&&EditContainerJS.className=="on"){var JsTitle=document.getElementById("JsTitle");if(JsTitle.innerHTML=="")JsTitle.innerHTML="JAVASCRIPT DATA";var JsNotes=document.getElementById("JsNotes");if(JsNotes.innerHTML=="")JsNotes.innerHTML=table1+this.JsNotes+table2;JsNotes.style.width=textBoxWid+"px";var JsButtons=document.getElementById("JsButtons");if(JsButtons.innerHTML=="")JsButtons.innerHTML=this.JsButtons;var EditedJS=document.getElementById("EditedJS");EditedJS.onfocus=function(){this.title="Edit data then press \"Publish JavaScript\"";FW.cursorReadyJS=true;}
EditedJS.onkeyup=function(){document.getElementById("PublishJS").className=(this.value==this.defaultValue)?"publishOff":"publishOn";}
EditedJS.style.width=textBoxWid+"px";var HelpJS=document.getElementById("HelpJS");HelpJS.onmouseover=function(){this.title=help;}
var ReloadJS=document.getElementById("ReloadJS");ReloadJS.onmouseover=function(){this.title=justPub;}
ReloadJS.onclick=function(){FW.reLoad("EditedJS");}
var PublishJS=document.getElementById("PublishJS");PublishJS.style.width=(PublishJS.offsetWidth+10)+"px";PublishJS.onmouseover=function(){this.title="Save JavaScript to the web";}
PublishJS.onclick=function(){return FW.checkContent(2);}
var ResetJS=document.getElementById("ResetJS");ResetJS.onmouseover=function(){this.title="Revert JavaScript back to original values since you last published";}
ResetJS.onclick=function(){FW.resetUI("EditedJS");}}
var EditContainerXML=document.getElementById("EditContainerXML");if(EditContainerXML&&EditContainerXML.className=="on"){var XmlTitle=document.getElementById("XmlTitle");if(XmlTitle.innerHTML=="")XmlTitle.innerHTML="GLOBAL XML DATA";var XmlNotes=document.getElementById("XmlNotes");if(XmlNotes.innerHTML=="")XmlNotes.innerHTML=table1+this.XmlNotes+table2;XmlNotes.style.width=textBoxWid+"px";var EditedXML=document.getElementById("EditedXML");EditedXML.onfocus=function(){this.title="Edit data then press \"Publish XML\"";}
EditedXML.onkeyup=function(){document.getElementById("PublishXML").className=(this.value==this.defaultValue)?"publishOff":"publishOn";}
EditedXML.style.width=textBoxWid+"px";var HelpXML=document.getElementById("HelpXML");HelpXML.onmouseover=function(){this.title=help;}
var ReloadXML=document.getElementById("ReloadXML");ReloadXML.onmouseover=function(){this.title=justPub;}
ReloadXML.onclick=function(){FW.reLoad("EditedXML");}
var PublishXML=document.getElementById("PublishXML");PublishXML.style.width=(PublishXML.offsetWidth+10)+"px";PublishXML.onmouseover=function(){this.title="Save XML to the web";}
PublishXML.onclick=function(){return FW.checkContent(3);}
var ResetXML=document.getElementById("ResetXML");ResetXML.onmouseover=function(){this.title="Revert XML back to original values since you last published";}
ResetXML.onclick=function(){FW.resetUI("EditedXML");}}
var htm="<div class='otherFunctions'><a href='javascript:FW.logOff();' title='Log off as administrator' class='fw'>Log Off</a>";htm+=this.AdminLinks;htm+="</div>";var FwBottomRow=document.getElementById("fwBottomRow");if(FwBottomRow)FwBottomRow.innerHTML=htm;self.status="";}
catch(Err){if(local){var err="";for(member in Err)err+=member+": "+Err[member]+"\n";alert("Exception at method FW.init:\n\n"+err);}
else{setTimeout("FW.init();",250);self.status="Initializing File Writer: FW.init()...";}}}
function checkContent(dataType){function subDisableTextBoxes(htm,js,xml){if(htm&&document.getElementById("EditedHTML"))document.getElementById("EditedHTML").disabled=true;if(js&&document.getElementById("EditedJS"))document.getElementById("EditedJS").disabled=true;if(xml&&document.getElementById("EditedXML"))document.getElementById("EditedXML").disabled=true;}
var Form=document.AspForm;var EditedHTML=Form.EditedHTML;var EditedJS=Form.EditedJS;var EditedXML=Form.EditedXML;if(dataType==1){if(this.dataUnmodified(dataType)){alert("Edit the text then press Publish HTML...");EditedHTML.focus();FW.cursorReadyHtm=false;return false;}
else{var htm=EditedHTML.value.trim();htm=htm.replace(/largePic\( *'/g, "largePic( '" );
var LargePic=htm.split("largePic( '");for(var i=1;i<LargePic.length;i++){var LargePicArgs=LargePic[i].split(");");var otherArgs=LargePicArgs[0].substring(LargePicArgs[0].lastIndexOf("'"));LargePicArgs[0]=LargePicArgs[0].substring(0,LargePicArgs[0].lastIndexOf("'"));LargePicArgs[0]=LargePicArgs[0].replace(/"/g, "&#34;" ).replace(/'/g, "\\&#39;" ) + otherArgs;
LargePicArgs=LargePicArgs.join(");");LargePic[i]=LargePicArgs;}
htm=LargePic.join("largePic( '");EditedHTML.value=htm;document.getElementById("PublishHTM").disabled=true;Form.Which_Button.value="html";subDisableTextBoxes(0,1,1);}}
else if(dataType==2){if(this.dataUnmodified(dataType)){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;}
EditedJS.value=EditedJS.value.trim();document.getElementById("PublishJS").disabled=true;Form.Which_Button.value="js";subDisableTextBoxes(1,0,1);}}
else{if(this.dataUnmodified(dataType)){alert("Edit the text then press Publish XML...");EditedXML.focus();return false;}
else{var textOrig=EditedXML.defaultValue;var textNew=EditedXML.value.trim();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){var xml=EditedXML.value;xml=xml.replace(/&amp;/g, "a_m_p_e_r_s_a_n_d" );
xml=xml.replace(/\\\"/g, "q_u_o_t_e" );
xml=xml.replace(/&/g, "&amp;" );
xml=xml.replace(/\"/g, "\\\"" );
xml=xml.replace(/q_u_o_t_e/g, "\\\"" );
xml=xml.replace(/a_m_p_e_r_s_a_n_d/g, "&amp;" );
EditedXML.value=xml;document.getElementById("PublishXML").disabled=true;Form.Which_Button.value="xml";subDisableTextBoxes(1,1,0);}
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;}}
var xml=EditedXML.value.trim();var XML=xml.split(">");for(var i=0;i<XML.length;i++)XML[i]=XML[i].replace(/^ +/g, "" );
xml=XML.join(">");var XML=xml.split("</");for(var i=0;i<XML.length;i++)if(XML[i].indexOf("<")>=0)XML[i]=XML[i].replace(/ +$/g, "" );
xml=XML.join("</");EditedXML.value=xml;}
Form.ASP_Job.value="File_Writer";Form.submit();return true;}
function dataUnmodified(dataType){var Form=document.AspForm;dateUnedited="",dateEdited="";switch(dataType){case 1:dateUnedited=Form.EditedHTML.value;dateEdited=Form.EditedHTML.defaultValue;break;case 2:dateUnedited=Form.EditedJS.value;dateEdited=Form.EditedJS.defaultValue;break;case 3:dateUnedited=Form.EditedXML.value;dateEdited=Form.EditedXML.defaultValue;break;default:alert("Switch/Case Error at FW.dataUnmodified; Bad dataType: "+dataType);}
return(dateUnedited==dateEdited);}
function resetUI(TextBox){if(TextBox=="EditedHTML"){this.cursorReadyHtm=false;document.getElementById("PublishHTM").className="publishOff";}
else if(TextBox=="EditedJS"){this.cursorReadyJS=false;document.getElementById("PublishJS").className="publishOff";}
else
document.getElementById("PublishXML").className="publishOff";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 but have not saved (published) them. Your unpublished edits will be lost upon reloading this page. Do you still want to reload?\n\n1) Click OK to reload, unpublished edits will be lost.\n2) Click Cancel to stop the page from reloading."))document.location.reload(true);}
function logOff(){var url=fileName+"?logoff=yes"
if(qStr&&qStr.getVal("db"))url+="&db="+qStr.getVal("db");document.location.replace(url);}
function logIn(){var Form=document.LogIn;var userNameFW=Form.user.value;if(userNameFW==""){alert("Please enter your user name");Form.user.focus();return false;}
else if(Form.pw.value==""){alert("Please enter your password");Form.pw.focus();return false;}
else{if(Form.remember_pw.checked){var pwOut="";var pwIn=Form.pw.value;for(var i=0;i<=pwIn.length;i++)pwOut=pwIn.charAt(i)+pwOut;SetCookie("pwFW",pwOut,expDate12Mon);}
else
DeleteCookie("pwFW");}
if(userNameFW)SetCookie("userNameFW",userNameFW,expDate12Mon);var url=fileName+"?user="+Form.user.value+"&pw="+Form.pw.value;if(qStr&&qStr.getVal("db"))url+="&db="+qStr.getVal("db");document.location.replace(url);}
function recordPW(CheckBox){if(CheckBox.checked){var pw=document.LogIn.pw.value;if(pw){var pwOut="";for(var i=0;i<=pw.length;i++)pwOut=pw.charAt(i)+pwOut;SetCookie("pwFW",pwOut,expDate12Mon);}}
else
DeleteCookie("pwFW");}
function getLogInGUI(evt,RequestedPos){if(!evt)evt=window.event;var userNameFW=(GetCookie("userNameFW"))?GetCookie("userNameFW"):"";var pwFW=(GetCookie("pwFW"))?GetCookie("pwFW"):"";var pwOut="";if(pwFW)for(var i=0;i<=pwFW.length;i++)pwOut=pwFW.charAt(i)+pwOut;var pwChecked=(pwFW)?" checked":"";var gui="<form name='LogIn' style='margin:0px;'><table align='center' border='0' cellspacing='0' cellpadding='0'><tr><td><table align='center' border='0' cellspacing='0' cellpadding='0'><tr><td class='fwField' style='padding-top:6px;'>User Name</td><td class='fwValue' style='padding-top:6px;' id='tdBookingID'><input type='text' name='user' class='fwText' title='Case sensitive user-name' value='"+userNameFW+"' onkeypress='if( window.event && window.event.keyCode == 13 || event.which == 13 ) { FW.logIn(); return false; }' /></td></tr><tr><td class='fwField' style='padding-top:6px;'>Password</td><td class='fwValue' style='padding-top:6px;' id='tdBookingID'><input type='password' name='pw' autocomplete='off' value='"+pwOut+"' class='fwText' title='Case sensitive password' onkeypress='if( window.event && window.event.keyCode == 13 || event.which == 13 ) { FW.logIn(); return false; }' /></td></tr><tr><td align='center' colspan='2' class='fwValue' style='padding-top:6px; white-space:nowrap;'><input type='checkbox' id='remember_pw' name='remember_pw' onClick='FW.recordPW( this );'"+pwChecked+" /><label for='remember_pw'> Remember Me</label></td></tr><tr><td align='center' colspan='2' style='padding:10px 0px 0px 0px; white-space:nowrap;'><input type='button' name='OK' value='OK' class='logInButtons' onClick='return FW.logIn();' /><input type='button' value='Cancel' class='logInButtons' onClick='DW.removeWin();' /></td></tr></table></td></tr></table></form>";RequestedPos=(RequestedPos)?RequestedPos:null;DW.createWindow(["Administrator Log-In",gui],[0,300,0],null,evt,6,RequestedPos);if(userNameFW&&pwFW)setTimeout("document.LogIn.OK.focus();",100);else if(userNameFW)setTimeout("document.LogIn.pw.focus();",100);else
setTimeout("document.LogIn.user.focus();",100);}
function pollAdministrators(){if(userWithWritePrivileges){var EditContainer=document.getElementById("EditContainer");if(EditContainer.className!="offScreen"||fileName=="calendar.aspx"){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;}}}
if(this.Request){this.Request.onreadystatechange=function(){if(FW.Request.readyState==4){if(FW.Request.status==200||FW.Request.status==304){var XmlDoc=FW.Request.responseXML;var User=XmlDoc.getElementsByTagName("user");var thisUserMS=0;var OtherUsers=new Array();var db=qStr.getVal("db")?"?db="+qStr.getVal("db"):"";for(var i=0;i<User.length;i++){var UserNode=(User[i].firstChild.nodeType==1)?User[i].firstChild:User[i].firstChild.nextSibling;var userXML=UserNode.childNodes[0].nodeValue.replace(/_/, " " );
var PageNode=(UserNode.nextSibling.nodeType==1)?UserNode.nextSibling:UserNode.nextSibling.nextSibling;var pageXML=PageNode.childNodes[0].nodeValue;var forcedOutBy=PageNode.getAttribute("forced-out-by").replace(/_/, " " );
var TimeNode=(PageNode.nextSibling.nodeType==1)?PageNode.nextSibling:PageNode.nextSibling.nextSibling;var timeXML=parseInt(TimeNode.childNodes[0].nodeValue);if(pageXML==fileName+db){if(userWithWritePrivileges==userXML){thisUserMS=timeXML;if(forcedOutBy&&EditContainer.className!="off"){alert("Sorry, but "+forcedOutBy+" has just forced a log-in to this page, as a result, your editing privileges are suspended. Note however, you haven't been logged off and may continue editing other pages.");EditContainer.className="off";if(fileName=="calendar.aspx"){document.getElementById("CalGreeting").className="off";document.getElementById("calButtonsTop").className="off";document.getElementById("calButtonsBot").className="off";}
break;}}
else
OtherUsers.push([userXML,pageXML,forcedOutBy,timeXML]);}}
if(OtherUsers.length){var otherUsers="";for(var i=0;i<OtherUsers.length;i++){if(thisUserMS>OtherUsers[i][3]&&OtherUsers[i][2]==""){var Now=new Date();var nowMS=Now.getTime();var timeDiffSec=(nowMS-OtherUsers[i][3])/1000;var timeDiffMin=timeDiffSec/60;var timeDiffOut="";if(timeDiffMin<2)timeDiffOut=Math.round(timeDiffSec)+" seconds";else if(timeDiffMin>=2&&timeDiffMin<=120)timeDiffOut=Math.round(timeDiffMin)+" minutes";else if(timeDiffMin>120&&timeDiffMin<=(2*1440))timeDiffOut=Math.round(timeDiffMin/60)+" hours";else{var UserLoginDate=new Date(OtherUsers[i][3]);var UserLoginMidNite=new Date(UserLoginDate.getFullYear(),UserLoginDate.getMonth(),UserLoginDate.getDate());var NowMidNite=new Date(Now.getFullYear(),Now.getMonth(),Now.getDate());var userLoginMidNite=UserLoginMidNite.getTime();var nowMidNite=NowMidNite.getTime();var timeDiffMS=nowMidNite-userLoginMidNite;var timeDiffDays=timeDiffMS/86400000;timeDiffOut=Math.floor(timeDiffDays)+" days";}
otherUsers+=OtherUsers[i][0]+" logged into this page "+timeDiffOut+" ago.\n";}}
if(otherUsers){if(confirm("Concurrent Administrators Detected. To protect the integrity of our data, two or more users editing the same page at the same time is prohibited. The following users are logged into this page, or may have forgotten to log-off:\n\n"+otherUsers+"\n1. Click OK to force log-in which immediately suspends privileges for other users.\n2. Click Cancel & you'll remain logged with suspended privileges on this page.")){SetCookie("forcedLogin","yes");document.location.reload();}
else{SetCookie("cancelForceLogin","yes");document.location.replace(fileName+"?cancelForceLogin=yes"+db.replace(/^\?/, "&" ) );}}}}
FW.timer=setTimeout("FW.pollAdministrators();",5000);}}
this.Request.open("GET","users.xml?"+Math.random());this.Request.send(null);}}}}}
function SlideShowEmbedded(){initImagesArr();this.userIsAdministrator=userWithWritePrivileges;this.slideNum=(SettingsSSE.randomStart&&!this.userIsAdministrator)?Math.floor(Math.random()*Images.length):0;this.nFirstSlide=this.slideNum;this.speedActual=SettingsSSE.speed*1000;this.automated=(this.speedActual<86400000);this.SPEED_FAST=500;this.preLoadTimer=0;this.NextImage=null;this.slideDelay=0;this.running=true;this.forward=true;this.buttons=false;this.dissolve=true;this.maxDissolveMZ=1000*1000;this.maxImgWid=0;this.maxImgHgt=0;this.init=init;this.start=start;this.showSlide=showSlide;this.skipErrantSlide=skipErrantSlide;this.preLoadNext=preLoadNext;this.imgClickHandler=imgClickHandler;this.back=back;this.next=next;this.getCoordinates=getCoordinates;this.repositionElements=repositionElements;this.pauseSS=pauseSS;window.onresize=this.repositionElements;this.rightClick=rightClick;this.msg=new Array();this.msg.ssRunning="Slide Show Running...";this.msg.downloadingImg="Preparing next slide...";this.msg.pleaseWait="Downloading image, please wait...";this.msg.ssPaused="Slide Show Paused, re-click \"Pause\" to continue...";this.msg.ssPausedSF="Slide Show Paused, click \"Run\" to continue...";this.msg.next=(this.automated)?"Jump forward":"Next";this.msg.back=(this.automated)?"Go back":"Back";this.msg.ssExit=(this.automated)?"Close this slide-show window":"Close this pop-up window";function start(){this.repositionElements();this.preLoadNext();}
function getCoordinates(TheImage){var x=0;var y=0;TheElement=TheImage;var parPosAbs=false;while(TheElement){if(SF){if(!parPosAbs)parPosAbs=(TheElement.style.position=="absolute");if(parPosAbs&&TheElement==document.body)break;}
y+=TheElement.offsetTop;x+=TheElement.offsetLeft;TheElement=TheElement.offsetParent;}
return[x,y];}
function repositionElements(){if(SSE.ImgOverlay){var OverlayPos=SSE.getCoordinates(document.images.slideShow.parentNode);SSE.ImgOverlay.style.left=OverlayPos[0]+"px";SSE.ImgOverlay.style.top=OverlayPos[1]+"px";}}
function showSlide(){if(this.NextImage){var TheImage=document.images.slideShow;var widNew=Images[this.slideNum][1];var hgtNew=Images[this.slideNum][2];var imgArea=widNew*hgtNew;checkDim(this.NextImage.src,widNew,hgtNew);if(this.forward&&this.dissolve&&(winIE||(MZ&&imgArea<=this.maxDissolveMZ)||(SF&&SettingsSSE.dissolveSF))&&SettingsSSE.transNum>=1&&this.speedActual>this.SPEED_FAST){var nNewImg=(Images.length==this.slideNum)?0:this.slideNum;var nOldImg=(nNewImg==0)?Images.length-1:nNewImg-1;TheImage.width=Images[nOldImg][1];TheImage.height=Images[nOldImg][2];TheImage.src=SettingsSSE.folder+Images[nOldImg][0];if(SettingsSSE.borderWid&&Images[nOldImg][4])TheImage.style.borderColor="rgb( "+getRGB(Images[nOldImg][4])+" )";var imgStyle=(SettingsSSE.borderWid&&Images[nNewImg][4])?" style='border:"+SettingsSSE.borderWid+"px solid rgb("+getRGB(Images[nNewImg][4])+");'":"";var newImg="<img name='slideShowNew' src='"+SettingsSSE.folder+Images[nNewImg][0]+"' width='"+Images[nNewImg][1]+"' height='"+Images[nNewImg][2]+"' title='"+TheImage.title+"'"+imgStyle+" onmousedown='SSE.imgClickHandler( event );' onContextMenu='return SSE.rightClick( this, event );' class='ssImage'>";if(!SSE.ImgOverlay){SSE.ImgOverlay=document.createElement("DIV");SSE.ImgOverlay.style.textAlign="center";SSE.ImgOverlay.style.top=(screen.height*-1)+"px";SSE.ImgOverlay.style.left=(screen.width*-1)+"px";SSE.ImgOverlay.style.zIndex=1000;SSE.ImgOverlay.style.position="absolute";SSE.ImgOverlay.style.backgroundColor="rgb( "+SettingsSSE.bkgColor+" )";document.body.appendChild(SSE.ImgOverlay);}
SSE.ImgOverlay.style.width=this.maxImgWid+"px";SSE.ImgOverlay.style.height=this.maxImgHgt+"px";if(winIE)SSE.ImgOverlay.style.visibility="hidden";if(MZ)SSE.ImgOverlay.style.opacity=0;else SSE.ImgOverlay.style.opacity=0;var OverlayPos=SSE.getCoordinates(TheImage.parentNode);SSE.ImgOverlay.style.left=OverlayPos[0]+"px";SSE.ImgOverlay.style.top=OverlayPos[1]+"px";SSE.ImgOverlay.innerHTML=newImg;startFade(SSE.ImgOverlay,SettingsSSE.transNum,SettingsSSE.transDur,0,0,0);}
else{if(this.ImgOverlay){document.body.removeChild(this.ImgOverlay);this.ImgOverlay=null;}
TheImage.style.visibility="hidden";TheImage.width=widNew;TheImage.height=hgtNew;if(SettingsSSE.borderWid&&Images[this.slideNum][4])TheImage.style.borderColor="rgb( "+getRGB(Images[this.slideNum][4])+" )";TheImage.src=this.NextImage.src;TheImage.style.visibility="visible";}
this.dissolve=true;this.forward=true;}}
function skipErrantSlide(){if(local||SSE.speedActual==SSE.SPEED_FAST){if(!SSE.errReported){alert("Slide #"+(SSE.slideNum+1)+"; "+SSE.NextImage.src+" failed to load");SSE.errReported=true;}}
SSE.NextImage=null;}
function preLoadNext(){var recursionTimer=100;this.slideDelay+=recursionTimer;if(!this.NextImage){if(this.SPEED_FAST!=this.speedActual&&this.forward)this.speedActual=Images[this.slideNum][5]*1000;this.slideNum++;if(this.slideNum==Images.length)this.slideNum=0;this.NextImage=new Image();this.NextImage.onerror=this.skipErrantSlide;this.NextImage.src=SettingsSSE.folder+Images[this.slideNum][0];}
if(this.NextImage&&this.NextImage.complete&&this.slideDelay>this.speedActual){this.slideDelay=0;this.showSlide();this.NextImage=null;clearTimeout(this.preLoadTimer);this.preLoadNext();}
else
this.preLoadTimer=setTimeout("SSE.preLoadNext()",recursionTimer);}
function imgClickHandler(e){if(!e)e=window.event;if(e.ctrlKey||e.metaKey){if(this.speedActual==this.SPEED_FAST)this.speedActual=SettingsSSE.speed*1000;else
this.speedActual=this.SPEED_FAST;}
if(e.shiftKey){if(this.running)this.pauseSS(true);else
this.pauseSS(false);}}
function back(){clearTimeout(this.preLoadTimer);this.forward=false;this.slideNum-=3;if(this.slideNum==-2)this.slideNum=Images.length-2;if(this.slideNum==-3)this.slideNum=Images.length-3;this.NextImage=null;this.speedActual=SettingsSSE.speed;this.pauseSS(false);}
function next(){clearTimeout(this.preLoadTimer);this.forward=true;this.speedActual=SettingsSSE.speed;this.pauseSS(false);}
function pauseSS(pause){if(pause){clearTimeout(this.preLoadTimer);this.running=false;}
else{this.slideDelay=SettingsSSE.speed*1000+1;this.preLoadNext();this.running=true;}}
function init(){var maxWid=-1,maxHgt=-1,bordWid=SettingsSSE.borderWid*2;for(var i=0;i<Images.length;i++){if(Images[i][1]>maxWid)maxWid=Images[i][1];if(Images[i][2]>maxHgt)maxHgt=Images[i][2];if(Images[i][3])Images[i][3]=Images[i][3].replace(/\^/g, "\"" ).replace(/\[/g, "<div class='ssCaptionOtherLines'>" ).replace(/]/g, "</div>" );
if(!Images[i][4])Images[i][4]=SettingsSSE.borderCol;if(!Images[i][5])Images[i][5]=SettingsSSE.speed;checkImgName(Images[i][0]);}
this.maxImgWid=maxWid+bordWid;this.maxImgHgt=maxHgt+bordWid;}
function rightClick(Photo,evt){if(this.userIsAdministrator){SSE.speedActual=SettingsSSE.speed;this.pauseSS(true);var nImages=Images.length;var indexNum=(this.slideNum>0)?this.slideNum-1:nImages-1;var Img=Images[indexNum];var wid=Img[1],hgt=Img[2],tnWid=-1,tnHgt=-1,longestEdge=150;var shape=(wid>hgt)?"horizontal":((wid<hgt)?"vertical":"square");if(shape=="horizontal"){tnWid=longestEdge;tnHgt=parseInt(hgt*longestEdge/wid);}
else{tnWid=parseInt(wid*longestEdge/hgt);tnHgt=longestEdge;}
var fileSize=Photo.fileSize;if(fileSize)fileSize=Math.round(fileSize/1000)+" KB";var htm="<table align='left' border='0' cellspacing='0' cellpadding='0'><tr><td align=center valign=top><img src='"+Photo.src+"' width='"+tnWid+"' height='"+tnHgt+"'></td><td align=center valign=top style='padding:4px;'><table align='center' border='0' cellspacing='0' cellpadding='0' class='dwText'><tr><td align=right>Name:&nbsp;</td><td align=left>"+Img[0]+"</td></tr><tr><td align=right>Number:&nbsp;</td><td align=left>"+((this.slideNum>0)?this.slideNum:nImages)+" of "+Images.length+"</td></tr><tr><td align=right>Dimensions:&nbsp;</td><td align=left>"+wid+" &times; "+hgt+" px; "+shape+"</td></tr>"+((fileSize)?"<tr><td align=right valign=top>File Size:&nbsp;</td><td align=left>"+fileSize+"</td></tr>":"")+((typeof Img[3]=="string")?"<tr><td align=right valign=top> Caption:&nbsp;</td><td align=left>"+Img[3]+"</td></tr>":"")+"<tr><td align=left colspan=2>Slide-Show paused, <a href='javascript:SSE.dissolve=false; SSE.pauseSS( false ); DW.removeWin();' class='dwLink'>click here</a> to resume</td></tr></table></td></table>";DW.createWindow(["Image Properties",htm],[0,500,0],Photo,evt);return false;}
else
return(SettingsSSE.disableRightClick)?false:true;}}
function initPage(){try{var Body=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;var bodyWidth=(Body.clientWidth)?Body.clientWidth:window.innerWidth;var MasterTable=document.getElementById("MasterTable");if(MasterTable)MasterTable.style.width=(bodyWidth>=1200)?"1100px":"900px";var Links=document.links;for(var i=0;i<Links.length;i++){var LinkComponents=Links[i].href.split("/");var file=LinkComponents[LinkComponents.length-1].replace(/\?.*/, "" ).toLowerCase();
if(file==fileName.toLowerCase()){if(Links[i].className=="navBot"){Links[i].className="navBotDisabled";Links[i].onmouseover=function(){}}
if(Links[i].className=="navTop"){Links[i].className="navTopDisabled";Links[i].onmouseover=function(){}}}}
if(userWithWritePrivileges&&window.FW){var XmlBulTop=document.getElementById("XmlBulTop");if(XmlBulTop)XmlBulTop.style.display="inline";var XmlTop=document.getElementById("XmlTop");if(XmlTop)XmlTop.style.display="inline";var LogOffBulTop=document.getElementById("LogOffBulTop");if(LogOffBulTop)LogOffBulTop.style.display="inline";var LogOffTop=document.getElementById("LogOffTop");if(LogOffTop)LogOffTop.style.display="inline";var XmlBulBot=document.getElementById("XmlBulBot");if(XmlBulBot)XmlBulBot.style.display="inline";var XmlBot=document.getElementById("XmlBot");if(XmlBot)XmlBot.style.display="inline";var LogOffBulBot=document.getElementById("LogOffBulBot");if(LogOffBulBot)LogOffBulBot.style.display="inline";var LogOffBot=document.getElementById("LogOffBot");if(LogOffBot)LogOffBot.style.display="inline";}
var TropFaceHeader=document.getElementById("TropFaceHeader");if(TropFaceHeader){if(window.FW)TropFaceHeader.onclick=function(event){FW.getLogInGUI(event);}
else
TropFaceHeader.onclick=function(event){alert("Sorry! This page does not provide owner log-in and cannot be edited...");}}
document.body.style.visibility="visible";if(fileName=="inquire.aspx")document.getElementById("Name").focus();self.status="";}
catch(Err){if(local){var eMsg="Exception at initPage\n\n";for(var i in Err)eMsg+=i+": "+Err[i]+"\n";alert(eMsg);}
else{self.status="Exception at initPage, trying again...";setTimeout("initPage();",100);}}}
function initHomepage(){try{var Body=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;var bodyHeight=(Body.clientHeight)?Body.clientHeight:window.innerHeight;var contentHeight=parseInt(document.getElementById("MasterTable").style.height);var marginTop=Math.round((bodyHeight-contentHeight)/2)-0;if(marginTop<0)marginTop=0;document.getElementById("MasterTable").style.marginTop=marginTop+"px";SSE.repositionElements();document.getElementById("A_Tropical_Face").style.visibility="visible";document.body.style.visibility="visible";}
catch(Err){self.status="Exception at initHomepage, trying again...";setTimeout("initHomepage();",100);}}
function thankYou(){try{var fName=(qStr&&qStr.getVal("fName"))?qStr.getVal("fName"):"";if(fName){var thankYou="<table align='center' border='0' cellspacing='0' cellpadding='0'><tr><td><img src='images/headerRaquel.jpg' style='border:1px solid rgb( 60,84,0 ); width:133px; height:200px; float:left; margin:0px 20px 0px 0px;'></td><td><div style='margin:0px 0px 10px 6px;'>Aloha "+fName+", thanks so much for your inquiry!</div><div style='margin:6px 0px 6px 16px;'>&#151; I will get back to you right away...</div><div class='fSize14' style='margin:0px 0px 0px 30px; font-family:times new roman; font-style:italic;'>"+DB.Contact.Name+"</div><div class='fSize9' style='margin:20px 10px 4px 10px;'>PS: You should be receiving an auto-generated copy of your inquiry by e-mail within a minute or two</div></td></tr></table>";DW.createWindow(["Mahalo From A Tropical Face",thankYou],[0,500,0],null,null,0,[4,0,0]);}
self.status="";}
catch(Err){if(local){var eMsg="Exception at thankYou\n\n";for(var i in Err)eMsg+=i+": "+Err[i]+"\n";alert(eMsg);}
else{self.status="Exception at thankYou, trying again...";setTimeout("thankYou();",250);}}}