// Web software by DavidRegier.com
IE=false,AOL=false,SF=false,MZ=false,OP=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;else if(navigator.appName=="Opera")OP=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();local=(window.theHost&&typeof theHost=="string"&&(theHost==""||theHost=="localhost"||theHost=="127.0.0.1"||theHost.indexOf("192.168.2.")==0));live=!local;qStr=unescape(document.location.search).substring(1);homePage="homepage.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];cookieDomain=null;if(live&&theHost){var Host=theHost.split("."),hLen=Host.length;if(hLen>=2)cookieDomain="."+Host[hLen-2]+"."+Host[hLen-1];}
if(window.DB)DB.ReportErrorsTo=DB.Contact.SendErrTo;Settings=new Array();Settings.IeTransNum=2;Settings.transDur=.8;Settings.folder="images/";Settings.defaultCaption="Tropical Maui Weddings";Settings.borderWidDW=1;Settings.disableContextImgMenu=1;Settings.SS=new Array();Settings.SS.speed=4;Settings.SS.randomStart=0;Settings.SS.Music=[null];if(local)Settings.SS.randomStart=0;Settings.TN=new Array();Settings.TN.ProgressBar=new Array();Settings.TN.ProgressBar.hideOnSuccess=1;Settings.TN.ProgressBar.width=350;Settings.TN.ProgressBar.progressColor="rgb( 51,153,0 )";Settings.TN.ProgressBar.bgColor="rgb( 80,80,80 )";Settings.TN.ProgressBar.fontColor="rgb( 255,255,255 )";Settings.TN.bordColOff="rgb( 0,0,0 )";Settings.TN.bordColOn="rgb( 204,204,204 )";Settings.TN.pageTitle="";Settings.TN.align="center";Settings.TN.nImagesRow=8;Settings.TN.width=100;Settings.TN.height=100;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 writeGraphics(){var htm="<div style='position:absolute; top:10px; left:50%; margin-left:-350px; margin-top:140px;'><table align='left' border='0' cellspacing='0' cellpadding='0' style='width:130px;'><tr><td align='right' nowrap onClick='this.title=Msg.menu; return false;' onMouseOver='if( window.Menu ) { Menu.clearAll(); Menu.show( this, \"AboutUs\", 23, event, 0, 4 ); } homeLink( this, true, \"homeLinkDivOnHiRes\", true ); self.status=Msg.menu; return true;' onMouseOut='if( window.Menu ) { Menu.hide([[\"AboutUs\"]]); } self.status=\"\"; homeLink( this, false, \"homeLinkDivHiRes\" ); return true;'><div class='homeLinkDivHiRes'><a href='maui-wedding-planners-about.aspx?db=img-about-us.js' class='home'><div class='homeLink'>About Us</div></a></div></td></tr><tr><td align='right' nowrap onMouseOver='if( window.Menu ) { Menu.clearAll(); } self.status=Msg.pkg; homeLink( this, true, \"homeLinkDivOnHiRes\", false ); return true;' onMouseOut='self.status=\"\"; homeLink( this, false, \"homeLinkDivHiRes\"  ); return true;'><div class='homeLinkDivHiRes'><a href='index.aspx?page=maui-wedding-packages.aspx' onMouseOver='this.title=Msg.pkg;' class='home'><div class='homeLink'>Packages</div></a></div></td></tr><tr><td align='right' nowrap onClick='this.title=Msg.menu; return false;' onMouseOver='if( window.Menu ) { Menu.subMenuPos = 23; Menu.clearAll(); Menu.show( this, \"View\", 23, event, 0, 4 ); } homeLink( this, true, \"homeLinkDivOnHiRes\", true ); self.status=Msg.menu; return true;' onMouseOut='if( window.Menu ) { Menu.hide([[\"View\"]]); } homeLink( this, false, \"homeLinkDivHiRes\" ); self.status=\"\"; return true;'><div class='homeLinkDivHiRes'><a href='javascript:void(0);' class='home'><div class='homeLink'>View Photos</div></a></div></td></tr><tr><td align='right' nowrap onMouseOver='if( window.Menu ) { Menu.clearAll(); } self.status=Msg.jamie; homeLink( this, true, \"homeLinkDivOnHiRes\", false ); return true;' onMouseOut='self.status=\"\"; homeLink( this, false, \"homeLinkDivHiRes\"  ); return true;'><div class='homeLinkDivHiRes'><a href='index.aspx?page=jamie-lawrence.aspx' onMouseOver='this.title=Msg.jamie;' class='home'><div class='homeLink'>Jamie Lawrence</div></a></div></td></tr><tr><td align='right' nowrap onMouseOver='if( window.Menu ) { Menu.clearAll(); } self.status=Msg.contactUs; homeLink( this, true, \"homeLinkDivOnHiRes\", false ); return true;' onMouseOut='self.status=\"\"; homeLink( this, false, \"homeLinkDivHiRes\"  ); return true;' onClick='if( window.DW ) { DW.createWindow( DW.ContactUs, [0,650,0], null, event, 10 ); showHawaiiTime(); } return false;'><div class='homeLinkDivHiRes'><a href='javascript:void(0);' onMouseOver='this.title=Msg.contactUs;' class='home'><div class='homeLink'>Contact Us</div></a></div></td></tr><tr><td align='right' nowrap onClick='this.title=Msg.menu; return false;' onMouseOver='if( window.Menu ) { Menu.clearAll(); Menu.show( this, \"Services\", 23, event, 0, 4 ); } self.status=Msg.menu; homeLink( this, true, \"homeLinkDivOnHiRes\", true  ); return true;' onMouseOut='if( window.Menu ) { Menu.hide([[\"Services\"]]); } self.status=\"\"; homeLink( this, false, \"homeLinkDivHiRes\" ); return true;'><div class='homeLinkDivHiRes'><a href='javascript:void(0);' class='home'><div class='homeLink'>Services</div></a></div></td></tr><tr><td align='right' nowrap onClick='this.title=Msg.menu; return false;' onMouseOver='if( window.Menu ) { Menu.clearAll(); Menu.show( this, \"MyCart\", 23, event, 0, 4 ); } self.status=Msg.menu; homeLink( this, true, \"homeLinkDivOnHiRes\", true  ); return true;' onMouseOut='if( window.Menu ) { Menu.hide([[\"MyCart\"]]); } self.status=\"\"; homeLink( this, false, \"homeLinkDivHiRes\" ); return true;'><div class='homeLinkDivHiRes'><a href='javascript:void(0);' class='home'><div class='homeLink'>My Cart</div></a></div></td></tr></table></div><div style='position:absolute; top:10px; left:50%; margin-left:-240px;'><img src='images/homeTropicalMauiWeddingsHiRes.gif' border='0' width='285' height='102' hspace='0' vspace='0' style='float:left; margin:0px 0px 0px 0px;' onAbort='this.src=this.src;'></div><div style='position:absolute; top:10px; left:50%; margin-left:60px; margin-top:31px;'><img src='images/homeLeiTopRightHiRes.jpg' border='0' width='328' height='151' hspace='0' vspace='0' style='float:left; margin:0px 0px 0px 0px;' onAbort='this.src=this.src;'></div><div style='position:absolute; top:10px; left:50%; margin-left:-220px; margin-top:113px;'><img name='slideShow' SRC='images/ssElliotHiRes.jpg' border='0' width='436' height='290' hspace='0' vspace='0' onMouseover='self.status=this.title; return true;' onMouseout='self.status=\"\";' class='ssImage' style='border:2px solid rgb( 86,120,0 ); float:left; margin:0px 0px 0px 0px;' onAbort='this.src=this.src;' onmousedown='SS.imgClickHandler( event );' title='Slide-Show'></div>";document.write(htm);}
function writeBottomLinks(){var primaryMenuPos=14;var subMenuPos=21;var menuPos="above",fontSize=12,clickPos=2,yOffset=-15;var htm="<div align='center' style='margin:0px 0px 10px 0px;'>";htm+="<div style='font-size:12pt; color:rgb( 90,90,90 ); margin:25px 0px 0px 0px;'>[ ";htm+="<a href='javascript:void( 0 );' onClick='this.title=Msg.menu; self.status=Msg.menu; return false;' onMouseOver='self.status=Msg.menu; if( window.Menu ) { style.cursor=\"default\"; Menu.clearAll(); Menu.show( this, \"AboutUs\", "+primaryMenuPos+", event, 0, 4 ); } return true;' onMouseOut='self.status = \"\"; if( window.Menu ) { Menu.hide([[\"AboutUs\"]]); } return true;' class='nav' style='font-size:"+fontSize+"pt;'>About Us</a> | ";htm+="<a href='index.aspx?page=maui-wedding-packages.aspx' onMouseOver='this.title=Msg.pkg; self.status=Msg.pkg; if( window.Menu ) Menu.clearAll(); return true;' onMouseOut='self.status = \"\"; return true;' class='nav' style='font-size:"+fontSize+"pt;'>Packages</a> | ";htm+="<a href='javascript:void( 0 );' onClick='this.title=Msg.menu; self.status=Msg.menu; return false;' onMouseOver='self.status=Msg.menu; if( window.Menu ) { style.cursor=\"default\"; Menu.subMenuPos = "+subMenuPos+"; Menu.clearAll(); Menu.show( this, \"View\", "+primaryMenuPos+", event, 0, 4 ); } return true;' return true;' onMouseOut='self.status = \"\"; if( window.Menu ) { Menu.hide([[\"View\"]]); } return true;' class='nav' style='font-size:"+fontSize+"pt;'>Photos</a> | ";htm+="<a href='index.aspx?page=jamie-lawrence.aspx' onMouseOver='this.title=Msg.jamie; self.status=Msg.jamie; if( window.Menu ) Menu.clearAll(); return true;' onMouseOut='self.status = \"\"; return true;' class='nav' style='font-size:"+fontSize+"pt;'>Jamie Lawrence</a> | ";htm+="<a href='javascript:void( 0 );' onClick='if( window.DW ) { DW.createWindow( DW.ContactUs, [0,650,0], null, event, 10, ["+clickPos+",-200,"+yOffset+"] ); showHawaiiTime(); } return false;' onMouseOver='this.title=Msg.contactUs; self.status=Msg.contactUs; if( window.Menu ) Menu.clearAll(); return true;' onMouseOut='self.status = \"\"; return true;' class='nav' style='font-size:"+fontSize+"pt;'>Contact Us</a> | ";htm+="<a href='javascript:void( 0 );' onClick='this.title=Msg.menu; self.status=Msg.menu; return false;' onMouseOver='self.status=Msg.menu; if( window.Menu ) { style.cursor=\"default\"; Menu.clearAll(); Menu.show( this, \"Services\", "+primaryMenuPos+", event, 0, 4 ); } return true;' onMouseOut='if( window.Menu ) { Menu.hide([[\"Services\"]]); } self.status = \"\"; return true;' class='nav' style='font-size:"+fontSize+"pt;'>Services</a> | ";htm+="<a href='javascript:void( 0 );' onClick='this.title=Msg.menu; self.status=Msg.menu; return false;' onMouseOver='self.status=Msg.menu; if( window.Menu ) { style.cursor=\"default\"; Menu.clearAll(); Menu.show( this, \"MyCart\", "+primaryMenuPos+", event, 0, 4 ); } return true;' onMouseOut='if( window.Menu ) { Menu.hide([[\"MyCart\"]]); } self.status = \"\"; return true;' class='nav' style='font-size:"+fontSize+"pt;'>My Cart</a>";htm+=" ]</div>";htm+=getFooter();htm+="</div>";document.write(htm);}
var Msg=new Array();Msg.aboutUs="Learn about Tropical Maui Weddings";Msg.associates="Meet our Photographers, Musicians, Officiants & more";Msg.back="Back to the last page you were on...";Msg.cc="Need to make a payment? Use our secure credit-card form";Msg.checkOut="Submit your shopping cart or inquire";Msg.cont="Learn more about this package";Msg.contactUs="Get our phone number, mailing & e-mail address, etc.";Msg.eMail="Send us an e-mail";Msg.endorse="Endorsement from New York Times Bestselling Author";Msg.enlarge="Click to enlarge";Msg.forthcoming="Page not completed: Check back soon...";Msg.home="Go to our homepage";Msg.jamie="About Jamie Lawrence \u2022 Musician & Entertainer";Msg.marLic="Print the Hawaii Marriage License Application Form";Msg.menu="Please click a menu item";Msg.music="You must have a high-speed connection to play our mp3 music";Msg.pkg="Wedding & Vow Renewal Packages";Msg.ss="View photos via our automated pop-up slide-show";Msg.subMenu="Please click a sub-menu item...";Msg.testimonials="Read what our clients say about us...";Msg.tn="View photos on a traditional click-to-enlarge page";Msg.video="NEW \u2022 Watch Wedding Movies";Msg.viewCart="Review & edit your order";Msg.vt="Virtual Tour";Msg.winPkg="Win a package";function PreLoader(){this.Files=["images/ContactUsPopUpPhoto.jpg","images/homeLeiTopRightHiRes.jpg","images/homeLeiBotLeftHiRes.jpg","images/headerPhotos.jpg","images/tropical.gif","images/mauiWeddings.gif","tmw-cart.js","maui-wedding-packages.aspx","ss.aspx","img-beach-weddings.js","img-featured-weddings.js","img-helicopter-weddings.js","data-testimonials.js","img-about-us.js","img-ceremonies.js","img-receptions.js","img-reserved1.js","img-reserved2.js","img-reserved3.js","img-reserved4.js","img-reserved5.js","img-reserved6.js","img-reserved7.js","img-reserved8.js","img-reserved9.js","img-reserved10.js","img-reserved11.js","img-reserved12.js","img-reserved13.js","img-reserved14.js","img-reserved15.js","img-reserved16.js","img-reserved17.js","img-reserved18.js","img-reserved19.js","img-reserved20.js","images/jarvieBeachTNB.jpg","images/princeFresquezBouquetTNB.jpg","images/keaLani1-4TNB.jpg","images/beachBartickTNB.jpg","maui-wedding-dream-package.aspx","maui-wedding-planners-about.aspx?db=img-about-us.js","testimonials.aspx?db=data-testimonials.js","endorsement.aspx","images/LaVyrleSpencer.jpg","jamie-lawrence.aspx","images/jamieWithGuitarTNB.jpg","images/joyceRainbowTNB.jpg","images/P1010008_1TNB.jpg","images/heliYellowTNB.jpg","images/new-4TNB.jpg","maui-wedding-helicopter-package.aspx","maui-wedding-cart.aspx","tmwPF.css","maui-wedding-order.aspx","privacy-policy.aspx","friends.aspx","pdf/MarriageLicense.pdf",null];this.debug=0;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)self.status="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)self.status=PL.Files[PL.nFilesCached]+" preloaded; #"+((PL.nFilesCached+1)+" of "+(PL.Files.length-1));}
else{if(PL.debug||local)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(local)alert(eMsg);} catch(Err){self.status=eMsg.replace(/\n/g, " " ); }}}
this.Request.open("GET",this.Files[this.nFilesCached],true);this.Request.send(null);}}
else if(PL.debug)self.status="Browser does not support the HttpRequest Request Protocol";}}
PL=new PreLoader();function getStartPage(){var startPage=(qStr&&qStr.indexOf("page=")==0&&qStr.getVal("page"))?qStr.getVal("page"):"homepage.aspx";var db=(qStr&&qStr.indexOf("db=")>0&&qStr.getVal("db"))?"?db="+qStr.getVal("db"):"";return startPage+db;}
function setRef(){try{var ref=document.referrer;if(qStr&&qStr.indexOf("referrer=")==0)ref=qStr.split("referrer=")[1];if(ref&&!GetCookie("tmwReferrer"))SetCookie("tmwReferrer",ref,null,"/");}
catch(Err){}}
FadeObj=null;transNum=-1;transDur=-1;transDelay=-1;fadeOpacity=0,fadeOpacityTimer=0,fadeStartTime=0;opacityStep=(window.Settings&&window.Settings.SS&&Settings.transDur)?1/(Settings.transDur/.04):.05;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(){var opac="";if(winIE)opac="visibility:hidden;";else if(MZ)opac="opacity:0;";else if(SF||OP)opac="opacity:0;";return opac;}
function startFade(FadeObj,transNum,transDur,transDelay){if((winIE||MZ||SF||OP)&&window.FadeObj==null){window.FadeObj=FadeObj;if(winIE){window.transNum=transNum;window.transDur=transDur;window.transDelay=transDelay;setTimeout("fadeInDirectX()",transDelay);}
else{fadeStartTime=new Date().getTime();FadeObj.onload=function(){};(transDelay)?setTimeout("fadeIn()",transDelay):fadeIn();}}
else{if(IE)FadeObj.style.visibility="visible";else if(MZ)FadeObj.style.opacity=0.9999;else FadeObj.style.opacity=0.9999;FadeObj.style.visibility="visible";}}
function fadeIn(){if(MZ)FadeObj.style.opacity=fadeOpacity;else FadeObj.style.opacity=fadeOpacity;fadeOpacity+=opacityStep;if(fadeOpacity<1)fadeOpacityTimer=setTimeout("fadeIn();",40);else{if(MZ)FadeObj.style.opacity=0.9999;else FadeObj.style.opacity=0.9999;clearTimeout(fadeOpacityTimer);fadeOpacity=0;var fadeEndTime=new Date().getTime();var fadeDuration=fadeEndTime-fadeStartTime;fadeStartTime=0;if(fadeDuration>1500)opacityStep+=.03;FadeObj=null;}}
function fadeInDirectX(){try{FadeObj.style.filter=getTransition(transNum,transDur);FadeObj.filters(0).apply();FadeObj.style.visibility="visible";FadeObj.filters(0).play();FadeObj.onfilterchange=function(){FadeObj=null;}}
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);}
FadeObj.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 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 imgBorder(Img,on){if(Img.complete){Img.style.borderColor=(on)?"rgb( 51,153,0 )":"rgb( 86,120,0 )";}}
function trim(){var str=this.toString();return str.replace(/^\s*|\s*$/g, "" );}
String.prototype.trim=trim;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 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 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 expDate365=new Date();var expDateSaveCart=new Date();var expDate30=new Date();expDate365.setTime(expDate365.getTime()+(24*60*60*365*1000));expDateSaveCart.setTime(expDateSaveCart.getTime()+(24*60*60*60*1000));expDate30.setTime(expDate30.getTime()+(24*60*60*30*1000));if(GetCookie("userHasWritePrivleges"))SetCookie("userWithWritePrivileges","Some_User");userWithWritePrivileges=GetCookie("userHasWritePrivleges");function refreshCookies(scGreeting){var tmwCookie=GetCookie("tmwCookie");if(tmwCookie)SetCookie("tmwCookie",tmwCookie,expDate365,"/",cookieDomain);var saveCart=GetCookie("saveCart");var showWelcome=GetCookie("showWelcome");if(saveCart){SetCookie("saveCart","yes",expDateSaveCart,"/",cookieDomain);var cartData=GetCookie("cartData");if(cartData)SetCookie("cartData",cartData,expDateSaveCart,"/",cookieDomain);if(!showWelcome){SetCookie("showWelcome","no",null,"/",cookieDomain);DW.createWindow(["Aloha from "+DB.Contact.Company+"","<b>P</b>er your request, we saved your shopping cart from your previous visit. <a href='maui-wedding-cart.aspx' class='bold' onClick='if( SF ) DW.removeWin();'>Click here</a> to go to our View-Cart page now"],[0,360,0],null,null,10,[3,0,20]);}}
else if(scGreeting&&!GetCookie("scGreeting")){SetCookie("scGreeting","yes",null,"/",cookieDomain);}}
function initSS(){if(qStr&&qStr.getVal("ss")){var dataFile=qStr.getVal("ss");launchSS(null,dataFile);}}
function setURL(Link){var Path=Link.pathname.split("/");var requestedPage=Path[Path.length-1];var requestedPageQstr=Link.search.substring(1);if(requestedPage=="ss.aspx"){if(window.SS){Link.href="ss.aspx?ss="+requestedPageQstr.getVal("db");return true;}
else
return launchSS(Link,requestedPageQstr.getVal("db"));}
else{if(requestedPage=="maui-wedding-order.aspx"){var orderIsCdsOnly=true;var cartData=GetCookie("cartData");if(cartData){var Keys=cartData.split("|");for(var i=1;i<Keys.length;i++){if(Keys[i].substring(0,3)!="mer"){orderIsCdsOnly=false;break;}}}
else
orderIsCdsOnly=false;if(orderIsCdsOnly)requestedPage="order-cds.aspx";}
var theURL="";var enteringSecureForm=(requestedPage=="maui-wedding-order.aspx"||requestedPage=="cc.aspx"||requestedPage=="order-cds.aspx");var path=document.location.pathname;var leavingSecureForm=(path.indexOf("maui-wedding-order.aspx")>=0||path.indexOf("cc.aspx")>=0||path.indexOf("order-cds.aspx")>=0);if(enteringSecureForm)theURL=(live)?"https://www.tropicalmauiweddings.com/"+requestedPage:requestedPage;else if(leavingSecureForm){theURL=(live)?"http://www.tropicalmauiweddings.com/index.aspx":"index.aspx";if(requestedPage=="index.aspx")theURL+=((requestedPageQstr)?"?"+requestedPageQstr:"");else
theURL+=(requestedPageQstr)?"?page="+requestedPage+"&"+requestedPageQstr:"?page="+requestedPage;}
else
theURL=(requestedPageQstr)?requestedPage+"?"+requestedPageQstr:requestedPage;Link.href=theURL;return true;}}
function getLinks(topLinks){var htm="";if(topLinks){var primaryMenuPos=34;var subMenuPos=23;var menuPos="below",fontSize=9,clickPos=1,yOffset=15;htm+="<div style='position:absolute; left:50%; top:0%; margin-left:-215px; margin-top:210px;'><div style='width:600px; font-size:9pt; color:rgb( 90,90,90 ); background-color:transparent;'>";}
else{var primaryMenuPos=14;var subMenuPos=21;var menuPos="above",fontSize=12,clickPos=2,yOffset=-15;htm+="<div style='font-size:12pt; color:rgb( 90,90,90 ); margin:25px 0px 0px 0px;'>[ ";}
if(parent!=self)htm+="<a href='javascript:void( 0 );' onClick='this.title=Msg.menu; self.status=Msg.menu; return false;' onMouseOver='self.status=Msg.menu; if( window.Menu ) { style.cursor=\"default\"; Menu.subMenuPos = "+subMenuPos+"; Menu.clearAll(); Menu.refreshItems(this); Menu.show( this, \"Music\", "+primaryMenuPos+", event, 0, 4 ); } return true;' onMouseOut='self.status = \"\"; if( window.Menu ) { Menu.hide([[\"Music\"]]); } return true;' class='nav' style='font-size:"+fontSize+"pt;'>Music</a> | ";htm+="<a href='javascript:void( 0 );' onClick='this.title=Msg.menu; self.status=Msg.menu; return false;' onMouseOver='self.status=Msg.menu; if( window.Menu ) { style.cursor=\"default\"; Menu.clearAll(); Menu.show( this, \"AboutUs\", "+primaryMenuPos+", event, 0, 4 ); } return true;' onMouseOut='self.status = \"\"; if( window.Menu ) { Menu.hide([[\"AboutUs\"]]); } return true;' class='nav' style='font-size:"+fontSize+"pt;'>About Us</a> | ";htm+="<a href='maui-wedding-packages.aspx' onClick='return setURL( this );' onMouseOver='this.title=Msg.pkg; if( window.Menu ) { Menu.clearAll(); Menu.show( this, \"Packages\", "+primaryMenuPos+", event, 0, 4 ); } return true;' onMouseOut='if( window.Menu ) { Menu.hide([[\"Packages\"]]); } return true;' class='nav' style='font-size:"+fontSize+"pt;'>Packages</a> | ";htm+="<a href='javascript:void( 0 );' onClick='this.title=Msg.menu; self.status=Msg.menu; return false;' onMouseOver='self.status=Msg.menu; if( window.Menu ) { style.cursor=\"default\"; Menu.subMenuPos = "+subMenuPos+"; Menu.clearAll(); Menu.show( this, \"View\", "+primaryMenuPos+", event, 0, 4 ); } return true;' return true;' onMouseOut='self.status = \"\"; if( window.Menu ) { Menu.hide([[\"View\"]]); } return true;' class='nav' style='font-size:"+fontSize+"pt;'>Photos</a> | ";htm+=(fileName=="video.aspx")?"<span style='font-size:"+fontSize+"pt;'>Video</a> | ":"<a href='video.aspx' onClick='return setURL( this );' onMouseOver='this.title=Msg.video; self.status=Msg.jamie; if( window.Menu ) Menu.clearAll(); return true;' onMouseOut='self.status = \"\"; return true;' class='nav' style='font-size:"+fontSize+"pt;'>Video</a> | ";htm+=(fileName=="jamie-lawrence.aspx")?"<span style='font-size:"+fontSize+"pt;'>Jamie Lawrence</a> | ":"<a href='jamie-lawrence.aspx' onClick='return setURL( this );' onMouseOver='this.title=Msg.jamie; self.status=Msg.jamie; if( window.Menu ) Menu.clearAll(); return true;' onMouseOut='self.status = \"\"; return true;' class='nav' style='font-size:"+fontSize+"pt;'>Jamie Lawrence</a> | ";htm+="<a href='javascript:void( 0 );' onClick='if( window.DW ) { DW.createWindow( DW.ContactUs, [0,650,0], null, event, 10, ["+clickPos+",-200,"+yOffset+"] ); showHawaiiTime(); } return false;' onMouseOver='this.title=Msg.contactUs; self.status=Msg.contactUs; if( window.Menu ) Menu.clearAll(); return true;' onMouseOut='self.status = \"\"; return true;' class='nav' style='font-size:"+fontSize+"pt;'>Contact Us</a> | ";htm+="<a href='javascript:void( 0 );' onClick='this.title=Msg.menu; self.status=Msg.menu; return false;' onMouseOver='self.status=Msg.menu; if( window.Menu ) { style.cursor=\"default\"; Menu.clearAll(); Menu.show( this, \"Services\", "+primaryMenuPos+", event, 0, 4 ); } return true;' onMouseOut='if( window.Menu ) { Menu.hide([[\"Services\"]]); } self.status = \"\"; return true;' class='nav' style='font-size:"+fontSize+"pt;'>Services</a> | ";htm+="<a href='javascript:void( 0 );' onClick='this.title=Msg.menu; self.status=Msg.menu; return false;' onMouseOver='self.status=Msg.menu; if( window.Menu ) { style.cursor=\"default\"; Menu.clearAll(); Menu.show( this, \"MyCart\", "+primaryMenuPos+", event, 0, 4 ); } return true;' onMouseOut='if( window.Menu ) { Menu.hide([[\"MyCart\"]]); } self.status = \"\"; return true;' class='nav' style='font-size:"+fontSize+"pt;'>My Cart</a> | ";htm+="<a href='homepage.aspx' onClick='return setURL( this );' onMouseOver='self.status=Msg.home; this.title=Msg.home; if( window.Menu ) Menu.clearAll(); return true;' onMouseOut='self.status = \"\"; return true;' class='nav' style='font-size:"+fontSize+"pt;'>Home</a> | ";htm+=(local)?"<a href='javascript:document.location.reload();' onMouseOver='if( window.Menu ) Menu.clearAll(); self.status = this.title; return true;' onMouseOut='self.status = \"\"; return true;' onContextMenu='javascript:document.location.reload(true); return false;' title='Reload page' class='nav' style='font-size:"+fontSize+"pt;'>Reload</a> | ":"";htm=htm.substring(0,htm.length-2);if(topLinks)htm+="</div></div>";else
htm+=" ]</div>";return htm;}
function getHeader(pageTitle,backPage){var htm="<!-- Lei: Top Right --><DIV STYLE='position:absolute; left:50%; top:0%; margin-left:-15px; margin-top:4px;'><IMG SRC='images/homeLeiTopRightHiRes.jpg' BORDER='0' WIDTH='328' HEIGHT='151' HSPACE='0' VSPACE='0' GALLERYIMG='no' STYLE='float:left; margin:0px 0px 0px 0px;' onAbort='this.src=this.src;'></DIV><!-- Lei: Bottom Left --><DIV STYLE='position:absolute; left:50%; top:0%; margin-left:-342px; margin-top:140px;'><IMG SRC='images/homeLeiBotLeftHiRes.jpg' BORDER='0' WIDTH='410' HEIGHT='119' HSPACE='0' VSPACE='0' GALLERYIMG='no' STYLE='float:left; margin:0px 0px 0px 0px;' onAbort='this.src=this.src;'></DIV><!-- Photos --><DIV STYLE='position:absolute; left:50%; top:0%; margin-left:-293px; margin-top:82px;'><IMG SRC='images/headerPhotos.jpg' BORDER='0' WIDTH='585' HEIGHT='74' HSPACE='0' VSPACE='0' GALLERYIMG='no' TITLE='Photos &#169; Creative Touch Photography' onMouseover='self.status=this.title; return true;' onMouseout='self.status=\"\";' STYLE='float:left; margin:0px 0px 0px 0px;' onAbort='this.src=this.src;'></DIV><!-- Tropical --><DIV STYLE='position:absolute; left:50%; top:0%; margin-left:-252px; margin-top:10px;'><IMG SRC='images/tropical.gif' BORDER='0' WIDTH='229' HEIGHT='73' HSPACE='0' VSPACE='0' GALLERYIMG='no' STYLE='float:left; margin:0px 0px 0px 0px;' onAbort='this.src=this.src;'></DIV><!-- Maui Weddings --><DIV STYLE='position:absolute; left:50%; top:0%; margin-left:89px; margin-top:166px;'><IMG SRC='images/mauiWeddings.gif' BORDER='0' WIDTH='173' HEIGHT='19' HSPACE='0' VSPACE='0' GALLERYIMG='no' STYLE='float:left; margin:0px 0px 0px 0px;' onAbort='this.src=this.src;'></DIV>";var backLink="";try{var ref=document.referrer;if(ref&&backPage&&ref.indexOf(backLink)>=0)var backLink="<div style='margin:0px 0px 0px 0px;'><a href='javascript:history.back();' onMouseover='self.status=Msg.back; this.title=Msg.back; return true;' onMouseout='self.status=\"\"' class='back'>Back</a></div>"}
catch(Err){var backLink="";}
htm+="<!-- Page Title --><DIV STYLE='position:absolute; left:50%; top:0%; margin-left:-300px; margin-top:265px;'><div class='pageTitle'>"+pageTitle+"</div>"+backLink+"</DIV>";return htm;}
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(linkHtml,cls){var sub=escape(DB.Contact.Company+" Web Site E-Mail Inquiry");return "<a href='mailto:"+DB.Contact.Email+"?subject="+sub+"' onMouseOver='self.status=Msg.eMail; this.title=Msg.eMail; return true;' onMouseOut='self.status=\"\"; return true;' class='"+cls+"'>"+linkHtml+"</a>";}
function getFooter(){return "<div class='footer'>"+DB.Contact.PhoneTollFree+" Toll Free&nbsp;&nbsp;&#149;&nbsp;&nbsp;"+DB.Contact.PhoneDirect+" Direct&nbsp;&nbsp;&#149;&nbsp;&nbsp;"+getEmailLink('SEND E-MAIL','greenMute')+"</div>";}
function getBodyWid(){return(document.body.clientWidth)?document.body.clientWidth:window.innerWidth;}
function homeLink(TD,active,cls,showMenu){var Div=TD.firstChild;var Link=Div.firstChild;TD.title="";if(active){var cur=(IE)?"hand":"pointer";if(window.Menu&&showMenu)cur="default";TD.style.cursor=cur;Div.className="homeLinkDivOn";Div.className=cls;Link.style.cursor=cur;Link.style.color="rgb( 255,255,255 )";}
else{var cur="default";TD.style.cursor=cur;Div.className="homeLinkDiv";Div.className=cls;Link.style.cursor=cur;Link.style.color="rgb( 204,204,204 )";}}
function setHomePage(){Settings=new Array();Settings.SS=new Array();Settings.pageTitle="";Settings.folder="images/";Settings.transNum=2;Settings.transDur=.8;Settings.borderWid=2;Settings.borderCol="86,120,0";Settings.dissolveSF=true;Settings.SS.controls=false;Settings.SS.speed=4000;Settings.SS.statusBar=true;Settings.SS.console=false;Settings.SS.randomStart=true;Settings.SS.bkgColor="0,0,0";var tableWid=120;var linkMarLftHiRes=0-220-tableWid;var linkTbl="<table align='left' border='0' cellspacing='0' cellpadding='0' style='width:"+tableWid+"px;'><tr><td align='right' nowrap onClick='this.title=Msg.menu; return false;' onMouseOver='if( window.Menu ) { Menu.clearAll(); Menu.show( this, \"AboutUs\", 23, event, 0, 4 ); } homeLink( this, true, \"homeLinkDivOnHiRes\", true ); self.status=Msg.menu; return true;' onMouseOut='if( window.Menu ) { Menu.hide([[\"AboutUs\"]]); } self.status=\"\"; homeLink( this, false, \"homeLinkDivHiRes\" ); return true;'><div class='homeLinkDivHiRes'><a href='maui-wedding-planners-about.aspx?db=img-about-us.js' class='home'><div class='homeLink'>About Us</div></a></div></td></tr><tr><td align='right' nowrap onMouseOver='if( window.Menu ) { Menu.clearAll(); Menu.show( this, \"Packages\", 23, event, 0, 4 ); } homeLink( this, true, \"homeLinkDivOnHiRes\", false  ); self.status=Msg.pkg; return true;' onMouseOut='if( window.Menu ) { Menu.hide([[\"Packages\"]]); } homeLink( this, false, \"homeLinkDivHiRes\" ); self.status=\"\"; return true;'><div class='homeLinkDivHiRes'><a href='maui-wedding-packages.aspx' onClick='return setURL( this );' onMouseOver='this.title=Msg.pkg;' class='home'><div class='homeLink'>Packages</div></a></div></td></tr><tr><td align='right' nowrap onClick='this.title=Msg.menu; return false;' onMouseOver='if( window.Menu ) { Menu.subMenuPos = 23; Menu.clearAll(); Menu.show( this, \"View\", 23, event, 0, 4 ); } homeLink( this, true, \"homeLinkDivOnHiRes\", true ); self.status=Msg.menu; return true;' onMouseOut='if( window.Menu ) { Menu.hide([[\"View\"]]); } homeLink( this, false, \"homeLinkDivHiRes\" ); self.status=\"\"; return true;'><div class='homeLinkDivHiRes'><a href='javascript:void(0);' class='home'><div class='homeLink'>View Photos</div></a></div></td></tr><tr><td align='right' nowrap onMouseOver='if( window.Menu ) { Menu.clearAll(); } self.status=Msg.jamie; homeLink( this, true, \"homeLinkDivOnHiRes\", false ); return true;' onMouseOut='self.status=\"\"; homeLink( this, false, \"homeLinkDivHiRes\"  ); return true;'><div class='homeLinkDivHiRes'><a href='video.aspx' onMouseOver='this.title=Msg.video;' class='home'><div class='homeLink'>Watch Videos</div></a></div></td></tr><tr><td align='right' nowrap onMouseOver='if( window.Menu ) { Menu.clearAll(); } self.status=Msg.jamie; homeLink( this, true, \"homeLinkDivOnHiRes\", false ); return true;' onMouseOut='self.status=\"\"; homeLink( this, false, \"homeLinkDivHiRes\"  ); return true;'><div class='homeLinkDivHiRes'><a href='jamie-lawrence.aspx' onMouseOver='this.title=Msg.jamie;' class='home'><div class='homeLink'>Jamie Lawrence</div></a></div></td></tr><tr><td align='right' nowrap onMouseOver='if( window.Menu ) { Menu.clearAll(); } self.status=Msg.contactUs; homeLink( this, true, \"homeLinkDivOnHiRes\", false ); return true;' onMouseOut='self.status=\"\"; homeLink( this, false, \"homeLinkDivHiRes\"  ); return true;' onClick='if( window.DW ) { DW.createWindow( DW.ContactUs, [0,650,0], null, event, 10 ); showHawaiiTime(); } return false;'><div class='homeLinkDivHiRes'><a href='javascript:void(0);' onMouseOver='this.title=Msg.contactUs;' class='home'><div class='homeLink'>Contact Us</div></a></div></td></tr><tr><td align='right' nowrap onClick='this.title=Msg.menu; return false;' onMouseOver='if( window.Menu ) { Menu.clearAll(); Menu.show( this, \"Services\", 23, event, 0, 4 ); } self.status=Msg.menu; homeLink( this, true, \"homeLinkDivOnHiRes\", true  ); return true;' onMouseOut='if( window.Menu ) { Menu.hide([[\"Services\"]]); } self.status=\"\"; homeLink( this, false, \"homeLinkDivHiRes\" ); return true;'><div class='homeLinkDivHiRes'><a href='javascript:void(0);' class='home'><div class='homeLink'>Services</div></a></div></td></tr><tr><td align='right' nowrap onClick='this.title=Msg.menu; return false;' onMouseOver='if( window.Menu ) { Menu.clearAll(); Menu.show( this, \"MyCart\", 23, event, 0, 4 ); } self.status=Msg.menu; homeLink( this, true, \"homeLinkDivOnHiRes\", true  ); return true;' onMouseOut='if( window.Menu ) { Menu.hide([[\"MyCart\"]]); } self.status=\"\"; homeLink( this, false, \"homeLinkDivHiRes\" ); return true;'><div class='homeLinkDivHiRes'><a href='javascript:void(0);' class='home'><div class='homeLink'>My Cart</div></a></div></td></tr><tr><td align='right' nowrap onClick='this.title=Msg.menu; return false;' onMouseOver='if( window.Menu ) { Menu.subMenuPos = 23; Menu.clearAll(); Menu.show( this, \"Music\", 23, event, 0, 4 ); } self.status=Msg.menu; homeLink( this, true, \"homeLinkDivOnHiRes\", true ); return true;' onMouseOut='if( window.Menu ) { Menu.hide([[\"Music\"]]); } self.status=\"\"; homeLink( this, false, \"homeLinkDivHiRes\" ); return true;'><div class='homeLinkDivHiRes'><a href='javascript:void(0);' class='home'><div class='homeLink'>Music</div></a></div></td></tr></table>";SS=new SlideShow();SS.init();var htm="<DIV STYLE='position:absolute; top:50%; left:50%; margin-left:-240px; margin-top:-280px;'><IMG SRC='images/homeTropicalMauiWeddingsHiRes.gif' BORDER='0' WIDTH='285' HEIGHT='102' HSPACE='0' VSPACE='0' GALLERYIMG='no' STYLE='float:left; margin:0px 0px 0px 0px;"+getOpacity()+"' onLoad='startFade( this, 2, 0.8, 0 );' onAbort='this.src=this.src;'></DIV><DIV STYLE='position:absolute; top:50%; left:50%; margin-left:60px; margin-top:-249px;'><IMG SRC='images/homeLeiTopRightHiRes.jpg' BORDER='0' WIDTH='328' HEIGHT='151' HSPACE='0' VSPACE='0' GALLERYIMG='no' STYLE='float:left; margin:0px 0px 0px 0px;' onAbort='this.src=this.src;'></DIV><DIV STYLE='position:absolute; top:50%; left:50%; margin-left:"+linkMarLftHiRes+"px; margin-top:-150px;'>"+linkTbl+"</DIV><DIV STYLE='position:absolute; top:50%; left:50%; margin-left:-220px; margin-top:-167px;'><IMG name='slideShow' SRC='images/"+Images[SS.slideNum][0]+"' BORDER='0' WIDTH='436' HEIGHT='290' HSPACE='0' VSPACE='0' GALLERYIMG='no' onMouseover='self.status=this.title; return true;' onMouseout='self.status=\"\";' class='ssImage' STYLE='border:2px solid rgb( 86,120,0 ); float:left; margin:0px 0px 0px 0px;' onAbort='this.src=this.src;' onmousedown='SS.imgClickHandler( event );' title='Slide-Show'></DIV><DIV STYLE='position:absolute; top:50%; left:50%; margin-left:-260px; margin-top:127px;'><IMG SRC='images/homeLeiBotLeftHiRes.jpg' BORDER='0' WIDTH='410' HEIGHT='119' HSPACE='0' VSPACE='0' GALLERYIMG='no' STYLE='float:left; margin:0px 0px 0px 0px;' onAbort='this.src=this.src;'></DIV>";if(local)htm+="<div style='position:absolute; bottom:0%; left:50%; margin:0px 0px 10px -5px;'><a href='javascript:document.location.reload( true );' onMouseOver='self.status = this.title; return true;' onMouseOut='self.status = \"\"; return true;' title='Reload page' class='nav' style='color:rgb(153,153,153); font-size:9pt;'>Reload</a></div>";document.getElementById("Graphics").innerHTML=htm;SS.start();}
function DynamicMenu(FormElements){this.homePage=homePage;this.clearAll=clearAll;this.write=write;this.show=show;this.hide=hide;this.keepAlive=keepAlive;this.kill=kill;this.on=on;this.off=off;this.refreshItems=refreshItems;this.resetItems=resetItems;this.setVis=setVis;this.getElement=getElement;this.init=init;this.write();this.resetItems();function init(){}
function clearAll(){kill(["AboutUs","Packages","View","Services","MyCart","Music"]);for(var id in Photos){kill(["SubPhoto_"+id]);off(id);}
for(var id in Music){kill(["Sub_"+id]);off(id);}}
function write(){var menu="";menu+="<div id='AboutUs' onMouseOver='Menu.keepAlive([\"AboutUs\"]); return true;' onMouseOut='Menu.clearAll(); return true;' class='menu'><table align='left' border='0' cellspacing='0' cellpadding='0' class='menuBorder'><tr><td><a href='maui-wedding-planners-about.aspx?db=img-about-us.js' onClick='return setURL( this );' class='menu'><div onMouseOver='Menu.on(this);' onMouseOut='Menu.off(this);' class='menuItemOff'><div class='menuItem'>Meet Jamie & Lori</div></div></a></td></tr><tr><td><a href='testimonials.aspx?db=data-testimonials.js' onClick='return setURL( this );' class='menu'><div onMouseOver='Menu.on(this);' onMouseOut='Menu.off(this);' class='menuItemOff'><div class='menuItem'>Testimonials</div></div></a></td></tr><tr><td><a href='endorsement.aspx' onClick='return setURL( this );' class='menu'><div onMouseOver='Menu.on(this);' onMouseOut='Menu.off(this);' class='menuItemOff'><div class='menuItem'>A message from LaVyrle Spencer</div></div></a></td></tr><tr><td><a href='http://www.tmaui.net/' onClick='PopUp.openWin( this.href, 0, 0, 1, 0, 900, 800, 1, 1, 2 ); return false;' class='menu'><div onMouseOver='Menu.on(this);' onMouseOut='Menu.off(this);' class='menuItemOff'><div class='menuItem'>Read Our Blog</div></div></a></td></tr><tr><td><a href='friends.aspx' class='menu'><div onMouseOver='Menu.on(this);' onMouseOut='Menu.off(this);' class='menuItemOff'><div class='menuItem'>Friends & Business Affiliates</div></div></a></td></tr><tr><td><a href='privacy-policy.aspx' class='menu'><div onMouseOver='Menu.on(this);' onMouseOut='Menu.off(this);' class='menuItemOff'><div class='menuItem'>Privacy Policy</div></div></a></td></tr></table></div>";menu+="<div id='Packages' onMouseOver='Menu.keepAlive([\"Packages\"]); return true;' onMouseOut='Menu.clearAll(); return true;' class='menu'>";if(GetCookie("pkgDrm")||GetCookie("pkgTrp")){menu+="<table align='left' border='0' cellspacing='0' cellpadding='0' class='menuBorder'><tr><td><a href='maui-wedding-packages.aspx' onClick='return setURL( this );' class='menu'><div onMouseOver='Menu.on(this);' onMouseOut='Menu.off(this);' class='menuItemOff'><div class='menuItem'>Weddings & Vow Renewals</div></div></a></td></tr>";if(GetCookie("pkgDrm"))menu+="<tr><td><a href='maui-wedding-dream-package.aspx' onClick='return setURL( this );' class='menu'><div onMouseOver='Menu.on(this);' onMouseOut='Menu.off(this);' class='menuItemOff'><div class='menuItem' style='font-size:9pt;'>&nbsp;&#149; Maui Dream Package</div></div></a></td></tr>";if(GetCookie("pkgTrp"))menu+="<tr><td><a href='maui-wedding-helicopter-package.aspx' onClick='return setURL( this );' class='menu'><div onMouseOver='Menu.on(this);' onMouseOut='Menu.off(this);' class='menuItemOff'><div class='menuItem' style='font-size:9pt;'>&nbsp;&#149; Tropical Maui Package</div></div></a></td></tr>";menu+="</table>";}
menu+="</div>";menu+="<div id='View' onMouseOver='Menu.keepAlive([\"View\"]); return true;' onMouseOut='Menu.clearAll(); return true;' class='menu'><table align='left' border='0' cellspacing='0' cellpadding='0' class='menuBorder'>";var allOff="",allKill="";for(var idOuter in Photos){var othersOff="",othersKill="";for(var idInner in Photos){if(idOuter!=idInner){othersOff+="Menu.off(\""+idInner+"\"); ";othersKill+="\"SubPhoto_"+idInner+"\",";}}
othersKill=othersKill.replace(/,$/, "" );
menu+="<tr><td><div id='"+idOuter+"' onMouseOver='Menu.on(this); "+othersOff+"Menu.kill(["+othersKill+"]); Menu.show(this,\"SubPhoto_"+idOuter+"\","+null+",event,-5,2); return true;' onMouseOut='Menu.clearAll(); return true;' class='menuItemNoClickOff'><div class='menuItem'>"+Photos[idOuter][Photos[idOuter].length-1]+" <span class='menuArrow'>&raquo;</span></div></div></td></tr>";}
menu+="</table></div>";for(var id in Photos){menu+="<div id='SubPhoto_"+id+"' onMouseOver='Menu.keepAlive([\"View\",\"SubPhoto_"+id+"\"]); return true;' onMouseOut='Menu.clearAll(); return true;' class='menu'><table align='left' border='0' cellspacing='0' cellpadding='0' class='menuBorder'>";for(var i=0;i<Photos[id].length-1;i++){menu+="<tr><td><a href='"+Photos[id][i][1]+"' onClick='return setURL( this );' class='menu'><div onMouseOver='Menu.on(this); return true;' onMouseOut='Menu.off(this); return true;' onClick='Menu.off(this); Menu.kill([\"SubPhoto_"+id+"\",\"View\"]); return true;' class='menuItemOff'><div class='menuItem'>"+Photos[id][i][0]+"</div></div></a></td></tr>";}
menu+="</table></div>";}
menu+="<div id='Services' onMouseOver='Menu.keepAlive([\"Services\"]); return true;' onMouseOut='Menu.clearAll(); return true;' class='menu'><table align='left' border='0' cellspacing='0' cellpadding='0' class='menuBorder'><tr><td><a href='javascript:PopUp.openWin( \"pdf/MarriageLicense.pdf\", 1 );' class='menu'><div onMouseOver='Menu.on(this);' onMouseOut='Menu.off(this);' class='menuItemOff'><div class='menuItem'>Marriage License</div></div></a></td></tr><tr><td><a href='cc.aspx' onClick='return setURL( this );' target='_top' class='menu'><div onMouseOver='Menu.on(this);' onMouseOut='Menu.off(this);' class='menuItemOff'><div class='menuItem'>Make a Payment</div></div></a></td></tr></table></div>";menu+="<div id='MyCart' onMouseOver='Menu.keepAlive([\"MyCart\"]); return true;' onMouseOut='Menu.clearAll(); return true;' class='menu'><table align='left' border='0' cellspacing='0' cellpadding='0' class='menuBorder'><tr><td><a href='maui-wedding-cart.aspx' onClick='return setURL( this );' class='menu'><div onMouseOver='Menu.on(this);' onMouseOut='Menu.off(this);' class='menuItemOff'><div class='menuItem'>View Cart</div></div></a></td></tr><tr><td><a href='maui-wedding-order.aspx' onClick='return setURL( this );' target='_top' class='menu'><div onMouseOver='Menu.on(this);' onMouseOut='Menu.off(this);' class='menuItemOff'><div class='menuItem'>Submit Order</div></div></a></td></tr></table></div>";menu+="<div id='Music' onMouseOver='Menu.keepAlive([\"Music\"]); return true;' onMouseOut='Menu.clearAll(); return true;' class='menu'><table align='left' border='0' cellspacing='0' cellpadding='0' class='menuBorder'>";var allOff="",allKill="",counter=0;for(var idOuter in Music){var othersOff="",othersKill="";for(var idInner in Music){if(counter==0){allOff+="Menu.off(\""+idInner+"\"); ";allKill+="\"Sub_"+idInner+"\",";}
if(idOuter!=idInner){othersOff+="Menu.off(\""+idInner+"\"); ";othersKill+="\"Sub_"+idInner+"\",";}}
counter++;othersKill=othersKill.replace(/,$/, "" );
menu+="<tr><td><div id='"+idOuter+"' onMouseOver='Menu.on(this); "+othersOff+"Menu.kill(["+othersKill+"]); Menu.show(this,\"Sub_"+idOuter+"\","+null+",event,-5,2); return true;' onMouseOut='Menu.clearAll(); return true;' class='menuItemNoClickOff'><div class='menuItem'>"+Music[idOuter][Music[idOuter].length-1]+" <span class='menuArrow'>&raquo;</span></div></div></td></tr>";}
allKill=allKill.replace(/,$/, "" );
menu+="<tr><td><a href='jukebox.html' target='music' class='menu'><div onMouseOver='Menu.on(this); "+allOff+" Menu.kill(["+allKill+"]); return true;' onMouseOut='Menu.off(this); return true;' onClick='Menu.refreshItems(this); Menu.off(this); Menu.kill([\"Music\"]); return true;' class='menuItemOff'><div class='menuItem'>Stop Music</div></div></a></td></tr></table></div>";for(var id in Music){menu+="<div id='Sub_"+id+"' onMouseOver='Menu.keepAlive([\"Music\",\"Sub_"+id+"\"]); return true;' onMouseOut='Menu.clearAll(); return true;' class='menu'><table align='left' border='0' cellspacing='0' cellpadding='0' class='menuBorder'>";for(var i=0;i<Music[id].length-1;i++){menu+="<tr><td><a href='jukebox.html?"+Music[id][i][1]+"' target='music' class='menu'><div onMouseOver='Menu.on(this); return true;' onMouseOut='Menu.off(this); return true;' onClick='Menu.refreshItems(this); Menu.off(this); Menu.kill([\"Sub_"+id+"\",\"Music\"]); return true;' class='menuItemOff'><div class='menuItem'>"+Music[id][i][0]+"</div></div></a></td></tr>";}
menu+="</table></div>";}
document.write(menu);}
function show(Link,menuID,menuPos,evt,xOffset,yOffset,hideMeID){var TheMenu=getElement(menuID);if(typeof menuPos!="number")menuPos=this.subMenuPos;this.setVis(hideMeID,"hidden");this.keepAlive([menuID]);var e=(window.event)?event:evt;var Body=(IE&&document.compatMode=="CSS1Compat")?document.documentElement:document.body;with(TheMenu.style){position="absolute";left=(screen.width*-1)+"px";top=(screen.height*-1)+"px";visibility="hidden";display="block";}
var x=0,y=0;if(menuPos==0){x=(IE)?e.clientX+Body.scrollLeft:e.pageX;y=(IE)?e.clientY+Body.scrollTop:e.pageY;}
else{var ThisLink=Link;var parPosAbs=false;while(ThisLink){if(SF){if(!parPosAbs)parPosAbs=(ThisLink.style.position=="absolute");if(parPosAbs&&ThisLink==Body)break;}
y+=ThisLink.offsetTop;x+=ThisLink.offsetLeft;ThisLink=ThisLink.offsetParent;}}
switch(menuPos){case 0:x+=xOffset;y+=yOffset;break;case 14:x+=xOffset;y-=TheMenu.offsetHeight+yOffset;break;case 21:x+=Link.offsetWidth+xOffset;y+=Link.offsetHeight-TheMenu.offsetHeight-yOffset;break;case 23:x+=Link.offsetWidth+xOffset;y+=yOffset;break;case 34:x+=xOffset;y+=Link.offsetHeight+yOffset;break;case 44:x=x-TheMenu.offsetWidth+xOffset;y=y+yOffset;break;default:alert("Switch/Case Error at Menu.show: menuPos \""+menuPos+"\" is invalid.");}
var bodyHgt=(IE)?Body.clientHeight:window.innerHeight;var bodyWid=(IE)?Body.clientWidth:window.innerWidth;var menuHgt=TheMenu.offsetHeight;var yFromTop=(IE)?Body.scrollTop:window.pageYOffset;var vScreenPos=y-yFromTop;var vSkew=bodyHgt-vScreenPos;if(vSkew<menuHgt+10)y-=menuHgt-vSkew+10;else if(vScreenPos<10)y=10+yFromTop;var menuWid=TheMenu.offsetWidth;var xFromLeft=(IE)?Body.scrollLeft:window.pageXOffset;var hScreenPos=x-xFromLeft;var hSkew=bodyWid-hScreenPos;if(hSkew<menuWid+10)x-=menuWid-hSkew+10;else if(hScreenPos<10)x=10+xFromLeft;with(TheMenu.style){left=x+"px";top=y+"px";visibility="visible";}}
function hide(Settings){for(var i=0;i<Settings.length;i++){var menuID=Settings[i][0],delay=Settings[i][1],hideMeID=Settings[i][2];if(getElement(menuID)){if(typeof delay=="undefined")delay=1000;if(window.Menu&&eval("Menu.timer"+menuID+" == 0")){eval("Menu.timer"+menuID+" = setTimeout( \"Menu.timer"+menuID+" = 0; document.getElementById( '"+menuID+"' ).style.display = 'none'; Menu.setVis( '"+hideMeID+"', 'visible' );\", "+delay+" )");}}}}
function keepAlive(MenuID){for(var i in MenuID){if(getElement(MenuID[i])){clearTimeout(eval("Menu.timer"+MenuID[i]));eval("Menu.timer"+MenuID[i]+" = 0;");}}}
function kill(MenuID){for(var i in MenuID){if(getElement(MenuID[i])){keepAlive([MenuID[i]]);hide([[MenuID[i],0]]);}}}
function on(Elem){if(typeof Elem=="string")Elem=document.getElementById(Elem);if(Elem.className=="menuItemOff")Elem.className="menuItemOn";else if(Elem.className=="menuItemNoClickOff")Elem.className="menuItemNoClickOn";}
function off(Elem){if(typeof Elem=="string")Elem=document.getElementById(Elem);if(Elem.className=="menuItemOn")Elem.className="menuItemOff";else if(Elem.className=="menuItemNoClickOn")Elem.className="menuItemNoClickOff";}
function refreshItems(Div){this.targetPage=Div.parentNode.href;this.resetItems();}
function resetItems(){var Links=document.links;for(var i=0;i<Links.length;i++){if(Links[i].className=="menu"){var target=Links[i].target;var targetLC=target.toLowerCase();if(target.charAt(0)!="_"||target=="_top"||target=="_parent"||targetLC=="_self"){var frame=(target&&target.charAt(0)!="_")?"parent."+target+".":"";if(frame&&parent==self)frame="";var targetPage=(this.targetPage)?this.targetPage:eval(frame+"document.location.href");if(targetPage.charAt(targetPage.length-1)=="/")targetPage+=this.homePage;var Div=(Links[i].firstChild.tagName)?Links[i].firstChild:Links[i].firstChild.nextSibling;if(Links[i].href==targetPage){if(Div.innerHTML.indexOf("menuArrow")==-1)Div.className="menuItemDisable";}
else if(Div.className=="menuItemDisable")Div.className="menuItemOff";}}}}
function setVis(hideMeID,vis){if(hideMeID&&winIE&&document.getElementById(hideMeID))document.getElementById(hideMeID).style.visibility=vis;}
function getElement(menuID){var Elem=null;if(document.getElementById(menuID))Elem=document.getElementById(menuID);else{var callFun=getElement.caller.toString().replace(/\n/g, "" );
callFun=callFun.split("(")[0];alert("ERROR: Menu.getElement unable to getElementById( \""+menuID+"\" )\n\nCALLER: "+callFun);}
return Elem;}}
function writeTN(fileName,caption,ImgDim,TnImg,tnStyle){var Name=fileName.split(".");Name[Name.length-2]=Name[Name.length-2]+"TN";var tnFileName=Name.join(".");if(!TnImg)TnImg=[tnFileName,100,100];document.write("<a href='images/"+fileName+"' onMouseover='self.status=Msg.enlarge; this.title=Msg.enlarge; return true;' onMouseout='self.status=\"\"; return true;' onClick='if( window.DW ) { if( window.SC ) clearTimeout( SC.addToCartTimer ); DW.createWindow( [ \""+caption+"\", \"imgSrc=images/"+fileName+"\" ], [0,"+ImgDim[0]+","+ImgDim[1]+"], this, event, 0, [ 4, 0, 0 ] ); return false; }'><img src='images/"+TnImg[0]+"' border='0' width='"+TnImg[1]+"' height='"+TnImg[2]+"' hspace='0' vspace='0' onMouseover='imgBorder( this, 1 ); return true;' onMouseout='imgBorder( this, 0 ); return true;' onAbort='this.src=this.src;' class='imgTN'"+((tnStyle)?" style='"+tnStyle+"'":"")+"></a>");}
function editContactUsDW(hide){DW.ContactUs[1]=(hide)?DW.ContactUs[1].replace(/<tr class='on'>/, "<tr class='off'>" ) : DW.ContactUs[ 1 ].replace(/<tr class='off'>/, "<tr class='on'>" );}
RequestCode=null,RequestData=null;function launchSS(Link,dataFile,playMusic){if(window.TN)TN.kill();window.playMusic=(playMusic)?true:false;if(Link){var titleOrig=Link.title;Link.style.cursor="wait";Link.title="Starting slide-show, please wait...";}
RequestCode=getAjaxRequest();if(RequestCode){RequestCode.onreadystatechange=function(){try{if(RequestCode.readyState==4){if(RequestCode.status==200||RequestCode.status==304){eval(RequestCode.responseText);RequestData=getAjaxRequest();RequestData.onreadystatechange=function(){try{if(RequestData.readyState==4){if(RequestData.status==200||RequestData.status==304){SS=new SlideShow();eval(RequestData.responseText);SS.init();SS.slideNum=(Settings.SS.randomStart&&!SS.userIsAdministrator)?Math.floor(Math.random()*Images.length):0;SS.nFirstSlide=SS.slideNum;var PhotoInfo=SS.getImgInfoSS(Images[SS.nFirstSlide][3],SS.nFirstSlide,0);if(Link){Link.style.cursor = ( /a/i.test(Link.tagName))?"pointer":"default";Link.title=titleOrig;Link.blur();}
DW.createWindow([PhotoInfo[0],"imgSrc="+Settings.folder+Images[SS.nFirstSlide][0]],[0,Images[SS.nFirstSlide][1],Images[SS.nFirstSlide][2]],null,null,0,[4,0,0],"SS");var TdCount=document.getElementById("dwTitleLeft");TdCount.innerHTML=PhotoInfo[1];if(fileName=="ss.aspx")document.getElementById("PleaseWait").innerHTML="<a href='javascript:history.back();' title='Back to the last page you were on...'>Go Back</a> &#149; <a href='javascript:void(0);' onClick='return launchSS( this, \""+dataFile+"\" );' title='Play the last slide-show again...'>Replay Slide-Show</a>";}
else
alert("AJAX error retrieving file \""+dataFile+"\" at function launchSS");}}
catch(Err){var eMsg="AJAX exception at function launchSS\n\n";for(var i in Err)eMsg+=i+": "+Err[i]+"\n";try{alert(eMsg);} catch(Err){}}}
RequestData.open("GET",dataFile+"?"+Math.random(),true);RequestData.send(null);}
else
alert("AJAX error retrieving file \"slide-show.js\" at function launchSS");}}
catch(Err){var eMsg="AJAX exception at function launchSS\n\n";for(var i in Err)eMsg+=i+": "+Err[i]+"\n";try{alert(eMsg);} catch(Err){}}}
if(live)RequestCode.open("GET","slide-show.js",true);else
RequestCode.open("GET","slide-show.js?"+Math.random(),true);RequestCode.send(null);}
else
alert("We're sorry, but it seems your browser is unable to make an AJAX (Asynchronous JavaScript And XML) request. As a result, you will not be able to play our slide-show.");return false;}
function DynamicWindow(transNum,transDur){this.ssTnskewIeX=2;this.ssTnskewIeY=6;this.skewIeX=2;this.skewIeY=2;this.Msg=new Array();this.Msg.enlarge="Click to enlarge";this.ContactUs=["Tropical Maui Weddings","<div><table align='center' border='0' cellspacing='0' cellpadding='0'><tr><td align='right'><table align='center' border='0' cellspacing='0' cellpadding='0'><tr><td align='right' valign='top'><div style='font-variant:small-caps; margin:0px 0px 0px 0px;' class='fSize11 fColorGray180 noWrap'>Owners:</div></td><td><div style='margin:0px 0px 0px 6px;'>"+DB.Contact.Owner+"</div></td></tr><tr><td align='right'><div style='font-variant:small-caps; margin:4px 0px 0px 0px;' class='fSize11 fColorGray180 noWrap'>Address:</div></td><td><div style='margin:6px 0px 0px 6px;'>"+DB.Contact.Address+",&nbsp;"+DB.Contact.CityStZip+"</div></td></tr><tr><td align='right'><div style='font-variant:small-caps; margin:4px 0px 0px 0px;' class='fSize11 fColorGray180 noWrap'>Toll Free:</div></td><td><div style='margin:6px 0px 0px 6px;'>"+DB.Contact.PhoneTollFree+"</div></td></tr><tr><td align='right'><div style='font-variant:small-caps; margin:4px 0px 0px 0px;' class='fSize11 fColorGray180 noWrap'>Direct:</div></td><td><div style='margin:6px 0px 0px 6px;'>"+DB.Contact.PhoneDirect+"</div></td></tr><tr><td align='right'><div style='font-variant:small-caps; margin:4px 0px 0px 0px;' class='fSize11 fColorGray180 noWrap'>Skype ID:</div></td><td><div style='margin:6px 0px 0px 6px;'>"+DB.Contact.SkypeID+"</div></td></tr><tr><td align='right'><div style='font-variant:small-caps; margin:4px 0px 0px 0px;' class='fSize11 fColorGray180 noWrap'>Maui Time:</div></td><td><div style='margin:6px 0px 0px 6px;'><span id='hawaii_time'></span></div></td></tr><tr><td align='right'><div style='font-variant:small-caps; margin:4px 0px 0px 0px;' class='fSize11 fColorGray180 noWrap'>E-Mail:</div></td><td><div style='margin:6px 0px 0px 6px;'>"+getEmailLink(DB.Contact.Email,"")+"</div></td></tr><tr class='on'><td align='right'><div style='font-variant:small-caps; margin:4px 0px 0px 0px;' class='fSize11 fColorGray180 noWrap'>Contact Form:</div></td><td><div style='margin:6px 0px 0px 6px;'><a href='maui-wedding-order.aspx' onClick='return setURL( this );' onMouseOver='this.title=Msg.checkOut; self.status=Msg.checkOut; return true;' onMouseOut='self.status=\"\"; return true;' target='_top'>Submit Cart or Inquiry</a></div></td></tr></table></td><td><img src='images/ContactUsPopUpPhoto.jpg' style='border:1px solid rgb( 60,84,0 ); width:200px; height:200px; float:left; margin:5px 0px 5px 20px;'></td></tr></table></div>"];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()+" 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 linkOn(imgName){document[imgName].src=eval(imgName+"On.src");}
function linkOff(imgName){document[imgName].src=eval(imgName+"Off.src");}
function sendMail(address,sub){document.location.href="mailto:"+address+((sub)?"?subject="+escape(sub):"");}
function PrinterFriendly(){this.dText=["Printer-Friendly","Revert to Web-Layout","Compacts page & maximizes it for your printer..","Reformat page back to default \"web\" layout..."];this.init=init;this.setView=setView;this.printPage=printPage;function init(){try{var PrnLink=document.getElementById("prnFrLink");PrnLink.innerHTML=this.dText[0];PrnLink.title=this.dText[2];}
catch(e){setTimeout("PF.init();",250);}}
function setView(TheLink,divArr){self.status="Setting styles of page elements, one moment please...";var makePF=(TheLink.innerHTML==this.dText[0]);for(member in divArr){var TheDiv=document.getElementById(divArr[member]);try{if(makePF)TheDiv.style.display="none";else TheDiv.style.display="block";}
catch(e){alert("ERROR: Div element \""+divArr[member]+"\" not found in method PF.setView");}}
if(makePF){with(document.body){if(PAGE_STYLE.bkgImg)style.backgroundImage="url( none )";if(PAGE_STYLE.bkgCol)style.backgroundColor="white";if(PAGE_STYLE.margin)style.margin="10px 10px 10px 10px";}
TheLink.innerHTML=this.dText[1];TheLink.title=this.dText[3];}
else{with(document.body){if(PAGE_STYLE.bkgImg)style.backgroundImage=PAGE_STYLE.bkgImg;if(PAGE_STYLE.bkgCol)style.backgroundColor=PAGE_STYLE.bkgCol;if(PAGE_STYLE.margin)style.margin=PAGE_STYLE.margin;}
TheLink.innerHTML=this.dText[0];TheLink.title=this.dText[2];}
if(TheLink.focus&&!SF){TheLink.focus();TheLink.blur();}
self.status=" ";}
function printPage(TheLink){if(window.print&&TheLink.innerHTML==this.dText[1])self.print();}}
function setButton(Button,command,buttonVal){switch(command){case "enable":Button.value=buttonVal;Button.disabled=false;break;case "disable":Button.value="Please Wait...";Button.disabled=true;break;}}
function writeCookMsg(){if(!navigator.cookieEnabled)document.write("<div style='margin:0px 0px 10px 0px;'><iframe src='cookies.html' width='700' height='80' frameborder='0' scrolling='yes' marginheight='0' marginwidth='0' align='top'></iframe></div>");}
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.ReportErrorsTo+"?subject="+escape(theHost+"; "+sub)+"&body="+escape(msg+" \n\nDIAGNOSTICS: This info may be used to help us troubleshoot technical problems"+diagnostics);}
function reportErr(sub,msg,msgType){function eMail(){document.location.href="mailto:"+DB.Contact.SendErrTo+"?subject="+escape(DB.Contact.Company+"; "+sub)+"&body="+escape(msg+" \n\nDIAGNOSTICS: This info may be used to help us troubleshoot technical problems"+diagnostics);}
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";}
diagnostics+=" \nTop URL: "+topURL;diagnostics+=" \nTime: "+Now.toLocaleString()+" (client's time)";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];}
switch(msgType){case 0:eMail();break;case 1:if(confirm(sub+"\n\n"+msg+"\n\nHelp us improve our site, click OK to report this problem to our Web Site Administrator..."))eMail();break;case 2:if(confirm("Help us improve our site: Report a technical web-site problem to the Web Master.\n\nNOTE: Your e-mail will be delivered to the Web Master. If you are trying to contact the web-site owner or staff, click Cancel and use the e-mail link and/or contact form found on our web site."))eMail();break}}
function calPopUp(url){PopUp.closeWin();var wid=900,hgt=(screen.height>=1050)?840:620;var avWid=screen.availWidth-10;var leftPos=parseInt((avWid-wid)/2);PopUp.Win=window.open(url,'twmWin',"toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width="+wid+",height="+hgt+",top=0,left="+leftPos);}
function PopUp(){this.winName="twmWin";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 FileWriter(){if(!GetCookie("userHasWritePrivleges"))return;this.help=help;this.restore=restore;this.init=init;this.checkContent=checkContent;this.enableResetBtn=enableResetBtn;this.resetUI=resetUI;this.reLoad=reLoad;this.logOff=logOff;this.init();function help(nType,Link,evt){function getHelpTxt(helpType){var htm="<dl><dt class='fw'>Reload & Cache</dt><dd class='fw'><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 and not the most recent version which you just published. Instead, you are viewing a \"ghost from the past.\"<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> to eliminate cache frustrations forever:<br>&nbsp;&nbsp;Just Published but don't see your changes? Then press Reload</dd><dt class='fw'>Publish "+((helpType=='htm')?"HTML":"Data")+"</dt><dd class='fw'>Press Publish-"+((helpType=='htm')?"HTML":"Data")+" 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=='htm')htm+=" Need help with your HTML skills? Try <a href='javascript:PopUp.openWin( \"http://www.w3schools.com/html/html_primary.asp\", 1 );' class='noWrap'>W3schools.com</a>";htm+="</dd><dt class='fw'>Reset</dt><dd class='fw'>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.</dd><dt class='fw'>Restore</dt><dd class='fw'>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=='htm'){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' 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{var BackUpData=document.AspForm.BackUpData;htm+="<input type='button' value='Restore To:' onMouseOver='self.status=this.title; return true;' onMouseOut='self.status=\"\"; return true;' onClick='return FW.restore( \"RestoreData\" );' 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' onChange='document.AspForm.BackUpData.selectedIndex=this.selectedIndex;'>";for(var i=0;i<BackUpData.length;i++)htm+="<option value='"+BackUpData[i].value+"'>"+BackUpData[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></dd></dl>";return htm;}
var DataSrc=(nType==1)?["Help with Publishing HTML",getHelpTxt('htm')]:["Help with Publishing Data",getHelpTxt('data')];if(window.DW)DW.createWindow(DataSrc,[1,550,250],Link,evt,6,[2,-275,-15]);}
function restore(aspJob){var Form=document.AspForm;var eMsg="No action taken: There are no restore dates...";if(aspJob=="RestoreHTM"&&Form.BackUpHTM[Form.BackUpHTM.selectedIndex].value==""||aspJob=="RestoreData"&&Form.BackUpData[Form.BackUpData.selectedIndex].value==""){alert(eMsg);return false;}
Form.ASP_Job.value=aspJob;Form.submit();}
function init(){try{document.getElementById("htmTitle").innerHTML="HTML CONTENT FOR THIS PAGE<div class='fSize9'>TIP: Use 2 HTML line-break tags create a new paragraph: &lt;br&gt;&lt;br&gt;</div>";document.getElementById("dataTitle").innerHTML="DATA FILE<div class='fSize9'>TIP: Need to use a double quote within a text string? Then \\\"escape\\\" it.</div>";var help="Learn about Reload, Publish, Reset & Restore";var justPub="Refresh page to override cached (old) version";document.getElementById("EditedHtml").title="Edit text then press \"Publish HTML\"";document.getElementById("helpHTM").title=help;document.getElementById("reloadHTM").title=justPub;document.getElementById("publishHTM").title="Write HTML to file";document.getElementById("resetHTM").title="Revert HTML back to original values since you last published";document.getElementById("EditedData").title="Edit data then press \"Publish Data\"";document.getElementById("helpData").title=help;document.getElementById("reloadData").title=justPub;document.getElementById("publishData").title="Write Data to file";document.getElementById("resetData").title="Revert Data back to original values since you last published";var htm="<div style='margin:10px 0px 0px 0px;'><a href='javascript:FW.logOff();' onMouseOver='self.status=this.title; return true;' onMouseOut='self.status=\"\"; return true;' title='Log off as administrator'>Log Out</a>&nbsp;&nbsp;&#149;&nbsp;&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'>File-Uploader</a></div>";document.getElementById("fwBottomRow").innerHTML=htm;}
catch(e){setTimeout("FW.init();",250);self.status="Initializing File Writer...";}}
function checkContent(htmForm,leftClick){var Form=document.AspForm;var EditedHtml=Form.EditedHtml;var EditedData=Form.EditedData;if(htmForm){if(leftClick&&EditedHtml.value==EditedHtml.defaultValue){alert("Edit the text then press Publish HTML...");EditedHtml.focus();return false;}
else{setButton(Form.ButPublishHTML,"disable","Publish HTML");Form.Which_Button.value="html";}}
else{if(leftClick&&EditedData.value==EditedData.defaultValue){alert("Edit the data then press Publish Data...");EditedData.focus();return false;}
else{try{eval(EditedData.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(Form.ButPublishData,"disable","Publish Data");Form.Which_Button.value="data";}}
Form.ASP_Job.value="File_Writer";Form.submit();return(leftClick)?true:false;}
function enableResetBtn(butID){document.getElementById(butID).disabled=false;}
function resetUI(TextBox,Button){eval("document.AspForm."+TextBox+".value = document.AspForm."+TextBox+".defaultValue;");Button.disabled=true;}
function reLoad(){document.location.reload(true);}
function logOff(){var url="";if(qStr){if(qStr.indexOf("user=")>=0){var userValOld=qStr.getVal("user");var qStrNew=qStr+"&end";qStrNew=qStrNew.split("user="+userValOld).join("user=logoff");url=fileName+"?"+qStrNew;}
else
url=fileName+"?"+qStr+"&user=logoff";}
else
url=fileName+"?user=logoff";DeleteCookie("userWithWritePrivileges");document.location.replace(url);}}
function virtualTour(Link,evt){var wid=900,hgt=500;var htm="<table align='center' border='0' cellspacing='0' cellpadding='0'><tr align='center'><td><object width='"+wid+"' height='"+hgt+"' classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' codebase='http://www.apple.com/qtactivex/qtplugin.cab' type='application/x-oleobject'><param name='src' value='"+Link.href+"' /><param name='autoplay' value='false' /><param name='controller' value='false' /><embed src='"+Link.href+"' autoplay='false' controller='false' pluginspage='http://www.apple.com/quicktime/download/' width='"+wid+"' height='"+hgt+"'></embed></object></td></tr><tr align='center'><td class='vtInstructions'>Drag your mouse on photo to pan</td></tr></table>";if(window.DW){DW.createWindow([Link.innerHTML,htm],[1,900,0],Link,evt,0,[4,0,0]);return false;}
else
return true;}