//' 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];}
qStr=unescape(document.location.search).substring(1);function PreLoader(){this.Files=["index.html","images/kealaniBG.jpg","images/RevHeidi.gif","about-heidi.html","images/labelAboutHeidi.gif","images/coupleSMaluakaBeach.jpg","images/bkgImageMaluakaBeachLawn.jpg","testimonials.html","images/labelTestimonials.gif","images/bkgCeremonyBeach.jpg","images/ceremonyPrinceTN.jpg","images/naturalWaterfallTN.jpg","images/pic004TNB.jpg","attire.html","images/labelAttire.gif","images/bkgSigningMaluakaBeachLawn.jpg","images/attireRobeTN.jpg","images/attireAlohaTN.jpg","images/attireFormalTN.jpg","images/attireTropSilkTN.jpg","books.html","images/labelBooks.gif","images/bookWeddingPlannerTN.gif","images/bookWeddingEtiquetteTN.gif","images/bookWeddingsFromHeartTN.gif","images/bookEveryThingWedVowsTN.gif","images/bookLovePoems.jpg","images/bookSevenPrinciples.jpg","images/bookIntermarriage.jpg","ceremonies.html","images/labelCeremonies.gif","images/bkgHeidiCoupleHillTopOceanViewLicense.jpg","flash.html","inquire.aspx","images/labelContactHeidi.gif","images/bkgBrideInWaiting.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;this.getImages=getImages;this.nextImg=nextImg;this.getFileName=getFileName;if(this.debug)self.status="File preloader started...";function run(){if(!AOL&&!SF){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(){if(window.PL&&PL.Request.readyState==4){if(PL.Request.status==200){if(PL.debug)self.status=PL.getFileName()+" preloaded; #"+((PL.nFilesCached+1)+" of "+(PL.Files.length-1));}
else{if(PL.debug)alert("File preloader encountered an error retrieving: \n "+PL.getFileName()+"\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("PL.run();",100);}}
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";this.timer=setTimeout("PL.getImages();",100);}}
function getImages(){clearTimeout(PL.timer);if(this.nFilesCached<this.Files.length-1){var FileComponents=this.Files[this.nFilesCached].split(".");var fileExt=FileComponents[FileComponents.length-1].toLowerCase();if(fileExt=="jpg"||fileExt=="gif"){this.Img=document.createElement("div");document.body.appendChild(this.Img);this.Img.style.display="none";this.Img.innerHTML="<img src='"+this.Files[this.nFilesCached]+"' onload='PL.nextImg(1);' onerror='PL.nextImg(0);' onabort='PL.nextImg(0);'>";}
else{if(PL.debug)self.status=PL.getFileName()+" skipped, preloading images only; #"+((PL.nFilesCached+1)+" of "+(PL.Files.length-1));this.nFilesCached++;SetCookie("nFilesCached",this.nFilesCached);this.timer=setTimeout("PL.getImages();",100);}}}
function nextImg(success){if(PL.debug){if(success)self.status=PL.getFileName()+" image preloaded; #"+((PL.nFilesCached+1)+" of "+(PL.Files.length-1));else
alert("Image preloader encountered an error retrieving: \n1) "+PL.getFileName()+"\n 2) "+((PL.nFilesCached+1)+" of "+(PL.Files.length-1)));}
PL.nFilesCached++;SetCookie("nFilesCached",PL.nFilesCached);PL.timer=setTimeout("PL.getImages();",100);}
function getFileName(){var FileComponents=PL.Files[PL.nFilesCached].split("/");return FileComponents[FileComponents.length-1];}}
PL=new PreLoader();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";}}
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 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){if(local)alert("ERROR: 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="-moz-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.MozOpacity=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.MozOpacity=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)+" )";}}
checkDimTimer=0;function checkDim(imgRealSrc,widDB,hgtDB){ImgReal=new Image();ImgReal.src=imgRealSrc;var FileComponents=imgRealSrc.split("/");var fileName=FileComponents[FileComponents.length-1];if(ImgReal.complete){clearTimeout(checkDimTimer);var realWid=ImgReal.width,realHgt=ImgReal.height;if(realWid>1&&realHgt>1&&(realWid!=widDB||realHgt!=hgtDB))alert("\""+fileName+"\" has incorrect dimensions: \n  1) "+widDB+" x "+hgtDB+" are the errant values \n  2) "+realWid+" x "+realHgt+" are the true values");}
else
eval("checkDimTimer = setTimeout( 'checkDim( \""+imgRealSrc+"\", "+widDB+", "+hgtDB+" )', 250 );");}
function sloganStatus(){setTimeout('defaultStatus="Specializing in Weddings, Vow Renewals, Holy Unions & Christenings"',500);}
var dText=new Array("&nbsp; ","About your Minister - Reverend Heidi Alfrey...","Read Testimonials from Heidi's Satisfied Couples...","Choose the Wedding Attire you'd like Heidi to wear...","See Heidi's &#34;Real Life Weddings&#34; Slide-Show","Read Heidi's wide selection of Ceremonies...","Back to Heidi's Home Page...","Contact Heidi, Send her an Inquiry now...","Wedding Planning & Inspirational Books...","Click to enlarge...","Place Holder");function getCallout(){return "<DIV STYLE='text-align: center; margin:5px 5px 5px 5px; font-size:10pt; font-family: arial, sans-serif; color:rgb(148,75,103);' ID=callout>&nbsp; &nbsp;</DIV>";}
var timeout=0;function activateMsg(index){clearTimeout(timeout);document.getElementById('callout').innerHTML=dText[index];}
function deActivateMsg(){self.status=' ';timeout=setTimeout('document.getElementById("callout").innerHTML=dText[0]',500);}
function actLink(link){link.style.color='rgb(153,0,153)';link.style.textDecoration='underline';}
function deactLink(link){link.style.color='rgb(140,87,97)';link.style.textDecoration='none';}
function PopUp(){this.winName="heidiWin";this.Win=null;this.openWin=openWin;this.closeWin=closeWin;this.linkToWin=linkToWin;function openWin(url,tBar,lBar,sBar,mBar,wWid,wHgt,scBar,reSize,wPos){var nArgs=arguments.length;if(nArgs==2||nArgs==10){if(nArgs==2){switch(tBar){case 1:tBar=1;lBar=1;sBar=1;mBar=1;wWid=.8;wHgt=.6;scBar=1;reSize=1;wPos=1;break;case 2:tBar=0;lBar=0;sBar=1;mBar=0;wWid=.7;wHgt=.5;scBar=1;reSize=1;wPos=1;break;case 3:tBar=0;lBar=0;sBar=1;mBar=0;wWid=1;wHgt=1;scBar=1;reSize=1;wPos=1;break;}}
this.closeWin();var avWid=screen.availWidth-10;var avHgt=screen.availHeight-30;if(wWid<1)wWid=wWid*avWid;if(wHgt<1)wHgt=wHgt*avHgt;if(wWid>avWid*0.90||wWid==1)wWid=avWid*0.90;if(wHgt>avHgt*0.70||wHgt==1)wHgt=avHgt*0.70;var leftPos=0;var topPos=0;switch(wPos){case 1:leftPos=parseInt((avWid-wWid)/2);break;case 2:leftPos=parseInt((avWid-wWid)/2);topPos=parseInt((avHgt-wHgt)/2);break;}
this.Win=window.open(url,PopUp.winName,"toolbar="+tBar+",location="+lBar+",directories=0,status="+sBar+",menubar="+mBar+",scrollbars="+scBar+",resizable="+reSize+",width="+wWid+",height="+wHgt+",top="+topPos+",left="+leftPos);}
else
alert("ERROR: "+nArgs+" arguments have been passed to method \"PopUp.openWin\", it accepts either 2 or 10 arguments.");}
function closeWin(){try{if(this.Win&&this.Win.open&&!this.Win.closed){this.Win.close();this.Win=null;}}
catch(e){}}
function linkToWin(){if(PopUp&&PopUp.Win&&PopUp.Win.registered)PopUp.Win.myOpener=self;else setTimeout("PopUp.linkToWin()",250);}}
PopUp=new PopUp();function DynamicIndex(){this.msg=new Array();this.msg.show="Click to read answer...";this.msg.hide="Click to close answer...";this.getPlusMinus=getPlusMinus;this.reset=reset;this.switchDisplay=switchDisplay;this.showTip=showTip;this.init=init;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 diState=GetCookie(this.cookieName);if(diState){var AllLinks=document.getElementsByTagName("a");var DiState=diState.split("_");for(var i=0;i<AllLinks.length;i++){for(var k in DiState){if(DiState[k]&&parseInt(DiState[k])==i){try{DI.switchDisplay(AllLinks[i],AllLinks[i].id)} catch(e){};}}}}}
function getPlusMinus(Link){return Link.previousSibling;}
function reset(OtherID){for(var i=0;i<OtherID.length;i++){var PlusMinus=document.getElementById("plusMinus_"+OtherID[i]);if(PlusMinus){PlusMinus.innerHTML="-";this.switchDisplay(null,OtherID[i]);}
else{alert("ERROR: DI.reset unable to initialize PlusMinus as an Object.\nPROBLEM: \"plusMinus_"+OtherID[i]+"\" cannot be found.");return;}}}
function switchDisplay(Link,contentID,focuserID){if(!Link)Link=document.getElementById(contentID);var PlusMinus=getPlusMinus(Link);var expanding=(PlusMinus.innerHTML=="+"),contracting=!expanding;var Caption=document.getElementById("caption_"+Link.id);if(Caption)Caption.className=(expanding)?"diCaptionOn":"diCaptionOff";var Img=document.getElementById("img_"+Link.id);if(Img)Img.className=(expanding)?"borderOn":"borderOff";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 if(expanding)valNew="_"+i+"_";if(valNew)SetCookie(this.cookieName,valNew);break;}}
if(contentID)var Content=document.getElementById("content_"+contentID);else
var Content=(Link.parentNode.nextSibling.style)?Link.parentNode.nextSibling:Link.parentNode.nextSibling.nextSibling;try{Content.style.display=(contracting)?"none":"block";}
catch(Err){var problem=(contentID)?"\nPROBLEM: \"content_"+contentID+"\" cannot be found.":"";alert("ERROR: DI.switchDisplay unable to initialize Content as an Object."+problem);}
if(focuserID&&expanding){var FocusCont=document.getElementById(focuserID);FocusCont.innerHTML="<a href='javascript:void(0);'>.</a>";var FocusLink=FocusCont.firstChild;FocusLink.focus();Link.focus();FocusCont.innerHTML="";}
showTip(Link);}
function showTip(Link,msgOn,msgOff){var PlusMinus=getPlusMinus(Link);if(PlusMinus.innerHTML=="+"){Link.title=(msgOn)?msgOn:DI.msg.show;self.status=(msgOn)?msgOn:DI.msg.show;}
else{Link.title=(msgOff)?msgOff:DI.msg.hide;self.status=(msgOff)?msgOff:DI.msg.hide;}}}
function DynamicWindow(transNum,transDur){this.dissolveMZ=1;this.dissolveSF=1;this.gDisableContextImgMenu=false;this.Msg=new Array();this.Msg["fullSize"]="View this image full-size";this.dissolveMZ=1;this.dissolveSF=1;this.gDisableContextImgMenu=false;this.Msg=new Array();this.Msg["fullSize"]="View this image full-size";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]:10;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 this pop-up window' 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]+xOffset;if(clickPos)yPos=ClickPos[1]+yOffset;else
yPos=ClickPos[1]-NewWindow.offsetHeight+yOffset;var center=(document.body.clientWidth)?document.body.clientWidth/2:window.innerWidth/2;if(xPos>center)xPos-=(NewWindow.offsetWidth+2*xOffset);}
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=NewWindowPos[0];yPos=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 this pop-up window";self.status=Photo.title;Photo.style.cursor=(IE)?"hand":"pointer";return true;};Photo.onmouseout=function(){self.status="";return true;};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);}
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){Window.innerHTML="";document.body.removeChild(Window);}}
function mouseUp(){this.Window=null;}
function dissolve(wid,hgt){var imgArea=wid*hgt;var maxImgArea=450*450;return(imgArea<=maxImgArea);}}
function clearField(Field){if(Field.value==Field.defaultValue)Field.value="";}
function checkField(Field){if(Field.value=="")Field.value=Field.defaultValue;}
function getCoord(setFocus){var Form=document.AspForm;var Consultant=Form.Consultant;var ConsultantDiv=document.getElementById("ConsultantDiv");var show=Consultant[0].checked;ConsultantDiv.className=(show)?"on":"off";if(show&&setFocus)Form.Consultant_Name.focus();}
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 verifyEmail(Form,Email,defButVal){function stop(){Email.focus();setButton(Form.submit_button,"enable",defButVal);return false;}
Email.value=Email.value.replace(/\s/g,"");var emailRE=/^[\w\.-]+[^\.-]@[\w\.-]+\.[a-zA-Z]{2,}$/;EmailArr=Email.value.split(",");for(i in EmailArr){if(!emailRE.test(EmailArr[i])){alert("Sorry but \""+EmailArr[i]+"\" is an invalid e-mail address.\n\nHere's some examples of valid e-mail addresses:\n1. joe@hotmail.com\n2. sally_smith@aol.com\n3. jim.clark@co.la.ca.us\n4. ron-kent254@yahoo.com\n\nTIP: Valid e-mails contain 1 \"@\" character & end with .com, .net, .us, .ca, etc. etc.");return stop();}}
if(confirm("IMPORTANT: Please double check your e-mail address for accuracy\n\n  1) Click OK if \""+Email.value+"\" is correct & this form will be submitted; OR\n  2) Click Cancel if you need to correct it\n\nIt's important because if you make a typo in your e-mail address we may be unable to contact you."))return true;else{Email.focus();setButton(Form.submit_button,"enable",defButVal);return false;}}
function checkForm(Form){try{var davidEmail="david"+"@"+"DavidRegier"+".com";var Client=Form.Client;Form.redirect.value="inquire.aspx?client="+escape(Client.value);setButton(Form.submit_button,"disable"," Submit Inquiry ");var missingInfo="";var lineNumber=0;var Missing=null;Client.value=Client.value.replace(/^\s*|\s*$/g,"");if(Client.value.indexOf("^_^")>=0){Form.Owner_Email.value=davidEmail;Form.Sender_Email.value="dr"+"@"+"CreativeTouchPhoto"+".com";}
if(Client.value==Client.defaultValue){lineNumber++;missingInfo+="\n   "+lineNumber+". Your Name";if(Missing==null)Missing=Client;}
var Mailing_Address=Form.Mailing_Address;if(Mailing_Address.value==Form.Mailing_Address.defaultValue){lineNumber++;missingInfo+="\n   "+lineNumber+". Your Street or PO Address";if(Missing==null)Missing=Mailing_Address;}
var City=Form.City;if(City.value==Form.City.defaultValue){lineNumber++;missingInfo+="\n   "+lineNumber+". Your City";if(Missing==null)Missing=City;}
var State=Form.State;if(State.value==Form.State.defaultValue){lineNumber++;missingInfo+="\n   "+lineNumber+". Your State";if(Missing==null)Missing=State;}
var Zip=Form.Zip;if(Zip.value==Form.Zip.defaultValue){lineNumber++;missingInfo+="\n   "+lineNumber+". Your Zip/Postal Code";if(Missing==null)Missing=Zip;}
var Primary_Tel=Form.Primary_Tel;var Other_Tel=Form.Other_Tel;if(Primary_Tel.value==Primary_Tel.defaultValue&&Other_Tel.value==Other_Tel.defaultValue){lineNumber++;missingInfo+="\n   "+lineNumber+". A Telephone Number";if(Missing==null)Missing=Primary_Tel;}
var Sender_Email=Form.Sender_Email;if(Sender_Email.value==Sender_Email.defaultValue){lineNumber++;missingInfo+="\n   "+lineNumber+". Your E-mail Address";if(Missing==null)Missing=Sender_Email;}
var Event_Type=Form.Event_Type;if(Event_Type.selectedIndex==0){lineNumber++;missingInfo+="\n   "+lineNumber+". Type of Event";if(Missing==null)Missing=Event_Type;}
var Number_Of_Guests=Form.Number_Of_Guests;if(Number_Of_Guests.value==Number_Of_Guests.defaultValue){lineNumber++;missingInfo+="\n   "+lineNumber+". Number of Guests";if(Missing==null)Missing=Number_Of_Guests;}
var Event_Date=Form.Event_Date;if(Event_Date.value==Event_Date.defaultValue){lineNumber++;missingInfo+="\n   "+lineNumber+". Event Date";if(Missing==null)Missing=Event_Date;}
var Event_Time=Form.Event_Time;if(Event_Time.value==Event_Time.defaultValue){lineNumber++;missingInfo+="\n   "+lineNumber+". Event Time";if(Missing==null)Missing=Event_Time;}
var Event_Location=Form.Event_Location;if(Event_Location.value==Event_Location.defaultValue){lineNumber++;missingInfo+="\n   "+lineNumber+". Event Location";if(Missing==null)Missing=Event_Location;}
var Consultant=Form.Consultant;var Consultant_Name=Form.Consultant_Name;if(Consultant[0].checked){if(Consultant_Name.value==Consultant_Name.defaultValue){lineNumber++;missingInfo+="\n   "+lineNumber+". Consultant Name";if(Missing==null)Missing=Consultant_Name;}}
else if(Consultant[1].checked||Consultant[2].checked)Consultant_Name.value="";else{lineNumber++;missingInfo+="\n   "+lineNumber+". Consultant";if(Missing==null)Missing=Consultant;}
if(missingInfo&&Client.value!="^_^"){alert("You failed to provide the following information:\n"+missingInfo+"\n\nYou must correct these missing item(s) to submit this order...");setButton(Form.submit_button,"enable"," Submit Inquiry ");Missing.focus();return false;}
else{var goodEmail=verifyEmail(Form,Form.Sender_Email," Submit Inquiry ");if(!goodEmail)return false;if(Primary_Tel.value==Primary_Tel.defaultValue)Primary_Tel.value="";if(Other_Tel.value==Other_Tel.defaultValue)Other_Tel.value="";return true;}}
catch(Err){if(local)alert(err);return true;}}
function thankYou(){var Form=document.AspForm;var fullName=(qStr&&qStr.getVal("client"))?qStr.getVal("client"):"";if(fullName){var firstName=(fullName.indexOf(" ")>=0)?fullName.split(" ")[0]:fullName;var thankYou="<table align='center' border='0' cellspacing='0' cellpadding='0'><tr><td><div style='margin:4px 0px 0px 6px;'>Hello "+firstName+", thanks so much for your inquiry!</div></td></tr><tr'><td align='center'><div style='margin:6px 0px 6px 0px;'>&#151; I'll get back to you right away...</div></td></tr><tr><td align='center'><div class='fSize15' style='margin:3px 0px 0px 30px; font-family:times new roman; font-style:italic;'>Heidi Alfrey<br>Reverend</div></td></tr><tr><td><div class='fSize10' style='margin:12px 10px 4px 10px;'>PS: You should be receiving an auto-generated copy of your inquiry by e-mail within a minute or two...</div></td></tr></table>";DW.createWindow(["Thank You",thankYou],[0,400,0],null,null,6,[3,0,20]);}}