// Web software by DavidRegier.com
IE=false,AOL=false,SF=false,MZ=false;if(navigator.appName=="Microsoft Internet Explorer"){IE=true;if(navigator.userAgent.indexOf("AOL")>=0)AOL=true;}
else if(navigator.userAgent.indexOf("Safari")>=0)SF=true;else if(navigator.appName=="Netscape")MZ=true;winOS=(navigator.platform.substring(0,3)=="Win");winIE=(winOS&&IE);macOS=(navigator.platform.substring(0,3)=="Mac");macIE=(macOS&&IE);theHost=document.location.hostname;theHostLC=theHost.toLowerCase();local=(theHostLC.length==0||theHostLC=="127.0.0.1"||theHostLC=="localhost"),live=!local;qStr=unescape(document.location.search).substring(1);homePage="index.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(typeof window.DB=="object"){if(typeof window.DB.Administrators=="object"){for(var key in DB.Administrators){eMailOut="";eMailIn=DB.Administrators[key].replace(/\s{2}/g, "." );
eMailIn=eMailIn.replace(/\s{1}/g, "@" );
for(i=0;i<=eMailIn.length;i++)eMailOut=eMailIn.charAt(i)+eMailOut;DB.Administrators[key]=eMailOut;}}
if(typeof window.DB.Contact=="object"){eMailOut="";eMailIn=DB.Contact.EmailPrimary.replace(/\s{2}/g, "." );
eMailIn=eMailIn.replace(/\s{1}/g, "@" );
for(i=0;i<=eMailIn.length;i++)eMailOut=eMailIn.charAt(i)+eMailOut;DB.Contact.EmailPrimary=eMailOut;eMailOut="";eMailIn=DB.Contact.EmailWedding.replace(/\s{2}/g, "." );
eMailIn=eMailIn.replace(/\s{1}/g, "@" );
for(i=0;i<=eMailIn.length;i++)eMailOut=eMailIn.charAt(i)+eMailOut;DB.Contact.EmailWedding=eMailOut;eMailOut="";eMailIn=DB.Contact.PropertyForSale.replace(/\s{2}/g, "." );
eMailIn=eMailIn.replace(/\s{1}/g, "@" );
for(i=0;i<=eMailIn.length;i++)eMailOut=eMailIn.charAt(i)+eMailOut;DB.Contact.PropertyForSale=eMailOut;}
eMailOut="";eMailIn=DB.ReportErrorsTo.replace(/\s{2}/g, "." );
eMailIn=eMailIn.replace(/\s{1}/g, "@" );
for(i=0;i<=eMailIn.length;i++)eMailOut=eMailIn.charAt(i)+eMailOut;DB.ReportErrorsTo=eMailOut;}
document.write("<meta http-equiv='imagetoolbar' content='no'>");var dText=new Array();dText.forSale="Our property is now for sale! Get the facts & view photos of the grounds...";dText.garden="Visit our garden and see hundreds of plants from all tropical regions of the world";dText.grow="How to grow & care for plants from our nursery...";dText.ship="How we will ship your order, rates & our guarantee...";dText.inventory="An incomplete yet growing list of plants now growing in our garden";dText.discount="How to qualify for discounts & wholesale purchases";dText.secure="Need to make a payment? Use our secure payment form";dText.ss="You'll love our garden slide-show, sit back, relax, turn on the music and enjoy";dText.plants="See our HUGE revolving inventory of Orchids & Tropical Plants for sale";dText.contest="Try and guess this plant name and we'll send you a FREE Blooming size orchid";dText.blooming="View some stunning Tropical Exotics blooming in our garden this month";dText.viewCart="View and edit items in your shopping cart";dText.submitCart="Submit your completed order at our secure check-out stand";dText.help="About shipping (rates, method, guarantee) & Discounts";dText.newItem="This item may be new since your last visit";dText.home="Go back to our homepage...";dText.weddings="We have Victorian Gazebo, Koi Pond & even a Small Stage!";dText.cattleya="Cattleyas have long been called the Queen-of-Orchids for their large flower size & wide range of colors";dText.dendrobium="Dendrobiums come in all shapes & sizes, most bloom year-round w/ multiple sprays of long lasting flowers";dText.phalaenopsis="Phals are one of the more common orchids available today because of their ease to grow & flower";dText.vanda_aliance="Vandas come for SE Asia and are very tropical - spectacular flower displays!";dText.oncidium_aliance="Oncidiums are very popular because they make excellent cut flowers and potted plants";dText.other_genra="These Orchids do not quite fit in any other group - just as interesting and EZ to grow";dText.palms="We have over 200 species of palms growing and new ones being added all the time";dText.other_than_orchids="Gingers, Heliconias, Anthuriums, Lava Rock Bonsais and others...";dText.orchid_of_month="Sign up & each month we will send you an orchid that is ready to bloom!";dText.special_of_month="Specials, Plant Collections & much more...";dText.ti="We have Ti Leaves & Leis for that special Anniversary, Birthday, Wedding, Blessing...";dText.enlarge="View Photo";function PreLoader(){this.Files=["plants.aspx","cattleya.aspx","dendrobium.aspx","phalaenopsis.aspx","vanda_aliance.aspx","oncidium_aliance.aspx","other_genra.aspx","palms.aspx","other_than_orchids.aspx","orchid_of_month.aspx","special_of_month.aspx","ti.aspx","images/tiOnBamboo.jpg","cart.aspx","in_bloom.aspx","ss.aspx?db=ss-main.js","tgm2.js","ss-main.js","images/fuji~area.jpg","contest.aspx","garden.aspx","images/vanda_orchid.jpg","images/lion.jpg","images/pi.jpg","images/xantho.jpg","images/pigaf.jpg","images/alikatahi.jpg","weddings.aspx","images/Gaz99.jpg","images/gazebo4.jpg","inventory.aspx","help.aspx","growing-instructions.aspx","for-sale.aspx","images/9TNB.jpg","images/3TNB.jpg","images/2TNB.jpg","images/rassTNB.jpg","images/8TNB.jpg","images/4TNB.jpg","images/6TNB.jpg","images/1TNB.jpg","images/7TNB.jpg","images/10TNB.jpg","images/angelTNB.jpg","images/5TNB.jpg","images/9.jpg","images/3.jpg","images/2.jpg","images/rass.jpg","images/8.jpg","images/4.jpg","images/6.jpg","images/1.jpg","images/7.jpg","images/10.jpg","images/angel.jpg","images/5.jpg",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 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 getValue(strToSearch,eqDelim,fieldDelim){if(!eqDelim)eqDelim="=";if(!fieldDelim)fieldDelim="&";var value=null;var key=this.toString();var KeyVals=strToSearch.split(fieldDelim);for(member in KeyVals){var ThisPair=KeyVals[member].split(eqDelim);if(key==ThisPair[0]){value=ThisPair[1];break;}}
if(typeof value=="undefined")value="";return value;}
String.prototype.getValue=getValue;function trim(trimStr,lTrim,rTrim){trimStr=(trimStr)?trimStr:" ";lTrim=(typeof lTrim=="undefined")?1:lTrim;rTrim=(typeof rTrim=="undefined")?1:rTrim;var txt=this.toString();var trimStrLen=trimStr.length;while(lTrim&&txt.substring(0,trimStrLen)==trimStr){txt=txt.substring(trimStrLen);}
while(rTrim&&txt.substring(txt.length-trimStrLen,txt.length)==trimStr){txt=txt.substring(0,txt.length-trimStrLen);}
return txt;}
String.prototype.trim=trim;function writeThankYou(){if(qStr.indexOf("client=")==0){var client="client".getValue(qStr);client=(client)?client.split(" ")[0]:client;gCheckout=true;var htm="<div style='margin:20px 0px 30px 0px;'><table align='center' border=0 cellpadding=0 cellspacing=0><tr><td width=65 nowrap>&nbsp;<br></td><td nowrap class='fSize14'><div class='fColorRed bold'>Mahalo "+client+", thanks for your order!</div>&nbsp; &nbsp; You should receive an \"auto-generated\" copy by e-mail shortly...</td></tr></table></div>";document.write(htm);}}
function writeNewPlants(){client="";tgmCook=GetCookie("tgmCook");if(tgmCook){SetCookie("tgmCook",tgmCook,expDate365,"/");client="Purchaser".getValue(tgmCook);}
htm="";if(client&&!gCheckout&&NEW_PLANTS.length-1>0){client=client.split(" ")[0];htm+="<table align='center' border='0' cellspacing='0' cellpadding='0'><TR><TD ALIGN='left' class='fFamilyStaccato fSize16 fColorDkGrn'><div class='bigChar150'>Aloha "+client+"...</div></TD></TR><TR><TD ALIGN='left' class='italic'>&nbsp;&nbsp;&nbsp;&#151; Intersted in seeing a little of what's new in our nursery?</TD></TR><TR><TD ALIGN='left' width=460><ul>";for(var i=0;i<NEW_PLANTS.length-1;i++)htm+="<li><A HREF='"+NEW_PLANTS[i][0]+"' onMouseover='self.status=dText.newItem;return true' onMouseout='self.status=\"\";return true'>"+NEW_PLANTS[i][1]+"</A>: "+NEW_PLANTS[i][2]+"</li>";htm+="</ul></TD></TR><TR><TD ALIGN='left' class='italic'>&nbsp;&nbsp;&nbsp;&#151; <A HREF='mailto:"+DB.Contact.EmailPrimary+"'>Send us an e-mail</A></TD></TR></TABLE><BR>";document.write(htm);}}
function randompick(){return randompick.arguments[Math.floor(Math.random()*randompick.arguments.length)];}
function getTransition(transNum,duration){var trans="";if(winIE){var d=duration;if(parseFloat(navigator.userAgent.split("MSIE")[1])>=5.5){var thisTrans=(transNum==1)?Math.floor(Math.random()*17)+2:transNum;switch(thisTrans){case 2:trans="Fade(duration="+d+",overlap=1)";break;case 3:trans="Blinds(duration="+d+",bands="+randompick(2,4,6,8)+",direction="+randompick('up','down','right','left')+")";break;case 4:trans="CheckerBoard(duration="+d+",squaresX="+randompick(2,4,8,12)+",squaresY="+randompick(2,4,8,12)+",direction="+randompick('up','down','right','left')+")";break;case 5:trans="Barn(duration="+d+",motion="+randompick('in','out')+",orientation=",randompick('horizontal','vertical')+")";break;case 6:trans="GradientWipe(duration="+d+",gradientSize="+randompick(0,0.1,0.3,0.5,0.7,0.9,1)+",wipeStyle="+randompick(0,1)+",motion="+randompick('forward','reverse')+")";break;case 7:trans="Inset(duration="+d+")";break;case 8:trans="Iris(duration="+d+",irisStyle="+randompick('DIAMOND','CIRCLE','CROSS','PLUS','SQUARE','STAR')+",motion="+randompick('in','out')+")";break;case 9:trans="RadialWipe(duration="+d+",wipeStyle="+randompick('CLOCK','WEDGE','RADIAL')+")";break;case 10:trans="RandomBars(duration="+d+",orientation="+randompick('horizontal','vertical')+")";break;case 11:trans="RandomBars(duration="+d+")";break;case 12:trans="Slide(duration="+d+",pushStyle="+randompick('HIDE','PUSH','SWAP')+",bands="+randompick(1,2,3,4,5,6,7)+")";break;case 13:trans="Spiral(duration="+d+",gridSizeX="+randompick(8,16,32,64)+",gridSizeY="+randompick(8,16,32,64)+")";break;case 14:trans="Stretch(duration="+d+",stretchStyle="+randompick('HIDE','PUSH','SPIN')+")";break;case 15:trans="Strips(duration="+d+",motion="+randompick('leftdown','leftup','rightdown','rightup')+")";break;case 16:trans="Wheel(duration="+d+",spokes="+randompick(2,4,10,16,20)+")";break;case 17:trans="Zigzag(duration="+d+",gridSizeX="+randompick(8,16,32,64)+",gridSizeY="+randompick(8,16,32,64)+")";break;case 18:trans="RandomDissolve(duration="+d+")";break;default:alert("SWITCH/CASE ERROR: Case caught by default handler in \"getTransition\"");}
trans="progid:DXImageTransform.Microsoft."+trans;}
else{switch(transNum){case 2:trans="blendTrans(duration="+d+")";break;default:trans="revealTrans(duration="+d+",transition="+Math.floor(Math.random()*23)+")";}}}
return trans;}
function getRGB(abbrev){var rgb=abbrev;switch(abbrev){case "b":rgb="0,0,0";break;case "w":rgb="255,255,255";break;}
var reRGB=/^\d{1,3},\d{1,3},\d{1,3}$/,badRGB=false;if( !reRGB.test(rgb))badRGB=true;else{var Channels=rgb.split(",");for(var i=0;i<3;i++)if(parseInt(Channels[i])>255)badRGB=true;}
if(badRGB){reportError("Errant Data","Bad RGB value \""+rgb+"\"");rgb="255,255,255";}
return rgb;}
function getOpacity(dissolveSF,dissolveMZ){var opac="";if(winIE)opac="visibility:hidden;";else if(MZ&&dissolveMZ)opac="opacity:0;"
else if(SF&&dissolveSF)opac="opacity:0;"
return opac;}
function startFade(FadeInPhoto,transNum,transDur,transDelay,dissolveSF,dissolveMZ){window.FadeInPhoto=FadeInPhoto;window.transNum=transNum;window.transDur=transDur;window.transDelay=transDelay;if(winIE)setTimeout("fadeInDirectX()",transDelay);else if((MZ&&dissolveMZ)||(SF&&dissolveSF)){FadeInPhoto.onload=function(){};(transDelay)?setTimeout("fadeIn( FadeInPhoto )",transDelay):fadeIn(FadeInPhoto);}
else{if(SF)FadeInPhoto.style.opacity=1.0;else FadeInPhoto.style.visibility="visible";}}
function fadeInDirectX(){try{FadeInPhoto.style.filter=getTransition(transNum,transDur);FadeInPhoto.filters(0).apply();FadeInPhoto.style.visibility="visible";FadeInPhoto.filters(0).play();}
catch(Err){if(local){var eMsg="Exception Caught in fadeInDirectX function:\n\n";for(var i in Err)eMsg+=i+": "+Err[i]+"\n";alert(eMsg);}
FadeInPhoto.style.visibility="visible";}}
GuiObj=null,fadeOpacity=0,fadeOpacityTimer=0;function fadeIn(GuiObj){if(MZ)GuiObj.style.opacity=fadeOpacity;else GuiObj.style.opacity=fadeOpacity;this.fadeOpacity+=.05;if(fadeOpacity<1){window.GuiObj=GuiObj;fadeOpacityTimer=setTimeout("fadeIn( GuiObj )",40);}
else{if(MZ)GuiObj.style.opacity=0.9999;else GuiObj.style.opacity=0.9999;clearTimeout(fadeOpacityTimer);GuiObj=null;fadeOpacity=0;fadeOpacityTimer=0;}}
function dissolveDirectX(OldPhoto,newPhotoSrc,borderWid,borderCol,transNum,transDur){try{OldPhoto.style.filter=getTransition(transNum,transDur);OldPhoto.filters(0).apply();OldPhoto.src=newPhotoSrc;if(borderWid)OldPhoto.style.borderColor="rgb( "+getRGB(borderCol)+" )";OldPhoto.filters(0).play();}
catch(Err){if(local){var eMsg="Exception Caught in dissolveDirectX function:\n\n";for(var i in Err)eMsg+=i+": "+Err[i]+"\n";alert(eMsg);}
OldPhoto.src=newPhotoSrc;if(borderWid)OldPhoto.style.borderColor="rgb( "+getRGB(borderCol)+" )";}}
function directX(OldPhoto,newPhotoSrc,borderWid,borderCol,transNum,transDur){try{OldPhoto.parentNode.style.filter=getTransition(transNum,transDur);OldPhoto.parentNode.filters(0).apply();OldPhoto.src=newPhotoSrc;if(borderWid)OldPhoto.style.borderColor="rgb( "+getRGB(borderCol)+" )";OldPhoto.parentNode.filters(0).play();}
catch(Err){if(local){var eMsg="Exception Caught in directX function:\n\n";for(var i in Err)eMsg+=i+": "+Err[i]+"\n";alert(eMsg);}
OldPhoto.src=newPhotoSrc;if(borderWid)OldPhoto.style.borderColor="rgb( "+getRGB(borderCol)+" )";}}
function initImagesArr(){try{Images.length=Images.length-1;}
catch(Err){reportError("Image Data Error","ERROR: Images array cannot be initialized because:\n 1) Data file \""+window.dataFile+"\" is non-existent; OR\n 2) The data it contains is malformed (bad syntax)");}}
fileNameErr=false;function checkImgName(fileName){var rePattern=/\s+/g;if( !fileNameErr && rePattern.test(fileName)){fileNameErr=true;reportError("Image File Name Error","ERROR: An image file name \""+fileName+"\" contains forbidden white-space characters.");}}
ImgReal=null;checkDimTimer=0;function checkDim(imgRealSrc,widDB,hgtDB){if(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";reportError("Image Dimension Error",eMsg);}
ImgReal=null;}
else{clearTimeout(checkDimTimer);eval("checkDimTimer = setTimeout( 'checkDim( \""+imgRealSrc+"\", "+widDB+", "+hgtDB+" )', 250 );");}}}
function showReferrer(){self.status="REFERRER: "+GetCookie("tgmReferrer");}
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 expDate30=new Date();expDate365.setTime(expDate365.getTime()+(24*60*60*365*1000));expDate30.setTime(expDate30.getTime()+(24*60*60*30*1000));var expDate12Mon=new Date();expDate12Mon.setTime(expDate12Mon.getTime()+(24*60*60*365*1000));refPage="";try{docRef=document.referrer.toLowerCase()} catch(e){docRef="";};if(qStr&&qStr.indexOf("ref=")==0)refPage=qStr.split("ref=")[1];else if(docRef&&docRef.indexOf("tropicalgardensofmaui.com")==-1&&docRef.indexOf("tropicalgardensofmaui.net")==-1)refPage=document.referrer;if(refPage&&!GetCookie("tgmReferrer"))SetCookie("tgmReferrer",refPage,null,"/");function largePic(cap,wid,hgt,Link,evt){if(window.DW){DW.createWindow([cap,"imgSrc="+Link.href],[0,wid,hgt],Link,evt);return false;}
else
return true;}
function DynamicMenu(FormElements){this.Links=new Array();this.Links["plants"]=[["Ti Leaf Foliage & Leis",getURL("ti.aspx"),dText.ti],["Cattleya Orchids",getURL("cattleya.aspx"),dText.cattleya],["Dendrobium Orchids",getURL("dendrobium.aspx"),dText.dendrobium],["Phalaenopsis Orchids",getURL("phalaenopsis.aspx"),dText.phalaenopsis],["Vanda Alliance Orchids",getURL("vanda_aliance.aspx"),dText.vanda_aliance],["Oncidium Alliance Orchids",getURL("oncidium_aliance.aspx"),dText.oncidium_aliance],["Other Genra Orchids",getURL("other_genra.aspx"),dText.other_genra],["Palms",getURL("palms.aspx"),dText.palms],["Other Exotic Plants",getURL("other_than_orchids.aspx"),dText.other_than_orchids],["Blooming Orchid of Month Club",getURL("orchid_of_month.aspx"),dText.orchid_of_month],["Specials & More...",getURL("special_of_month.aspx"),dText.special_of_month],["",[10,-10],[0,0],[0,0],[0,3],[0,0]]];this.Links["cart"]=[["Submit Order",getURL("checkout.aspx"),dText.submitCart,"return SC.getShipTaxStatus( this, event, false );"],["View & Edit Order",getURL("cart.aspx"),dText.viewCart,"return SC.getShipTaxStatus( this, event, false );"],["",[10,-10],[0,0],[0,0],[0,0],[0,0]]];this.Links["help"]=[["Discounts & Wholesale Purchases",getURL("help.aspx#discounts"),dText.discount],["Make a Payment",getURL("cc.aspx"),dText.secure],["Growing & Care Instructions",getURL("growing-instructions.aspx"),dText.grow],["About Shipping",getURL("help.aspx#ship"),dText.ship],["Give a Gift",getURL("gift.aspx"),""],["",[10,-10],[0,0],[0,0],[0,0],[0,0]]];this.Links["garden"]=[["Garden Tour",getURL("garden-tour.aspx"),""],["Garden Inventory",getURL("inventory.aspx"),dText.inventory],["Garden Weddings",getURL("weddings.aspx"),dText.weddings],["About the Garden",getURL("garden.aspx"),dText.garden],["",[10,-10],[0,0],[0,0],[0,0],[0,0]]];this.formElements=(FormElements)?FormElements:null;this.Menu=null;this.OldLink=null;this.timer=0;this.start=start;this.hide=hide;this.killOthers=killOthers;this.keepInWin=keepInWin;this.show=show;this.setElemVis=setElemVis;this.resetTimer=resetTimer;function start(Link,theEvent,arrName,menuPosition){killOthers(Link);show(Link,theEvent,arrName,menuPosition);}
function hide(delay){if(!arguments.length)delay=1000;if(DM.timer==0&&DM.Menu){DM.timer=setTimeout("DM.Menu.innerHTML = '';DM.Menu = null;DM.timer = 0;DM.setElemVis( '', 'visible' );",delay);}}
function killOthers(NewLink){resetTimer();if(DM.Menu&&DM.OldLink&&DM.OldLink!=NewLink){DM.Menu.innerHTML='';DM.Menu=null;DM.timer=0;DM.OldLink=null;DM.setElemVis("","visible");}}
function keepInWin(topEdge,leftEdge,IeBody){var bodyHgt=(IE)?IeBody.clientHeight:window.innerHeight;var bodyWid=(IE)?IeBody.clientWidth:window.innerWidth;var menuHgt=DM.Menu.offsetHeight;var yOffset=(IE)?IeBody.scrollTop:window.pageYOffset;var vScreenPos=topEdge-yOffset;var vSkew=bodyHgt-vScreenPos;if(vSkew<menuHgt+10)topEdge-=menuHgt-vSkew+10;else if(vScreenPos<10)topEdge=10+yOffset;var menuWid=DM.Menu.offsetWidth;var xOffset=(IE)?IeBody.scrollLeft:window.pageXOffset;var hScreenPos=leftEdge-xOffset;var hSkew=bodyWid-hScreenPos;if(hSkew<menuWid+10)leftEdge-=menuWid-hSkew+10;else if(hScreenPos<10)leftEdge=10+xOffset;return[topEdge,leftEdge];}
function show(Link,theEvent,arrName,menuPosition){if(!DM.Menu){DM.setElemVis(arrName,"hidden");var e=(window.event)?event:theEvent;var nLinks=DM.Links[arrName].length-1;var menuTitle=DM.Links[arrName][nLinks][0];var table="<table align='left' border='0' cellspacing='0' cellpadding='0' class='dmBorder' onMouseover='DM.resetTimer();' onMouseout='DM.hide( 0 );'>";for(var i=0;i<nLinks;i++){if(menuTitle&&i==0){table+="<tr><td nowrap class='dmTitleBg'><div style='width:100%;'><div class='dmTitleFg'>"+menuTitle+"</div></div></td></tr>";}
table+="<tr align='left' valign='middle'>";var content="link";if(DM.Links[arrName][i][1]=="-")content="separator";else if(DM.Links[arrName][i][1]=="text")content="text";var target=(DM.Links[arrName][i][4])?DM.Links[arrName][i][4]:"_self";var domTarget=(target.indexOf("_")==0)?target.substring(1,target.length):"parent."+target;var thePage=eval(domTarget+".document.location.href");var newPage=eval("!"+domTarget+".document.location.hash");var pageShowing=((thePage.substring(thePage.length-DM.Links[arrName][i][1].length,thePage.length)==DM.Links[arrName][i][1]&&newPage)||window.ImgConfig&&ImgConfig.playMusic&&DM.pageShowing==DM.Links[arrName][i][1]);var selfStatusCode="";if(DM.Links[arrName][i][2]&&!pageShowing)selfStatusCode="self.status = \""+DM.Links[arrName][i][2]+"\"; ";var mouseOutCode=(DM.Links[arrName][i][2])?"self.status = \"\"; ":"";var cursorType=(pageShowing)?"default":(IE)?"hand":"pointer";var onClickMore=(DM.Links[arrName][i][3])?DM.Links[arrName][i][3]:" return true;";if(content=="link"){table+="<td nowrap class='dmMenuBgOff' onMouseOver='"+selfStatusCode+"firstChild.firstChild.className=\""+((pageShowing)?"dmMenuFgDisable":"dmMenuFgOn")+"\"; className=\""+((pageShowing)?"dmMenuBgOff":"dmMenuBgOn")+"\"; return true;' onMouseOut='"+mouseOutCode+"firstChild.firstChild.className=\""+((pageShowing)?"dmMenuFgDisable":"dmMenuFgOff")+"\";  className=\"dmMenuBgOff\"; return true;'><a href='"+((pageShowing)?"javascript:void(0);":DM.Links[arrName][i][1])+"' TARGET='"+target+"' style='text-decoration:none;' onClick='if( href != \"javascript:void(0);\" ) { DM.hide( 0 ); DM.pageShowing = this.href; "+onClickMore+" } else return false;' onMouseOver='style.cursor = \""+cursorType+"\"; return true;'><div style='width:100%;' class='"+((pageShowing)?"dmMenuFgDisable":"dmMenuFgOff")+"'>"+DM.Links[arrName][i][0]+"</div></a></td>";}
else if(content=="separator"){table+="<td align='center' class='dmMenuBgOff'><table border='0' cellspacing='0' cellpadding='0' style='width:100%; margin:2px 0px 2px 0px;'><tr><td style='height:1px; width:100%;' class='dmSepCol'></td></tr></table></td>";}
else{table+="<td align='center' class='dmMenuBgOff'><div class='dmTxt' onClick='self.status=\""+DM.Links[arrName][i][2]+"\"; return true;' onMouseout='self.status=\"\"; return true;'>"+DM.Links[arrName][i][0]+"</div></td>";}
table+="</tr>";}
table+="</table><br>";DM.Menu=document.createElement("DIV");document.body.appendChild(DM.Menu);DM.OldLink=Link;DM.Menu.style.zIndex=2000;DM.Menu.style.visibility="hidden";DM.Menu.style.position="absolute";DM.Menu.style.top=(screen.height*-1)+"px";DM.Menu.style.left=(screen.width*-1)+"px";DM.Menu.innerHTML=table;var ieCSS=(IE&&document.compatMode)?document.compatMode=="CSS1Compat":false;var IeBody=null;if(IE)IeBody=(ieCSS)?document.documentElement:document.body;var useLnkPos=(winIE||MZ);var useEvtPos=!useLnkPos;var x=0,y=0;if(useEvtPos||menuPosition=="relative"){x=(IE)?e.clientX+IeBody.scrollLeft:e.pageX;y=(IE)?e.clientY+IeBody.scrollTop:e.pageY;}
else{var ThisLink=Link;while(ThisLink){y+=ThisLink.offsetTop;x+=ThisLink.offsetLeft;ThisLink=ThisLink.offsetParent;}}
switch(menuPosition){case "relative":var topEdge=(IE)?e.clientY+IeBody.scrollTop:e.pageY;topEdge+=DM.Links[arrName][nLinks][1][1];var leftEdge=(IE)?e.clientX+IeBody.scrollLeft:e.pageX;leftEdge+=DM.Links[arrName][nLinks][1][0];break;case "above":var skewY=(useEvtPos)?parseInt(Link.offsetHeight/2):0;var skewX=(useEvtPos)?parseInt(DM.Menu.offsetWidth/2):0;var topEdge=y-skewY-DM.Menu.offsetHeight+DM.Links[arrName][nLinks][2][1];var leftEdge=x-skewX+DM.Links[arrName][nLinks][2][0];break;case "right":var skewX=(useEvtPos)?Link.offsetWidth:0;var topEdge=y+DM.Links[arrName][nLinks][3][1];var leftEdge=x-skewX+Link.offsetWidth+DM.Links[arrName][nLinks][3][0];break;case "below":var skewY=(useEvtPos)?parseInt(Link.offsetHeight/2):0;var skewX=(useEvtPos)?parseInt(DM.Menu.offsetWidth/2):0;var topEdge=y-skewY+Link.offsetHeight+DM.Links[arrName][nLinks][4][1];var leftEdge=x-skewX+DM.Links[arrName][nLinks][4][0];break;case "left":var topEdge=y+DM.Links[arrName][nLinks][5][1];var leftEdge=x-DM.Menu.offsetWidth+DM.Links[arrName][nLinks][5][0];break;default:alert("SWITCH/CASE ERROR: menuPosition \""+menuPosition+"\" is invalid.");}
var MenuPos=DM.keepInWin(topEdge,leftEdge,IeBody);DM.Menu.style.top=MenuPos[0]+"px";DM.Menu.style.left=MenuPos[1]+"px";DM.Menu.style.visibility="visible";}}
function setElemVis(arrName,vis){if(winIE&&DM.formElements){for(member in DM.formElements){if(vis=="visible"||arrName==DM.formElements[member][0]){if(document.getElementById(DM.formElements[member][1]))document.getElementById(DM.formElements[member][1]).style.visibility=vis;}}}}
function resetTimer(){clearTimeout(DM.timer);DM.timer=0;}}
function loadPopUp(PullDown){if(PullDown.selectedIndex){PopUp.openWin(PullDown[PullDown.selectedIndex].value,1);PullDown.selectedIndex=0;}}
function launchSS(db){PopUp.openWin("ss.aspx?db="+db,2);PopUp.linkToWin();}
function getPage(PullDown){if(PullDown.selectedIndex){var page=PullDown[PullDown.selectedIndex].value;document.location.href=getURL(page);PullDown.selectedIndex=0;}}
function initPhotoLinks(){try{var Link=document.getElementsByTagName("a");for(var i=0;i<Link.length;i++){if(Link[i].href.indexOf("images/")>=0){Link[i].onmouseover=function(event){this.title=dText.enlarge;self.status=dText.enlarge;return true;}
Link[i].onmouseout=function(event){self.status="";return true;}}}
self.status="";}
catch(Err){setTimeout("initPhotoLinks();",250);self.status="Initializing at initPhotoLinks()...";}}
function enlargement(wid,hgt,Link,evt){var title="Tropical Gardens of Maui";if(Link.firstChild.alt&&Link.firstChild.alt.length)title=Link.firstChild.alt;DW.createWindow([title,"imgSrc="+Link.href],[0,wid,hgt],Link,evt,0,[4,0,0]);return false;}
function showPic(wid,hgt,Link,evt,title){if(window.DW){if(typeof title=="string"&&title.length>0)title=(Link.innerHTML.charAt(0)=="<")?title:Link.innerHTML+"<br><div style='font-weight:normal;'>"+title+"</div>";else
title=Link.innerHTML;DW.createWindow([title,"imgSrc="+Link.href],[0,wid,hgt],Link,evt,0,[1,10,10]);return false;}
else
return true;}
function DynamicWindow(transNum,transDur){this.dissolveMZ=1;this.dissolveSF=1;this.gDisableContextImgMenu=true;this.transNum=(transNum)?transNum:2;this.transDur=(transDur)?transDur:0.8;this.dWinOffsetX=0;this.dWinOffsetY=0;this.Window=null;this.overTitleBar=false;this.Photo=null;this.disableContextImgMenu=false;this.createWindow=createWindow;this.showImg=showImg;this.keepInWin=keepInWin;this.getClickPosition=getClickPosition;this.getIeBody=getIeBody;this.getData=getData;this.mouseDown=mouseDown;this.mouseMove=mouseMove;this.removeWin=removeWin;this.mouseUp=mouseUp;this.dissolve=dissolve;document.onmousedown=this.mouseDown;document.onmousemove=this.mouseMove;document.onmouseup=this.mouseUp;function createWindow(dataSrc,WinDim,TheLink,theEvent,bodyMargin,RequestedPos,disableContextImgMenu){if(TheLink)TheLink.blur();if(!bodyMargin)bodyMargin=0;this.disableContextImgMenu=(typeof disableContextImgMenu=="boolean")?disableContextImgMenu:this.gDisableContextImgMenu;var Data=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 mzDissolve=(MZ&&this.dissolveMZ&&this.dissolve(winWid,winHgt));var sfDissolve=(SF&&this.dissolveSF);var body="<img src='"+body.split("imgSrc=")[1]+"' width='"+winWid+"' height='"+winHgt+"' border='0' hspace='0' vspace='0' galleryimg='no' style='"+getOpacity(sfDissolve,mzDissolve)+"' onload='DW.showImg( this );' onAbort='this.src=this.src;'"+">";this.title=title;var titleLC=title.toLowerCase(),lineBrks="";var nLinesInTitle=titleLC.split("<br>").length;for(var i=0;i<nLinesInTitle;i++)lineBrks+="<br>";title="Loading Image..."+lineBrks;}
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)?(winWid+2*parseInt(NewWindow.currentStyle["borderWidth"]))+"px":winWid+"px";NewWindow.style.top=(screen.height*-1)+"px";NewWindow.style.left=(screen.width*-1)+"px";NewWindow.style.zIndex=10000;var myWindow="<div class='dwTitleRow' id='dwTitleRowID'><table align='center' border='0' cellspacing='0' cellpadding='0'><tr><td class='dwTitle' style='width:100%; text-align:center;' onmouseover='DW.overTitleBar=true;' onmouseout='DW.overTitleBar=false;' id='dwTitleTd1ID'><div id='dwTitleBarID'>"+title+"</div></td><td valign='top' id='dwTitleTd2ID'><a href='javascript:DW.removeWin();' onMouseOver='self.status=this.title; return true;' onMouseOut='self.status=\"\"; return true;' onClick='this.blur(); return true;' title='Close' class='dwX'>&times;</a></td></tr></table></div><div class='"+((showImg)?"dwBodyParentImg":"dwBodyParent")+"' style='width:100%;"+bodyHgtStyle+scrollStyle+"'><div class='dwBody' id='dwBodyID' style='margin:"+bodyMargin+"px;'>"+body+"</div></div>";NewWindow.innerHTML=myWindow;var xPos,yPos;if(clickPos||aboveClkPos){var ClickPos=getClickPosition(theEvent);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 IeBody,scrollX,scrollY,bodyWid,bodyHgt;if(IE){IeBody=getIeBody();scrollX=IeBody.scrollLeft;scrollY=IeBody.scrollTop;bodyWid=IeBody.clientWidth;bodyHgt=IeBody.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);}
var NewWindowPos=keepInWin(NewWindow,xPos,yPos);xPos=Math.round(NewWindowPos[0]);yPos=Math.round(NewWindowPos[1]);NewWindow.style.left=xPos+"px";NewWindow.style.top=yPos+"px";NewWindow.style.visibility="visible";}
function showImg(Photo){Photo.onclick=DW.removeWin;Photo.oncontextmenu=function(){if(DW.disableContextImgMenu)return false;};Photo.onmouseover=function(){Photo.title="Click to close";self.status=Photo.title;Photo.style.cursor=(IE)?"hand":"pointer";return true;};Photo.onmouseout=function(){self.status="";return true;};try{checkDim(Photo.src,Photo.width,Photo.height);document.getElementById("dwTitleBarID").innerHTML=this.title;var mzDissolve=(MZ&&this.dissolveMZ&&this.dissolve(Photo.width,Photo.height));var sfDissolve=(SF&&this.dissolveSF);startFade(Photo,this.transNum,this.transDur,0,sfDissolve,mzDissolve);}
catch(Err){self.status="Exception thrown at method DW.showImg...";}}
function keepInWin(NewWindow,leftEdge,topEdge){if(IE)var IeBody=getIeBody();var bodyHgt=(IE)?IeBody.clientHeight:window.innerHeight;var bodyWid=(IE)?IeBody.clientWidth:window.innerWidth;var winHgt=NewWindow.offsetHeight;var yOffset=(IE)?IeBody.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)?IeBody.scrollLeft:window.pageXOffset;var hScreenPos=leftEdge-xOffset;var hSkew=bodyWid-hScreenPos;if(hSkew<winWid+10){leftEdge-=winWid-hSkew+10;if(!IE&&document.body.scrollHeight>bodyHgt)leftEdge-=15;}
else if(hScreenPos<10)leftEdge=10+xOffset;return[leftEdge,topEdge];}
function getIeBody(){var ieCSS=(document.compatMode)?document.compatMode=="CSS1Compat":false;return(ieCSS)?document.documentElement:document.body;}
function getClickPosition(theEvent){try{if(IE)IeBody=getIeBody();var x=(IE)?event.clientX+IeBody.scrollLeft:theEvent.pageX;var y=(IE)?event.clientY+IeBody.scrollTop:theEvent.pageY;}
catch(err){var x=0;var y=0;}
return[x,y];}
function getData(dataSrc,TheLink){if(dataSrc=="nextSibling"){if(eval("typeof this.LastSrc")=="object")eval("this.LastSrc.innerHTML = this.lastData");try{var DataSource=(TheLink.nextSibling.innerHTML)?TheLink.nextSibling:TheLink.nextSibling.nextSibling;}
catch(err){alert("EXCEPTION: Data source not found");return false;}
try{var Title=(DataSource.firstChild.innerHTML)?DataSource.firstChild:DataSource.firstChild.nextSibling;var title=Title.innerHTML;}
catch(err){alert("EXCEPTION: Title source not found");return false;}
try{var Body=(Title.nextSibling.innerHTML)?Title.nextSibling:Title.nextSibling.nextSibling;var body=Body.innerHTML;}
catch(err){alert("EXCEPTION: Body source not found");return false;}
eval("this.LastSrc = DataSource");eval("this.lastData = DataSource.innerHTML");DataSource.innerHTML="";}
else{var title=dataSrc[0];var body=dataSrc[1];}
return[title,body];}
function mouseDown(e){if(DW.overTitleBar){this.Window=document.getElementById("dWinID");if(IE){this.dWinOffsetX=event.offsetX;this.dWinOffsetY=event.offsetY;}
else{this.dWinOffsetX=e.layerX;this.dWinOffsetY=e.layerY;return false;}}}
function mouseMove(e){if(this.Window){var ClickPos=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+document.body.scrollLeft;this.Window.style.top=event.clientY-this.dWinOffsetY+document.body.scrollTop;return false;}
else{this.Window.style.top=e.pageY-this.dWinOffsetY;this.Window.style.left=e.pageX-this.dWinOffsetX;}}}
function removeWin(){var Window=document.getElementById("dWinID");if(Window)document.body.removeChild(Window);}
function mouseUp(){this.Window=null;}
function dissolve(wid,hgt){var imgArea=wid*hgt;var maxImgArea=900*600;return(imgArea<=maxImgArea);}}
function PopUp(){this.winName="tgmWin";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=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 getShortCuts(){htm="<FORM><SELECT NAME='page' onChange='getPage( this );'><OPTION>Take me to...<OPTION VALUE='index.aspx'>Home<OPTION VALUE='garden.aspx'>About the Garden<OPTION VALUE='weddings.aspx'>Garden Weddings<OPTION VALUE='ss.aspx?db=ss-main.js'>Garden Slide-Show<OPTION VALUE='plants.aspx'>Plants for Sale:<OPTION VALUE='ti.aspx'>&nbsp;- Ti Leaf<OPTION VALUE='cattleya.aspx'>&nbsp;- Cattleyas<OPTION VALUE='dendrobium.aspx'>&nbsp;- Dendrobiums<OPTION VALUE='phalaenopsis.aspx'>&nbsp;- Phalaenopsis<OPTION VALUE='vanda_aliance.aspx'>&nbsp;- Vanda Alliance<OPTION VALUE='oncidium_aliance.aspx'>&nbsp;- Oncidium Alliance<OPTION VALUE='other_genra.aspx'>&nbsp;- Other Genra<OPTION VALUE='palms.aspx'>&nbsp;- Palms<OPTION VALUE='other_than_orchids.aspx'>&nbsp;- Other Exotics<OPTION VALUE='orchid_of_month.aspx'>&nbsp;- Orchid of Month<OPTION VALUE='special_of_month.aspx'>&nbsp;- Specials & More<OPTION VALUE='contest.aspx'>Guess Plant Contest<OPTION VALUE='in_bloom.aspx'>What's Blooming";if(GetCookie("cartShipTax"))htm+="<OPTION VALUE='cart.aspx'>View Shopping Cart<OPTION VALUE='checkout.aspx'>Checkout Stand";htm+="<OPTION VALUE='growing-instructions.aspx'>Care Instructions<OPTION VALUE='garden-more.aspx'>More Photos<OPTION VALUE='inventory.aspx'>Garden Inventory<OPTION VALUE='garden-tour.aspx'>Garden Tour<OPTION VALUE='help.aspx'>Customer Care<OPTION VALUE='gift.aspx'>Give a Gift<OPTION VALUE='cc.aspx'>Credit Card Payment Form</SELECT></FORM>";return htm;}
function sendGiftRequest(){var subject=GiftEmail[0];var msg="";for(var i=1;i<GiftEmail.length-1;i++)msg+=GiftEmail[i]+" \r\n\r\n";if(!SF){subject=escape(subject);msg=escape(msg);}
document.location.href="mailto:"+DB.Contact.EmailPrimary+"?subject="+subject+"&body="+msg;}
function getURL(page){var theURL=page;if(live)theURL=(page=="checkout.aspx"||page=="cc.aspx")?"https://tropicalgardensofmaui.com/"+page:"http://"+theHost+"/"+page;return theURL;}
function writeHeader(){var htm="<div id='header'><TABLE WIDTH=90% BORDER=0 CELLSPACING=0 CELLPADDING=0><TR><TD NOWRAP WIDTH=230>&nbsp;<BR></TD><TD ALIGN='center'><IMG SRC='images/logo.gif' ALT='Tropical Gardens of Maui' BORDER='0' WIDTH='203' HEIGHT='210' VSPACE='0'></TD><TD VALIGN=top ALIGN=right>"+getShortCuts()+"</TD></TR></TABLE><br></div>";document.write(htm);}
function writeFooter(){var htm="<div style='margin:12px 0px 0px 0px;'><TABLE WIDTH=600 CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD WIDTH=50 NOWRAP>&nbsp;<BR></TD><TD align=center><div class='justify fSize8'><SPAN onClick='showReferrer();'>All</SPAN> photos &copy; Tropical Gardens of Maui Inc. Copyright infringement is a civil and criminal offense. Willful violation can result in penalties of up to $100,000 per infringement. No portion of this site or photography may be reproduced by printing, photocopying or any other means of mechanical or electronic reproduction without express written permission of Tropical Gardens of Maui Inc.</div><div class='footer' onClick='if( window.FW ) FW.getLogInGUI( event );'>TROPICAL GARDENS OF MAUI&nbsp;&nbsp;&#149;&nbsp;&nbsp;"+DB.Contact.Phone+" TEL &nbsp;&nbsp;&#149;&nbsp;&nbsp;"+DB.Contact.Fax+" FAX</div></TD><TD WIDTH=10 NOWRAP>&nbsp;<BR></TD></TABLE>";"</div>";document.write(htm);}
var timeout=0;function activateMsg(index){try{clearTimeout(timeout);document.getElementById("callout").innerHTML=dText[index];}
catch(e){}}
function deActivateMsg(){timeout=setTimeout("try{ document.getElementById( \"callout\" ).innerHTML = \"&nbsp; \" } catch(e){}",500);}
function writeLinks(page){var htm="<div class='fFamilyArial fSize12 fColorFaintGoldBwn'>[ ";htm+="<A HREF='"+getURL("garden.aspx")+"' onMouseOver='try{ if( window.DM ) DM.start( this, event, \"garden\", \"above\" ); self.status = dText.garden; } catch( e ) {} return true;' onMouseOut='try{ if( window.DM ) DM.hide(); self.status = \"\"; } catch( e ) {} return true;' class='navLink'>Our Garden</A> | ";htm+="<A HREF='"+getURL("plants.aspx")+"' onMouseOver='try{ if( window.DM ) DM.start( this, event, \"plants\", \"above\" ); self.status = dText.plants; } catch( e ) {} return true;' onMouseOut='try{ if( window.DM ) DM.hide(); self.status = \"\"; } catch( e ) {} return true;' class='navLink'>Buy Plants</A> | ";htm+=(page=="ti.aspx")?"<span class='disableLink'>Ti Leaf</span> | ":"<A HREF='"+getURL("ti.aspx")+"' onMouseOver='try{ if( window.DM ) DM.killOthers( this ); activateMsg( \"ti\" ); self.status = dText.plants; } catch( e ) {} return true;' onMouseOut='try{ deActivateMsg(); self.status = \"\"; } catch( e ) {} return true;' class='navLink'>Ti Leaf</A> | ";htm+="<A HREF='"+getURL("help.aspx")+"' onMouseOver='try{ if( window.DM ) DM.start( this, event, \"help\", \"above\" ); self.status = dText.help; } catch( e ) {} return true;' onMouseOut='try{ if( window.DM ) DM.hide(); self.status = \"\"; } catch( e ) {} return true;' class='navLink'>Customer Care</A> | ";htm+=(page=="my-cart.aspx")?"<span class='disableLink'>My Cart</span> | ":"<A HREF='"+getURL("my-cart.aspx")+"' onMouseOver='try{ if( window.DM ) DM.start( this, event, \"cart\", \"above\" ); self.status = dText.cart; } catch( e ) {} return true;' onMouseOut='try{ if( window.DM ) DM.hide(); self.status = \"\"; } catch( e ) {} return true;' class='navLink'>My Cart</A> ]";htm+="<div style='margin:4px 0px 0px 0px;'>[ ";htm+=(page=="index.aspx")?"<span class='disableLink'>Home</span> | ":"<A HREF='"+getURL("index.aspx")+"' onMouseOver='try{ if( window.DM ) DM.killOthers( this ); activateMsg( \"home\" ); self.status = dText.home; } catch( e ) {} return true;' onMouseOut='try{ deActivateMsg(); self.status = \"\"; } catch( e ) {} return true;' class='navLink'>Home</A> | ";htm+=(page=="in_bloom.aspx")?"<span class='disableLink'>What's Blooming</span> | ":"<A HREF='"+getURL("in_bloom.aspx")+"' onMouseOver='try{ if( window.DM ) DM.killOthers( this ); activateMsg( \"blooming\" ); self.status = dText.blooming; } catch( e ) {} return true;' onMouseOut='try{ deActivateMsg(); self.status = \"\"; } catch( e ) {} return true;' class='navLink'>What's Blooming</A> | ";htm+=(page=="ss.aspx")?"<span class='disableLink'>Slide-Show</span> | ":"<A HREF='"+getURL("ss.aspx?db=ss-main.js")+"' onMouseOver='try{ if( window.DM ) DM.killOthers( this ); activateMsg( \"ss\" ); self.status = dText.ss; } catch( e ) {} return true;' onMouseOut='try{ deActivateMsg(); self.status = \"\"; } catch( e ) {} return true;' class='navLink'>Slide-Show</A> | ";htm+=(page=="contest.aspx")?"<span class='disableLink'>Contest</span> | ":"<A HREF='"+getURL("contest.aspx")+"' onMouseOver='try{ if( window.DM ) DM.killOthers( this ); activateMsg( \"contest\" ); self.status = dText.contest; } catch( e ) {} return true;' onMouseOut='try{ deActivateMsg(); self.status = \"\"; } catch( e ) {} return true;' class='navLink'>Contest</A> | ";htm=htm.substring(0,htm.length-3);htm+=" ]</div>";htm="<div id='callout' class='fSize12 fFamilyArial' style='margin:0px 0px 4px 0px;'>&nbsp;</div>"+htm+"</div>";document.write(htm);}
function writePlantLinks(page){var htm="<div class='fFamilyArial fSize11 fColorFaintGoldBwn'>[ ";htm+=(page=="cattleya.aspx")?"<span class='disablePlantLink'>Cattleya Orchids</span> | ":"<A HREF='"+getURL("cattleya.aspx")+"' onMouseOver='try{ if( window.DM ) DM.killOthers( this ); activateMsg( \"cattleya\" ); self.status=dText.cattleya; } catch( e ) {} return true;' onMouseout='try{ deActivateMsg(); self.status=\"\"; } catch( e ) {} return true;'>Cattleya Orchids</A> | ";htm+=(page=="dendrobium.aspx")?"<span class='disablePlantLink'>Dendrobium Orchids</span> | ":"<A HREF='"+getURL("dendrobium.aspx")+"' onMouseOver='try{ if( window.DM ) DM.killOthers( this ); activateMsg( \"dendrobium\" ); self.status=dText.dendrobium; } catch( e ) {} return true;' onMouseout='try{ deActivateMsg(); self.status=\"\"; } catch( e ) {} return true;'>Dendrobium Orchids</A> | ";htm+=(page=="phalaenopsis.aspx")?"<span class='disablePlantLink'>Phalaenopsis Orchids</span> | ":"<A HREF='"+getURL("phalaenopsis.aspx")+"' onMouseOver='try{ if( window.DM ) DM.killOthers( this ); activateMsg( \"phalaenopsis\" ); self.status=dText.phalaenopsis; } catch( e ) {} return true;' onMouseout='try{ deActivateMsg(); self.status=\"\"; } catch( e ) {} return true;'>Phalaenopsis Orchids</A> | ";htm+=(page=="vanda_aliance.aspx")?"<span class='disablePlantLink'>Vanda Alliance Orchids</span> | ":"<A HREF='"+getURL("vanda_aliance.aspx")+"' onMouseOver='try{ if( window.DM ) DM.killOthers( this ); activateMsg( \"vanda_aliance\" ); self.status=dText.vanda_aliance; } catch( e ) {} return true;' onMouseout='try{ deActivateMsg(); self.status=\"\"; } catch( e ) {} return true;'>Vanda Alliance Orchids</A> | ";htm+=(page=="oncidium_aliance.aspx")?"<span class='disablePlantLink'>Oncidium Alliance Orchids</span> | ":"<A HREF='"+getURL("oncidium_aliance.aspx")+"' onMouseOver='try{ if( window.DM ) DM.killOthers( this ); activateMsg( \"oncidium_aliance\" ); self.status=dText.oncidium_aliance; } catch( e ) {} return true;' onMouseout='try{ deActivateMsg(); self.status=\"\"; } catch( e ) {} return true;'>Oncidium Alliance Orchids</A> | ";htm=htm.substring(0,htm.length-3);htm+=" ]";htm+="<div style='margin:4px 0px 0px 0px;'>[ ";htm+=(page=="other_genra.aspx")?"<span class='disablePlantLink'>Other Genra Orchids</span> | ":"<A HREF='"+getURL("other_genra.aspx")+"' onMouseOver='try{ if( window.DM ) DM.killOthers( this ); activateMsg( \"other_genra\" ); self.status=dText.other_genra; } catch( e ) {} return true;' onMouseout='try{ deActivateMsg(); self.status=\"\"; } catch( e ) {} return true;'>Other Genra Orchids</A> | ";htm+=(page=="palms.aspx")?"<span class='disablePlantLink'>Palms</span> | ":"<A HREF='"+getURL("palms.aspx")+"' onMouseOver='try{ if( window.DM ) DM.killOthers( this ); activateMsg( \"palms\" ); self.status=dText.palms; } catch( e ) {} return true;' onMouseout='try{ deActivateMsg(); self.status=\"\"; } catch( e ) {} return true;'>Palms</A> | ";htm+=(page=="other_than_orchids.aspx")?"<span class='disablePlantLink'>Other Exotic Plants</span> | ":"<A HREF='"+getURL("other_than_orchids.aspx")+"' onMouseOver='try{ if( window.DM ) DM.killOthers( this ); activateMsg( \"other_than_orchids\" ); self.status=dText.other_than_orchids; } catch( e ) {} return true;' onMouseout='try{ deActivateMsg(); self.status=\"\"; } catch( e ) {} return true;'>Other Exotic Plants</A> | ";htm+=(page=="orchid_of_month.aspx")?"<span class='disablePlantLink'>Orchid of the Month</span> | ":"<A HREF='"+getURL("orchid_of_month.aspx")+"' onMouseOver='try{ if( window.DM ) DM.killOthers( this ); activateMsg( \"orchid_of_month\" ); self.status=dText.orchid_of_month; } catch( e ) {} return true;' onMouseout='try{ deActivateMsg(); self.status=\"\"; } catch( e ) {} return true;'>Orchid of the Month</A> | ";htm+=(page=="special_of_month.aspx")?"<span class='disablePlantLink'>Specials & Collections</span> | ":"<A HREF='"+getURL("special_of_month.aspx")+"' onMouseOver='try{ if( window.DM ) DM.killOthers( this ); activateMsg( \"special_of_month\" ); self.status=dText.special_of_month; } catch( e ) {} return true;' onMouseout='try{ deActivateMsg(); self.status=\"\"; } catch( e ) {} return true;'>Specials & Collections</A> | ";htm=htm.substring(0,htm.length-3);htm+=" ]</div>";htm+="</div>";document.write(htm);}
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 writeLastUpdated(){document.write("<div class='fSize10 fColorGray51 fFamilyArial' style='margin:10px 0px 10px 0px;'>This site last updated "+(new Date(document.lastModified).toLocaleString())+"</div>");}
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 ColExpIndex(showToggleAllLink){this.msg=new Array();this.msg["show"]="Click to show content";this.msg["hide"]="Click to hide content";this.toggleLink=new Array();this.toggleLink["show"]=["Show All Instructions","Show (expose) all instructions on page"];this.toggleLink["hide"]=["Hide All Instructions","Hide (collapse) all instructions on page"];this.getPlusMinus=getPlusMinus;this.switchDisplay=switchDisplay;this.showTip=showTip;this.toggleAll=toggleAll;this.init=init;if(showToggleAllLink){var Link=document.getElementById("ceToggleAllLink");Link.innerHTML="<A HREF='javascript:void( 0 );' onClick='CE.toggleAll( this ); return false;' onMouseover='self.status=this.title; return true;' onMouseout='self.status=\"\"; return true;' TITLE='"+this.toggleLink.show[1]+"' CLASS='toggleAllLink'>"+this.toggleLink.show[0]+"</A>";}
function init(){var path=document.location.pathname;var delimeter=(path.indexOf("\\")>=0)?"\\":"/";var Path=path.split(delimeter);var fileName=Path[Path.length-1];this.cookieName=fileName.split(".")[0];var ceState=GetCookie(this.cookieName);if(ceState){var AllLinks=document.getElementsByTagName("a");var CeState=ceState.split("_");for(var i=0;i<AllLinks.length;i++){for(var k in CeState){if(CeState[k]&&parseInt(CeState[k])==i){try{CE.switchDisplay(AllLinks[i])} catch(e){};}}}}}
function getPlusMinus(Link){return Link.parentNode.firstChild;}
function switchDisplay(Link){var PlusMinus=getPlusMinus(Link);var expanding=(PlusMinus.innerHTML=="+"),contracting=!expanding;PlusMinus.innerHTML=(expanding)?"-":"+";var AllLinks=document.getElementsByTagName("a");var valOld=GetCookie(this.cookieName),valNew="";for(var i=0;i<AllLinks.length;i++){if(AllLinks[i]==Link){if(valOld){var key="_"+i+"_";if(valOld.indexOf(key)>=0){if(contracting){var ValOld=valOld.split(key);valNew=((ValOld[0])?ValOld[0]:"")+"_"+((ValOld[1])?ValOld[1]:"");valNew==("_")?DeleteCookie(this.cookieName):SetCookie(this.cookieName,valNew);}
break;}
if(expanding)valNew=valOld+i+"_";}
else
valNew="_"+i+"_";SetCookie(this.cookieName,valNew);break;}}
var Content=(Link.parentNode.nextSibling.style)?Link.parentNode.nextSibling:Link.parentNode.nextSibling.nextSibling;Content.style.display=(Content.style.display=="block")?"none":"block";showTip(Link);}
function showTip(Link){var PlusMinus=getPlusMinus(Link);if(PlusMinus.innerHTML=="+"){Link.title=CE.msg.show;self.status=CE.msg.show;}
else{Link.title=CE.msg.hide;self.status=CE.msg.hide;}}
function toggleAll(Link){var Divs=document.getElementsByTagName("span");var showAll=(Link.innerHTML==CE.toggleLink.show[0])?true:false;for(var i=0;i<Divs.length;i++){if(Divs[i].className=="cePlusMinus"){var TheLink=Divs[i].parentNode.firstChild;if(showAll){if(Divs[i].innerHTML=="+")switchDisplay(TheLink);}
else{if(Divs[i].innerHTML=="-")switchDisplay(TheLink);}}}
if(showAll){Link.innerHTML=CE.toggleLink.hide[0];Link.title=CE.toggleLink.hide[1];Link.focus();window.scrollBy(0,10);}
else{Link.innerHTML=CE.toggleLink.show[0];Link.title=CE.toggleLink.show[1];Link.focus();}}}
function SlideShow(popUp){initImagesArr();if(popUp){if(!AOL){window.moveTo(0,0);window.resizeTo(screen.availWidth,screen.availHeight);}}
this.disableRightClick=0;this.popUp=popUp;this.slideNum=(Settings.SS.randomStart)?Math.floor(Math.random()*Images.length):0;this.nFirstSlide=this.slideNum;this.speedActual=Settings.SS.speed;this.automated=(this.speedActual<86400000);this.SPEED_FAST=500;this.preLoadTimer=0;this.NextImage=null;this.slideDelay=0;this.running=true;this.forward=true;this.buttons=false;this.maxDissolveMZ=800*800;this.maxImgWid=this.maxImgWid;this.maxImgHgt=this.maxImgHgt;this.longestCaption="";this.init=init;this.start=start;this.showSlide=showSlide;this.skipErrantSlide=skipErrantSlide;this.preLoadNext=preLoadNext;this.imgClickHandler=imgClickHandler;this.back=back;this.stop=stop;this.reStart=reStart;this.next=next;this.showMsg=showMsg;this.getCoordinates=getCoordinates;this.moveImgOverlay=moveImgOverlay;this.pauseSS=pauseSS;this.getControls=getControls;this.getGUI=getGUI;window.onresize=this.moveImgOverlay;this.msg=new Array();this.msg.ssRunning="Slide Show Running...";this.msg.downloadingImg="Preparing next slide...";this.msg.pleaseWait="Downloading image, please wait...";this.msg.ssPaused="Slide Show Paused, re-click \"Pause\" to continue...";this.msg.ssPausedSF="Slide Show Paused, click \"Run\" to continue...";this.msg.next="Jump forward";this.msg.back="Go back";this.msg.ssExit="Close this slide-show window";function start(){if(Settings.SS.console){var Console=document.getElementById("ssConsole");Console.style.height=Console.offsetHeight;}
this.showMsg();if(Settings.SS.console)Console.style.visibility="visible";this.preLoadNext();}
function getCoordinates(TheImage){var x=0;var y=0;TheElement=TheImage;var parPosAbs=false;while(TheElement){if(SF){if(!parPosAbs)parPosAbs=(TheElement.style.position=="absolute");if(parPosAbs&&TheElement==document.body)break;}
y+=TheElement.offsetTop;x+=TheElement.offsetLeft;TheElement=TheElement.offsetParent;}
return[x,y];}
function moveImgOverlay(){if(SS.ImgOverlay){var OverlayPos=SS.getCoordinates(document.images.slideShow.parentNode);SS.ImgOverlay.style.left=OverlayPos[0]+"px";SS.ImgOverlay.style.top=OverlayPos[1]+"px";}}
function showSlide(){if(this.NextImage){this.showMsg();var TheImage=document.images.slideShow;var widNew=Images[this.slideNum][1];var hgtNew=Images[this.slideNum][2];var imgArea=widNew*hgtNew;checkDim(this.NextImage.src,widNew,hgtNew);if(this.forward&&(winIE||(MZ&&imgArea<=this.maxDissolveMZ)||(SF&&Settings.dissolveSF))&&Settings.transNum>=1&&this.speedActual>this.SPEED_FAST){var nNewImg=(Images.length==this.slideNum)?0:this.slideNum;var nOldImg=(nNewImg==0)?Images.length-1:nNewImg-1;TheImage.width=Images[nOldImg][1];TheImage.height=Images[nOldImg][2];TheImage.src=Settings.folder+Images[nOldImg][0];if(Settings.borderWid)TheImage.style.borderColor="rgb( "+getRGB(Images[nOldImg][4])+" )";var imgStyle=(Settings.borderWid)?" style='border:"+Settings.borderWid+"px solid rgb("+getRGB(Images[nNewImg][4])+");'":"";var newImg="<img name='slideShowNew' src='"+Settings.folder+Images[nNewImg][0]+"' width='"+Images[nNewImg][1]+"' height='"+Images[nNewImg][2]+"' title='"+TheImage.title+"'"+imgStyle+" onmousedown='SS.imgClickHandler( event );' onContextMenu='"+((this.disableRightClick)?"return false;":"return true;")+"' class='ssImage'>";if(!SS.ImgOverlay){SS.ImgOverlay=document.createElement("DIV");SS.ImgOverlay.style.textAlign="center";SS.ImgOverlay.style.top=(screen.height*-1)+"px";SS.ImgOverlay.style.left=(screen.width*-1)+"px";SS.ImgOverlay.style.zIndex=1000;SS.ImgOverlay.style.position="absolute";SS.ImgOverlay.style.backgroundColor="rgb( "+Settings.SS.bkgColor+" )";document.body.appendChild(SS.ImgOverlay);}
SS.ImgOverlay.style.width=this.maxImgWid+"px";SS.ImgOverlay.style.height=this.maxImgHgt+"px";if(winIE)SS.ImgOverlay.style.visibility="hidden";if(MZ)SS.ImgOverlay.style.opacity=0;else SS.ImgOverlay.style.opacity=0;var OverlayPos=SS.getCoordinates(TheImage.parentNode);SS.ImgOverlay.style.left=OverlayPos[0]+"px";SS.ImgOverlay.style.top=OverlayPos[1]+"px";SS.ImgOverlay.innerHTML=newImg;if(winIE)startFade(SS.ImgOverlay,Settings.transNum,Settings.transDur,0,0,0);else fadeIn(SS.ImgOverlay);}
else{if(this.ImgOverlay){document.body.removeChild(this.ImgOverlay);this.ImgOverlay=null;}
TheImage.style.visibility="hidden";TheImage.width=widNew;TheImage.height=hgtNew;if(Settings.borderWid)TheImage.style.borderColor="rgb( "+getRGB(Images[this.slideNum][4])+" )";top.document.title=TheImage.src;TheImage.src=this.NextImage.src;TheImage.style.visibility="visible";}
this.forward=true;}}
function showMsg(){if(Settings.SS.statusBar||Settings.SS.console){var imgTitle=(Images[this.slideNum][3])?Images[this.slideNum][3].replace(/\^/g, "\"" ) : "";
var colon=(imgTitle)?": ":"";var slideNumDisplay=this.slideNum-this.nFirstSlide+1;if(slideNumDisplay<1)slideNumDisplay=Images.length+slideNumDisplay;var slideCount=slideNumDisplay+" of "+Images.length
if(imgTitle=="*")imgTitle=Settings.pageTitle;else if(imgTitle.indexOf("*+")==0)imgTitle=Settings.pageTitle+imgTitle.split("+")[1];else if(imgTitle.indexOf("+*")>=0)imgTitle=imgTitle.split("+")[0]+Settings.pageTitle;if(Settings.SS.statusBar)self.status="Slide "+slideCount+colon+imgTitle;if(Settings.SS.console){if(document.getElementById("ssConsoleAlt")){document.getElementById("ssConsoleAlt").innerHTML=slideCount;document.getElementById("ssConsole").innerHTML=imgTitle;}
else
document.getElementById("ssConsole").innerHTML=slideCount+colon+imgTitle;}}}
function skipErrantSlide(){if(local||SS.speedActual==SS.SPEED_FAST){if(!SS.errReported){alert("Slide #"+(SS.slideNum+1)+"; "+SS.NextImage.src+" failed to load");SS.errReported=true;}}
SS.NextImage=null;}
function preLoadNext(){if(!Settings.SS.statusBar&&this.automated)self.status=this.msg.ssRunning;var recursionTimer=100;this.slideDelay+=recursionTimer;if(!this.NextImage){this.slideNum++;if(this.slideNum==Images.length)this.slideNum=0;this.NextImage=new Image();this.NextImage.onerror=this.skipErrantSlide;this.NextImage.src=Settings.folder+Images[this.slideNum][0];}
if(this.NextImage&&this.NextImage.complete&&this.slideDelay>this.speedActual){this.slideDelay=0;this.showSlide();this.NextImage=null;clearTimeout(this.preLoadTimer);this.preLoadNext();if(Settings.SS.controls&&document.getElementById("backBut"))document.getElementById("backBut").disabled=false;if(Settings.SS.scrollSlide)window.scroll(Settings.SS.scrollSlide[0],Settings.SS.scrollSlide[1]);}
else
this.preLoadTimer=setTimeout("SS.preLoadNext()",recursionTimer);}
function imgClickHandler(e){if(!e)e=window.event;if(e.ctrlKey||e.metaKey){if(this.speedActual==Settings.SS.speed)this.speedActual=this.SPEED_FAST;else
this.speedActual=Settings.SS.speed;}
if(e.shiftKey){if(this.running)this.pauseSS(true);else
this.pauseSS(false);}}
function back(){if(Settings.SS.console)document.getElementById("ssConsole").innerHTML=this.msg.pleaseWait;if(Settings.SS.statusBar)self.status=this.msg.pleaseWait;clearTimeout(this.preLoadTimer);this.forward=false;this.slideNum-=3;if(this.slideNum==-2)this.slideNum=Images.length-2;if(this.slideNum==-3)this.slideNum=Images.length-3;this.NextImage=null;this.pauseSS(false);}
function stop(){clearTimeout(this.preLoadTimer);}
function reStart(){this.slideDelay=Settings.SS.speed+1;this.preLoadNext();}
function next(){if(Settings.SS.console)document.getElementById("ssConsole").innerHTML=this.msg.pleaseWait;if(Settings.SS.statusBar)self.status=this.msg.pleaseWait;clearTimeout(this.preLoadTimer);this.forward=true;this.pauseSS(false);}
function pauseSS(pause){var Button=(this.buttons)?document.getElementById("pauseButton"):null;if(pause){if(SF){if(Button)Button.value="Run";self.status=this.msg.ssPausedSF;}
else{if(Button)Button.className="ssButtonOn";self.status=this.msg.ssPaused;}
this.stop();this.running=false;if(Button)Button.title="Resume";}
else{this.reStart();if(this.automated)self.status=this.msg.ssRunning;if(Button){if(SF)Button.value="Pause";Button.className="ssButton";Button.title="Pause";}
this.running=true;}}
function getControls(){this.buttons=true;return "<input type='button' id='backBut' class='ssButton' value='&lt;&lt;' onClick='SS.back();' title='"+this.msg.back+"'>&nbsp;&nbsp;<input name='pauseButton' class='ssButton' id='pauseButton' type='button' value='Pause' onClick='SS.pauseSS( ( ( SS.running ) ? true : false ) );' title='Pause'"+((SF)?" style='width:60px;'":"")+">&nbsp;&nbsp;<input type='button' class='ssButton' value='&gt;&gt;' onClick='SS.next();' title='"+this.msg.next+"'>";}
function init(){var maxWid=-1,maxHgt=-1,bordWid=Settings.borderWid*2;for(var i=0;i<Images.length;i++){if(Images[i][1]>maxWid)maxWid=Images[i][1];if(Images[i][2]>maxHgt)maxHgt=Images[i][2];}
this.maxImgWid=maxWid+bordWid;this.maxImgHgt=maxHgt+bordWid;var nChars=0;for(var i=0;i<Images.length;i++){if(!Images[i][4])Images[i][4]=Settings.borderCol;var caption=Images[i][3];if(caption&&caption.length>nChars){this.longestCaption=Images[i][3];nChars=caption.length;}
checkImgName(Images[i][0]);}}
function getGUI(guiAlign,consoleLoc,buttonsLoc){this.init();var bordCol=(Images[this.slideNum][4])?Images[this.slideNum][4]:Settings.borderCol;var imgStyle=(Settings.borderWid)?" style='border-color:rgb("+getRGB(bordCol)+");'":"";var img1Title=(Images[0][3])?Images[0][3].replace(/\^/g, "\"" ) : "";
var console="",buttons="";if(Settings.SS.console)console="<tr><td align='center'><div class='ssConsole' id='ssConsole' style='visibility:hidden; width:"+this.maxImgWid+"px;'>"+Images.length+" of "+Images.length+((img1Title)?": ":"")+this.longestCaption+"</div></td></tr>";if(Settings.SS.controls)buttons="<tr><td align='center'><div class='ssControls' style='white-space:nowrap;'>"+SS.getControls()+"</div></td></tr>";var htm="<table align='"+guiAlign+"' border='0' cellspacing='0' cellpadding='0' id='ssGUI'>";if(Settings.pageTitle)htm+="<tr><td align='center'><div class='ssTnTitle'>"+Settings.pageTitle+"</div></td></tr>";if(buttonsLoc=="above")htm+=buttons;if(consoleLoc=="above")htm+=console;htm+="<tr><td valign='top' align='center'><table align='center' border='0' cellspacing='0' cellpadding='0'><tr><td valign='top'><table align='center' border='0' cellspacing='0' cellpadding='0'><tr><td align='center' valign='top' style='width:"+this.maxImgWid+"px; height:"+this.maxImgHgt+"px;'><img name='slideShow' src='"+Settings.folder+Images[this.slideNum][0]+"' onError='SS.skipErrantSlide(); SS.preLoadNext(); this.slideDelay = this.speedActual + 1;' width='"+Images[this.slideNum][1]+"' height='"+Images[this.slideNum][2]+"' title='Slide-Show' onmousedown='SS.imgClickHandler( event );'"+imgStyle+" galleryimg='no' onAbort='this.src=this.src;' class='ssImage' onContextMenu='"+((this.disableRightClick)?"return false;":"return true;")+"'></td></tr>";if(consoleLoc=="below")htm+=console;if(buttonsLoc=="below")htm+=buttons;htm+="</table></td></tr></table></td></tr></table>";if(this.popUp)htm+="<div style='position:absolute; top:0%; right:1%; margin:10px 15px 0px 0px;'><a href='javascript:void(0);' onClick='window.close(); return false;' onMouseover='this.title=SS.msg.ssExit; self.status=SS.msg.ssExit; return true;' onMouseOut='self.status=\"\"; return true;' class='ssExitPopUp'>Exit</a></div>";return htm;}}
function playSong(PullDown){var JukeBox=document.getElementById("jukeboxConsole");var clip=PullDown[PullDown.selectedIndex].value;if(clip){JukeBox.innerHTML="<object id='MediaPlayer' width='320' height='240' classid='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95' type='application/x-oleobject'><param name='filename' value='http://www.tropicalgardensofmaui.com/music/"+clip+"' /><param name='autoplay' value='true' /><param name='loop' value='true' /><embed type='application/x-mplayer2' src='http://www.tropicalgardensofmaui.com/music/"+clip+"' loop='true' width='320' height='240'></embed></object>";self.status="Loading audio clip..."}
else{JukeBox.innerHTML="";}}
function writeMusicOptions(){var htm="<select onChange='playSong( this );' style='margin:10px 0px 10px 0px;' title='You need a high-speed connection to play our mp3 songs'>";htm+="<option value=''>Play a song...</option>";for(var i=0;i<Music.length-1;i++)htm+="<option value='"+Music[i][1]+"'>"+Music[i][0]+"</option>";htm+="<option value=''>STOP MUSIC</option></select>";document.write(htm);}
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 FileWriter(){this.serverTimeZoneOffsetHours=(live)?4:10;this.HtmButtons="<button onClick='FW.insertTags( \"<br>\", \"\", \"EditedHTML\" ); return false;' title='Inserts line-break tag at cursor position' class='htmlTags'>&lt;br&gt;</button><button onClick='FW.insertTags( \"<b>\", \"</b>\", \"EditedHTML\" ); return false;' title='Inserts bold tags around highlighted text' class='htmlTags'><b>B</b></button><button onClick='FW.insertTags( \"<i>\", \"</i>\", \"EditedHTML\" ); return false;' title='Inserts italic tags around highlighted text' class='htmlTags'><i>I</i></button><button onClick='FW.insertTags( \"<a href=\\\"images/\\\" onClick=\\\"return showPic( , , this, event );\\\"></a>\", \"\", \"EditedHTML\" ); return false;' title='Inserts image link tag at cursor position' class='htmlTags'>Image Link</button>";this.HtmNotes="";this.JsButtons="";this.JsNotes="";this.XmlNotes="<table align='center' border='0' cellspacing='0' cellpadding='0'><tr><td class='xmlInstructions'><div style='margin:8px 0px 4px 0px;'>Here's why you may need to edit this XML data:</div><ol style='margin-top:4px; margin-bottom:4px;'><li style='margin-top:6px;'>To change contact information like address, phone, e-mail, etc.</li><li>To change Administrator Names, E-mails, Passwords & Editing Privileges<ol class='fSize10' style='margin-top:0px; margin-bottom:4px;' type='a'><li>Set it to yes to allow administrator to edit that particular data type</li><li>Set it to no to prohibit administrator from editing that particular data type</li></ol></li><li style='margin-top:6px;'>To change e-mail address where website generated error messages (if any) are delivered.</li></ol></td></tr></table>";this.AdminLinks="";this.forceLogin=forceLogin;this.forceLogin();this.getLogInGUI=getLogInGUI;this.logIn=logIn;if(!GetCookie("userWithWritePrivleges"))return;this.help=help;this.showHelp=showHelp;this.restore=restore;this.insertTags=insertTags;this.init=init;this.checkContent=checkContent;this.resetUI=resetUI;this.reLoad=reLoad;this.logOff=logOff;this.cursorReadyHtm=false;this.cursorReadyJS=false;this.init();function forceLogin(){try{if(window.LastAdministrator){var lastAdminFull=LastAdministrator[0];var lastAdminFirst=LastAdministrator[0].split(" ")[0];var nTicks_Jan_1_1970=621355968000000000;var ms=(LastAdministrator[1]-nTicks_Jan_1_1970)/10000;var loggedIn=new Date(ms+this.serverTimeZoneOffsetHours*60*60*1000).toLocaleString();var sub="Are you logged onto "+theHost+" right now?";sub=(SF)?sub:escape(sub);var body="\r\n\r\n"+lastAdminFirst+", are you logged onto the site as Administrator right now? I am trying to log-in and I am getting a warning indicating you logged-in on "+loggedIn+" and are still logged in!\r\nThe current time on my computer is "+new Date().toLocaleString();body=(SF)?body:escape(body);var htm="<div class='fwForceLogin'>Hello "+qStr.getVal("user").split("_")[0]+". "+lastAdminFull+" logged in on "+loggedIn+". "+lastAdminFirst+" is either presently logged in or may have failed to log-out!<br><br>In order to protect the integrity of our data, two or more users editing the same data at the same time is not allowed. With that in mind, you can:<ol style='margin-top:6px; margin-bottom:6px;'><li style='margin-bottom:2px;'>Wait until "+lastAdminFirst+" logs out.</li><li style='margin-bottom:2px;'>Email "+lastAdminFirst+" at <a href='mailto:"+DB.Administrators[lastAdminFull]+"?subject="+sub+"&body="+body+"' title='Send e-mail asking if this person is logged-in' class='dwLink'>"+DB.Administrators[lastAdminFull]+"</a> to ask.</li>"+((fileName=="calendar.aspx")?"<li style='margin-bottom:2px;'><a href='calendar.aspx?pw="+rapw+"' title='You can read-all booking info but you cannot edit it' class='dwLink'>Load the calendar</a> with read-all access, because you only need to get info not edit it...</li>":"")+"<li><a href='"+document.location.href+"' onClick='SetCookie( \"forcedLogin\", \"yes\", null, \"/\", cookieDomain ); return true;' title='Logs you in & forces out other active administrator (if any)' class='dwLink'>Force Log-In</a> now because you know that "+lastAdminFirst+" failed to log-out last time and is NOT actively logged-in. Note that you will terminate "+lastAdminFirst+"'s session if "+lastAdminFirst+" is logged-in right now.</li></ol></div>";DW.createWindow(["Concurrent Administrator Conflict",htm],[0,500,0],null,null,6,[3,0,20]);}}
catch(Err){if(local){var err="";for(member in Err)err+=member+": "+Err[member]+"\n";alert("Exception at method FW.forceLogin:\n\n"+err);}
else{setTimeout("FW.forceLogin();",250);self.status="Initializing File Writer: FW.forceLogin()...";}}}
function showHelp(Link){var PlsMin=Link.previousSibling;var Content=Link.nextSibling;if(Content.className=="fw1"){Content.className="fw0";PlsMin.innerHTML="+";}
else{Content.className="fw1";PlsMin.innerHTML="-";}}
function help(nType,Link,evt){function getHelpTxt(helpType){var htm="<div class='fwHelpSect'><a href='javascript:void(0)' onClick='FW.showHelp(this.nextSibling);' class='fwPlusMinus'>+</a><a href='javascript:void(0);' onClick='FW.showHelp(this);' class='dwLink'>Reload & Cache</a><div class='fw0'><u>Cache Defined</u>: All browsers seamlessly store all recent pages that you have visited on your hard drive. This process is called \"caching\" and it greatly speeds up your web browsing because your browser is able to later retrieve these web pages off your hard drive much quicker than downloading them again from the server.<br><br><u>Caching will cause problems for you</u> because after you press Publish, and the page reloads, you may be looking at a past cached version of that page rather than the most recent version which you just published and are naturally expecting to see.<br><br><u>Remember this mantra</u> & you will eliminate cache frustrations forever!<br>&nbsp;&nbsp;\"Just Published but don't see your changes? Then press Reload\"</div></div><div class='fwHelpSect'><a href='javascript:void(0)' onClick='FW.showHelp(this.nextSibling);' class='fwPlusMinus'>+</a><a href='javascript:void(0);' onClick='FW.showHelp(this);' class='dwLink'>Publish "+helpType+"</a><div class='fw0'>Press Publish-"+helpType+" after you have made your edits. Your changes will be permanently written to file and the page will be reloaded. After the page reloads, verify your changes. If you don't see them press Reload.";if(helpType=="XML")htm+=" Changes made to XML data update across entire site immediately";htm+="</div></div><div class='fwHelpSect'><a href='javascript:void(0)' onClick='FW.showHelp(this.nextSibling);' class='fwPlusMinus'>+</a><a href='javascript:void(0);' onClick='FW.showHelp(this);' class='dwLink'>Reset</a><div class='fw0'>Press Reset if you made edit(s) but then changed your mind or you just want to start over! The content in the text-box will revert back to original start-up values since you last published.</div></div><div class='fwHelpSect'><a href='javascript:void(0)' onClick='FW.showHelp(this.nextSibling);' class='fwPlusMinus'>+</a><a href='javascript:void(0);' onClick='FW.showHelp(this);' class='dwLink'>Restore</a><div class='fw0'>Restore is the ultimate \"safety net\" and more powerful that Reset because it let's you go back to an earlier date & time. If you made a serious mistake, which you only realized after publishing, then restore is the solution. Before you consider using restore, please understand that you will lose the current working file as you will be reverting to an earlier time - so don't try this casually!<div align='center' style='margin:4px 0px 0px 0px;'><form>";if(helpType=="HTML"){var BackUpHTM=document.AspForm.BackUpHTM;htm+="<input type='button' value='Restore To:' onClick='return FW.restore( \"RestoreHTM\" );' title='Restore this file to a prior selected time' />&nbsp;&nbsp;";htm+="<select 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 if(helpType=="JavaScript"){var BackUpJS=document.AspForm.BackUpJS;htm+="<input type='button' value='Restore To:' onClick='return FW.restore( \"RestoreJS\" );' title='Restore this file to a prior selected time' />&nbsp;&nbsp;";htm+="<select title='Select a prior restore point' onChange='document.AspForm.BackUpJS.selectedIndex=this.selectedIndex;'>";for(var i=0;i<BackUpJS.length;i++)htm+="<option value='"+BackUpJS[i].value+"'>"+BackUpJS[i].text+"</option>";htm+="</select>";}
else{var BackUpXML=document.AspForm.BackUpXML;htm+="<input type='button' value='Restore To:' onClick='return FW.restore( \"RestoreXML\" );' title='Restore this file to a prior selected time' />&nbsp;&nbsp;";htm+="<select title='Select a prior restore point' onChange='document.AspForm.BackUpXML.selectedIndex=this.selectedIndex;'>";for(var i=0;i<BackUpXML.length;i++)htm+="<option value='"+BackUpXML[i].value+"'>"+BackUpXML[i].text+"</option>";htm+="</select>";}
htm+="</form></div><ol style='margin-top:4px; margin-bottom:4px;'><li style='margin-left:-10px;'>Select a restore date. They will be listed & numbered with the most recent at the top.</li><li style='margin-left:-10px;'>If you don't know which date to select then try the immediate prior backup. It will be already selected for you (#1 at the top). Press Restore to revert to the selected date & time. If that doesn't help try #2, #3 and so on...</li><li style='margin-left:-10px;'>After restoring, if it appears the problem is not resolved, try a reload first before doing another restore.</li></ol></div></div><div class='fwHelpSect'><a href='javascript:void(0)' onClick='FW.showHelp(this.nextSibling);' class='fwPlusMinus'>+</a><a href='javascript:void(0);' onClick='FW.showHelp(this);' class='dwLink'>About "+helpType+"</a><div class='fw0'>";if(helpType=="HTML")htm+="<ol style='margin-top:4px; margin-bottom:4px;'><li style='margin-left:-10px;'>HTML (<b>H</b>yper <b>T</b>ext <b>M</b>arkup <b>L</b>anguage) is a web formating language: <a href='javascript:PopUp.openWin( \"http://en.wikipedia.org/wiki/Html\", 1 );' class='dwLink'>Learn more</a></li><li style='margin-left:-10px;'>Need help with your HTML skills? Try <a href='javascript:PopUp.openWin( \"http://www.w3schools.com/html/html_primary.asp\", 1 );' class='dwLink'>W3schools.com</a></li></ol>";else if(helpType=="JavaScript")htm+="JavaScript is a popular web programming language: <a href='javascript:PopUp.openWin( \"http://en.wikipedia.org/wiki/JavaScript\", 1 );' class='dwLink'>Learn more</a>";else
htm+="XML (e<b>X</b>tensible <b>M</b>arkup <b>L</b>anguage) is a web data-base language: <a href='javascript:PopUp.openWin( \"http://en.wikipedia.org/wiki/Xml\", 1 );' class='dwLink'>Learn more</a>";htm+="</div></div>";return htm;}
var DataSrc;switch(nType){case 1:DataSrc=["Publishing HTML",getHelpTxt("HTML")];break;case 2:DataSrc=["Publishing JavaScript",getHelpTxt("JavaScript")];break;case 3:DataSrc=["Publishing XML",getHelpTxt("XML")];break;}
if(window.DW)DW.createWindow(DataSrc,[1,600,300],Link,evt,6,[2,0,-15]);}
function restore(aspJob){var Form=document.AspForm;if(aspJob=="RestoreHTM"&&Form.BackUpHTM&&Form.BackUpHTM[Form.BackUpHTM.selectedIndex].value==""||aspJob=="RestoreJS"&&Form.BackUpJS&&Form.BackUpJS[Form.BackUpJS.selectedIndex].value==""||aspJob=="RestoreXML"&&Form.BackUpXML&&Form.BackUpXML[Form.BackUpXML.selectedIndex].value==""){alert("No action taken: There are no restore dates...");return false;}
Form.ASP_Job.value=aspJob;Form.submit();}
function insertTags(tagOpen,tagClose,TextBoxID){var editHTML=(TextBoxID=="EditedHTML");var editDATA=!editHTML;if(this.cursorReadyHtm&&editHTML||this.cursorReadyJS&&editDATA){var TextArea=document.getElementById(TextBoxID);if(IE){var theSelection=document.selection.createRange().text;TextArea.focus();if(theSelection.charAt(theSelection.length-1)==" "){theSelection=theSelection.substring(0,theSelection.length-1);document.selection.createRange().text=tagOpen+theSelection+tagClose+" ";}
else
document.selection.createRange().text=tagOpen+theSelection+tagClose;}
else{var replaced=false;var startPos=TextArea.selectionStart;var endPos=TextArea.selectionEnd;if(endPos-startPos)replaced=true;var scrollTop=TextArea.scrollTop;var myText=(TextArea.value).substring(startPos,endPos);if(myText.charAt(myText.length-1)==" ")subst=tagOpen+myText.substring(0,(myText.length-1))+tagClose+" ";else
subst=tagOpen+myText+tagClose;TextArea.value=TextArea.value.substring(0,startPos)+subst+TextArea.value.substring(endPos,TextArea.value.length);TextArea.focus();if(replaced){var cPos=startPos+(tagOpen.length+myText.length+tagClose.length);TextArea.selectionStart=cPos;TextArea.selectionEnd=cPos;}
else{TextArea.selectionStart=startPos+tagOpen.length;TextArea.selectionEnd=startPos+tagOpen.length+myText.length;}
TextArea.scrollTop=scrollTop;}
if(TextArea.createTextRange)TextArea.caretPos=document.selection.createRange().duplicate();}
else{if(tagClose=="")alert("To insert this HTML tag you must place your cursor at the location you would like to add it.");else{if(editHTML)alert("To insert HTML formatting tags you must first highlight the text you would like formatted.");else{if(tagOpen=="\\\"")alert("To insert double quotes you must first highlight the text you would like quoted.");else
alert("To auto-insert you must place your cursor at the location you would like to add it.");}}}}
function init(){var help="About Caching, Reload, Publish, Reset & Restore";var justPub="Refresh page to override cached (old) version";try{var EditContainerHTM=document.getElementById("EditContainerHTM");if(EditContainerHTM&&EditContainerHTM.className=="on"){document.getElementById("htmTitle").innerHTML="<div class='sectTitleFW'>HTML CONTENT FOR THIS PAGE</div><div class='sectOtherFW'>"+this.HtmButtons+this.HtmNotes+"</div>";var EditedHTML=document.getElementById("EditedHTML");EditedHTML.onfocus=function(){this.title="Edit text then press \"Publish HTML\"";self.status=this.title;FW.cursorReadyHtm=true;}
EditedHTML.onblur=function(){self.status="";}
var HelpHTM=document.getElementById("HelpHTM");HelpHTM.onmouseover=function(){this.title=help;}
var ReloadHTM=document.getElementById("ReloadHTM");ReloadHTM.onmouseover=function(){this.title=justPub;}
ReloadHTM.onclick=function(){FW.reLoad("EditedHTML");}
var PublishHTM=document.getElementById("PublishHTM");PublishHTM.onmouseover=function(){this.title="Write HTML to file";}
PublishHTM.onclick=function(){return FW.checkContent(1,1);}
PublishHTM.oncontextmenu=function(){return FW.checkContent(1,0);}
var ResetHTM=document.getElementById("ResetHTM");ResetHTM.onmouseover=function(){this.title="Revert HTML back to original values since you last published";}
ResetHTM.onclick=function(){FW.resetUI("EditedHTML");}}
var EditContainerJS=document.getElementById("EditContainerJS");if(EditContainerJS&&EditContainerJS.className=="on"){document.getElementById("dataTitleJS").innerHTML="<div class='sectTitleFW'>JAVASCRIPT DATA</div><div class='sectOtherFW'>TIP: Need to use a double quote within a text string? Then \\\"<a href='javascript:void(0);' onClick='FW.insertTags( \"\\\\\\\"\", \"\\\\\\\"\", \"EditedJS\" ); return false;' title='Inserts double quotes around highlighted data text' class='dwLink'>escape</a>\\\" it."+((this.JsButtons)?"<br>"+this.JsButtons:"")+this.JsNotes+"</div>";var EditedJS=document.getElementById("EditedJS");EditedJS.onfocus=function(){this.title="Edit data then press \"Publish JavaScript\"";self.status=this.title;FW.cursorReadyJS=true;}
EditedJS.onblur=function(){self.status="";}
var HelpJS=document.getElementById("HelpJS");HelpJS.onmouseover=function(){this.title=help;}
var ReloadJS=document.getElementById("ReloadJS");ReloadJS.onmouseover=function(){this.title=justPub;}
ReloadJS.onclick=function(){FW.reLoad("EditedJS");}
var PublishJS=document.getElementById("PublishJS");PublishJS.onmouseover=function(){this.title="Write JavaScript to file";}
PublishJS.onclick=function(){return FW.checkContent(2,1);}
PublishJS.oncontextmenu=function(){return FW.checkContent(2,0);}
var ResetJS=document.getElementById("ResetJS");ResetJS.onmouseover=function(){this.title="Revert JavaScript back to original values since you last published";}
ResetJS.onclick=function(){FW.resetUI("EditedJS");}}
var EditContainerXML=document.getElementById("EditContainerXML");if(EditContainerXML&&EditContainerXML.className=="on"){document.getElementById("dataTitleXML").innerHTML="<div class='sectTitleFW'>GLOBAL XML DATA</div><div class='sectOtherFW'>"+this.XmlNotes+"</div>";var EditedXML=document.getElementById("EditedXML");EditedXML.onfocus=function(){this.title="Edit data then press \"Publish XML\"";self.status=this.title;}
EditedXML.onblur=function(){self.status="";}
var HelpXML=document.getElementById("HelpXML");HelpXML.onmouseover=function(){this.title=help;}
var ReloadXML=document.getElementById("ReloadXML");ReloadXML.onmouseover=function(){this.title=justPub;}
ReloadXML.onclick=function(){FW.reLoad("EditedXML");}
var PublishXML=document.getElementById("PublishXML");PublishXML.onmouseover=function(){this.title="Write XML to file";}
PublishXML.onclick=function(){return FW.checkContent(3,1);}
PublishXML.oncontextmenu=function(){return FW.checkContent(3,0);}
var ResetXML=document.getElementById("ResetXML");ResetXML.onmouseover=function(){this.title="Revert XML back to original values since you last published";}
ResetXML.onclick=function(){FW.resetUI("EditedXML");}}
var htm="<div class='otherFunctions'><a href='javascript:FW.logOff();' title='Log off as administrator' class='fw'>Log Off</a>&nbsp;&#149;&nbsp;<a href='javascript:PopUp.openWin( \"uploader.aspx\", 0, 0, 1, 0, 650, 350, 1, 1, 2 );' title='Upload files to the server' class='fw'>Upload</a>";htm+=this.AdminLinks;htm+="</div>";document.getElementById("fwBottomRow").innerHTML=htm;var nTicks_Jan_1_1970=621355968000000000;var offsetMS=this.serverTimeZoneOffsetHours*60*60*1000;var BackUpHTM=document.getElementById("BackUpHTM");if(BackUpHTM&&BackUpHTM[0].value){for(var i=0;i<BackUpHTM.length;i++){var Option=BackUpHTM[i];var ms=(parseInt(Option.text)-nTicks_Jan_1_1970)/10000;Option.text=new Date(ms+offsetMS).toLocaleString();}}
var BackUpJS=document.getElementById("BackUpJS");if(BackUpJS&&BackUpJS[0].value){for(var i=0;i<BackUpJS.length;i++){var Option=BackUpJS[i];var ms=(parseInt(Option.text)-nTicks_Jan_1_1970)/10000;Option.text=new Date(ms+offsetMS).toLocaleString();}}
var BackUpXML=document.getElementById("BackUpXML");if(BackUpXML&&BackUpXML[0].value){for(var i=0;i<BackUpXML.length;i++){var Option=BackUpXML[i];var ms=(parseInt(Option.text)-nTicks_Jan_1_1970)/10000;Option.text=new Date(ms+offsetMS).toLocaleString();}}
self.status="";}
catch(Err){if(local){var err="";for(member in Err)err+=member+": "+Err[member]+"\n";alert("Exception at method FW.init:\n\n"+err);}
else{setTimeout("FW.init();",250);self.status="Initializing File Writer: FW.init()...";}}}
function checkContent(formType,leftClick){var Form=document.AspForm;var EditedHTML=Form.EditedHTML;var EditedJS=Form.EditedJS;var EditedXML=Form.EditedXML;if(formType==1){EditedHTML.value=EditedHTML.value.trim();if(leftClick&&EditedHTML.value==EditedHTML.defaultValue){alert("Edit the text then press Publish HTML...");EditedHTML.focus();FW.cursorReadyHtm=false;return false;}
else{document.getElementById("PublishHTM").disabled=true;Form.Which_Button.value="html";}}
else if(formType==2){EditedJS.value=EditedJS.value.trim();if(leftClick&&EditedJS.value==EditedJS.defaultValue){alert("Edit the data then press Publish JavaScript...");EditedJS.focus();FW.cursorReadyJS=false;return false;}
else{try{eval(EditedJS.value);}
catch(Err){var err="";for(member in Err)err+=member+": "+Err[member]+"\n";alert("Sorry, you have mistakenly broken JavaScript's rigid syntax. As a result, the file cannot be saved to disk. Fix the error & try again or click \"Reset\"...\n\n"+err);return false;}
document.getElementById("PublishJS").disabled=true;Form.Which_Button.value="js";}}
else{EditedXML.value=EditedXML.value.trim();if(leftClick){if(EditedXML.value==EditedXML.defaultValue){alert("Edit the text then press Publish XML...");EditedXML.focus();return false;}
else{var textOrig=EditedXML.defaultValue;var textNew=EditedXML.value;var xmlOrig=textOrig.replace(/>[^<>]*</g, "><" );
var nLinesOrig=textOrig.split("\n").length;var xmlNew=textNew.replace(/>[^<>]*</g, "><" );
var nLinesNew=textNew.split("\n").length;if(xmlOrig==xmlNew&&nLinesOrig==nLinesNew){var xml=EditedXML.value;xml=xml.replace(/&amp;/g, "a_m_p_e_r_s_a_n_d" );
xml=xml.replace(/\\\"/g, "q_u_o_t_e" );
xml=xml.replace(/&/g, "&amp;" );
xml=xml.replace(/\"/g, "\\\"" );
xml=xml.replace(/q_u_o_t_e/g, "\\\"" );
xml=xml.replace(/a_m_p_e_r_s_a_n_d/g, "&amp;" );
EditedXML.value=xml;document.getElementById("PublishXML").disabled=true;Form.Which_Button.value="xml";}
else{var err=", as a result, the file cannot be saved to disk. Please edit the data only then press Publish XML.\n\n==> Fix the error & try again or click \"Reset\"";if(nLinesOrig!=nLinesNew)alert("ERROR: You have added or removed lines"+err);else
alert("ERROR: You have edited XML tag(s)"+err);EditedXML.focus();return false;}}}
else{document.getElementById("PublishXML").disabled=true;Form.Which_Button.value="xml";}}
Form.ASP_Job.value="File_Writer";Form.submit();return(leftClick)?true:false;}
function resetUI(TextBox){if(TextBox=="EditedHTML")this.cursorReadyHtm=false;else if(TextBox=="EditedJS")this.cursorReadyJS=false;eval("document.AspForm."+TextBox+".value = document.AspForm."+TextBox+".defaultValue;");}
function reLoad(TextBox){if(eval("document.AspForm."+TextBox+".value")==eval("document.AspForm."+TextBox+".defaultValue"))document.location.reload(true);else if(confirm("You have made edits that you have not published. Click OK to reload the page & clear all non-published edits."))document.location.reload(true);}
function logOff(){var qStrOut=(qStr)?qStr+"&logoff=yes":"logoff=yes";document.location.replace(fileName+"?"+qStrOut);}
function logIn(Form){if(Form.Privleges[1].checked){var formUser=Form.user.value;for(var user in DB.Administrators){if(user==formUser.replace(/_/g, " " ) ) { Form.pw.value = rapw; break; }}}
var userNameFW=Form.user.value;if(userNameFW==""&&Form.Privleges[0].checked){alert("Please enter your user name");Form.user.focus();return false;}
else if(Form.pw.value==""){alert("Please enter your password");Form.pw.focus();return false;}
if(userNameFW)SetCookie("userNameFW",userNameFW,expDate12Mon,"/",cookieDomain);return true;}
function getLogInGUI(evt){var userNameFW=(GetCookie("userNameFW"))?GetCookie("userNameFW"):"";var gui="<form name='LogIn' method='get' onSubmit='return FW.logIn( this );' style='margin:0px;'><table align='center' border='0' cellspacing='0' cellpadding='0'><tr><td><table align='center' border='0' cellspacing='0' cellpadding='0'><tr class='"+((fileName=="calendar.aspx")?"on":"off")+"'><td class='fwField' style='padding-top:6px;'>Privleges</td><td class='fwValue' style='padding-top:6px;' id='tdBookingID'><input type='radio' name='Privleges' value='Write' title='Allows you to add/edit bookings' checked /> Read & Write;&nbsp;&nbsp;&nbsp;<input type='radio' name='Privleges' value='Read' title='Allows you to read-all booking info but not add or edit them' /> Read Only;</td></tr><tr><td class='fwField' style='padding-top:6px;'>User Name</td><td class='fwValue' style='padding-top:6px;' id='tdBookingID'><input type='text' name='user' class='fwText' title='Enter your user-name' value='"+userNameFW+"' /></td></tr><tr><td class='fwField' style='padding-top:6px;'>Password</td><td class='fwValue' style='padding-top:6px;' id='tdBookingID'><input type='password' name='pw' autocomplete='off' class='fwText' onMouseover='this.title=( document.LogIn.Privleges[0].checked ) ? \"Enter your password\" : \"Enter read-all password, User Name not required\";' /></td></tr><tr><td align='center' colspan='2' style='padding:10px 0px 0px 0px; white-space:nowrap;'><input type='submit' value='OK' style='margin:0px 4px 0px 0px;' /><input type='button' value='Cancel' onClick='DW.removeWin();' style='margin:0px 0px 0px 4px;' /></td></tr></table></td></tr></table></form>";DW.createWindow(["Administrator Log-In",gui],[0,460,0],null,evt,6);if(userNameFW)setTimeout("document.LogIn.pw.focus();",100);else
setTimeout("document.LogIn.user.focus();",100);}}
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);}