// Do not edit this compressed file. Download, rename & edit the master version of it.
var Msg=new Array();Msg.AboutKauai="About Kauai & Farmers Market Schedule...";Msg.aboutUs="About the friendly staff at Kauai Island Vacations";Msg.Accommodations="Browse our Luxury Vacation Rental Homes";Msg.contact="Contact us via phone, e-mail or mail";Msg.enlarge="Click to enlarge";Msg.ForSale="Real Estate offerings from Kauai Island Properties LLC";Msg.homePage="Back to our homepage";Msg.Insurance="We are proud to offer CSA travel insurance...";Msg.Policies="Deposits, Payments, Cancellations, Check-in/out time & more...";Msg.Services="Chefs, Masseurs, Hula, Music, Surfing, Snorkeling, Fishing & more...";Msg.Price="Get pricing";Msg.SS="View photos via our automated slide-show";Msg.underConstruction="Page under construction, check back soon...";IE=false,oldIE=false,AOL=false,SF=false,MZ=false,OP=false;if(navigator.appName=="Microsoft Internet Explorer"){IE=true;if(navigator.userAgent.indexOf("AOL")>=0)AOL=true;if(parseFloat(navigator.userAgent.split("MSIE")[1])<=6)oldIE=true;}
else if(navigator.userAgent.indexOf("Safari")>=0)SF=true;else if(navigator.appName=="Netscape")MZ=true;else if(navigator.appName=="Opera")OP=true;winOS=(navigator.platform.substring(0,3)=="Win");macOS=(navigator.platform.substring(0,3)=="Mac");theHost=document.location.hostname;local = ( /^\d+\.\d+\.\d+\.\d+$/.test(theHost)||theHost==""||theHost=="localhost");live=!local;emailRE=/^[\w\.-]*[^\.-]@[\w\.-]+\.[a-zA-Z]{2,}$/;qStr=unescape(document.location.search).substring(1);homePage="default.aspx"
path=document.location.pathname;delimeter=(path.indexOf("\\")>=0)?"\\":"/";if(path.charAt(path.length-1)==delimeter)path+=homePage;Path=path.split(delimeter);fileName=Path[Path.length-1];if(typeof window.DB=="object"){if(typeof window.DB.Administrators=="object"){for(var key in DB.Administrators){eMailOut="";eMailIn=DB.Administrators[key][0].replace(/\s{2}/g, "." );
eMailIn=eMailIn.replace(/\s{1}/g, "@" );
for(i=0;i<=eMailIn.length;i++)eMailOut=eMailIn.charAt(i)+eMailOut;DB.Administrators[key]=eMailOut;}}
if(typeof window.DB.Contact=="object"){eMailOut="";eMailIn=DB.Contact.Email.replace(/\s{2}/g, "." );
eMailIn=eMailIn.replace(/\s{1}/g, "@" );
for(i=0;i<=eMailIn.length;i++)eMailOut=eMailIn.charAt(i)+eMailOut;DB.Contact.Email=eMailOut;}}
Settings=new Array();Settings.IeTransNum=2;Settings.transDur=.8;Settings.folder="images/";Settings.defaultCaption="";Settings.borderWidDW=2;Settings.disableContextImgMenu=0;Settings.SS=new Array();Settings.SS.speed=4.5;Settings.SS.randomStart=1;Settings.SS.audio=0;Settings.SS.audioFolder="audio/";Settings.TN=new Array();Settings.TN.ProgressBar=new Array();Settings.TN.ProgressBar.hideOnSuccess=1;Settings.TN.ProgressBar.width=300;Settings.TN.ProgressBar.progressColor="rgb( 178,0,0 )";Settings.TN.ProgressBar.bgColor="rgb( 153,102,51 )";Settings.TN.ProgressBar.fontColor="rgb( 255,255,255 )";Settings.TN.bordColOff="rgb( 24,27,30 )";Settings.TN.bordColOn="rgb( 216,172,116 )";Settings.TN.pageTitle="";Settings.TN.align="center";Settings.TN.nImagesRow=6;Settings.TN.width=123;Settings.TN.height=82;function getBodySize(){var bodyWid=-1,bodyHgt=-1;if(IE){var Body=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;if(Body){bodyWid=Body.clientWidth;bodyHgt=Body.clientHeight;}}
else{bodyWid=window.innerWidth;bodyHgt=window.innerHeight;}
return[bodyWid,bodyHgt];}
function getCookieDomain(){var cookieDomain=null;if(live&&theHost){var Host=theHost.split("."),hLen=Host.length;if(hLen>=2)cookieDomain="."+Host[hLen-2]+"."+Host[hLen-1];}
return cookieDomain;}
function getCookieVal(offset){var endstr=document.cookie.indexOf(";",offset);if(endstr==-1)endstr=document.cookie.length;return unescape(document.cookie.substring(offset,endstr));}
function GetCookie(name){var arg=name+"=";var alen=arg.length;var clen=document.cookie.length;var i=0;while(i<clen){var j=i+alen;if(document.cookie.substring(i,j)==arg)return getCookieVal(j);i=document.cookie.indexOf(" ",i)+1;if(i==0)break;}
  return null;}
function SetCookie(name,value,expires){var path="/",domain=getCookieDomain(),secure=null;document.cookie=name+"="+escape(value)+((expires)?"; expires="+expires.toGMTString():"")+((path)?"; path="+path:"")+((domain)?"; domain="+domain:"")+((secure)?"; secure":"");}
function DeleteCookie(name){var path="/",domain=getCookieDomain();if(GetCookie(name)){document.cookie=name+"="+((path)?"; path="+path:"")+((domain)?"; domain="+domain:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}}
function recordToCookie(key,value,CookieExpDate){var cookieName=this.toString();var data=GetCookie(cookieName);if(!data)data="";value=value.toString();value=value.replace(/&/g, "and" ).replace(/=/g, "is" );
var KeyVals=data.split("&");var existingKey=0;for(var i=0;i<KeyVals.length;i++){var ThisPair=KeyVals[i].split("=");if(key==ThisPair[0]){if(value)KeyVals[i]=key+"="+value;else
KeyVals.splice(i,1);data=KeyVals.join("&");existingKey=1;break;}}
if(value&&!existingKey)data+=((data)?"&":"")+key+"="+value;if(data)SetCookie(cookieName,data,((CookieExpDate)?CookieExpDate:null));else
DeleteCookie(cookieName);}
String.prototype.recordToCookie=recordToCookie;var expDate12Mon=new Date();expDate12Mon.setTime(expDate12Mon.getTime()+(24*60*60*365*1000));userWithWritePrivileges=GetCookie("userWithWritePrivileges");if(userWithWritePrivileges)userWithWritePrivileges=userWithWritePrivileges.replace(/_/, " " );
if(userWithWritePrivileges||local)Settings.disableContextImgMenu=0;function getAjaxRequest(){var Request=null;if(window.XMLHttpRequest){try{Request=new XMLHttpRequest();}
catch(Err){Request=null;}}
else if(window.ActiveXObject){try{Request=new ActiveXObject("Msxml2.XMLHTTP");}
catch(Err){try{Request=new ActiveXObject("Microsoft.XMLHTTP");}
catch(Err){Request=null;}}}
return Request;}
function initAJAX(){if(window.FW&&GetCookie("userWithWritePrivileges"))FW.pollAdministrators();else
PL.run();}
function PreLoader(){var Files=new Array();Files.push("images/header.jpg");Files.push("accommodations.aspx");Files.push("real-estate.aspx");Files.push("about-us.aspx");Files.push("about-kauai.aspx");Files.push("services.aspx");Files.push("rental-policies.aspx");Files.push("rental-insurance.aspx");Files.push("default.aspx");Files.push("images-homepage.js");Files.push("images/bkgHomepage.gif");Files.push("images/ContactUs.jpg?date=2010_07_16");Files.push("images/linkWhoOff.gif");Files.push("images/linkWhoOn.gif");Files.push("images/linkAccomOff.gif");Files.push("images/linkAccomOn.gif");Files.push("images/linkKauaiOff.gif");Files.push("images/linkKauaiOn.gif");Files.push("images/linkPropOff.gif");Files.push("images/linkPropOn.gif");Files.push("images/linkServActOff.gif");Files.push("images/linkServActOn.gif");Files.push("images/linkContOff.gif");Files.push("images/linkContOn.gif");Files.push("images/ssHomeDownTheBeach.jpg");Files.push("images/arrowLeftSsTnOff.gif");Files.push("images/arrowLeftSsTnOn.gif");Files.push("images/arrowRightSsTnOff.gif");Files.push("images/arrowRightSsTnOn.gif");Files.push("images/pauseSsOff.gif");Files.push("images/pauseSsOn.gif");Files.push("images/pauseSsPaused.gif");Files.push("images/preloader.gif");Files.push("thumbnails.js?date=2010_07_16");Files.push("calendar.js");Files.push("property01.aspx");Files.push("property02.aspx");Files.push("property03.aspx");Files.push("property04.aspx");Files.push("property05.aspx");Files.push("property06.aspx");Files.push("property07.aspx");Files.push("property08.aspx");Files.push("property09.aspx");Files.push("property10.aspx");Files.push("property11.aspx");Files.push("property12.aspx");Files.push("property13.aspx");Files.push("property14.aspx");Files.push("property15.aspx");Files.push("property16.aspx");Files.push("property17.aspx");Files.push("property18.aspx");Files.push("property19.aspx");Files.push("property20.aspx");Files.push("property21.aspx");this.Files=Files;this.debug=0;try{if(top.qStr&&top.qStr.indexOf("preloader=show")!=-1)this.debug=1;}
catch(Err){}
if(this.debug)DeleteCookie("nFilesCached");this.begRequestTime=0;this.Request=null;this.timer=0;this.nFilesCachedCookie=GetCookie("nFilesCached");this.nFilesCached=(this.nFilesCachedCookie)?parseInt(this.nFilesCachedCookie):0;this.run=run;function run(){this.Request=getAjaxRequest();clearTimeout(PL.timer);if(this.Request){if(PL.debug&&!document.getElementById("PreloaderWin"))DW.createWindow(["<span id=PreloaderWinGenerating1>Generating </span>Preloader Report<span id=PreloaderWinGenerating2> <> Please Wait...</span>","<div id='PreloaderWin' style='margin:20px 20px 0px 20px;'></div>"],[1,700,350],null,null,0,[4,0,0],null,0);if(this.nFilesCached<this.Files.length){this.Request.onreadystatechange=function(){try{if(PL.Request.readyState==4){if(PL.debug){var PreloaderWin=document.getElementById("PreloaderWin");var endRequestTime=new Date().getTime();var elapsedTimeSec=(endRequestTime-PL.begRequestTime)/1000;elapsedTimeSec=elapsedTimeSec.toFixed(3);var fileSize=Math.round(PL.Request.getResponseHeader("Content-Length")/1024);if(fileSize==0)fileSize=1;if(PL.Request.status==200||PL.Request.status==304)PreloaderWin.innerHTML+=" & cached in "+elapsedTimeSec+" sec &#149; "+fileSize+" kb<br/>";else if(PL.Request.status)PreloaderWin.innerHTML+=" & error in "+elapsedTimeSec+" sec; <span style='color:red;'>"+PL.Request.status+" - "+PL.Request.statusText+"</span><br/>";if(PL.nFilesCached==PL.Files.length-1){PreloaderWin.innerHTML+="<div align='center' style='margin:12px 0px 0px 0px;'><input type='button' value='OK' class='DwOk' onClick='DW.removeWin();' title='Close' /></div><br/>";document.getElementById("PreloaderWinGenerating1").innerHTML="";document.getElementById("PreloaderWinGenerating2").innerHTML="";}}
if(PL.Request.status){PL.nFilesCached++;SetCookie("nFilesCached",PL.nFilesCached);PL.timer=setTimeout("if( window.PL ) PL.run();",100);}}}
catch(Err){var eMsg="Exception at PL.run()\n\n";for(var i in Err)eMsg+=i+": "+Err[i]+"\n";try{if(PL.debug)alert(eMsg);} catch(Err){}}}
this.Request.open("GET",this.Files[this.nFilesCached],true);this.Request.send(null);if(PL.debug){this.begRequestTime=new Date().getTime();var PreloaderWin=document.getElementById("PreloaderWin");if(PreloaderWin)PreloaderWin.innerHTML+=(PL.nFilesCached+1)+". "+PL.Files[PL.nFilesCached]+" requested";}}}
else if(PL.debug)alert("Error at PL.run: Browser unable to make an AJAX request");}} PL=new PreLoader();function getMonthName(nChars){var Months=["January","February","March","April","May","June","July","August","September","October","November","December"];var monthName=Months[this.getMonth()];return(nChars)?monthName.substring(0,nChars):monthName;}
Date.prototype.getMonthName=getMonthName;function getDayName(nChars){var Days=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var dayName=Days[this.getDay()];return(nChars)?dayName.substring(0,nChars):dayName;}
Date.prototype.getDayName=getDayName;function getVal(key){var value=null;var strToSearch=this.toString();var KeyVals=strToSearch.split("&");for(member in KeyVals){var ThisPair=KeyVals[member].split("=");if(key==ThisPair[0]){value=ThisPair[1];break;}}
if(typeof value=="undefined")value="";return value;}
String.prototype.getVal=getVal;function trim(){var str=this.toString();return str.replace(/^\s*|\s*$/g, "" );}
String.prototype.trim=trim;FadeObj=null;transNum=-1;transDur=-1;transDelay=-1;fadeOpacity=0,fadeOpacityTimer=0,fadeStartTime=0;opacityStep=(window.Settings&&window.Settings.SS&&Settings.transDur)?1/(Settings.transDur/.04):.05;function randompick(){return randompick.arguments[Math.floor(Math.random()*randompick.arguments.length)];}
function getTransition(transNum,duration){var trans="";if(IE){var d=duration;if(parseFloat(navigator.userAgent.split("MSIE")[1])>=5.5){var thisTrans=(transNum==1)?Math.floor(Math.random()*17)+2:transNum;switch(thisTrans){case 2:trans="Fade(duration="+d+",overlap=1)";break;case 3:trans="Blinds(duration="+d+",bands="+randompick(2,4,6,8)+",direction="+randompick('up','down','right','left')+")";break;case 4:trans="CheckerBoard(duration="+d+",squaresX="+randompick(2,4,8,12)+",squaresY="+randompick(2,4,8,12)+",direction="+randompick('up','down','right','left')+")";break;case 5:trans="Barn(duration="+d+",motion="+randompick('in','out')+",orientation=",randompick('horizontal','vertical')+")";break;case 6:trans="GradientWipe(duration="+d+",gradientSize="+randompick(0,0.1,0.3,0.5,0.7,0.9,1)+",wipeStyle="+randompick(0,1)+",motion="+randompick('forward','reverse')+")";break;case 7:trans="Inset(duration="+d+")";break;case 8:trans="Iris(duration="+d+",irisStyle="+randompick('DIAMOND','CIRCLE','CROSS','PLUS','SQUARE','STAR')+",motion="+randompick('in','out')+")";break;case 9:trans="RadialWipe(duration="+d+",wipeStyle="+randompick('CLOCK','WEDGE','RADIAL')+")";break;case 10:trans="RandomBars(duration="+d+",orientation="+randompick('horizontal','vertical')+")";break;case 11:trans="RandomBars(duration="+d+")";break;case 12:trans="Slide(duration="+d+",pushStyle="+randompick('HIDE','PUSH','SWAP')+",bands="+randompick(1,2,3,4,5,6,7)+")";break;case 13:trans="Spiral(duration="+d+",gridSizeX="+randompick(8,16,32,64)+",gridSizeY="+randompick(8,16,32,64)+")";break;case 14:trans="Stretch(duration="+d+",stretchStyle="+randompick('HIDE','PUSH','SPIN')+")";break;case 15:trans="Strips(duration="+d+",motion="+randompick('leftdown','leftup','rightdown','rightup')+")";break;case 16:trans="Wheel(duration="+d+",spokes="+randompick(2,4,10,16,20)+")";break;case 17:trans="Zigzag(duration="+d+",gridSizeX="+randompick(8,16,32,64)+",gridSizeY="+randompick(8,16,32,64)+")";break;case 18:trans="RandomDissolve(duration="+d+")";break;default:alert("SWITCH/CASE ERROR: Case caught by default handler in \"getTransition\"");}
trans="progid:DXImageTransform.Microsoft."+trans;}
else{switch(transNum){case 2:trans="blendTrans(duration="+d+")";break;default:trans="revealTrans(duration="+d+",transition="+Math.floor(Math.random()*23)+")";}}}
return trans;}
function getOpacity(){var opac="";if(IE)opac="visibility:hidden;";else if(MZ)opac="opacity:0;"
else if(SF||OP)opac="opacity:0;"
return opac;}
function setOpacity(Obj){if(IE)Obj.style.visibility="hidden";else if(MZ)Obj.style.opacity=0;else if(SF||OP)Obj.style.opacity=0;}
function startFade(FadeObj,transNum,transDur,transDelay){if((IE||MZ||SF||OP)&&window.FadeObj==null){window.FadeObj=FadeObj;if(IE){window.transNum=transNum;window.transDur=transDur;window.transDelay=transDelay;setTimeout("fadeInDirectX()",transDelay);}
else{fadeStartTime=new Date().getTime();FadeObj.onload=function(){};(transDelay)?setTimeout("fadeIn()",transDelay):fadeIn();}}
else{if(IE)FadeObj.style.visibility="visible";else if(MZ)FadeObj.style.opacity=0.9999;else FadeObj.style.opacity=0.9999;FadeObj.style.visibility="visible";}}
function fadeIn(){if(MZ)FadeObj.style.opacity=fadeOpacity;else FadeObj.style.opacity=fadeOpacity;fadeOpacity+=opacityStep;if(fadeOpacity<1)fadeOpacityTimer=setTimeout("fadeIn();",40);else{if(MZ)FadeObj.style.opacity=0.9999;else FadeObj.style.opacity=0.9999;clearTimeout(fadeOpacityTimer);fadeOpacity=0;var fadeEndTime=new Date().getTime();var fadeDuration=fadeEndTime-fadeStartTime;fadeStartTime=0;if(fadeDuration>1500)opacityStep+=.03;FadeObj=null;}}
function fadeInDirectX(){try{FadeObj.style.filter=getTransition(transNum,transDur);FadeObj.filters(0).apply();FadeObj.style.visibility="visible";FadeObj.filters(0).play();FadeObj.onfilterchange=function(){FadeObj=null;}}
catch(Err){if(local){var eMsg="Exception Caught in fadeInDirectX function:\n\n";for(var i in Err)eMsg+=i+": "+Err[i]+"\n";alert(eMsg);}
FadeObj.style.visibility="visible";}}
fileNameErr=false;function checkImgName(fileName){var rePattern=/\s+/g;if( !fileNameErr && rePattern.test(fileName)){fileNameErr=true;alert("An image file named \""+fileName+"\" contains forbidden white-space characters.");}}
function getPhotoCaption(captionIn,fileName){var captionOut=captionIn.trim();if(captionOut){captionOut=captionOut.replace(/\[/g, "<div class=dwTitleLine2>" ).replace(/]/g, "</div>" );
captionOut=captionOut.replace(/<>/g, "<span class=dwBullet>&#149;</span>" );
captionOut=captionOut.replace(/'/g, "&#39;" );
if(fileName){switch(captionOut){case "*":captionOut=Settings.defaultCaption;break;case "_":captionOut=fileName;break;}}}
return captionOut;}
function initImagesArr(){try{Images.pop();for(var i=0;i<Images.length;i++){Images[i][1]=getPhotoCaption(Images[i][1],Images[i][0]);checkImgName(Images[i][0]);}}
catch(Err){alert("Images array cannot be initialized because the data it contains is malformed (bad syntax)");}}
function rightClickImg(ThePhoto,evt,wid,hgt){if(userWithWritePrivileges){var Photo=getAjaxRequest();if(Photo){var countAlert="",countTitleBar="",Img=null;if(DW.winType=="SS"||DW.winType=="TN"){var SsTnCount=document.getElementById("SsTnCount");var Numbers=document.getElementById("SsTnCount").innerHTML.split("/");var nImage=parseInt(Numbers[0]);var nImages=Numbers[1];countAlert=nImage+" of "+nImages;countTitleBar=nImage+"/"+nImages;Img=Images[nImage-1];}
else{Img=[ThePhoto.src.replace(/.*\//, "" ),
ThePhoto.style.width.replace(/\D/g, "" ),
ThePhoto.style.height.replace(/\D/g, "" ),
DW.title];}
Photo.onreadystatechange=function(){try{if(Photo.readyState==4){if(Photo.status==200||Photo.status==304){var fileSize=Math.round(parseInt(Photo.getResponseHeader("Content-Length"))/1024)+" KB";var shape=(wid>hgt)?"horizontal":((wid<hgt)?"vertical":"square");var TxtTitleBar=new Array();TxtTitleBar.push(Img[0]);TxtTitleBar.push(" \u00A0\u2022\u00A0 ");TxtTitleBar.push(wid);TxtTitleBar.push(" \u00D7 ");TxtTitleBar.push(hgt);TxtTitleBar.push(" px; ");TxtTitleBar.push(shape);TxtTitleBar.push(" \u00A0\u2022\u00A0 ");TxtTitleBar.push(fileSize);TxtTitleBar.push(" \u00A0\u2022\u00A0 ");if(countAlert){TxtTitleBar.push(countAlert);TxtTitleBar.push(" \u00A0\u2022\u00A0 ");}
if(Img[3]){TxtTitleBar.push(Img[3]);TxtTitleBar.push(" \u00A0 \u00A0");}
top.document.title=TxtTitleBar.join("");var TxtAlert=new Array();TxtAlert.push("Name: ");TxtAlert.push(Img[0]);TxtAlert.push("\n");TxtAlert.push("Dimensions: ");TxtAlert.push(wid);TxtAlert.push(" \u00D7 ");TxtAlert.push(hgt);TxtAlert.push(" px; ");TxtAlert.push(shape);TxtAlert.push("\n");TxtAlert.push("File Size: ");TxtAlert.push(fileSize);TxtAlert.push("\n");if(countAlert){TxtAlert.push("Number: ");TxtAlert.push(countAlert);TxtAlert.push("\n");}
if(Img[3]){TxtAlert.push("Caption: ");TxtAlert.push(Img[3]);TxtAlert.push("\n");}
alert(TxtAlert.join(""));}
else
alert("Error retrieving photo at function rightClickImg\n\nPhoto.status: "+Photo.status);}}
catch(Err){var eMsg="Exception at function rightClickImg\n\n";for(var i in Err)eMsg+=i+": "+Err[i]+"\n";try{alert(eMsg);} catch(Err){}}}
Photo.open("GET",Settings.folder+Img[0]);Photo.send(null);}
return false;}
else
return(Settings.disableContextImgMenu)?false:true;}
function enlargement(photoCaption,Link){DW.photoCaption=photoCaption;DW.createEnlargement("",Link.href);return false;}
function writeMailFriend(){var PageTitle=document.getElementById("PageTitle");var property=PageTitle.innerHTML.trim();var subject="Kauai Vacation Rental: "+property;var hRef=document.location.href;var msg="\r\n\r\nCheck out "+property+" offered by Kauai Island Vacations:\r\n"+hRef.replace(/\?.*/, "" );
document.write("<a href='mailto:?subject="+escape(subject)+"&body="+escape(msg)+"' title='E-Mail this property to a friend' class='Email'>E-Mail A Friend</a>");}
function writePhoneAndEmail(){var PageTitle=document.getElementById("PageTitle");var property=(PageTitle&&PageTitle.innerHTML.trim())?PageTitle.innerHTML.trim():"";var subject=(property)?property:document.location.href;document.write("Call "+DB.Contact.PhonePrimary+" or "+"<a href='mailto:"+DB.Contact.Email+"?subject="+escape(subject+"; KIV Web Site Inquiry")+"' title='Send us an e-mail' class='Email'>E-Mail Us</a><br/><br/>");}
function DynamicWindow(transNum,transDur){var htm="<div><table align='center'><tr><td align='right'><table align='center'><tr><td valign='top' align='right'><div style='margin:0px 0px 0px 0px; padding:2px 0px 2px 0px;' class='noWrap'>Name:</div></td><td valign='top' align='left'><div style='margin:0px 0px 0px 6px; padding:2px 0px 2px 0px;'>"+DB.Contact.Name+"</div></td></tr><tr><td valign='top' align='right'><div style='margin:4px 0px 0px 0px; padding:2px 0px 2px 0px;' class='noWrap'>Mail:</div></td><td align='left'><div style='margin:4px 0px 0px 6px; padding:2px 0px 2px 0px;'>"+DB.Contact.Address1+"<br>"+DB.Contact.Address2+"</div></td></tr><tr><td valign='top' align='right'><div style='margin:4px 0px 0px 0px; padding:2px 0px 2px 0px;' class='noWrap'>Phone:</div></td><td align='left'><div style='margin:4px 0px 0px 6px; padding:2px 0px 2px 0px;'>"+DB.Contact.PhonePrimary+"</div></td></tr>";if(DB.Contact.PhoneOther)htm+="<tr><td valign='top' align='right'><div style='margin:4px 0px 0px 0px; padding:2px 0px 2px 0px;' class='noWrap'>Other Tel:</div></td><td align='left'><div style='margin:4px 0px 0px 6px; padding:2px 0px 2px 0px;'>"+DB.Contact.PhoneOther+"</div></td></tr>";htm+="<tr><td align='right'><div style='margin:4px 0px 0px 0px; padding:2px 0px 2px 0px;' class='noWrap'>Hawaii Time:</div></td><td align='left'><div style='margin:4px 0px 0px 6px; padding:2px 0px 2px 0px;'><span id='hawaii_time'></span></div></td></tr><tr><td align='right'><div style='margin:4px 0px 0px 0px; padding:2px 0px 2px 0px;' class='noWrap'>Send E-Mail:</div></td><td align='left'><div style='margin:4px 0px 0px 6px; padding:2px 0px 2px 0px;'>"+getEmailLink("Kauai Island Vacations Web-Site Inquiry")+"</div></td></tr></table></td><td valign='middle'><img src='images/ContactUs.jpg?date=2010_07_16' style='width:267px; height:200px; float:left; margin:0px 0px 0px 15px;'></td></tr></table></div>";var adminNotes=(GetCookie("userWithWritePrivileges"))?"<div class=dwTitleLine2>To change photo upload a new one named ContactUs.jpg @ 267&times;200 pixels</div>":"";this.ContactUs=["Contact Us <> Holly & Don Lazo"+adminNotes,htm];this.ssTnskewIeX=2;this.ssTnskewIeY=6;this.skewIeX=2;this.skewIeY=2;window.gClickPos=null;this.transNum=(transNum)?transNum:2;this.transDur=(transDur)?transDur:0.8;this.dWinOffsetX=0;this.dWinOffsetY=0;this.ImgOffscreen=null;this.overlayExists=false;this.overTitleBar=false;this.Photo=null;this.TheBody=null;this.Window=null;this.winType;this.addOverlay=addOverlay;this.cancelEvt=cancelEvt;this.cancelPreloader=cancelPreloader;this.createEnlargement=createEnlargement;this.getScaledSize=getScaledSize;this.reCenter=reCenter;this.createWindow=createWindow;this.showImg=showImg;this.keepInWin=keepInWin;this.getClickPosition=getClickPosition;this.getData=getData;this.mouseDown=mouseDown;this.mouseMove=mouseMove;this.moveTopImage=moveTopImage;this.otherFunctionalityOnRemoveWin=otherFunctionalityOnRemoveWin;this.removeWin=removeWin;this.setBody=setBody;this.mouseUp=mouseUp;document.onmousedown=this.mouseDown;document.onmousemove=this.mouseMove;document.onmouseup=this.mouseUp;var Preloader=new Image();Preloader.src="images/preloader.gif";function otherFunctionalityOnRemoveWin(){}
function cancelPreloader(){var Overlay=document.getElementById("dwOverlay");if(Overlay)document.body.removeChild(Overlay);this.overlayExists=false;this.ImgOffscreen=document.getElementById("ImgOffscreen");if(this.ImgOffscreen){this.ImgOffscreen.onload=function(){};document.body.removeChild(this.ImgOffscreen);}}
function createEnlargement(winType,imgSrc){DW.addOverlay(1,winType);this.ImgOffscreen=document.getElementById("ImgOffscreen");if(this.ImgOffscreen)document.body.removeChild(this.ImgOffscreen);this.ImgOffscreen=document.createElement("IMG");this.ImgOffscreen.id="ImgOffscreen";this.ImgOffscreen.style.position="absolute";this.ImgOffscreen.style.top="-1000000px";this.ImgOffscreen.style.left="-1000000px";document.body.appendChild(this.ImgOffscreen);this.ImgOffscreen.onload=function(){var CancelPreload=document.getElementById("CancelPreload");if(CancelPreload)CancelPreload.innerHTML="";DW.createWindow([DW.photoCaption,"imgSrc="+this.src],[0,this.width,this.height],null,null,0,[4,0,0],winType);if(winType){var TdCount=document.getElementById("SsTnCount");TdCount.innerHTML=DW.photoCount;}}
this.ImgOffscreen.onerror=function(){var imgSrc=this.src;DW.cancelPreloader();alert("Image Not Found:\n"+imgSrc);}
this.ImgOffscreen.src=imgSrc;}
function createWindow(dataSrc,WinDim,TheLink,theEvent,bodyMargin,RequestedPos,winType,centerContent,addOverlay){this.setBody();if(TheLink)TheLink.blur();if(window.SS&&winType!="SS")SS.kill();if(window.TN&&winType!="TN")TN.kill();if(!bodyMargin)bodyMargin=0;this.winType=(winType)?winType:"";var Data=this.getData(dataSrc,TheLink),theCaption,body;theCaption=getPhotoCaption(Data[0]);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]:15;if(showImg){var imgSrc=body.split("imgSrc=")[1];var WinDim=this.getScaledSize(winWid,winHgt,theCaption);winWid=WinDim[0];winHgt=WinDim[1];var body="<img src='"+imgSrc+"' border='0' hspace='0' vspace='0' galleryimg='no' style='"+getOpacity()+" width:"+winWid+"px; height:"+winHgt+"px;' onload='DW.showImg( this );' onAbort='this.src=this.src;' id='ImageDW'>";if(this.winType=="TN"){var titleBarGUI="<table align='center' id='tnTable'><tr align='center'><td class='dwBackEnlargementSsTn' id='SsTnBackTD' onmousedown='DW.cancelEvt( event );'><a href='javascript:void(0);' onClick='TN.nextImage( 0, event ); return false;' title='Last enlargement' onmousedown='DW.cancelEvt( event );'><img src='images/arrowLeftSsTnOff.gif' class='dwArrowSsTn' onMouseover='src=\"images/arrowLeftSsTnOn.gif\";' onMouseout='src=\"images/arrowLeftSsTnOff.gif\";' /></a></td><td class='dwTitle dwImgTitleSS' id='SsTnTitle'>"+theCaption+"</td><td class='dwNextEnlargementSsTn'><a href='javascript:void(0);' onClick='TN.nextImage( 1, event ); return false;' title='Next enlargement, or click photo...' onmousedown='DW.cancelEvt( event );' id='SsTnNext'><img src='images/arrowRightSsTnOff.gif' class='dwArrowSsTn' onMouseover='src=\"images/arrowRightSsTnOn.gif\";' onMouseout='src=\"images/arrowRightSsTnOff.gif\";' /></a></td></tr></table>";theCaption=titleBarGUI;}
else if(this.winType=="SS"){var titleBarGUI="<table align='center' id='tnTable'><tr align='center'><td class='dwBackEnlargementSsTn' id='SsTnBackTD' onmousedown='DW.cancelEvt( event );'><a href='javascript:void(0);' onClick='SS.back(); return false;' title='Back' onmousedown='DW.cancelEvt( event );'><img src='images/arrowLeftSsTnOff.gif' class='dwArrowSsTn' onMouseover='src=\"images/arrowLeftSsTnOn.gif\";' onMouseout='src=\"images/arrowLeftSsTnOff.gif\";' /></a></td><td class='dwTitle dwImgTitleSS' id='SsTnTitle'>"+theCaption+"</td><td class='dwNextEnlargementSsTn'><a href='javascript:void(0);' onClick='SS.next( event ); return false;' title='Next' onmousedown='DW.cancelEvt( event );' id='SsTnNext'><img src='images/arrowRightSsTnOff.gif' class='dwArrowSsTn' onMouseover='src=\"images/arrowRightSsTnOn.gif\";' onMouseout='src=\"images/arrowRightSsTnOff.gif\";' /></a></td></tr></table>";theCaption=titleBarGUI;}}
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";var borderWid=(DW.overlayExists)?0:Settings.borderWidDW;NewWindow.style.borderWidth=borderWid+"px";NewWindow.style.width=(IE&&document.compatMode!="CSS1Compat")?(winWid+(2*borderWid))+"px":winWid+"px";NewWindow.style.top=(screen.height*-1)+"px";NewWindow.style.left=(screen.width*-1)+"px";NewWindow.style.zIndex=10000;var music=(this.winType=="SS"&&Settings.SS.audio)?"&nbsp; &nbsp;<a href='javascript:void(0);' onClick='SS.pause( 1 ); Menu.show( this, \"Music_Menu\", 34, event, 0, 6 );' Menu.keepAlive([\"Music_Menu\"]);' onMouseout='Menu.hide([[\"Music_Menu\"]]);' class='SsMusic' title='"+Msg.SsAudio+"'>&#9835;</a>&nbsp;":"";var counterCell=(this.winType=="TN"||this.winType=="SS")?"<td id='dwTitleLeft' class='dwCounterSsTn'><span id='SsTnCount'></span><span>"+music+"</td>":"";var pauseBut=(this.winType=="SS")?"&nbsp;<a href='javascript:SS.pause( ( SS.running ) ? 1 : 0 );' title='Pause'><img src='images/pauseSsOff.gif' id='PauseSs' class='dwPauseSs' onMouseover='SS.highlightPause( this, 1 );' onMouseout='SS.highlightPause( this, 0 );'></a>&nbsp;":"";var winClass=(DW.overlayExists||addOverlay)?"dwTitleRowOverlay":"dwTitleRow";var myWindow="<div class='"+winClass+"' id='dwTitleRowID' onmouseover='DW.overTitleBar=true;' onmouseout='DW.overTitleBar=false;'><table align='center'><tr>"+counterCell+"<td class='dwTitle' style='width:100%; text-align:center;' id='dwTitleCenter'>"+theCaption+"</td><td valign='top' id='dwTitleRight' onmousedown='DW.cancelEvt( event );' style='white-space:nowrap;'>"+pauseBut+"<a href='javascript:DW.removeWin();' title='Close' id='dwX' class='dwX'>&nbsp;&times;&nbsp;</a></td></tr></table></div><div class='"+((showImg)?"dwBodyParentImg":"dwBodyParent")+"' style='width:100%;"+bodyHgtStyle+scrollStyle+"'><div class='dwBody' id='dwBodyID' style='margin:"+bodyMargin+"px;'>";if(centerContent)myWindow+="<table align='center'><tr><td>";myWindow+=body;if(centerContent)myWindow+="</td></tr></table>";myWindow+="</div></div>";NewWindow.innerHTML=myWindow;var xPos=0,yPos=0;if(clickPos||aboveClkPos){if(theEvent)var ClickPos=this.getClickPosition(theEvent);else if(window.gClickPos)var ClickPos=gClickPos;window.gClickPos=ClickPos;xPos=ClickPos[0];var vPortWid=(document.body.clientWidth)?document.body.clientWidth:window.innerWidth;var skew=Math.round(100*xPos/vPortWid)/100;xPos=xPos-(skew*NewWindow.offsetWidth);if(clickPos)yPos=ClickPos[1]+yOffset;else
yPos=ClickPos[1]-NewWindow.offsetHeight+yOffset;}
else if(topCent||center||botCent){var scrollX,scrollY,bodyWid,bodyHgt;if(IE){scrollX=this.TheBody.scrollLeft;scrollY=this.TheBody.scrollTop;bodyWid=this.TheBody.clientWidth;bodyHgt=this.TheBody.clientHeight;}
else{scrollX=window.pageXOffset;scrollY=window.pageYOffset;bodyWid=window.innerWidth;bodyHgt=window.innerHeight;}
winHgt=NewWindow.offsetHeight;winWid=NewWindow.offsetWidth;xPos=parseInt((bodyWid-winWid)/2+scrollX+xOffset);if(topCent)yPos=parseInt(scrollY+yOffset);else if(center)yPos=parseInt((bodyHgt-winHgt)/2+scrollY+yOffset);else yPos=parseInt(bodyHgt-winHgt+scrollY+yOffset);}
else{var Component=(window.ComponentDW)?window.ComponentDW:document.getElementById(RequestedPos[3]);if(SF){var Target=(theEvent.target)?theEvent.target:theEvent.srcElement;if(Target.nodeType==3)Component=Component.parentNode;}
var CurComponent=Component;var parPosAbs=false;while(CurComponent){yPos+=CurComponent.offsetTop;xPos+=CurComponent.offsetLeft;CurComponent=CurComponent.offsetParent;}
switch(RequestedPos[0]){case 10:xPos+=xOffset;yPos-=NewWindow.offsetHeight-yOffset;break;case 11:xPos+=Component.offsetWidth+xOffset;yPos-=NewWindow.offsetHeight-yOffset;break;case 12:xPos+=Component.offsetWidth+xOffset;yPos+=yOffset;break;case 13:xPos+=Component.offsetWidth+xOffset;yPos+=Component.offsetHeight+yOffset;break;case 14:xPos+=xOffset;yPos+=Component.offsetHeight+yOffset;break;case 15:xPos+=Component.offsetWidth+xOffset-NewWindow.offsetWidth;yPos+=Component.offsetHeight+yOffset;break;case 16:xPos+=xOffset-NewWindow.offsetWidth;yPos+=Component.offsetHeight+yOffset;break;case 17:xPos+=xOffset-NewWindow.offsetWidth;yPos+=yOffset;break;default:alert("Switch/Case Error at DW.createWindow: RequestedPos[ 0 ] has a value of "+RequestedPos[0]+" which is invalid.");}}
var NewWindowPos=this.keepInWin(NewWindow,xPos,yPos);xPos=Math.round(NewWindowPos[0]);yPos=Math.round(NewWindowPos[1]);NewWindow.style.left=xPos+"px";NewWindow.style.top=yPos+"px";if(addOverlay)this.addOverlay(0,winType);NewWindow.style.visibility="visible";}
function getScaledSize(imgWid,imgHgt,photoCaption){var photoCaptionLC=photoCaption.toLowerCase();var nLines=1;nLines+=photoCaptionLC.split("<div").length-1;nLines+=photoCaptionLC.split("<br").length-1;var marginX=45;var marginY=50+(10*nLines);var dwWid=imgWid+marginX;var dwHgt=imgHgt+marginY;var bodyWid,bodyHgt;if(IE){bodyWid=this.TheBody.clientWidth;bodyHgt=this.TheBody.clientHeight;}
else{bodyWid=window.innerWidth;bodyHgt=window.innerHeight;}
var winWidNew,winHgtNew;if(dwWid>=bodyWid||dwHgt>=bodyHgt){var widOver=dwWid-bodyWid;var hgtOver=dwHgt-bodyHgt;if(hgtOver/bodyHgt>widOver/bodyWid){winHgtNew=bodyHgt-marginY;winWidNew=Math.round((winHgtNew/imgHgt)*imgWid);}
else{winWidNew=bodyWid-marginX;winHgtNew=Math.round((winWidNew/imgWid)*imgHgt);}}
else{winWidNew=imgWid;winHgtNew=imgHgt;}
return[winWidNew,winHgtNew];}
function addOverlay(showPreloader,winType){this.winType=winType;this.setBody();var Overlay=document.getElementById("dwOverlay");if(!Overlay){if(window.SSE&&SSE.running)SSE.pauseSS(1);window.onscroll=function(){var Overlay=document.getElementById("dwOverlay");if(Overlay){document.body.removeChild(Overlay);DW.overlayExists=false;if(window.SSE&&!SSE.running)SSE.pauseSS(0);}}
var Overlay=document.createElement("DIV");Overlay.id="dwOverlay";Overlay.className="dwOverlay";if(this.winType=="TN"||this.winType=="SS"){var TopImage=document.getElementById("TopImage");if(TopImage){document.body.removeChild(TopImage);(this.winType=="SS")?SS.TopImage=null:TN.TopImage=null;}}
else{Overlay.onclick=function(){var CancelPreloadImg=document.getElementById("CancelPreloadImg");if(!CancelPreloadImg){document.body.removeChild(this);DW.overlayExists=false;}}}
document.body.appendChild(Overlay);var wid=this.TheBody.clientWidth;var hgt=this.TheBody.clientHeight;var xPos=(IE)?this.TheBody.scrollLeft:window.pageXOffset;var yPos=(IE)?this.TheBody.scrollTop:window.pageYOffset;Overlay.style.left=xPos+"px";Overlay.style.top=yPos+"px";Overlay.style.width=wid+"px";Overlay.style.height=hgt+"px";if(showPreloader)Overlay.innerHTML="<div align='center' class='cancelPreload' id='CancelPreload'><img src='images/preloader.gif' class='cancelPreload' id='CancelPreloadImg' /><div><a href='javascript:DW.cancelPreloader();' class='cancelPreload' title='Stop image loading'>Cancel</a></div></div>";}
this.overlayExists=true;}
function reCenter(DW){var scrollX,scrollY,bodyWid,bodyHgt,xPos,yPos;if(IE){scrollX=this.TheBody.scrollLeft;scrollY=this.TheBody.scrollTop;bodyWid=this.TheBody.clientWidth;bodyHgt=this.TheBody.clientHeight;}
else{scrollX=window.pageXOffset;scrollY=window.pageYOffset;bodyWid=window.innerWidth;bodyHgt=window.innerHeight;}
winHgt=DW.offsetHeight;winWid=DW.offsetWidth;xPos=parseInt((bodyWid-winWid)/2+scrollX);yPos=parseInt((bodyHgt-winHgt)/2+scrollY);DW.style.left=xPos+"px";DW.style.top=yPos+"px";}
function showImg(Photo){Photo.oncontextmenu=function(event){return window.rightClickImg(this,event,this.width,this.height);};if(this.winType=="TN"){Photo.title="Next enlargement";Photo.onclick=function(event){TN.nextImage(1,event);this.title="";}
document.getElementById("SsTnCount").onmouseover=function(){var Numbers=this.innerHTML.split("/");this.title="Photo #"+Numbers[0]+" of "+Numbers[1];}
TN.preloadNext();}
else if(this.winType=="SS"){Photo.title="Next";Photo.onclick=function(event){SS.next(event);this.title="";}
document.getElementById("SsTnCount").onmouseover=function(){var Numbers=this.innerHTML.split("/");this.title="Photo #"+Numbers[0]+" of "+Numbers[1];}
SS.preLoadNext();}
else{Photo.onclick=DW.removeWin;Photo.title="Click to close";}
Photo.style.cursor="pointer";startFade(Photo,this.transNum,this.transDur,0);}
function keepInWin(NewWindow,leftEdge,topEdge){var bodyHgt=(IE)?this.TheBody.clientHeight:window.innerHeight;var bodyWid=(IE)?this.TheBody.clientWidth:window.innerWidth;var winHgt=NewWindow.offsetHeight;var yOffset=(IE)?this.TheBody.scrollTop:window.pageYOffset;var vScreenPos=topEdge-yOffset;var vSkew=bodyHgt-vScreenPos;if(vScreenPos<10)topEdge=10+yOffset;else if(vSkew<winHgt+10)topEdge-=winHgt-vSkew+10;var winWid=NewWindow.offsetWidth;var xOffset=(IE)?this.TheBody.scrollLeft:window.pageXOffset;var hScreenPos=leftEdge-xOffset;var hSkew=bodyWid-hScreenPos;if(hScreenPos<10)leftEdge=10+xOffset;else if(hSkew<winWid+10){leftEdge-=winWid-hSkew+10;if(!IE&&this.TheBody.scrollHeight>bodyHgt)leftEdge-=15;}
if(leftEdge<11)leftEdge=10;if(topEdge<11)topEdge=10;return[leftEdge,topEdge];}
function getClickPosition(theEvent){try{if(IE){var x=event.clientX+this.TheBody.scrollLeft;var y=event.clientY+this.TheBody.scrollTop;}
else{var x=theEvent.pageX;var y=theEvent.pageY;}}
catch(err){var x=0;var y=0;}
return[x,y];}
function getData(dataSrc,TheLink){if(dataSrc=="nextSibling"){if(eval("typeof this.LastSrc")=="object")eval("this.LastSrc.innerHTML = this.lastData");try{var DataSource=(TheLink.nextSibling.innerHTML)?TheLink.nextSibling:TheLink.nextSibling.nextSibling;}
catch(err){alert("EXCEPTION: Data source not found");return false;}
try{var Title=(DataSource.firstChild.innerHTML)?DataSource.firstChild:DataSource.firstChild.nextSibling;var title=Title.innerHTML;}
catch(err){alert("EXCEPTION: Title source not found");return false;}
try{var Body=(Title.nextSibling.innerHTML)?Title.nextSibling:Title.nextSibling.nextSibling;var body=Body.innerHTML;}
catch(err){alert("EXCEPTION: Body source not found");return false;}
eval("this.LastSrc = DataSource");eval("this.lastData = DataSource.innerHTML");DataSource.innerHTML="";}
else{var title=dataSrc[0];var body=dataSrc[1];}
return[title,body];}
function mouseDown(e){if(DW.overTitleBar){this.Window=document.getElementById("dWinID");if(IE){var borderWid=(DW.overlayExists)?0:Settings.borderWidDW;if(DW.winType=="TN"||DW.winType=="SS"){this.dWinOffsetX=event.offsetX+borderWid+DW.ssTnskewIeX;this.dWinOffsetY=event.offsetY+borderWid+DW.ssTnskewIeY;var Elem=event.srcElement,ParentElem=Elem.offsetParent;if(Elem.id=="dwTitleCenter")this.dWinOffsetX+=document.getElementById("dwTitleLeft").scrollWidth;else if(Elem.id=="SsTnTitle"||ParentElem.id=="SsTnTitle"){var CurComponent=Elem;var xPos=0,yPos=0;while(CurComponent){if(CurComponent.id=="tnTable"){yPos=CurComponent.offsetTop;xPos=CurComponent.offsetLeft;break;}
CurComponent=CurComponent.offsetParent;}
this.dWinOffsetX+=document.getElementById("dwTitleLeft").scrollWidth+document.getElementById("SsTnBackTD").scrollWidth+xPos;}
else if(Elem.id=="dwTitleRight"){var CurComponent=Elem;var xPos=0,yPos=0;while(CurComponent){if(CurComponent.id=="dwTitleRight"){yPos=CurComponent.offsetTop;xPos=CurComponent.offsetLeft;break;}
CurComponent=CurComponent.offsetParent;}
this.dWinOffsetX+=xPos;}}
else{this.dWinOffsetX=event.offsetX+borderWid+DW.skewIeX;this.dWinOffsetY=event.offsetY+borderWid+DW.skewIeY;}}
else{this.dWinOffsetX=e.layerX;this.dWinOffsetY=e.layerY;return false;}}}
function mouseMove(e){if(this.Window&&!OP){var ClickPos=DW.getClickPosition(e);if(ClickPos[0]<=0||ClickPos[1]<=0){this.Window=null;return false;}
if(IE){if(event.button!=1)return false;this.Window.style.left=(event.clientX-this.dWinOffsetX+DW.TheBody.scrollLeft)+"px";this.Window.style.top=(event.clientY-this.dWinOffsetY+DW.TheBody.scrollTop)+"px";DW.moveTopImage();return false;}
else{this.Window.style.top=(e.pageY-this.dWinOffsetY)+"px";this.Window.style.left=(e.pageX-this.dWinOffsetX)+"px";DW.moveTopImage();}}}
function removeWin(){var EvalOnClose=document.getElementById("EvalOnClose");if(EvalOnClose)eval(EvalOnClose.value);var Window=document.getElementById("dWinID");if(Window)document.body.removeChild(Window);DW.cancelPreloader();if(window.SSE&&!SSE.running)SSE.pauseSS(0);DW.overTitleBar=false;switch(DW.winType){case "SS":if(window.SS)SS.kill();break;case "TN":if(window.TN)TN.kill();break;}
DW.otherFunctionalityOnRemoveWin();}
function moveTopImage(){var TopImage=document.getElementById("TopImage");if(TopImage){var BotImage=document.getElementById("ImageDW");var x=0;var y=0;TheElement=BotImage;var parPosAbs=false;while(TheElement){if(SF){if(!parPosAbs)parPosAbs=(TheElement.style.position=="absolute");if(parPosAbs&&TheElement==document.body)break;}
y+=TheElement.offsetTop;x+=TheElement.offsetLeft;TheElement=TheElement.offsetParent;}
var borderWid=(DW.overlayExists||OP)?0:Settings.borderWidDW;TopImage.style.left=(x+borderWid-parseInt(BotImage.parentNode.style.marginLeft))+"px";TopImage.style.top=(y+borderWid-parseInt(BotImage.parentNode.style.marginTop))+"px";}}
function mouseUp(){this.Window=null;}
function setBody(){if(!this.TheBody)this.TheBody=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;}
function cancelEvt(evt){if(window.event&&window.event.cancelBubble!=null)window.event.cancelBubble=true;else
evt.stopPropagation();}}
DW=new DynamicWindow();function setMailLink(Link,subject){Link.href="mailto:"+DB.Contact.Email+"?subject="+escape("Blog Contribution; KauaiIslandVacations.com");}
function getEmailLink(subject){if(subject)subject="?subject="+escape(subject);return "<a href='mailto:"+DB.Contact.Email+subject+"' title='Send us an e-mail' class='dwLink'>"+DB.Contact.Email+"</a>";}
function showHawaiiTime(){var gmtOffset=10;var now=new Date();var difhrs=now.getTimezoneOffset()/60;var lochrs=now.getHours();GMThours=lochrs+difhrs;now.setHours(GMThours-gmtOffset);var am_pm="AM";var hours=now.getHours();if(hours>=12)am_pm="PM";if(hours>=13)hours-=12;if(hours==0)hours="12";var minutes=now.getMinutes();if(minutes<10)minutes="0"+minutes;var seconds=now.getSeconds();if(seconds<10)seconds="0"+seconds;try{document.getElementById("hawaii_time").innerHTML=hours+":"+minutes+":"+seconds+" "+am_pm;}
catch(Err){}
finally{setTimeout("showHawaiiTime()",1000);}}
function DynamicMenu(FormElements){this.homePage=homePage;this.clearAll=clearAll;this.write=write;this.show=show;this.hide=hide;this.keepAlive=keepAlive;this.kill=kill;this.on=on;this.off=off;this.refreshItems=refreshItems;this.resetItems=resetItems;this.setVis=setVis;this.getElement=getElement;this.init=init;this.write();this.resetItems();function init(){}
function clearAll(){kill(["Admin_Options","Policies_Insurance"]);}
function write(){var Menus=new Array();Menus.push("<div id='Admin_Options' onMouseOver='Menu.keepAlive([\"Admin_Options\"]); return true;' onMouseOut='Menu.clearAll(); return true;' class='menu'>");Menus.push("<table align='left' class='menuBorder'>");Menus.push("<tr>");Menus.push("<td>");Menus.push("<a href='xml.aspx' class='menu'>");Menus.push("<div onMouseOver='Menu.on(this);' onMouseOut='Menu.off(this);' class='menuItemOff'><div class='menuItem'>Edit XML Data</div>");Menus.push("</div>");Menus.push("</a>");Menus.push("</td>");Menus.push("</tr>");Menus.push("<tr>");Menus.push("<td>");Menus.push("<a href='javascript:PopUp.openWin( \"uploader.aspx\", 650, 300, 2, 0, 0, 1, 0, 0, 0 );' class='menu'>");Menus.push("<div onMouseOver='Menu.on(this);' onMouseOut='Menu.off(this);' class='menuItemOff'><div class='menuItem'>Upload Images</div>");Menus.push("</div>");Menus.push("</a>");Menus.push("</td>");Menus.push("</tr>");Menus.push("<tr>");Menus.push("<td>");Menus.push("<a href='javascript:FW.logOff();' class='menu'>");Menus.push("<div onMouseOver='Menu.on(this);' onMouseOut='Menu.off(this);' class='menuItemOff'><div class='menuItem'>Log-Off</div>");Menus.push("</div>");Menus.push("</a>");Menus.push("</td>");Menus.push("</tr>");Menus.push("</table>");Menus.push("</div>");Menus.push("<div id='Policies_Insurance' onMouseOver='Menu.keepAlive([\"Policies_Insurance\"]); return true;' onMouseOut='Menu.clearAll(); return true;' class='menu'>");Menus.push("<table align='left' class='menuBorder'>");Menus.push("<tr>");Menus.push("<td>");Menus.push("<a href='xml.aspx' class='menu'>");Menus.push("<div onMouseOver='Menu.on(this);' onMouseOut='Menu.off(this);' class='menuItemOff'><div class='menuItem'>Rental Terms & Conditions</div>");Menus.push("</div>");Menus.push("</a>");Menus.push("</td>");Menus.push("</tr>");Menus.push("<tr>");Menus.push("<td>");Menus.push("<a href='javascript:PopUp.openWin( \"uploader.aspx\", 650, 300, 2, 0, 0, 1, 0, 0, 0 );' class='menu'>");Menus.push("<div onMouseOver='Menu.on(this);' onMouseOut='Menu.off(this);' class='menuItemOff'><div class='menuItem'>Travel Insurance</div>");Menus.push("</div>");Menus.push("</a>");Menus.push("</td>");Menus.push("</tr>");Menus.push("</table>");Menus.push("</div>");document.write(Menus.join(""));}
function show(Link,menuID,menuPos,evt,xOffset,yOffset,hideMeID){var TheMenu=getElement(menuID);if(typeof menuPos!="number")menuPos=this.subMenuPos;this.setVis(hideMeID,"hidden");this.keepAlive([menuID]);var e=(window.event)?event:evt;var Body=(IE&&document.compatMode=="CSS1Compat")?document.documentElement:document.body;with(TheMenu.style){position="absolute";left=(screen.width*-1)+"px";top=(screen.height*-1)+"px";visibility="hidden";display="block";}
var x=0,y=0;if(menuPos==0){x=(IE)?e.clientX+Body.scrollLeft:e.pageX;y=(IE)?e.clientY+Body.scrollTop:e.pageY;}
else{var ThisLink=Link;var parPosAbs=false;if(SF){var Target=(evt.target)?evt.target:evt.srcElement;if(Target.nodeType==3)ThisLink=ThisLink.parentNode;}
while(ThisLink){y+=ThisLink.offsetTop;x+=ThisLink.offsetLeft;ThisLink=ThisLink.offsetParent;}}
switch(menuPos){case 0:x+=xOffset;y+=yOffset;break;case 14:x+=xOffset;y-=TheMenu.offsetHeight+yOffset;break;case 21:x+=Link.offsetWidth+xOffset;y+=Link.offsetHeight-TheMenu.offsetHeight-yOffset;break;case 23:x+=Link.offsetWidth+xOffset;y+=yOffset;break;case 34:x+=xOffset;y+=Link.offsetHeight+yOffset;break;case 44:x=x-TheMenu.offsetWidth+xOffset;y=y+yOffset;break;default:alert("Switch/Case Error at Menu.show: menuPos \""+menuPos+"\" is invalid.");}
var bodyHgt=(IE)?Body.clientHeight:window.innerHeight;var bodyWid=(IE)?Body.clientWidth:window.innerWidth;var menuHgt=TheMenu.offsetHeight;var yFromTop=(IE)?Body.scrollTop:window.pageYOffset;var vScreenPos=y-yFromTop;var vSkew=bodyHgt-vScreenPos;if(vSkew<menuHgt+10)y-=menuHgt-vSkew+10;else if(vScreenPos<10)y=10+yFromTop;var menuWid=TheMenu.offsetWidth;var xFromLeft=(IE)?Body.scrollLeft:window.pageXOffset;var hScreenPos=x-xFromLeft;var hSkew=bodyWid-hScreenPos;if(hSkew<menuWid+10)x-=menuWid-hSkew+10;else if(hScreenPos<10)x=10+xFromLeft;with(TheMenu.style){left=x+"px";top=y+"px";visibility="visible";}}
function hide(Settings){for(var i=0;i<Settings.length;i++){var menuID=Settings[i][0],delay=Settings[i][1],hideMeID=Settings[i][2];if(getElement(menuID)){if(typeof delay=="undefined")delay=1000;if(window.Menu&&eval("Menu.timer"+menuID+" == 0")){eval("Menu.timer"+menuID+" = setTimeout( \"Menu.timer"+menuID+" = 0; document.getElementById( '"+menuID+"' ).style.display = 'none'; Menu.setVis( '"+hideMeID+"', 'visible' );\", "+delay+" )");}}}}
function keepAlive(MenuID){for(var i in MenuID){if(getElement(MenuID[i])){clearTimeout(eval("Menu.timer"+MenuID[i]));eval("Menu.timer"+MenuID[i]+" = 0;");}}}
function kill(MenuID){for(var i in MenuID){if(getElement(MenuID[i])){keepAlive([MenuID[i]]);hide([[MenuID[i],0]]);}}}
function on(Elem){if(typeof Elem=="string")Elem=document.getElementById(Elem);if(Elem.className=="menuItemOff")Elem.className="menuItemOn";else if(Elem.className=="menuItemNoClickOff")Elem.className="menuItemNoClickOn";}
function off(Elem){if(typeof Elem=="string")Elem=document.getElementById(Elem);if(Elem.className=="menuItemOn")Elem.className="menuItemOff";else if(Elem.className=="menuItemNoClickOn")Elem.className="menuItemNoClickOff";}
function refreshItems(Div){this.targetPage=Div.parentNode.href;this.resetItems();}
function resetItems(){var Links=document.links;for(var i=0;i<Links.length;i++){if(Links[i].className=="menu"){var target=Links[i].target;var targetLC=target.toLowerCase();if(Links[i].id!="StopAudio"){if(target.charAt(0)!="_"||target=="_top"||target=="_parent"||targetLC=="_self"){var frame=(target&&target.charAt(0)!="_")?"parent."+target+".":"";if(frame&&parent==self)frame="";var targetPage=(this.targetPage)?this.targetPage:eval(frame+"document.location.href");if(targetPage.charAt(targetPage.length-1)=="/")targetPage+=this.homePage;var Div=(Links[i].firstChild.tagName)?Links[i].firstChild:Links[i].firstChild.nextSibling;if(Links[i].href==targetPage){if(Div.innerHTML.indexOf("menuArrow")==-1)Div.className="menuItemDisable";}
else if(Div.className=="menuItemDisable")Div.className="menuItemOff";}}}}}
function setVis(hideMeID,vis){if(hideMeID&&IE&&document.getElementById(hideMeID))document.getElementById(hideMeID).style.visibility=vis;}
function getElement(menuID){var Elem=null;if(document.getElementById(menuID))Elem=document.getElementById(menuID);else{var callFun=getElement.caller.toString().replace(/\n/g, "" );
callFun=callFun.split("(")[0];alert("ERROR: Menu.getElement unable to getElementById( \""+menuID+"\" )\n\nCALLER: "+callFun);}
return Elem;}}
function PopUp(){this.winName="kivWin";this.PrinterFriendlyContactInfo=null;this.printerFriendlyCss="";this.Win=null;this.openServiceWin=openServiceWin;this.openWin=openWin;this.printerFriendly=printerFriendly;this.closeWin=closeWin;this.linkToWin=linkToWin;function openServiceWin(url){this.openWin(url,1100,500,2);}
function openWin(url,wWid,wHgt,wPos,tBar,lBar,sBar,mBar,scBar,reSize){this.closeWin();if(typeof wWid=="undefined")wWid=.8;if(typeof wHgt=="undefined")wHgt=.6;if(typeof wPos=="undefined")wPos=1;if(typeof tBar=="undefined")tBar=1;if(typeof lBar=="undefined")lBar=1;if(typeof sBar=="undefined")sBar=1;if(typeof mBar=="undefined")mBar=1;if(typeof scBar=="undefined")scBar=1;if(typeof reSize=="undefined")reSize=1;var avWid=screen.availWidth-10;var avHgt=screen.availHeight-30;if(wWid<1)wWid=wWid*avWid;if(wHgt<1)wHgt=wHgt*avHgt;if(wWid>avWid*0.90||wWid==1)wWid=avWid*0.90;if(wHgt>avHgt*0.70||wHgt==1)wHgt=avHgt*0.70;var leftPos=0;var topPos=0;switch(wPos){case 1:leftPos=parseInt((avWid-wWid)/2);break;case 2:leftPos=parseInt((avWid-wWid)/2);topPos=parseInt((avHgt-wHgt)/2);break;}
this.Win=window.open(url,PopUp.winName,"toolbar="+tBar+",location="+lBar+",directories=0,status="+sBar+",menubar="+mBar+",scrollbars="+scBar+",resizable="+reSize+",width="+wWid+",height="+wHgt+",top="+topPos+",left="+leftPos);}
function printerFriendly(removeImages,ExcludedPfContentSections){if(ExcludedPfContentSections){for(var i=0;i<ExcludedPfContentSections.length;i++){if(document.getElementById(ExcludedPfContentSections[i]))document.getElementById(ExcludedPfContentSections[i]).className="pfHide";}}
var nTitle=1;var pageTitle="";while(document.getElementById("pfTitle"+nTitle)){pageTitle+=document.getElementById("pfTitle"+nTitle).innerHTML+" ";pageTitle=pageTitle.replace(/<a\s.*?>/gi , "" );
pageTitle=pageTitle.replace(/<\/a.*?>/gi , "" );
nTitle++;}
var pfPageTitle=(pageTitle)?pageTitle:document.title;var htm="<html><head><title>"+document.title+"</title><link rel='stylesheet' href='"+this.printerFriendlyCss+"' type='text\/css'></head>";htm+=(live)?"<body onLoad='if( window.print ) window.print();'>":"<body>";htm+="<div class='pfTitle'>"+pfPageTitle+"</div><div class='pfOtherData'>"+theHost;if(this.PrinterFriendlyContactInfo){for(var i=0;i<this.PrinterFriendlyContactInfo.length;i++){htm+=this.PrinterFriendlyContactInfo[i][0]+eval(this.PrinterFriendlyContactInfo[i][1])+this.PrinterFriendlyContactInfo[i][2];}}
htm+="</div>";var nContent=1;outer:while(document.getElementById("pfContent"+nContent)){var content=document.getElementById("pfContent"+nContent).innerHTML;content=content.replace(/<a\s.*?>/gi , "" );
content=content.replace(/<\/a.*?>/gi , "" );
if(removeImages)content=content.replace(/<img\s.*?>/gi , "" );
content=content.replace(/<script[\d\D]*?<\/script>/gi , "" );
htm+=content;nContent++;}
if(document.getElementById("pfFooter"))htm+="<p class='pfFooter'>"+document.getElementById("pfFooter").innerHTML+"</p>";htm+="</body></html>";if(nContent>1){this.closeWin();this.openWin("",1);this.Win.document.write(htm);this.Win.document.close();}
else
alert("Error at PopUp.printerFriendly. No printer friendly sections (pfContent*) found...");if(ExcludedPfContentSections){for(var i=0;i<ExcludedPfContentSections.length;i++){if(document.getElementById(ExcludedPfContentSections[i]))document.getElementById(ExcludedPfContentSections[i]).className="pfShow";}}}
function closeWin(){try{if(this.Win&&this.Win.open&&!this.Win.closed){this.Win.close();this.Win=null;}}
catch(e){}}
function linkToWin(){if(PopUp&&PopUp.Win&&PopUp.Win.registered){if(PopUp.Win.MyOpener!=self)PopUp.Win.MyOpener=self;}
else setTimeout("PopUp.linkToWin()",250);}} PopUp=new PopUp();function SlideShowEmbedded(){try{ImagesSSE.pop();}
catch(Err){alert("Embedded Slide-Show Images array cannot be initialized because:\n 1) Data file is non-existent; OR\n 2) The data it contains is malformed (bad syntax)");}
for(var i=0;i<ImagesSSE.length;i++){if(!ImagesSSE[i][1])ImagesSSE[i][1]=SettingsSSE.speed;checkImgName(ImagesSSE[i][0]);}
this.slideNum=(SettingsSSE.randomStart&&!userWithWritePrivileges)?Math.floor(Math.random()*ImagesSSE.length):0;this.nFirstSlide=this.slideNum;this.speedActual=SettingsSSE.speed*1000;this.SPEED_FAST=500;this.preLoadTimer=0;this.NextImage=null;this.slideDelay=0;this.running=true;this.buttons=false;this.dissolve=true;this.maxDissolveMZ=1000*1000;this.start=start;this.showSlide=showSlide;this.skipErrantSlide=skipErrantSlide;this.preLoadNext=preLoadNext;this.mouseOverImg=mouseOverImg;this.getCoordinates=getCoordinates;this.next=next;this.repositionElements=repositionElements;this.pauseSS=pauseSS;window.onresize=this.repositionElements;this.setFileSize=setFileSize;this.reportImgName=reportImgName;this.switchSpeed=switchSpeed;this.writeSlideShow=writeSlideShow;this.Msg=new Array();this.Msg.ClickImg=(userWithWritePrivileges)?"Click to skip \u2022 Right-click "+((macOS)?"(ctrl+click) ":"")+"to pause":"Next image";function writeSlideShow(){var htm="<div id='slideShowContainer' class='ssContainer' style='"+getOpacity()+"'><img id='slideShow' class='ssImage' onClick='SSE.next( event );' oncontextmenu='return SSE.reportImgName( this, event );' src='images/"+ImagesSSE[SSE.nFirstSlide][0]+"' onMouseover='SSE.mouseOverImg( this );'></div>";document.write(htm);}
function mouseOverImg(Img){Img.title=this.Msg.ClickImg;if(userWithWritePrivileges){Img.style.cursor="pointer";}}
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;}
var skewX=0,skewY=0;if(SF){skewX=SettingsSSE.Skew.SF[0];skewY=SettingsSSE.Skew.SF[1];}
else if(MZ&&macOS){skewX=SettingsSSE.Skew.MacFF[0];skewY=SettingsSSE.Skew.MacFF[1];}
x+=skewX;y+=skewY;return[x,y];}
function repositionElements(){if(SSE.ImgOverlay){var OverlayPos=SSE.getCoordinates(document.getElementById("slideShow").parentNode);SSE.ImgOverlay.style.left=OverlayPos[0]+"px";SSE.ImgOverlay.style.top=OverlayPos[1]+"px";}}
function showSlide(){if(this.NextImage){var TheImage=document.getElementById("slideShow");var imgWid=SettingsSSE.Dimension[0];var imgHgt=SettingsSSE.Dimension[1];var imgWidReal=this.NextImage.width;var imgHgtReal=this.NextImage.height;if((userWithWritePrivileges||local)&&imgWidReal>1&&imgHgtReal>1&&(imgWidReal!=imgWid||imgHgtReal!=imgHgt)){var eMsg="\u201C"+ImagesSSE[this.slideNum][0]+"\u201D has incorrect dimensions:\n1) All images must be sized to "+imgWid+" \u00D7 "+imgHgt+" pixels\n2) This image is "+imgWidReal+" \u00D7 "+imgHgtReal+" pixels";if(IE)eMsg+="\n\nWe see you are using Internet Explorer. It suffers from a peculiar bug such that even if you correct the dimensions, it may continue to report this error! If so, then change the file name too, for example:\nbeach.jpg \u21D2 beach1.jpg";alert(eMsg);}
if(this.dissolve&&(IE||MZ||SF||OP)&&SettingsSSE.transNum>=1&&this.speedActual>this.SPEED_FAST){var nNewImg=(ImagesSSE.length==this.slideNum)?0:this.slideNum;var nOldImg=(nNewImg==0)?ImagesSSE.length-1:nNewImg-1;TheImage.width=imgWid;TheImage.height=imgHgt;TheImage.src=SettingsSSE.folder+ImagesSSE[nOldImg][0];if(SettingsSSE.borderWid)TheImage.style.borderColor="rgb( "+SettingsSSE.borderCol+" )";var imgStyle=(SettingsSSE.borderWid)?" style='border:"+SettingsSSE.borderWid+"px solid rgb("+SettingsSSE.borderCol+");'":"";var newImg="<img name='slideShowNew' src='"+SettingsSSE.folder+ImagesSSE[nNewImg][0]+"' title='"+TheImage.title+"'"+imgStyle+" onClick='SSE.next( event );' oncontextmenu='return SSE.reportImgName( this, event );' onMouseover='SSE.mouseOverImg( this );' class='ssImage'>";if(!SSE.ImgOverlay){SSE.ImgOverlay=document.createElement("DIV");SSE.ImgOverlay.style.top=(screen.height*-1)+"px";SSE.ImgOverlay.style.left=(screen.width*-1)+"px";SSE.ImgOverlay.style.zIndex=1000;SSE.ImgOverlay.style.position="absolute";document.body.appendChild(SSE.ImgOverlay);}
SSE.ImgOverlay.style.width=(SettingsSSE.Dimension[0]+2*SettingsSSE.borderWid)+"px";SSE.ImgOverlay.style.height=(SettingsSSE.Dimension[1]+2*SettingsSSE.borderWid)+"px";if(IE)SSE.ImgOverlay.style.visibility="hidden";if(MZ)SSE.ImgOverlay.style.opacity=0;else SSE.ImgOverlay.style.opacity=0;var OverlayPos=SSE.getCoordinates(TheImage.parentNode);SSE.ImgOverlay.style.left=OverlayPos[0]+"px";SSE.ImgOverlay.style.top=OverlayPos[1]+"px";SSE.ImgOverlay.innerHTML=newImg;startFade(SSE.ImgOverlay,SettingsSSE.transNum,SettingsSSE.transDur,0);}
else{if(this.ImgOverlay){document.body.removeChild(this.ImgOverlay);this.ImgOverlay=null;}
TheImage.style.visibility="hidden";TheImage.width=imgWid;TheImage.height=imgHgt;if(SettingsSSE.borderWid)TheImage.style.borderColor="rgb( "+SettingsSSE.borderCol+" )";TheImage.src=this.NextImage.src;TheImage.style.visibility="visible";}
this.dissolve=true;}}
function skipErrantSlide(){if(local||userWithWritePrivileges||SSE.speedActual==SSE.SPEED_FAST){if(!SSE.errReported){alert("Slide #"+(SSE.slideNum+1)+"; "+SSE.NextImage.src+" failed to load");SSE.errReported=true;}}
SSE.NextImage=null;}
function preLoadNext(){var recursionTimer=100;this.slideDelay+=recursionTimer;if(!this.NextImage){if(this.SPEED_FAST!=this.speedActual)this.speedActual=ImagesSSE[this.slideNum][1]*1000;this.slideNum++;if(this.slideNum==ImagesSSE.length)this.slideNum=0;this.NextImage=new Image();this.NextImage.onerror=this.skipErrantSlide;this.NextImage.src=SettingsSSE.folder+ImagesSSE[this.slideNum][0];}
if(this.NextImage&&this.NextImage.complete&&this.slideDelay>this.speedActual){this.slideDelay=0;this.showSlide();this.NextImage=null;clearTimeout(this.preLoadTimer);this.preLoadNext();}
else
this.preLoadTimer=setTimeout("SSE.preLoadNext()",recursionTimer);}
function next(evt){if(!evt)evt=window.event;if(evt.ctrlKey)return;clearTimeout(this.preLoadTimer);this.dissolve=false;this.pauseSS(false);}
function pauseSS(pause){if(pause){clearTimeout(this.preLoadTimer);this.running=false;}
else{this.slideDelay=SettingsSSE.speed*1000+1;this.preLoadNext();this.running=true;}}
function start(firstImgDelay,firstImgHold){startFade(document.getElementById("slideShowContainer"),2,0.8,firstImgDelay*1000);this.repositionElements();setTimeout("try{ SSE.preLoadNext(); } catch( Err ){ }",firstImgHold*1000);}
function switchSpeed(hiSpeed){this.speedActual=(hiSpeed)?this.SPEED_FAST:SettingsSSE.speed*1000;}
function reportImgName(Link,evt){if(userWithWritePrivileges){this.pauseSS(1);var imageNum=this.slideNum-1;if(imageNum==-1)imageNum=ImagesSSE.length-1;if(window.ImagesSSE==null)window.ImagesSSE=this.ImagesOriginal;var Img=ImagesSSE[imageNum];var wid=SettingsSSE.Dimension[0],hgt=SettingsSSE.Dimension[1];var shape=(wid>hgt)?"horizontal":((wid<hgt)?"vertical":"square");var tnHgt=150;var tnWid=parseInt(wid*tnHgt/hgt);var speedHTM=(this.speedActual!=this.SPEED_FAST)?"<a href='javascript:SSE.switchSpeed(1); DW.removeWin();' class='dwLink' title='Run at hi-speed'>Fast</a><span class='ssSpeed'> &#149; Normal</span>":"<span class='ssSpeed'>Fast &#149; </span><a href='javascript:SSE.switchSpeed(0); DW.removeWin();' class='dwLink' title='Revert to normal speed'>Normal</a>";var htm="<table align='left'><tr><td align=center valign=top><img src='"+SettingsSSE.folder+Img[0]+"' width='"+tnWid+"' height='"+tnHgt+"'></td><td align=center valign=middle style='padding:4px;'><table align='center' class='dwText'><tr><td align=right>Name:&nbsp;</td><td align=left>"+Img[0]+"</td></tr><tr><td align=right>Number:&nbsp;</td><td align=left>"+(imageNum+1)+" of "+ImagesSSE.length+"</td></tr><tr><td align=right>Dimensions:&nbsp;</td><td align=left id='imgWidSSE'>"+wid+" &times; "+hgt+" px; "+shape+"</td></tr><tr><td align=right>File Size:&nbsp;</td><td id='fileSizeSSE' align=left></td></tr><tr><td align=right>Speed:&nbsp;</td><td align=left>"+speedHTM+"</td></tr><tr><td align=right>Paused:&nbsp;</td><td align=left><a href='javascript:SSE.dissolve=false; DW.removeWin();' class='dwLink' title='Slide-show is paused \u2022 Resume to play'>Resume</a></td></tr></table></td></table>";if(window.DW){DW.createWindow(["Image Properties",htm],[0,tnWid+400,0],Link,evt);this.setFileSize(imageNum);}
return false;}
return(SettingsSSE.disableContextImgMenu&&live)?false:true;}
function setFileSize(imageNum){this.Request=getAjaxRequest();if(this.Request){this.Request.onreadystatechange=function(){try{if(SSE.Request.readyState==4){if(SSE.Request.status==200||SSE.Request.status==304){var fileSize=parseInt(SSE.Request.getResponseHeader("Content-Length"))/1024;var FileSizeSSE=document.getElementById("fileSizeSSE");if(FileSizeSSE)FileSizeSSE.innerHTML=Math.round(fileSize)+" KB";}
else
alert("Error retrieving photo at method SSE.setFileSize");}}
catch(Err){var eMsg="Exception at method SSE.setFileSize\n\n";for(var i in Err)eMsg+=i+": "+Err[i]+"\n";try{alert(eMsg);} catch(Err){}}}
this.Request.open("GET",Settings.folder+ImagesSSE[imageNum][0],true);this.Request.send(null);}}}
function initPage(){try{if(window.FileWriter)FW=new FileWriter();var Links=document.links;for(var i=0;i<Links.length;i++){var LinkComponents=Links[i].href.split("/");var file=LinkComponents[LinkComponents.length-1].replace(/\?.*/, "" );
if(file.toLowerCase()==fileName.toLowerCase()){if(Links[i].className=="navBot")Links[i].className="navBotDisabled";if(Links[i].className=="navTop")Links[i].className="navTopDisabled";}
if(Links[i].className=="Calendar"){Links[i].onclick=function(){PopUp.openWin(this.href);return false;}
Links[i].onmouseover=function(){this.title="Check property for availability";}}}
var publicUser=!GetCookie("userWithWritePrivileges");var Images=document.images;for(var i=0;i<Images.length;i++){if(Images[i].className=="tn"||Images[i].className=="tnLeft"||Images[i].className=="tnRight")Images[i].title=Msg.enlarge;}
var Div=document.getElementsByTagName("div");for(var i=0;i<Div.length;i++){if(Div[i].className=="accom"){if(Div[i].offsetHeight>175)Div[i].className="accomOn";}
if(Div[i].className=="rates_details"){if(Div[i].offsetHeight>311)Div[i].className="rates_detailsOn";}}
if(window.aspError)DW.createWindow(["Internal Server Error",aspError],[0,800,0],null,null,10,[4,0,0],null,1,1);else if(window.FileWriterLocked)DW.createWindow([FileWriterLocked[0],FileWriterLocked[1]],[0,500,0],null,null,10,[4,0,0],null,1,1);if(window.FW&&GetCookie("userWithWritePrivileges")){var AdminTdBulletTop=document.getElementById("AdminTdBulletTop");var AdminTdLinkTop=document.getElementById("AdminTdLinkTop");var AdminTdBulletBot=document.getElementById("AdminTdBulletBot");var AdminTdLinkBot=document.getElementById("AdminTdLinkBot");var AdminLinkHome=document.getElementById("AdminLinkHome");if(AdminTdBulletTop&&AdminTdLinkTop){AdminTdBulletTop.className="navBullet";AdminTdLinkTop.className="navLink";}
if(AdminTdBulletBot&&AdminTdLinkBot){AdminTdBulletBot.className="navBullet";AdminTdLinkBot.className="navLink";}
if(AdminLinkHome)AdminLinkHome.className="on";}
if(qStr&&qStr.getVal("login_failure")=="y")alert("Login failed: Incorrect user-name and/or password.");self.status="";}
catch(Err){if(local){var err="";for(member in Err)err+=member+": "+Err[member]+"\n";alert("Exception at initPage function:\n\n"+err);}
else{setTimeout("initPage();",250);self.status="Running initPage function, one moment please...";}}}
function initHomepage(){try{var IntroSource=document.getElementById("Intro");var IntroDisplay=document.getElementById("IntroDisplay");var intro=IntroSource.innerHTML;IntroDisplay.innerHTML=intro;}
catch(Err){self.status="Exception at function initHomepage(), trying again...";setTimeout("initHomepage();",100);}}
function logIn(Form){var pwChecked=Form.remember_pw.checked;var UserName=Form.user;var userNameFW=UserName.value.trim();UserName.value=userNameFW;var PW=Form.pw;var pwFW=PW.value.trim();PW.value=pwFW;if(userNameFW==""){UserName.focus();return false;}
var pwOut="";if(pwFW==""){PW.focus();return false;}
else if(pwChecked){var pwIn=pwFW;for(var i=0;i<=pwIn.length;i++)pwOut=pwIn.charAt(i)+pwOut;}
if(pwChecked){"Login_FW".recordToCookie("user",userNameFW,expDate12Mon);"Login_FW".recordToCookie("pw",pwOut,expDate12Mon);}
else
DeleteCookie("Login_FW");return true;}
function getLogInGUI(evt,RequestedPos){if(!evt)evt=window.event;var Login_FW=GetCookie("Login_FW"),userNameFW="",pwFW="",pwChecked="",pwOut="";if(Login_FW){userNameFW=Login_FW.getVal("user");pwFW=Login_FW.getVal("pw");for(var i=0;i<=pwFW.length;i++)pwOut=pwFW.charAt(i)+pwOut;pwChecked=" checked";}
var Htm=new Array();Htm.push("<form name='LogIn' method='post' onSubmit='return logIn( this );' style='margin:0px;'>");Htm.push("<table align='center'>");Htm.push("<tr>");Htm.push("<td>");Htm.push("<table align='center'>");Htm.push("<tr>");Htm.push("<td class='fwField' style='padding-top:6px;'>");Htm.push("User Name");Htm.push("</td>");Htm.push("<td class='fwValue' style='padding-top:6px;' id='tdBookingID'>");Htm.push("<input type='text' name='user' class='fwText' title='Case sensitive user-name' value='");Htm.push(userNameFW);Htm.push("' />");Htm.push("</td>");Htm.push("</tr>");Htm.push("<tr>");Htm.push("<td class='fwField' style='padding-top:6px;'>");Htm.push("Password");Htm.push("</td>");Htm.push("<td class='fwValue' style='padding-top:6px;' id='tdBookingID'>");Htm.push("<input type='");(local)?Htm.push("text"):Htm.push("password");Htm.push("' name='pw' autocomplete='off' value='");Htm.push(pwOut);Htm.push("' class='fwText' title='Case sensitive password' />");Htm.push("</td>");Htm.push("</tr>");Htm.push("<tr>");Htm.push("<td align='center' colspan='2' class='fwValue' style='padding-top:6px; white-space:nowrap;'>");Htm.push("<input type='checkbox' id='remember_pw' name='remember_pw' onClick='if( !checked ) DeleteCookie( \"Login_FW\" );'");Htm.push(pwChecked);Htm.push(" /><label for='remember_pw'> Remember Me</label>");Htm.push("</td>");Htm.push("</tr>");Htm.push("<tr>");Htm.push("<td align='center' colspan='2' style='padding:10px 0px 0px 0px; white-space:nowrap;'>");Htm.push("<input type='submit' name='OK' value='OK' class='logInButtons' />");Htm.push("<input type='button' value='Cancel' class='logInButtons' onClick='DW.removeWin();' />");Htm.push("</td>");Htm.push("</tr>");Htm.push("</table>");Htm.push("</td>");Htm.push("</tr>");Htm.push("</table>");Htm.push("</form>");RequestedPos=(RequestedPos)?RequestedPos:null;DW.createWindow(["Administrator Login",Htm.join("")],[0,300,0],null,evt,6,RequestedPos);if(Login_FW)setTimeout("document.LogIn.OK.focus();",100);else
setTimeout("document.LogIn.user.focus();",100);}
function comingSoon(){alert("Page forthcoming, please check back soon...");return false;}
function writeCalendar(){var htm="<a href='javascript:void(0);' name='Calendar'></a><table align='center' style='margin-top:20px;'><tr><td align='center'>";document.write(htm);Cal.writeLegend();document.write("<div id='CalID'>"+Cal.getCal()+"</div>");var htm="</td></tr></table>";document.write(htm);}