﻿var BiteMeHereInfo="Copyright &copy; 2010 Steven Foster Murray... <a href='mailto:PleaseBiteMeHere@comcast.net'>send us email</a>";var zapGiveMeSomeSpace1="&nbsp&nbsp&nbsp&nbsp";var zapGiveMeSomeSpace2="&nbsp&nbsp&nbsp&nbsp&nbsp";var bloggerLongWaitCount=0;var bloggerShortWaitCount=0;var bloggerBannerCycleActive=true;var newQuoteReady=1;var newQuoteSrting="This site works best with MSIE v6+, so wake up folks... it's free! Loading a quote...";var ScrollerString="";var Currentpos=0;var CurrentColorSet=0;var ScrollerInterval=0;var DontScrollDude=20;var SetColorInterval=0;var NewQuoteIntervalInterval=500;var WebCamViewerInterval=0;var ComixBumpInterval=0;var MovieTimeUpdateInterval=0;var ImageSetInterval=0;var ImageSetIntervalValue=160;var ImageObject=null;var ImageSlideShowCount=0;var ImageSlideShowPrefix=null;var QuicklyPauseTheSlideShow=false;var ImageNewURL=new Array(2);var ImageNewURLIndex=0;var BackGroundColorSetIndex=0;var BackgroundColorSet=new Array(9);BackgroundColorSet[0]="#000000";BackgroundColorSet[1]="#3D0011";BackgroundColorSet[2]="#002809";BackgroundColorSet[3]="#01172E";BackgroundColorSet[4]="#24001D";BackgroundColorSet[5]="#0A011D";BackgroundColorSet[6]="#002B40";BackgroundColorSet[7]="#002927";BackgroundColorSet[8]="#252525";var IrisTransition=false;var ApplyIrisOut=false;var ApplyIrisIn=false;var BlindsTransition=false;var BlindsRandom=false;var FadeTransition=false;var ImageFadeIn=false;var ImageFadeOut=false;var ImageFadeCount=0;var IrisXFormType=new Array(6);IrisXFormType[0]="circle";IrisXFormType[1]="star";IrisXFormType[2]="diamond";IrisXFormType[3]="cross";IrisXFormType[4]="plus";IrisXFormType[5]="square";var BlindsXFormType=new Array(4);BlindsXFormType[0]="left";BlindsXFormType[1]="right";BlindsXFormType[2]="up";BlindsXFormType[3]="down";var Camera1=null;var Camera2=null;var Camera3=null;var Camera4=null;var ImageCompression=50;var ImageRefreshCycle=15;var OddCycle=1;var ImageReSize=null;var GetImageDude=true;var isVideoPlaying=false;var isVideoPaused=false;var CurrentBandWidth= -1;var showTheMovietime=0;var BandWidthChangeRequest=false;var ThisMovieMMSVideoURI=null;var NextMovieMMSVidoeURI=null;var NextLVBSonataMovieMMSVidoeURI=null;var NextMegaMotionPictureMMSVidoeURI=null;var isRandomBulkMovieModeActive=false;var MegaMovieFormat16x9=false;var MegaMovieFormat4x3=false;var isLadyDoggieDVDModeActive=false;var LadyDoggieDVDMMSVideoURI="mms://Blade.Balmydaze.com/LadyMyLove/LadyMyLoveDVD.wmv";var DefaultMovieMMSVideoURI="mms://Blade.Balmydaze.com/CoolBreeze/24_Jimi.wmv";var isKoyaanisqatsiFilmModeActive=false;var isPowaqqatsiFilmModeActive=false;var KoyaanisqatsiFilmMMSVideoURI="mms://Blade.Balmydaze.com/OurEarthIsDying/KOYAANISQATSI.wmv";var PowaqqatsiFilmMMSVideoURI="mms://Blade.Balmydaze.com/OurEarthIsDying/POWAQQATSI.wmv";var isLVBPianoPlayerModeActive=false;var LVBPianoPlayerMMSVideoURI=new Array(6);LVBPianoPlayerMMSVideoURI[0]="mms://Blade.Balmydaze.com/PianoPlayer/AlessioBax-LVBSonata29Op106.wmv";LVBPianoPlayerMMSVideoURI[1]="mms://Blade.Balmydaze.com/PianoPlayer/DavidKadouch-LVBSonata16Op31-1.wmv";LVBPianoPlayerMMSVideoURI[2]="mms://Blade.Balmydaze.com/PianoPlayer/JonathanBliss-LVBSonata30Op109.wmv";LVBPianoPlayerMMSVideoURI[3]="mms://Blade.Balmydaze.com/PianoPlayer/LangLang-LVBSonata23Op57.wmv";LVBPianoPlayerMMSVideoURI[4]="mms://Blade.Balmydaze.com/PianoPlayer/SaleemAbboudAshker-LVBSonata21Op53.wmv";LVBPianoPlayerMMSVideoURI[5]="mms://Blade.Balmydaze.com/PianoPlayer/ShaiWosner-LVBSonata17Op31-2.wmv";var isNoEndInSightFilmModeActive=false;var NoEndInSightIndex=0;var NoEndInSightFilmMMSVideoURI="mms://Blade.Balmydaze.com/BushWacker/NoEndInSightFullMovie.wmv";var NoEndInSightFilmTrailerMMSVideoURI="mms://Blade.Balmydaze.com/BushWacker/NoEndInSightTrailer.wmv";var isPuppyBowlModeActive=false;var PuppyBowlIndex=0;var PuppyBowlMMSVideoURI=new Array(3);PuppyBowlMMSVideoURI[0]="mms://Blade.Balmydaze.com/PuppysRule/PuppyBowl1stHalf.wmv";PuppyBowlMMSVideoURI[1]="mms://Blade.Balmydaze.com/PuppysRule/KittyHalfTimeShow.wmv";PuppyBowlMMSVideoURI[2]="mms://Blade.Balmydaze.com/PuppysRule/PuppyBowl2ndHalf.wmv";var isLVBSymphonyModeActive=false;var LVBSymphonyIndex=0;var LVBSymphonyMMSVideoURI=new Array(2);LVBSymphonyMMSVideoURI[0]="mms://Blade.Balmydaze.com/SkyHigh/LVBSym3-Abbado.wmv";LVBSymphonyMMSVideoURI[1]="mms://Blade.Balmydaze.com/SkyHigh/LVBSym9-Abbado.wmv";var PhotoShowVisible=true;var PhotoShowSkip1stSelect=false;var WebCameraVisible=true;var WebCameraSkip1stSelect=false;var LVBRanAccessIndex=0;var LVBRanAccess=new Array(6);LVBRanAccess[0]=0;LVBRanAccess[1]=1;LVBRanAccess[2]=2;LVBRanAccess[3]=3;LVBRanAccess[4]=4;LVBRanAccess[5]=5;var MouseDownInMovie=false;var currentMovieMousePositionY=null;var lastMovieMousePositionY=null;var currentMovieMousePositionX=null;var lastMovieMousePositionX=null;var referencePointLeft=0;var AlbumDetailSet;var AlbumCount=0;var AlbumIndex;var AlbumShuffleArray;var GoToNextAlbum;var AlbumMasterButton;var AlbumButtonSet=new Array(25);var CurrentAlbumTitle;var AlbumPhotoDetailSet;var AlbumPhotoCount=0;var AlbumPhotoIndex= -1;var AlbumPhotoShuffleArray;var BusyGettingAlbumPhotosFromTheServer=false;var MarilynAlbumPhotoDetailSet;var MarilynAlbumPhotoCount=0;var MarilynAlbumPhotoIndex= -1;var MarilynAlbumPhotoShuffleArray;var MarilynSetInterval=0;var MarilynSetIntervalValue=120;var MovieAnimation=null;var TrailMixer=new Array("Images/trail1.gif",38,35,"Images/trail2.gif",30,31,"Images/trail3.gif",28,26,"Images/trail4.gif",22,21,"Images/trail5.gif",16,16,"Images/trail6.gif",10,10);var nosAMI=parseInt(TrailMixer.length/3);var offsetx=15;var offsety=10;var rightedge=0;var bottomedge=0;function createDivContainer(N,Xp,Yp,W,H,HT){with(document){document.write("<div id='"+N+"'style='position:absolute;visibility:hidden;left:"+Xp+"; top:"+Yp+"; width:"+W+"; height:"+H+"; '>");document.write(HT);document.write("</div>");}};function showTrail(){for(i=0;i<nosAMI;i++){document.getElementById("CUR"+i).style.visibility="visible";}};function getXpos(N){return parseInt(document.getElementById(N).offsetLeft);};function getYpos(N){return parseInt(document.getElementById(N).offsetTop);};function moveContainer(N,DX,DY){c=document.getElementById(N).style;c.left=Math.min(rightedge,DX+offsetx);c.top=Math.min(bottomedge,DY+offsety);};function cycle(){for(i=0;i<(nosAMI-1);i++){moveContainer("CUR"+i,getXpos("CUR"+(i+1)),getYpos("CUR"+(i+1)));}};function newPos(e){var posx=window.event.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;var posy=window.event.clientY+document.body.scrollTop+document.documentElement.scrollTop;moveContainer("CUR"+(nosAMI-1),posx,posy);};function getEdgesIE(){rightedge=document.body.clientWidth-TrailMixer[1];bottomedge=document.body.scrollHeight-TrailMixer[2];};var AlbumDetailsXHR=CreateXmlHttpRequestObject();var AlbumPhotoDetailsXHR=CreateXmlHttpRequestObject();var MarilynAlbumPhotoDetailsXHR=CreateXmlHttpRequestObject();var SlideshowCountXHR=CreateXmlHttpRequestObject();var SlideshowFilePrefixXHR=CreateXmlHttpRequestObject();var NextQuoteDudeXHR=CreateXmlHttpRequestObject();var GetMovieMMSAccessURIXHR=CreateXmlHttpRequestObject();var GetLVBSonataMMSAccessURIXHR=CreateXmlHttpRequestObject();var GetMegaMotionPictureMMSAccessURIXHR=CreateXmlHttpRequestObject();function GetFullDatabaseAlbumList(){if(AlbumDetailsXHR){AlbumCount=0;disableAllPhotoAlbumButtons();var WebSite=location.pathname;var endChar=WebSite.lastIndexOf("/");WebSite=WebSite.substring(0,endChar+1);var currentHostURL="http://"+location.host+WebSite+"wsLinqAlbumPhotoDetailsService.asmx/GetAlbumDetailsFiltered";try{AlbumDetailsXHR.open("POST",currentHostURL,true);}catch(e){enableAllPhotoAlbumButtons();writeDebug("Error in GetFullDatabaseAlbumList ["+e.name+"]: "+e.message,true);return;}try{AlbumDetailsXHR.onreadystatechange=onFullDatabaseAlbumListComplete;AlbumDetailsXHR.setRequestHeader("Content-Type","application/x-www-form-urlencoded");AlbumDetailsXHR.send("IsPublic="+true);}catch(e){enableAllPhotoAlbumButtons();writeDebug("Error in GetFullDatabaseAlbumList ["+e.name+"]: "+e.message,true);}}};function onFullDatabaseAlbumListComplete(){try{if(AlbumDetailsXHR.readyState==READYSTATE_COMPLETE){if(AlbumDetailsXHR.status==HTTPSTATUS_OK){var JSONResponse=AlbumDetailsXHR.responseText;AlbumDetailSet=Sys.Serialization.JavaScriptSerializer.deserialize(JSONResponse);if(AlbumDetailSet!=null){AlbumCount=AlbumDetailSet.length;AlbumIndex= -1;AlbumShuffleArray=new Array(AlbumCount);for(var i=0;i<AlbumCount;i++){AlbumShuffleArray[i]=i;}AlbumShuffleArray.shuffle();DropDownChildSetButtonSetup();enableAllPhotoAlbumButtons();}}else{enableAllPhotoAlbumButtons();var Bugs=AlbumDetailsXHR.responseText;writeDebug("Error in onFullDatabaseAlbumListComplete! "+Bugs,true);}}}catch(e){enableAllPhotoAlbumButtons();writeDebug("Error in onFullDatabaseAlbumListComplete ["+e.name+"]: "+e.message,true);}};function GetAlbumPhotoDetails(albumTitle){CurrentAlbumTitle=albumTitle;if(AlbumPhotoDetailsXHR){AlbumPhotoCount=0;disableAllPhotoAlbumButtons();BusyGettingAlbumPhotosFromTheServer=true;var WebSite=location.pathname;var endChar=WebSite.lastIndexOf("/");WebSite=WebSite.substring(0,endChar+1);var currentHostURL="http://"+location.host+WebSite+"wsLinqAlbumPhotoDetailsService.asmx/GetAlbumPhotoDetails";try{AlbumPhotoDetailsXHR.open("POST",currentHostURL,true);}catch(e){enableAllPhotoAlbumButtons();BusyGettingAlbumPhotosFromTheServer=false;writeDebug("Error in GetAlbumPhotoDetails ["+e.name+"]: "+e.message,true);return;}try{AlbumPhotoDetailsXHR.onreadystatechange=onAlbumPhotoDetailsComplete;AlbumPhotoDetailsXHR.setRequestHeader("Content-Type","application/x-www-form-urlencoded");AlbumPhotoDetailsXHR.send("AlbumTitle="+albumTitle);}catch(e){enableAllPhotoAlbumButtons();BusyGettingAlbumPhotosFromTheServer=false;writeDebug("Error in GetAlbumPhotoDetails ["+e.name+"]: "+e.message,true);}}};function onAlbumPhotoDetailsComplete(){try{if(AlbumPhotoDetailsXHR.readyState==READYSTATE_COMPLETE){if(AlbumPhotoDetailsXHR.status==HTTPSTATUS_OK){var JSONResponse=AlbumPhotoDetailsXHR.responseText;AlbumPhotoDetailSet=Sys.Serialization.JavaScriptSerializer.deserialize(JSONResponse);if(AlbumPhotoDetailSet!=null){AlbumPhotoCount=AlbumPhotoDetailSet.length;AlbumPhotoIndex= -1;ImageSetInterval=500;AlbumMasterButton.innerHTML=CurrentAlbumTitle;AlbumMasterButton.style.color="#ff0000";AlbumMasterButton.style.textAlign="center";AlbumPhotoShuffleArray=new Array(AlbumPhotoCount);for(var i=0;i<AlbumPhotoCount;i++){AlbumPhotoShuffleArray[i]=i;}AlbumPhotoShuffleArray.shuffle();BusyGettingAlbumPhotosFromTheServer=false;enableAllPhotoAlbumButtons();}}else{enableAllPhotoAlbumButtons();BusyGettingAlbumPhotosFromTheServer=false;var Bugs=AlbumPhotoDetailsXHR.responseText;writeDebug("Error in onAlbumPhotoDetailsComplete! "+Bugs,true);}}}catch(e){enableAllPhotoAlbumButtons();BusyGettingAlbumPhotosFromTheServer=false;writeDebug("Error in onAlbumPhotoDetailsComplete ["+e.name+"]: "+e.message,true);}};function GetMarilynAlbumPhotoDetails(){if(MarilynAlbumPhotoDetailsXHR){MarilynAlbumPhotoCount=0;var WebSite=location.pathname;var endChar=WebSite.lastIndexOf("/");WebSite=WebSite.substring(0,endChar+1);var currentHostURL="http://"+location.host+WebSite+"wsLinqAlbumPhotoDetailsService.asmx/GetAlbumPhotoDetails";try{MarilynAlbumPhotoDetailsXHR.open("POST",currentHostURL,true);}catch(e){writeDebug("Error in GetMarilynAlbumPhotoDetails ["+e.name+"]: "+e.message,true);return;}try{MarilynAlbumPhotoDetailsXHR.onreadystatechange=onMarilynAlbumPhotoDetailsComplete;MarilynAlbumPhotoDetailsXHR.setRequestHeader("Content-Type","application/x-www-form-urlencoded");MarilynAlbumPhotoDetailsXHR.send("AlbumTitle=Just a Candle in the Wind...");}catch(e){writeDebug("Error in GetMarilynAlbumPhotoDetails ["+e.name+"]: "+e.message,true);}}};function onMarilynAlbumPhotoDetailsComplete(){try{if(MarilynAlbumPhotoDetailsXHR.readyState==READYSTATE_COMPLETE){if(MarilynAlbumPhotoDetailsXHR.status==HTTPSTATUS_OK){var JSONResponse=MarilynAlbumPhotoDetailsXHR.responseText;MarilynAlbumPhotoDetailSet=Sys.Serialization.JavaScriptSerializer.deserialize(JSONResponse);if(MarilynAlbumPhotoDetailSet!=null){MarilynAlbumPhotoCount=MarilynAlbumPhotoDetailSet.length;MarilynAlbumPhotoIndex= -1;MarilynAlbumPhotoShuffleArray=new Array(MarilynAlbumPhotoCount);for(var i=0;i<MarilynAlbumPhotoCount;i++){MarilynAlbumPhotoShuffleArray[i]=i;}MarilynAlbumPhotoShuffleArray.shuffle();}}else{var Bugs=MarilynAlbumPhotoDetailsXHR.responseText;writeDebug("Error in onMarilynAlbumPhotoDetailsComplete! "+Bugs,true);}}}catch(e){writeDebug("Error in onMarilynAlbumPhotoDetailsComplete ["+e.name+"]: "+e.message,true);}};function GetNextQuoteDude(){if(NextQuoteDudeXHR){var WebSite=location.pathname;var endChar=WebSite.lastIndexOf("/");WebSite=WebSite.substring(0,endChar+1);var currentHostURL="http://"+location.host+WebSite+"wsQuoteGrabberService.asmx/GetShuffleQuote";try{NextQuoteDudeXHR.open("POST",currentHostURL,true);}catch(e){writeDebug("Error in GetNextQuoteDude ["+e.name+"]: "+e.message,true);return;}try{NextQuoteDudeXHR.onreadystatechange=onGetQuoteComplete;NextQuoteDudeXHR.setRequestHeader("Content-Type","application/x-www-form-urlencoded");NextQuoteDudeXHR.send();}catch(e){writeDebug("Error in GetNextQuoteDude ["+e.name+"]: "+e.message,true);}}};function onGetQuoteComplete(){try{if(NextQuoteDudeXHR.readyState==READYSTATE_COMPLETE){if(NextQuoteDudeXHR.status==HTTPSTATUS_OK){var xmlDoc=NextQuoteDudeXHR.responseXML;if(xmlDoc!=null){var docElment=xmlDoc.documentElement;var QuoteElement=xmlDoc.getElementsByTagName("Quote");var newQuote=QuoteElement[0].firstChild.nodeValue;var AuthorElement=xmlDoc.getElementsByTagName("Author");var newAuthor=AuthorElement[0].firstChild.nodeValue;newQuoteSrting=newQuote+' ['+newAuthor+"]...........";newQuoteReady=1;Currentpos=0;}}else{var Bugs=NextQuoteDudeXHR.responseText;writeDebug("Error in onGetQuoteComplete! "+Bugs,true);}}}catch(e){writeDebug("Error in onGetQuoteComplete ["+e.name+"]: "+e.message,true);}};function GetSlideshowCount(dirindex){if(SlideshowCountXHR){var WebSite=location.pathname;var endChar=WebSite.lastIndexOf("/");WebSite=WebSite.substring(0,endChar+1);var currentHostURL="http://"+location.host+WebSite+"wsSlideShowService.asmx/SlideshowFileCount";try{SlideshowCountXHR.open("POST",currentHostURL,true);}catch(e){writeDebug("Error in GetSlideshowCount ["+e.name+"]: "+e.message,true);return;}try{SlideshowCountXHR.onreadystatechange=onSlideshowCountComplete;SlideshowCountXHR.setRequestHeader("Content-Type","application/x-www-form-urlencoded");SlideshowCountXHR.send("DirSelect="+dirindex);}catch(e){writeDebug("Error in GetSlideshowCount ["+e.name+"]: "+e.message,true);}}};function onSlideshowCountComplete(){try{if(SlideshowCountXHR.readyState==READYSTATE_COMPLETE){if(SlideshowCountXHR.status==HTTPSTATUS_OK){var JSONResponse=SlideshowCountXHR.responseText;var FileListInfo=Sys.Serialization.JavaScriptSerializer.deserialize(JSONResponse);if(FileListInfo!=null)ImageSlideShowCount=FileListInfo.FileListLength;}else{var Bugs=NextQuoteDudeXHR.responseText;writeDebug("Error in onSlideshowCountComplete! "+Bugs,true);}}}catch(e){writeDebug("Error in onSlideshowCountComplete ["+e.name+"]: "+e.message,true);}};function GetSlideshowFilePrefix(dirindex){if(SlideshowFilePrefixXHR){var WebSite=location.pathname;var endChar=WebSite.lastIndexOf("/");WebSite=WebSite.substring(0,endChar+1);var currentHostURL="http://"+location.host+WebSite+"wsSlideShowService.asmx/SlideshowFilePrefix";try{SlideshowFilePrefixXHR.open("POST",currentHostURL,true);}catch(e){writeDebug("Error in GetSlideshowFilePrefix ["+e.name+"]: "+e.message,true);return;}try{SlideshowFilePrefixXHR.onreadystatechange=onSlideshowFilePrefixComplete;SlideshowFilePrefixXHR.setRequestHeader("Content-Type","application/x-www-form-urlencoded");SlideshowFilePrefixXHR.send("DirSelect="+dirindex);}catch(e){writeDebug("Error in GetSlideshowFilePrefix ["+e.name+"]: "+e.message,true);}}};function onSlideshowFilePrefixComplete(results){try{if(SlideshowFilePrefixXHR.readyState==READYSTATE_COMPLETE){if(SlideshowFilePrefixXHR.status==HTTPSTATUS_OK){var JSONResponse=SlideshowFilePrefixXHR.responseText;var FilePrefixInfo=Sys.Serialization.JavaScriptSerializer.deserialize(JSONResponse);if(FilePrefixInfo!=null)ImageSlideShowPrefix=FilePrefixInfo.ImageFilenamePrefix;}else{var Bugs=SlideshowFilePrefixXHR.responseText;writeDebug("Error in onSlideshowCountComplete! "+Bugs,true);}}}catch(e){writeDebug("Error in onSlideshowFilePrefixComplete ["+e.name+"]: "+e.message,true);}};function GetRandomWoodstockMovieMMSaccessURIFromWS(lastMovie){if(GetMovieMMSAccessURIXHR){var WebSite=location.pathname;var endChar=WebSite.lastIndexOf("/");WebSite=WebSite.substring(0,endChar+1);var currentHostURL="http://"+location.host+WebSite+"wsWoodstockMovieService.asmx/GetRandomWoodstockMMSAccessURI";try{GetMovieMMSAccessURIXHR.open("POST",currentHostURL,true);}catch(e){writeDebug("Error in GetRandomWoodstockMovieMMSaccessURIFromWS ["+e.name+"]: "+e.message,true);return;}try{GetMovieMMSAccessURIXHR.onreadystatechange=onGetRandomWoodstockMovieMMSaccessURIComplete;GetMovieMMSAccessURIXHR.setRequestHeader("Content-Type","application/x-www-form-urlencoded");GetMovieMMSAccessURIXHR.send("lastMovie="+lastMovie);}catch(e){writeDebug("Error in GetRandomWoodstockMovieMMSaccessURIFromWS ["+e.name+"]: "+e.message,true);}}};function onGetRandomWoodstockMovieMMSaccessURIComplete(){try{if(GetMovieMMSAccessURIXHR.readyState==READYSTATE_COMPLETE){if(GetMovieMMSAccessURIXHR.status==HTTPSTATUS_OK){var xmlDoc=GetMovieMMSAccessURIXHR.responseXML;if(xmlDoc!=null){var docElment=xmlDoc.documentElement;var AllStringElements=xmlDoc.getElementsByTagName("string");NextMovieMMSVidoeURI=AllStringElements[0].firstChild.nodeValue;}}else{var Bugs=GetMovieMMSAccessURIXHR.responseText;writeDebug("Error in onGetRandomWoodstockMovieMMSaccessURIComplete! "+Bugs,true);}}}catch(e){writeDebug("Error in onGetRandomWoodstockMovieMMSaccessURIComplete ["+e.name+"]: "+e.message,true);}};function GetRandomLVBPianoSonataMovieMMSaccessURIFromWS(lastMovie){if(GetLVBSonataMMSAccessURIXHR){var WebSite=location.pathname;var endChar=WebSite.lastIndexOf("/");WebSite=WebSite.substring(0,endChar+1);var currentHostURL="http://"+location.host+WebSite+"wsLVBPianoSonataMovieService.asmx/GetRandomLVBPianoSonataMMSAccessURI";try{GetLVBSonataMMSAccessURIXHR.open("POST",currentHostURL,true);}catch(e){writeDebug("Error in GetRandomLVBPianoSonataMovieMMSaccessURIFromWS ["+e.name+"]: "+e.message,true);return;}try{GetLVBSonataMMSAccessURIXHR.onreadystatechange=onGetRandomLVBPianoSonataMovieMMSaccessURIComplete;GetLVBSonataMMSAccessURIXHR.setRequestHeader("Content-Type","application/x-www-form-urlencoded");GetLVBSonataMMSAccessURIXHR.send("lastMovie="+lastMovie);}catch(e){writeDebug("Error in GetRandomLVBPianoSonataMovieMMSaccessURIFromWS ["+e.name+"]: "+e.message,true);}}};function onGetRandomLVBPianoSonataMovieMMSaccessURIComplete(){try{if(GetLVBSonataMMSAccessURIXHR.readyState==READYSTATE_COMPLETE){if(GetLVBSonataMMSAccessURIXHR.status==HTTPSTATUS_OK){var xmlDoc=GetLVBSonataMMSAccessURIXHR.responseXML;if(xmlDoc!=null){var docElment=xmlDoc.documentElement;var AllStringElements=xmlDoc.getElementsByTagName("string");NextLVBSonataMovieMMSVidoeURI=AllStringElements[0].firstChild.nodeValue;}}else{var Bugs=GetLVBSonataMMSAccessURIXHR.responseText;writeDebug("Error in onGetRandomLVBPianoSonataMovieMMSaccessURIComplete! "+Bugs,true);}}}catch(e){writeDebug("Error in onGetRandomLVBPianoSonataMovieMMSaccessURIComplete ["+e.name+"]: "+e.message,true);}};function GetRandomMegaMotionPictureMMSaccessURIFromWS(){if(GetMegaMotionPictureMMSAccessURIXHR){var WebSite=location.pathname;var endChar=WebSite.lastIndexOf("/");WebSite=WebSite.substring(0,endChar+1);var currentHostURL="http://"+location.host+WebSite+"wsMegaMotionPictureService.asmx/GetRandomMegaMotionPictureMMSAccessURI";try{GetMegaMotionPictureMMSAccessURIXHR.open("POST",currentHostURL,true);}catch(e){writeDebug("Error in GetRandomMegaMotionPictureMMSaccessURIFromWS ["+e.name+"]: "+e.message,true);return;}try{GetMegaMotionPictureMMSAccessURIXHR.onreadystatechange=onGetRandomMegaMotionPictureMMSaccessURIComplete;GetMegaMotionPictureMMSAccessURIXHR.setRequestHeader("Content-Type","application/x-www-form-urlencoded");GetMegaMotionPictureMMSAccessURIXHR.send();}catch(e){writeDebug("Error in GetRandomMegaMotionPictureMMSaccessURIFromWS ["+e.name+"]: "+e.message,true);}}};function onGetRandomMegaMotionPictureMMSaccessURIComplete(){try{if(GetMegaMotionPictureMMSAccessURIXHR.readyState==READYSTATE_COMPLETE){if(GetMegaMotionPictureMMSAccessURIXHR.status==HTTPSTATUS_OK){var xmlDoc=GetMegaMotionPictureMMSAccessURIXHR.responseXML;if(xmlDoc!=null){var docElment=xmlDoc.documentElement;var AllStringElements=xmlDoc.getElementsByTagName("string");NextMegaMotionPictureMMSVidoeURI=AllStringElements[0].firstChild.nodeValue;var FilmFormat=AllStringElements[1].firstChild.nodeValue;if(FilmFormat=="16x9"){MegaMovieFormat16x9=true;MegaMovieFormat4x3=false;}else if(FilmFormat=="4x3"){MegaMovieFormat4x3=true;MegaMovieFormat16x9=false;}else{MegaMovieFormat4x3=false;MegaMovieFormat16x9=false;}}}else{var Bugs=GetMegaMotionPictureMMSAccessURIXHR.responseText;writeDebug("Error in onGetRandomMegaMotionPictureMMSaccessURIComplete! "+Bugs,true);}}}catch(e){writeDebug("Error in onGetRandomMegaMotionPictureMMSaccessURIComplete ["+e.name+"]: "+e.message,true);}};function GetNextMegaMotionPictureMMSaccessURIFromWS(){if(GetMegaMotionPictureMMSAccessURIXHR){var WebSite=location.pathname;var endChar=WebSite.lastIndexOf("/");WebSite=WebSite.substring(0,endChar+1);var currentHostURL="http://"+location.host+WebSite+"wsMegaMotionPictureService.asmx/GetNextMegaMotionPictureMMSAccessURI";try{GetMegaMotionPictureMMSAccessURIXHR.open("POST",currentHostURL,true);}catch(e){writeDebug("Error in GetNextMegaMotionPictureMMSaccessURIFromWS ["+e.name+"]: "+e.message,true);return;}try{GetMegaMotionPictureMMSAccessURIXHR.onreadystatechange=onGetNextMegaMotionPictureMMSaccessURIComplete;GetMegaMotionPictureMMSAccessURIXHR.setRequestHeader("Content-Type","application/x-www-form-urlencoded");GetMegaMotionPictureMMSAccessURIXHR.send();}catch(e){writeDebug("Error in GetNextMegaMotionPictureMMSaccessURIFromWS ["+e.name+"]: "+e.message,true);}}};function onGetNextMegaMotionPictureMMSaccessURIComplete(){try{if(GetMegaMotionPictureMMSAccessURIXHR.readyState==READYSTATE_COMPLETE){if(GetMegaMotionPictureMMSAccessURIXHR.status==HTTPSTATUS_OK){var xmlDoc=GetMegaMotionPictureMMSAccessURIXHR.responseXML;if(xmlDoc!=null){var docElment=xmlDoc.documentElement;var AllStringElements=xmlDoc.getElementsByTagName("string");NextMegaMotionPictureMMSVidoeURI=AllStringElements[0].firstChild.nodeValue;}}else{var Bugs=GetMegaMotionPictureMMSAccessURIXHR.responseText;writeDebug("Error in onGetNextMegaMotionPictureMMSaccessURIComplete! "+Bugs,true);}}}catch(e){writeDebug("Error in onGetNextMegaMotionPictureMMSaccessURIComplete ["+e.name+"]: "+e.message,true);}};function DropDownSetUpLinkage(ParentID,ChildContainerID,dropPosition){var objControl=document.getElementById(ParentID);var objChildSet=document.getElementById(ChildContainerID);objControl["parentIndex"]=objControl.id;objControl["childIndex"]=objChildSet.id;objChildSet["parentIndex"]=objControl.id;objChildSet["childIndex"]=objChildSet.id;objChildSet["positionIndex"]=dropPosition;objChildSet.style.position="absolute";objChildSet.style.visibility="hidden";objControl.onclick=DropDownTopClick;objChildSet.onmouseover=DropDownSetShow;objChildSet.onmouseout=DropDownSetHide;};function DropDownShowChildContainer(ParentID,ChildContainerID){var objControl=document.getElementById(ParentID);var objChildSet=document.getElementById(ChildContainerID);var top=(objChildSet["positionIndex"]=="y")?objControl.offsetHeight-2:0;var left=(objChildSet["positionIndex"]=="x")?objControl.offsetWidth-2:0;for(;objControl;objControl=objControl.offsetParent){top+=objControl.offsetTop;left+=objControl.offsetLeft;}objChildSet.style.position="absolute";objChildSet.style.top=top+'px';objChildSet.style.left=left+'px';objChildSet.style.visibility="visible";};function DropDownSetShow(){var objControl=document.getElementById(this["parentIndex"]);var objChildSet=document.getElementById(this["childIndex"]);DropDownShowChildContainer(objControl.id,objChildSet.id);if(objChildSet["timeoutIndex"]!=null){clearTimeout(objChildSet["timeoutIndex"]);}};function DropDownSetHide(){var objChildSet=document.getElementById(this["childIndex"]);objChildSet["timeoutIndex"]=setTimeout("document.getElementById('"+objChildSet.id+"').style.visibility='hidden';",333);};function DropDownSetHideFromButton(objButton){var objChildSet=document.getElementById(objButton.parentNode["childIndex"]);objChildSet["timeoutIndex"]=setTimeout("document.getElementById('"+objChildSet.id+"').style.visibility='hidden';",222);if(!BusyGettingAlbumPhotosFromTheServer){if(AlbumMasterButton.innerHTML!=objButton.albumCaption){AlbumPhotoCount=0;GetAlbumPhotoDetails(objButton.albumCaption);AlbumMasterButton.innerHTML="Loading a new Photo Album Set...";AlbumMasterButton.style.color="#000000";AlbumMasterButton.style.textAlign="left";}}};function DropDownTopClick(){var objControl=document.getElementById(this["parentIndex"]);var objChildSet=document.getElementById(this["childIndex"]);if(objChildSet.style.visibility!="visible"){DropDownShowChildContainer(objControl.id,objChildSet.id);}else{objChildSet.style.visibility="hidden";}return false;};function DropDownChildSetButtonSetup(){for(var i=0;i<AlbumButtonSet.length;i++){AlbumButtonSet[i].style.display="none";AlbumButtonSet[i].albumID=0;AlbumButtonSet[i].albumCaption="";}for(i=0;i<AlbumCount;i++){AlbumButtonSet[i].style.display="inline";AlbumButtonSet[i].albumID=AlbumDetailSet[i].AlbumID;AlbumButtonSet[i].albumCaption=AlbumDetailSet[i].Caption;AlbumButtonSet[i].innerHTML="&nbsp&nbsp"+AlbumDetailSet[i].Caption;}};function RefreshTheAlbumSetButton(){GetFullDatabaseAlbumList();GoToNextAlbum=true;};function disableAllPhotoAlbumButtons(){if(document.getElementById("PhotoControlButton1")!=null){document.getElementById("PhotoControlButton1").disabled=true;}if(document.getElementById("PhotoControlButton2")!=null){document.getElementById("PhotoControlButton2").disabled=true;}if(document.getElementById("PhotoControlButton3")!=null){document.getElementById("PhotoControlButton3").disabled=true;}if(document.getElementById("PhotoControlButton4")!=null){document.getElementById("PhotoControlButton4").disabled=true;}if(document.getElementById("PhotoControlButton5")!=null){document.getElementById("PhotoControlButton5").disabled=true;}if(document.getElementById("PhotoControlButton6")!=null){document.getElementById("PhotoControlButton6").disabled=true;}};function enableAllPhotoAlbumButtons(){if(document.getElementById("PhotoControlButton1")!=null){document.getElementById("PhotoControlButton1").disabled=false;}if(document.getElementById("PhotoControlButton2")!=null){document.getElementById("PhotoControlButton2").disabled=false;}if(document.getElementById("PhotoControlButton3")!=null){document.getElementById("PhotoControlButton3").disabled=false;}if(document.getElementById("PhotoControlButton4")!=null){document.getElementById("PhotoControlButton4").disabled=false;}if(document.getElementById("PhotoControlButton5")!=null){document.getElementById("PhotoControlButton5").disabled=false;}if(document.getElementById("PhotoControlButton6")!=null){document.getElementById("PhotoControlButton6").disabled=false;QuicklyPauseTheSlideShow=false;document.getElementById("PhotoControlButton6").innerHTML="Pause";document.getElementById("PhotoControlButton6").style.color="#000000";}};function FastModePhotoAlbumButton(){ImageSetIntervalValue=60;if(document.getElementById("PhotoControlButton3")!=null){document.getElementById("PhotoControlButton3").style.color="#00ff00";}if(document.getElementById("PhotoControlButton4")!=null){document.getElementById("PhotoControlButton4").style.color="#000000";}if(document.getElementById("PhotoControlButton5")!=null){document.getElementById("PhotoControlButton5").style.color="#000000";}};function NormalModePhotoAlbumButton(){ImageSetIntervalValue=150;if(document.getElementById("PhotoControlButton3")!=null){document.getElementById("PhotoControlButton3").style.color="#000000";}if(document.getElementById("PhotoControlButton4")!=null){document.getElementById("PhotoControlButton4").style.color="#00ff00";}if(document.getElementById("PhotoControlButton5")!=null){document.getElementById("PhotoControlButton5").style.color="#000000";}};function SlowModePhotoAlbumButton(){ImageSetIntervalValue=250;if(document.getElementById("PhotoControlButton3")!=null){document.getElementById("PhotoControlButton3").style.color="#000000";}if(document.getElementById("PhotoControlButton4")!=null){document.getElementById("PhotoControlButton4").style.color="#000000";}if(document.getElementById("PhotoControlButton5")!=null){document.getElementById("PhotoControlButton5").style.color="#00ff00";}};function TogglePauseModePhotoAlbumButton(){if(QuicklyPauseTheSlideShow){QuicklyPauseTheSlideShow=false;if(document.getElementById("PhotoControlButton6")!=null){document.getElementById("PhotoControlButton6").innerHTML="Pause";document.getElementById("PhotoControlButton6").style.color="#000000";}}else{QuicklyPauseTheSlideShow=true;if(document.getElementById("PhotoControlButton6")!=null){document.getElementById("PhotoControlButton6").innerHTML="Start";document.getElementById("PhotoControlButton6").style.color="#0000ff";}}};function gotoNextRandomAlbum(){GoToNextAlbum=true;};function gotoNextRandomPhoto(){ImageSetInterval=500;};function TogglePhotoShowAccordionTitle(target,event){try{if(PhotoShowSkip1stSelect==true){PhotoShowSkip1stSelect=false;return;}if(PhotoShowVisible){var PhotoShowAccordionTitle=$get("PhotoShowAccordionTitleID");if(PhotoShowAccordionTitle!=null){PhotoShowVisible=false;PhotoShowAccordionTitle.innerHTML="View the World of Photography";setCookie("PhotoShowVisible","0",100);}}else{var PhotoShowAccordionTitle=$get("PhotoShowAccordionTitleID");if(PhotoShowAccordionTitle!=null){PhotoShowVisible=true;PhotoShowAccordionTitle.innerHTML="Hide the World of Photography";setCookie("PhotoShowVisible","1",100);gotoNextRandomPhoto();}}}catch(e){writeDebug("Error in TogglePhotoShowAccordionTitle ["+e.name+"]: "+e.message,true);}};function ToggleWebCameraAccordionTitle(target,event){try{if(WebCameraSkip1stSelect==true){WebCameraSkip1stSelect=false;return;}if(WebCameraVisible){var WebCameraAccordionTitle=$get("WebCamViewAccordionTitleID");if(WebCameraAccordionTitle!=null){WebCameraVisible=false;WebCameraAccordionTitle.innerHTML="View the Local WebCam Cluster";setCookie("WebCameraVisible","0",100);}}else{var WebCameraAccordionTitle=$get("WebCamViewAccordionTitleID");if(WebCameraAccordionTitle!=null){WebCameraVisible=true;WebCameraAccordionTitle.innerHTML="Hide the Local WebCam Cluster";setCookie("WebCameraVisible","1",100);}}}catch(e){writeDebug("Error in ToggleWebCameraAccordionTitle ["+e.name+"]: "+e.message,true);}};function doLVBPopupWindow(LVBLink,WindowName){if(!window.focus){return true;}var href;if(typeof(LVBLink)=='string'){href=LVBLink;}else{href=LVBLink.href;}window.open(href,null,"width=800,height=740,scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no");return false;};function doImagePlayerPopupWindow(ImagePlayerLink,WindowName){if(!window.focus){return true;}var href;if(typeof(ImagePlayerLink)=='string'){href=ImagePlayerLink;}else{href=ImagePlayerLink.href;}window.open(href,null,"width=1000,height=970,scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no");return false;};function doJoanArcPlayerPopupWindow(JoanArcPlayerLink,WindowName){if(!window.focus){return true;}var href;if(typeof(JoanArcPlayerLink)=='string'){href=JoanArcPlayerLink;}else{href=JoanArcPlayerLink.href;}window.open(href,null,"width=750,height=750,scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no");return false;};function doComixPlayerPopupWindow(ComixPlayerLink,WindowName){if(!window.focus){return true;}var href;if(typeof(ComixPlayerLink)=='string'){href=ComixPlayerLink;}else{href=ComixPlayerLink.href;}window.open(href,null,"width=900,height=850,scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no");return false;};function doVisualQuotePlayerPopupWindow(VisualQuotePlayerLink,WindowName){if(!window.focus){return true;}var href;if(typeof(VisualQuotePlayerLink)=='string'){href=VisualQuotePlayerLink;}else{href=VisualQuotePlayerLink.href;}window.open(href,null,"width=900,height=850,scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no");return false;};function doSilentFilmPlayerPopupWindow(SilentFilmPlayerLink,WindowName){if(!window.focus){return true;}var href;if(typeof(SilentFilmPlayerLink)=='string'){href=SilentFilmPlayerLink;}else{href=SilentFilmPlayerLink.href;}window.open(href,null,"width=1000,height=875,scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no");return false;};function doWarIsHellPopupWindow(WarIsHellAlwaysLink,WindowName){if(!window.focus){return true;}var href;if(typeof(WarIsHellAlwaysLink)=='string'){href=WarIsHellAlwaysLink;}else{href=WarIsHellAlwaysLink.href;}window.open(href,null,"width=1000,height=1046,scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no");return false;};function doLVBPianoSonatasRulePopupWindow(LVBPianoSonataLink,WindowName){if(!window.focus){return true;}var href;if(typeof(LVBPianoSonataLink)=='string'){href=LVBPianoSonataLink;}else{href=LVBPianoSonataLink.href;}window.open(href,null,"width=1000,height=1046,scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no");return false;};function doLinqAjaxPhotoEditorPopupWindow(LinqAjaxPhotoEditorLink,WindowName){if(!window.focus){return true;}var href;if(typeof(LinqAjaxPhotoEditorLink)=='string'){href=LinqAjaxPhotoEditorLink;}else{href=LinqAjaxPhotoEditorLink.href;}window.open(href,null,"width=1080,height=1000,scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no");return false;};function doPhotoMontageViewerPopupWindow(PhotoMontageViewerLink,WindowName){if(!window.focus){return true;}var href;if(typeof(PhotoMontageViewerLink)=='string'){href=PhotoMontageViewerLink;}else{href=PhotoMontageViewerLink.href;}window.open(href,null,"width=950,height=950,scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no");return false;};function nextComixPic(imageSrc,index){var TimeStamp=new Date();var Seconds=TimeStamp.getTime();try{document.getElementById(imageSrc.id).src='whComixHandler.ashx?&time='+Seconds+"&siteindex="+index;}catch(e){writeDebug("Error in nextComixPic ["+e.name+"]: "+e.message,true);}};function GetNewImageCompression(){var thisForm=document.forms[0];for(var i=0;i<thisForm.compression.length;i++){if(thisForm.compression[i].checked){break;}}ImageCompression=thisForm.compression[i].value;};function GetNewImageRefreshCycle(){var thisForm=document.forms[0];for(var i=0;i<thisForm.refreshcycle.length;i++){if(thisForm.refreshcycle[i].checked){break;}}ImageRefreshCycle=thisForm.refreshcycle[i].value;};function moveTheVideoPlayerUP(LinkObj){try{var TheMoviesDIV=document.getElementById("theMovies");if(TheMoviesDIV!=null){var theTOP=TheMoviesDIV.style.top;var theTOPvalue=0;if(theTOP!=""){var theTopSplit=theTOP.split("px");theTOPvalue=parseInt(theTopSplit[0]);}theTOPvalue-=1;if(theTOPvalue>=0){TheMoviesDIV.style.top=theTOPvalue+"px";setCookie("theMoviePositionY",theTOPvalue+"px",100);}}}catch(e){writeDebug("Error in moveTheVideoPlayerUP ["+e.name+"]: "+e.message,true);}};function moveTheVideoPlayerDOWN(LinkObj){try{var TheMoviesDIV=document.getElementById("theMovies");if(TheMoviesDIV!=null){var theTOP=TheMoviesDIV.style.top;var theTOPvalue=0;if(theTOP!=""){var theTopSplit=theTOP.split("px");theTOPvalue=parseInt(theTopSplit[0]);}theTOPvalue+=1;if(theTOPvalue<=500){TheMoviesDIV.style.top=theTOPvalue+"px";setCookie("theMoviePositionY",theTOPvalue+"px",100);}}}catch(e){writeDebug("Error in moveTheVideoPlayerDOWN ["+e.name+"]: "+e.message,true);}};function moveTheVideoPlayerLEFT(LinkObj){try{var TheMoviesDIV=document.getElementById("theMovies");if(TheMoviesDIV!=null){var theLEFT=TheMoviesDIV.style.left;var theLEFTvalue=0;if(theLEFT!=""){var theLEFTSplit=theLEFT.split("px");theLEFTvalue=parseInt(theLEFTSplit[0]);}else{var refPoint=document.getElementById("scrollerdude");if(refPoint!=null){for(;refPoint;refPoint=refPoint.offsetParent){theLEFTvalue+=refPoint.offsetLeft;}}}theLEFTvalue-=1;if(theLEFTvalue>=0){TheMoviesDIV.style.left=theLEFTvalue+"px";setCookie("theMoviePositionX",theLEFTvalue+"px",100);}}}catch(e){writeDebug("Error in moveTheVideoPlayerLEFT ["+e.name+"]: "+e.message,true);}};function moveTheVideoPlayerRIGHT(LinkObj){try{var TheMoviesDIV=document.getElementById("theMovies");if(TheMoviesDIV!=null){var theRIGHT=TheMoviesDIV.style.left;var theRIGHTvalue=0;if(theRIGHT!=""){var theRIGHTSplit=theRIGHT.split("px");theRIGHTvalue=parseInt(theRIGHTSplit[0]);}else{var refPoint=document.getElementById("scrollerdude");if(refPoint!=null){for(;refPoint;refPoint=refPoint.offsetParent){theRIGHTvalue+=refPoint.offsetLeft;}}}theRIGHTvalue+=1;if(theRIGHTvalue>=0){TheMoviesDIV.style.left=theRIGHTvalue+"px";setCookie("theMoviePositionX",theRIGHTvalue+"px",100);}}}catch(e){writeDebug("Error in moveTheVideoPlayerLEFT ["+e.name+"]: "+e.message,true);}};window.onresize=function(){try{var TheMoviesDIV=document.getElementById("theMovies");if(TheMoviesDIV!=null){var theValue=0;var refPoint=document.getElementById("scrollerdude");if(refPoint!=null){for(;refPoint;refPoint=refPoint.offsetParent){theValue+=refPoint.offsetLeft;}}if(theValue>=0){TheMoviesDIV.style.left=theValue+"px";}}}catch(e){writeDebug("Error in window.onresize ["+e.name+"]: "+e.message,true);}};function movieMouseDownMoveIt(){try{MouseDownInMovie=true;currentMovieMousePositionX=null;currentMovieMousePositionY=null;lastMovieMousePositionY=null;lastMovieMousePositionX=null;var refPoint=document.getElementById("scrollerdude");referencePointLeft=0;for(;refPoint;refPoint=refPoint.offsetParent){referencePointLeft+=refPoint.offsetLeft;}}catch(e){writeDebug("Error in movieMouseDownMoveIt ["+e.name+"]: "+e.message,true);}};function movieMouseMoveIt(){try{if(MouseDownInMovie){lastMovieMousePositionY=currentMovieMousePositionY;lastMovieMousePositionX=currentMovieMousePositionX;currentMovieMousePositionY=event.clientY;currentMovieMousePositionX=event.clientX;if(lastMovieMousePositionY!=null&&currentMovieMousePositionY!=null&&lastMovieMousePositionX!=null&&currentMovieMousePositionX!=null){var newMousePositionY=currentMovieMousePositionY-lastMovieMousePositionY;var newMousePositionX=currentMovieMousePositionX-lastMovieMousePositionX;var TheMoviesDIV=document.getElementById("theMovies");if(TheMoviesDIV!=null){var theLEFT=TheMoviesDIV.style.left;var theLEFTvalue=0;if(theLEFT!=""){var theLeftSplit=theLEFT.split("px");theLEFTvalue=parseInt(theLeftSplit[0]);}else{theLEFTvalue=referencePointLeft;}theLEFTvalue+=newMousePositionX;if(theLEFTvalue<0){theLEFTvalue=0;}var theTOP=TheMoviesDIV.style.top;var theTOPvalue=0;if(theTOP!=""){var theTopSplit=theTOP.split("px");theTOPvalue=parseInt(theTopSplit[0]);}theTOPvalue+=newMousePositionY;if(theTOPvalue<0){theTOPvalue=0;}if(theTOPvalue>500){theTOPvalue=500;}TheMoviesDIV.style.top=theTOPvalue+"px";TheMoviesDIV.style.left=theLEFTvalue+"px";setCookie("theMoviePositionY",theTOPvalue+"px",100);setCookie("theMoviePositionX",theLEFTvalue+"px",100);}}}}catch(e){writeDebug("Error in movieMouseMoveIt ["+e.name+"]: "+e.message,true);}};function movieMouseOutMoveIt(){MouseDownInMovie=false;};function movieMouseUpMoveIt(){MouseDownInMovie=false;}(function(){var swapper=function(suffleMe,el,all){var ran=Math.floor(Math.random()*all);var saver=suffleMe[el];suffleMe[el]=suffleMe[ran];suffleMe[ran]=saver;};Array.prototype.shuffle=function(){var i=this.length;var Total=i;while(i--){swapper(this,i,Total);}};})();function textboxOnKeyPressClampMaxNumber(textBox,maxLen){try{if(maxLen!=null){if(textBox.value.length>maxLen){alert("Sorry... You entered too many characters in the TextBox.\nPlease try again... shorten your repsonse!");return false;}}}catch(e){}};function textboxOnPasteClampMaxNumber(textBox,maxLen){try{if(maxLen!=null){var clipData=window.clipboardData.getData('Text');var Range=window.document.selection.createRange();var selectText=Range.text;var selectLength=0;if(selectText!=null&&selectText!=''&&selectText!=undefined){selectLength=selectText.length;}if((textBox.value.length-selectLength)+clipData.length>maxLen){alert("Sorry... You pasted too many characters into the TextBox.\nPlease try again... shorten your repsonse!");return false;}return true;}}catch(e){writeDebug("Error in textboxOnPasteClampMaxNumber ["+e.name+"]: "+e.message,true);}};function textboxOnDragDropClampMaxNumber(textBox,maxLen){try{if(maxLen!=null){var dragData=window.event.dataTransfer.getData('Text');var Range=window.document.selection.createRange();var selectText=Range.text;var selectLength=0;if(selectText!=null&&selectText!=''&&selectText!=undefined){selectLength=selectText.length;}if((textBox.value.length-selectLength)+dragData.length>maxLen){alert("Sorry... You dragged too many characters onto the TextBox.\nPlease try again... shorten your repsonse!");return false;}return true;}}catch(e){writeDebug("Error in textboxOnDragDropClampMaxNumber ["+e.name+"]: "+e.message,true);}};function blogPostbackVerifyComment(textBoxID){try{if(textBoxID!=null){var bloggerText=$get(textBoxID).value;var splitBloggerText=bloggerText.split("\r\n");var validBloggerText="";if(splitBloggerText.length>1){for(i=0;i<splitBloggerText.length-1;i++){validBloggerText+=splitBloggerText[i];if(i!=splitBloggerText.length-1){validBloggerText+="\\n";}}}else{validBloggerText=bloggerText;}if(validBloggerText==null||validBloggerText==""){return false;}var waterMarker=$find("BloggerCommentID_WaterMarkBehaviorID");if(waterMarker!=null){var wmText=waterMarker.get_WatermarkText();if(validBloggerText==wmText){waterMarker.set_WatermarkText("Please add some blog text... shit for brains!!!!!!!");return false;}}if($get(textBoxID).value.length==0){return false;}var newblogComment=System.Web.HtmlEncode(validBloggerText);if(newblogComment!=validBloggerText){$get(textBoxID).value=newblogComment;}return true;}}catch(e){writeDebug("Error in blogPostbackVerifyComment ["+e.name+"]: "+e.message,true);}};function GoToTheMovies(){if(isVideoPlaying){return;}try{var TheMoviesDIV=document.getElementById("theMovies");if(TheMoviesDIV!=null){TheMoviesDIV.style.width="922px";TheMoviesDIV.style.height="606px";TheMoviesDIV.style.backgroundColor="#0000ff";$common.setElementOpacity($get("theMovies"),0);TheMoviesDIV.style.display="block";if(MovieAnimation!=null){MovieAnimation.set_effect($AA.FadeEffect.FadeIn);MovieAnimation.set_duration(.25);MovieAnimation.HideTheVideoPlayer=false;MovieAnimation.play();}else{$common.setElementOpacity($get("theMovies"),1);}var TheNextButton=document.getElementById("theNextMovie");if(TheNextButton!=null){TheNextButton.style.display="inline";TheNextButton.style.visibility="visible";}var TheScrubberInput=document.getElementById("sliderValue1");if(TheScrubberInput!=null){TheScrubberInput.style.display="none";TheScrubberInput.style.visibility="hidden";}}var thePLAYER=document.getElementById("VideoZap");if(MegaMovieFormat16x9){thePLAYER.width="852";thePLAYER.height="480";}else if(MegaMovieFormat4x3){thePLAYER.width="640";thePLAYER.height="480";}else{thePLAYER.width="640";thePLAYER.height="400";}if(!isVideoPaused||isLadyDoggieDVDModeActive||isLVBPianoPlayerModeActive||isKoyaanisqatsiFilmModeActive||isPowaqqatsiFilmModeActive||isNoEndInSightFilmModeActive||isPuppyBowlModeActive||isLVBSymphonyModeActive){if(NextMegaMotionPictureMMSVidoeURI!=null){ThisMovieMMSVideoURI=NextMegaMotionPictureMMSVidoeURI;}else{ThisMovieMMSVideoURI=DefaultMovieMMSVideoURI;}thePLAYER.URL=ThisMovieMMSVideoURI;}isRandomBulkMovieModeActive=true;isLadyDoggieDVDModeActive=false;isLVBPianoPlayerModeActive=false;isKoyaanisqatsiFilmModeActive=false;isPowaqqatsiFilmModeActive=false;isNoEndInSightFilmModeActive=false;isPuppyBowlModeActive=false;isLVBSymphonyModeActive=false;isVideoPlaying=true;isVideoPaused=false;thePLAYER.controls.play();GetRandomMegaMotionPictureMMSaccessURIFromWS();}catch(e){writeDebug("Error in GoToTheMovies ["+e.name+"]: "+e.message,true);}};function GoWatchTheLadyDVD(){if(isVideoPlaying){return;}try{var TheMoviesDIV=document.getElementById("theMovies");if(TheMoviesDIV!=null){TheMoviesDIV.style.width="912px";TheMoviesDIV.style.height="606px";TheMoviesDIV.style.backgroundColor="#ff0000";$common.setElementOpacity($get("theMovies"),0);TheMoviesDIV.style.display="block";if(MovieAnimation!=null){MovieAnimation.set_effect($AA.FadeEffect.FadeIn);MovieAnimation.set_duration(.1);MovieAnimation.HideTheVideoPlayer=false;MovieAnimation.play();}else{$common.setElementOpacity($get("theMovies"),1);}var TheNextButton=document.getElementById("theNextMovie");if(TheNextButton!=null){TheNextButton.style.display="none";TheNextButton.style.visibility="hidden";}var TheScrubberInput=document.getElementById("sliderValue1");if(TheScrubberInput!=null){TheScrubberInput.style.display="none";TheScrubberInput.style.visibility="hidden";}}var thePLAYER=document.getElementById("VideoZap");thePLAYER.width="640";thePLAYER.height="480";if(!isVideoPaused||isRandomBulkMovieModeActive||isLVBPianoPlayerModeActive||isKoyaanisqatsiFilmModeActive||isPowaqqatsiFilmModeActive||isNoEndInSightFilmModeActive||isPuppyBowlModeActive||isLVBSymphonyModeActive){thePLAYER.URL=LadyDoggieDVDMMSVideoURI;}isLadyDoggieDVDModeActive=true;isRandomBulkMovieModeActive=false;isLVBPianoPlayerModeActive=false;isKoyaanisqatsiFilmModeActive=false;isPowaqqatsiFilmModeActive=false;isNoEndInSightFilmModeActive=false;isPuppyBowlModeActive=false;isLVBSymphonyModeActive=false;isVideoPlaying=true;isVideoPaused=false;thePLAYER.controls.play();}catch(e){writeDebug("Error in GoWatchTheLadyDVD ["+e.name+"]: "+e.message,true);}};function GoWatchThePianoPlayers(){if(isVideoPlaying){return;}try{var TheMoviesDIV=document.getElementById("theMovies");if(TheMoviesDIV!=null){TheMoviesDIV.style.width="922px";TheMoviesDIV.style.height="606px";TheMoviesDIV.style.backgroundColor="#008800";$common.setElementOpacity($get("theMovies"),0);TheMoviesDIV.style.display="block";if(MovieAnimation!=null){MovieAnimation.set_effect($AA.FadeEffect.FadeIn);MovieAnimation.HideTheVideoPlayer=false;MovieAnimation.play();}else{$common.setElementOpacity($get("theMovies"),1);}var TheNextButton=document.getElementById("theNextMovie");if(TheNextButton!=null){TheNextButton.style.display="inline";TheNextButton.style.visibility="visible";}var TheScrubberInput=document.getElementById("sliderValue1");if(TheScrubberInput!=null){TheScrubberInput.style.display="none";TheScrubberInput.style.visibility="hidden";}}var thePLAYER=document.getElementById("VideoZap");thePLAYER.width="852";thePLAYER.height="480";if(!isVideoPaused||isRandomBulkMovieModeActive||isLadyDoggieDVDModeActive||isKoyaanisqatsiFilmModeActive||isPowaqqatsiFilmModeActive||isNoEndInSightFilmModeActive||isPuppyBowlModeActive||isLVBSymphonyModeActive){thePLAYER.URL=LVBPianoPlayerMMSVideoURI[LVBRanAccess[LVBRanAccessIndex]];LVBRanAccessIndex++;if(LVBRanAccessIndex>LVBRanAccess.length-1){LVBRanAccessIndex=0;}}isLVBPianoPlayerModeActive=true;isLadyDoggieDVDModeActive=false;isRandomBulkMovieModeActive=false;isKoyaanisqatsiFilmModeActive=false;isPowaqqatsiFilmModeActive=false;isNoEndInSightFilmModeActive=false;isPuppyBowlModeActive=false;isLVBSymphonyModeActive=false;isVideoPlaying=true;isVideoPaused=false;thePLAYER.controls.play();}catch(e){writeDebug("Error in GoWatchThePianoPlayers ["+e.name+"]: "+e.message,true);}};function GoWatchKoyaanisqatsi(){if(isVideoPlaying){return;}try{var TheMoviesDIV=document.getElementById("theMovies");if(TheMoviesDIV!=null){TheMoviesDIV.style.width="922px";TheMoviesDIV.style.height="606px";TheMoviesDIV.style.backgroundColor="#9900ff";$common.setElementOpacity($get("theMovies"),0);TheMoviesDIV.style.display="block";if(MovieAnimation!=null){MovieAnimation.set_effect($AA.FadeEffect.FadeIn);MovieAnimation.set_duration(.1);MovieAnimation.HideTheVideoPlayer=false;MovieAnimation.play();}else{$common.setElementOpacity($get("theMovies"),1);}var TheNextButton=document.getElementById("theNextMovie");if(TheNextButton!=null){TheNextButton.style.display="none";TheNextButton.style.visibility="hidden";}var TheScrubberInput=document.getElementById("sliderValue1");if(TheScrubberInput!=null){TheScrubberInput.style.display="none";TheScrubberInput.style.visibility="hidden";}}var thePLAYER=document.getElementById("VideoZap");thePLAYER.width="852";thePLAYER.height="480";if(!isVideoPaused||isRandomBulkMovieModeActive||isLadyDoggieDVDModeActive||isLVBPianoPlayerModeActive||isPowaqqatsiFilmModeActive||isNoEndInSightFilmModeActive||isPuppyBowlModeActive||isLVBSymphonyModeActive){thePLAYER.URL=KoyaanisqatsiFilmMMSVideoURI;}isKoyaanisqatsiFilmModeActive=true;isRandomBulkMovieModeActive=false;isLadyDoggieDVDModeActive=false;isLVBPianoPlayerModeActive=false;isPowaqqatsiFilmModeActive=false;isNoEndInSightFilmModeActive=false;isPuppyBowlModeActive=false;isLVBSymphonyModeActive=false;isVideoPlaying=true;isVideoPaused=false;thePLAYER.controls.play();}catch(e){writeDebug("Error in GoWatchKoyaanisqatsi ["+e.name+"]: "+e.message,true);}};function GoWatchPowaqqatsi(){if(isVideoPlaying){return;}try{var TheMoviesDIV=document.getElementById("theMovies");if(TheMoviesDIV!=null){TheMoviesDIV.style.width="922px";TheMoviesDIV.style.height="606px";TheMoviesDIV.style.backgroundColor="#ff3300";$common.setElementOpacity($get("theMovies"),0);TheMoviesDIV.style.display="block";if(MovieAnimation!=null){MovieAnimation.set_effect($AA.FadeEffect.FadeIn);MovieAnimation.set_duration(.1);MovieAnimation.HideTheVideoPlayer=false;MovieAnimation.play();}else{$common.setElementOpacity($get("theMovies"),1);}var TheNextButton=document.getElementById("theNextMovie");if(TheNextButton!=null){TheNextButton.style.display="none";TheNextButton.style.visibility="hidden";}var TheScrubberInput=document.getElementById("sliderValue1");if(TheScrubberInput!=null){TheScrubberInput.style.display="none";TheScrubberInput.style.visibility="hidden";}}var thePLAYER=document.getElementById("VideoZap");thePLAYER.width="852";thePLAYER.height="480";if(!isVideoPaused||isRandomBulkMovieModeActive||isLadyDoggieDVDModeActive||isLVBPianoPlayerModeActive||isKoyaanisqatsiFilmModeActive||isNoEndInSightFilmModeActive||isPuppyBowlModeActive||isLVBSymphonyModeActive){thePLAYER.URL=PowaqqatsiFilmMMSVideoURI;}isPowaqqatsiFilmModeActive=true;isRandomBulkMovieModeActive=false;isLadyDoggieDVDModeActive=false;isLVBPianoPlayerModeActive=false;isKoyaanisqatsiFilmModeActive=false;isNoEndInSightFilmModeActive=false;isPuppyBowlModeActive=false;isLVBSymphonyModeActive=false;isVideoPlaying=true;isVideoPaused=false;thePLAYER.controls.play();}catch(e){writeDebug("Error in GoWatchPowaqqatsi ["+e.name+"]: "+e.message,true);}};function GoWatchNoEndInSight(){if(isVideoPlaying){return;}try{var TheMoviesDIV=document.getElementById("theMovies");if(TheMoviesDIV!=null){TheMoviesDIV.style.width="922px";TheMoviesDIV.style.height="606px";TheMoviesDIV.style.backgroundColor="#58002B";$common.setElementOpacity($get("theMovies"),0);TheMoviesDIV.style.display="block";if(MovieAnimation!=null){MovieAnimation.set_effect($AA.FadeEffect.FadeIn);MovieAnimation.set_duration(.1);MovieAnimation.HideTheVideoPlayer=false;MovieAnimation.play();}else{$common.setElementOpacity($get("theMovies"),1);}var TheNextButton=document.getElementById("theNextMovie");if(TheNextButton!=null){TheNextButton.style.display="inline";TheNextButton.style.visibility="visible";}var TheScrubberInput=document.getElementById("sliderValue1");if(TheScrubberInput!=null){TheScrubberInput.style.display="none";TheScrubberInput.style.visibility="hidden";}}var thePLAYER=document.getElementById("VideoZap");thePLAYER.width="852";thePLAYER.height="480";if(!isVideoPaused||isRandomBulkMovieModeActive||isLadyDoggieDVDModeActive||isLVBPianoPlayerModeActive||isKoyaanisqatsiFilmModeActive||isPowaqqatsiFilmModeActive||isPuppyBowlModeActive||isLVBSymphonyModeActive){NoEndInSightIndex=0;thePLAYER.URL=NoEndInSightFilmMMSVideoURI;}isNoEndInSightFilmModeActive=true;isRandomBulkMovieModeActive=false;isLadyDoggieDVDModeActive=false;isLVBPianoPlayerModeActive=false;isKoyaanisqatsiFilmModeActive=false;isPowaqqatsiFilmModeActive=false;isPuppyBowlModeActive=false;isLVBSymphonyModeActive=false;isVideoPlaying=true;isVideoPaused=false;thePLAYER.controls.play();}catch(e){writeDebug("Error in GoWatchNoEndInSight ["+e.name+"]: "+e.message,true);}};function GoWatchThePuppyBowl(){if(isVideoPlaying){return;}try{var TheMoviesDIV=document.getElementById("theMovies");if(TheMoviesDIV!=null){TheMoviesDIV.style.width="922px";TheMoviesDIV.style.height="606px";TheMoviesDIV.style.backgroundColor="#006A25";$common.setElementOpacity($get("theMovies"),0);TheMoviesDIV.style.display="block";if(MovieAnimation!=null){MovieAnimation.set_effect($AA.FadeEffect.FadeIn);MovieAnimation.set_duration(.1);MovieAnimation.HideTheVideoPlayer=false;MovieAnimation.play();}else{$common.setElementOpacity($get("theMovies"),1);}var TheNextButton=document.getElementById("theNextMovie");if(TheNextButton!=null){TheNextButton.style.display="inline";TheNextButton.style.visibility="visible";}var TheScrubberInput=document.getElementById("sliderValue1");if(TheScrubberInput!=null){TheScrubberInput.style.display="none";TheScrubberInput.style.visibility="hidden";}}var thePLAYER=document.getElementById("VideoZap");thePLAYER.width="852";thePLAYER.height="480";if(!isVideoPaused||isRandomBulkMovieModeActive||isLadyDoggieDVDModeActive||isLVBPianoPlayerModeActive||isKoyaanisqatsiFilmModeActive||isPowaqqatsiFilmModeActive||isNoEndInSightFilmModeActive||isLVBSymphonyModeActive){PuppyBowlIndex=0;thePLAYER.URL=PuppyBowlMMSVideoURI[0];}isPuppyBowlModeActive=true;isRandomBulkMovieModeActive=false;isLadyDoggieDVDModeActive=false;isLVBPianoPlayerModeActive=false;isKoyaanisqatsiFilmModeActive=false;isPowaqqatsiFilmModeActive=false;isNoEndInSightFilmModeActive=false;isLVBSymphonyModeActive=false;isVideoPlaying=true;isVideoPaused=false;thePLAYER.controls.play();}catch(e){writeDebug("Error in GoWatchThePuppyBowl ["+e.name+"]: "+e.message,true);}};function GoWatchTheLVBSymphonies(){if(isVideoPlaying){return;}try{var TheMoviesDIV=document.getElementById("theMovies");if(TheMoviesDIV!=null){TheMoviesDIV.style.width="922px";TheMoviesDIV.style.height="606px";TheMoviesDIV.style.backgroundColor="#005073";$common.setElementOpacity($get("theMovies"),0);TheMoviesDIV.style.display="block";if(MovieAnimation!=null){MovieAnimation.set_effect($AA.FadeEffect.FadeIn);MovieAnimation.set_duration(.1);MovieAnimation.HideTheVideoPlayer=false;MovieAnimation.play();}else{$common.setElementOpacity($get("theMovies"),1);}var TheNextButton=document.getElementById("theNextMovie");if(TheNextButton!=null){TheNextButton.style.display="inline";TheNextButton.style.visibility="visible";}var TheScrubberInput=document.getElementById("sliderValue1");if(TheScrubberInput!=null){TheScrubberInput.style.display="none";TheScrubberInput.style.visibility="hidden";}}var thePLAYER=document.getElementById("VideoZap");thePLAYER.width="852";thePLAYER.height="480";if(!isVideoPaused||isRandomBulkMovieModeActive||isLadyDoggieDVDModeActive||isLVBPianoPlayerModeActive||isKoyaanisqatsiFilmModeActive||isPowaqqatsiFilmModeActive||isNoEndInSightFilmModeActive||isPuppyBowlModeActive){LVBSymphonyIndex=0;thePLAYER.URL=LVBSymphonyMMSVideoURI[0];}isLVBSymphonyModeActive=true;isRandomBulkMovieModeActive=false;isLadyDoggieDVDModeActive=false;isLVBPianoPlayerModeActive=false;isKoyaanisqatsiFilmModeActive=false;isPowaqqatsiFilmModeActive=false;isNoEndInSightFilmModeActive=false;isPuppyBowlModeActive=false;isVideoPlaying=true;isVideoPaused=false;thePLAYER.controls.play();}catch(e){writeDebug("Error in GoWatchTheLVBSymphonies ["+e.name+"]: "+e.message,true);}};function WeAreDone(){try{var TheMoviesDIV=document.getElementById("theMovies");if(TheMoviesDIV!=null){if(MovieAnimation!=null){MovieAnimation.set_effect($AA.FadeEffect.FadeOut);MovieAnimation.HideTheVideoPlayer=true;MovieAnimation.play();}else{$common.setElementOpacity($get("theMovies"),0);}}isVideoPlaying=false;if(!isVideoPaused){TheMovieTimeDIV=document.getElementById("theMovieTime");if(TheMovieTimeDIV!=null){TheMovieTimeDIV.innerHTML="";}window.A_SLIDERS[0].f_setValue(0,1);var thePLAYER=document.getElementById("VideoZap");thePLAYER.controls.stop();}}catch(e){writeDebug("Error in WeAreDone ["+e.name+"]: "+e.message,true);}};function WeAreDoneAnimating(){try{if(MovieAnimation.HideTheVideoPlayer){var TheMoviesDIV=document.getElementById("theMovies");if(TheMoviesDIV!=null){TheMoviesDIV.style.display="none";}}}catch(e){writeDebug("Error in WeAreDone ["+e.name+"]: "+e.message,true);}};function PleasePlayTheMovie(){try{var thePLAYER=document.getElementById("VideoZap");thePLAYER.controls.play();isVideoPlaying=true;isVideoPaused=false;}catch(e){writeDebug("Error in PleasePlayTheMovie ["+e.name+"]: "+e.message,true);}};function PleaseFastReverseTheMovie(){try{if(isVideoPlaying||isVideoPaused){var thePLAYER=document.getElementById("VideoZap");if(thePLAYER.controls.isAvailable('FastReverse')){if(thePLAYER.settings.rate==1){thePLAYER.controls.fastReverse();}else if(thePLAYER.settings.rate== -5){thePLAYER.settings.rate== -10;}}}}catch(e){writeDebug("Error in PleaseRewindTheMovie ["+e.name+"]: "+e.message,true);}};function PleaseFastForwardTheMovie(){try{if(isVideoPlaying||isVideoPaused){var thePLAYER=document.getElementById("VideoZap");if(thePLAYER.controls.isAvailable('FastForward')){if(thePLAYER.settings.rate==1){thePLAYER.controls.fastForward();}else if(thePLAYER.settings.rate==5){thePLAYER.settings.rate==10;}}}}catch(e){writeDebug("Error in PleaseFastForwardTheMovie ["+e.name+"]: "+e.message,true);}};function PleasePauseTheMovie(){try{if(isVideoPlaying||isVideoPaused){var thePLAYER=document.getElementById("VideoZap");thePLAYER.controls.pause();isVideoPlaying=false;isVideoPaused=true;}}catch(e){writeDebug("Error in PleasePauseTheMovie ["+e.name+"]: "+e.message,true);}};function NextMoviePlease(){try{TheMovieTimeDIV=document.getElementById("theMovieTime");if(TheMovieTimeDIV!=null){TheMovieTimeDIV.innerHTML="";}var thePLAYER=document.getElementById("VideoZap");if(isVideoPlaying||isVideoPaused){thePLAYER.controls.stop();}if(isRandomBulkMovieModeActive){if(NextMegaMotionPictureMMSVidoeURI!=null){ThisMovieMMSVideoURI=NextMegaMotionPictureMMSVidoeURI;}else{ThisMovieMMSVideoURI=DefaultMovieMMSVideoURI;}thePLAYER.URL=ThisMovieMMSVideoURI;if(MegaMovieFormat16x9){thePLAYER.width="852";thePLAYER.height="480";}else if(MegaMovieFormat4x3){thePLAYER.width="640";thePLAYER.height="480";}else{thePLAYER.width="640";thePLAYER.height="400";}}else if(isLVBPianoPlayerModeActive){thePLAYER.URL=LVBPianoPlayerMMSVideoURI[LVBRanAccess[LVBRanAccessIndex]];LVBRanAccessIndex++;if(LVBRanAccessIndex>LVBRanAccess.length-1){LVBRanAccessIndex=0;}}else if(isNoEndInSightFilmModeActive){NoEndInSightIndex++;if(NoEndInSightIndex>1){NoEndInSightIndex=0;}if(NoEndInSightIndex==0){thePLAYER.URL=NoEndInSightFilmMMSVideoURI;thePLAYER.width="852";thePLAYER.height="480";}else{thePLAYER.URL=NoEndInSightFilmTrailerMMSVideoURI;thePLAYER.width="640";thePLAYER.height="480";}}else if(isPuppyBowlModeActive){PuppyBowlIndex++;if(PuppyBowlIndex>PuppyBowlMMSVideoURI.length-1){PuppyBowlIndex=0;}thePLAYER.URL=PuppyBowlMMSVideoURI[PuppyBowlIndex];}else if(isLVBSymphonyModeActive){LVBSymphonyIndex++;if(LVBSymphonyIndex>LVBSymphonyMMSVideoURI.length-1){LVBSymphonyIndex=0;}thePLAYER.URL=LVBSymphonyMMSVideoURI[LVBSymphonyIndex];}window.A_SLIDERS[0].f_setValue(0,1);isVideoPlaying=true;isVideoPaused=false;thePLAYER.controls.play();if(isRandomBulkMovieModeActive){GetRandomMegaMotionPictureMMSaccessURIFromWS();}}catch(e){writeDebug("Error in NextMoviePlease ["+e.name+"]: "+e.message,true);}};function PleaseStopTheMovie(){try{TheMovieTimeDIV=document.getElementById("theMovieTime");if(TheMovieTimeDIV!=null){TheMovieTimeDIV.innerHTML="";}if(isVideoPlaying||isVideoPaused){var thePLAYER=document.getElementById("VideoZap");thePLAYER.controls.stop();}window.A_SLIDERS[0].f_setValue(0,1);isVideoPlaying=false;isVideoPaused=false;if(BandWidthChangeRequest){BandWidthChangeRequest=false;TheBandWidthMsgDIV=document.getElementById("BandWidthMessage");if(TheBandWidthMsgDIV!=null){TheBandWidthMsgDIV.style.display="none";TheBandWidthMsgDIV.style.visibility="hidden";TheBandWidthMsgDIV.innerHTML="";}try{thePLAYER=document.getElementById("VideoZap");thePLAYER.close();thePLAYER.network.maxBandwidth=CurrentBandWidth;}catch(e){writeDebug("Trouble in PleaseStopTheMovie()... could not set maxBandwidth! ["+e.name+"]: "+e.message,true);}}}catch(e){writeDebug("Error in PleaseStopTheMovie ["+e.name+"]: "+e.message,true);}};function SetNewMaxBandwidth(){try{var thisForm=document.forms[0];if(thisForm!=null){for(i=0;i<thisForm.clampmaxbandwidth.length;i++){if(thisForm.clampmaxbandwidth[i].checked){break;}}if(thisForm.clampmaxbandwidth[i].value!=CurrentBandWidth){CurrentBandWidth=thisForm.clampmaxbandwidth[i].value;BandWidthChangeRequest=true;setCookie("BandWidth",CurrentBandWidth,100);TheBandWidthMsgDIV=document.getElementById("BandWidthMessage");if(TheBandWidthMsgDIV!=null){TheBandWidthMsgDIV.style.display="block";TheBandWidthMsgDIV.style.visibility="visible";if(isRandomBulkMovieModeActive){TheBandWidthMsgDIV.style.color="#ff0000";}else if(isLadyDoggieDVDModeActive){TheBandWidthMsgDIV.style.color="#ffffff";}else if(isLVBPianoPlayerModeActive){TheBandWidthMsgDIV.style.color="#000000";}else if(isKoyaanisqatsiFilmModeActive){TheBandWidthMsgDIV.style.color="#000000";}else if(isPowaqqatsiFilmModeActive){TheBandWidthMsgDIV.style.color="#000000";}TheBandWidthMsgDIV.style.fontSize="18";TheBandWidthMsgDIV.style.fontWeight="Bold";TheBandWidthMsgDIV.innerHTML="Please Stop the Video Player to change the Bandwidth";}}}}catch(e){writeDebug("Error in SetNewMaxBandwidth ["+e.name+"]: "+e.message,true);}};function scrubberMouseMove(){try{var thePLAYER=document.getElementById("VideoZap");if(thePLAYER!=null){if(thePLAYER.playState==3||thePLAYER.playState==4||thePLAYER.playState==5||thePLAYER.playState==6){var currentScrubberValue=document.getElementById('sliderValue1').value;var scrubberTime=thePLAYER.currentMedia.duration*(currentScrubberValue/100);var scrubSecs=Math.ceil(scrubberTime);var scrubMins=0;var scrubHours=0;if(scrubSecs>=60){scrubMins=parseInt(scrubSecs/60);scrubSecs-=(parseInt(scrubMins*60));if(scrubMins>=60){scrubHours=parseInt(scrubMins/60);scrubMins-=(parseInt(scrubHours*60));}}var timeString;if(scrubHours==0){timeString="";}else if(scrubHours<10){timeString="0"+scrubHours.toString()+":";}else{timeString=scrubHours.toString()+":";}if(scrubMins<10){timeString+="0"+scrubMins.toString()+":";}else{timeString+=scrubMins.toString()+":";}if(scrubSecs<10){timeString+="0"+scrubSecs.toString();}else{timeString+=scrubSecs.toString();}TheMovieTimeDIV=document.getElementById("theMovieTime");if(TheMovieTimeDIV!=null){if(thePLAYER.controls.currentPositionString!=""){TheMovieTimeDIV.innerHTML=timeString;TheMovieTimeDIV.innerHTML+="/";TheMovieTimeDIV.innerHTML+=thePLAYER.currentMedia.durationString;}}}}}catch(e){writeDebug("ERROR in scrubberMouseMove() ["+e.name+"]: "+e.message,true);}};function scrubberMouseUp(){try{var thePLAYER=document.getElementById("VideoZap");if(thePLAYER!=null){if(thePLAYER.playState==3||thePLAYER.playState==4||thePLAYER.playState==5||thePLAYER.playState==6){var currentScrubberValue=document.getElementById('sliderValue1').value;var scrubberTime=thePLAYER.currentMedia.duration*(currentScrubberValue/100);thePLAYER.controls.currentPosition=Math.ceil(scrubberTime);}}}catch(e){writeDebug("ERROR in scrubberMouseUp() ["+e.name+"]: "+e.message,true);}};function DoTimerPOP(){try{MovieTimeUpdateInterval++;if(MovieTimeUpdateInterval>=2){MovieTimeUpdateInterval=0;if(window.n_activeSliderId==null){var thePLAYER=document.getElementById("VideoZap");if(thePLAYER!=null){if(thePLAYER.playState==3||thePLAYER.playState==4||thePLAYER.playState==5||thePLAYER.playState==6){TheMovieTimeDIV=document.getElementById("theMovieTime");if(TheMovieTimeDIV!=null){if(thePLAYER.controls.currentPositionString!=""){TheMovieTimeDIV.innerHTML=thePLAYER.controls.currentPositionString;TheMovieTimeDIV.innerHTML+="/";TheMovieTimeDIV.innerHTML+=thePLAYER.currentMedia.durationString;}}var timeDiff=thePLAYER.controls.currentPosition/thePLAYER.currentMedia.duration;window.A_SLIDERS[0].f_setValue(timeDiffpercent=timeDiff*100,1);}}}}}catch(e){writeDebug("ERROR in DoTimerPOP() Setting the Movie Time: ["+e.name+"]: "+e.message,true);}if(GoToNextAlbum&& !BusyGettingAlbumPhotosFromTheServer){if(AlbumCount>0){try{GoToNextAlbum=false;AlbumIndex++;if(AlbumIndex>=AlbumCount){AlbumIndex=0;}AlbumPhotoCount=0;GetAlbumPhotoDetails(AlbumDetailSet[AlbumShuffleArray[AlbumIndex]].Caption);AlbumMasterButton.innerHTML="Loading a new Photo Album Set...";AlbumMasterButton.style.color="#000000";AlbumMasterButton.style.textAlign="left";}catch(e){writeDebug("Error in DoTimerPOP(Random photo Album pick)",true);}}}SetColorInterval++;if(SetColorInterval>=50){try{SetColorInterval=0;setcolor();}catch(e){writeDebug("Error in DoTimerPOP(setcolor call) ",true);}}ScrollerInterval++;DontScrollDude--;if(ScrollerInterval>=2&&DontScrollDude<=0){try{DontScrollDude=0;ScrollerInterval=0;ScrollMessage();}catch(e){writeDebug("Error in DoTimerPOP(ScrollMessage call)",true);}}NewQuoteIntervalInterval++;if(NewQuoteIntervalInterval>=600){NewQuoteIntervalInterval=0;try{if(broswerId=="msie"){GetNextQuoteDude();}else{newQuoteSrting="This site works best with MSIE v6+ (It's free Dude!) Loading...........";newQuoteReady=1;Currentpos=0;}}catch(e){writeDebug("Error in DoTimerPOP(New Quote WebService call)",true);}}ComixBumpInterval++;if(ComixBumpInterval==70){nextComixPic(document.getElementById("Img90"),1);}if(ComixBumpInterval==140){ComixBumpInterval=0;nextComixPic(document.getElementById("Img91"),2);}if(PhotoShowVisible){if(!QuicklyPauseTheSlideShow){ImageSetInterval++;if(ImageSetInterval>=ImageSetIntervalValue){ImageSetInterval=0;if(AlbumPhotoCount>0){RefreshImageCache();}}else if(FadeTransition&&ImageFadeIn){JustFadeIn();}else if(IrisTransition&&ApplyIrisOut){DoTheIrisOut();}else if(IrisTransition&&ApplyIrisIn){DoTheIrisIn();}else if(BlindsTransition&&BlindsRandom){DoTheBlindsThing();}if(FadeTransition&&ImageSetInterval==ImageSetIntervalValue-20){if(broswerId=="msie"){ImageObject.opacity=100;ImageFadeIn=false;ImageFadeOut=true;ImageFadeCount=0;}}if(FadeTransition&&ImageFadeOut){JustFadeOut();}}}MarilynSetInterval++;if(MarilynSetInterval>=MarilynSetIntervalValue){MarilynSetInterval=0;MarilynMonroeImageSwapper();}cycle();window.setTimeout('DoTimerPOP()',100);};function MarilynMonroeImageSwapper(){try{if(MarilynAlbumPhotoCount>0){var marilynImage=$get("totalMarilynImage");if(marilynImage!=null){MarilynAlbumPhotoIndex++;if(MarilynAlbumPhotoIndex>=MarilynAlbumPhotoCount){MarilynAlbumPhotoIndex=0;}var TimeStampOne=new Date();var SecondsOne=TimeStampOne.getTime();var marilynImagePath="whdBaseLinqImgHandler.ashx?PhotoID=";marilynImagePath+=MarilynAlbumPhotoDetailSet[MarilynAlbumPhotoShuffleArray[MarilynAlbumPhotoIndex]].PhotoID;marilynImagePath+="&Size=120";marilynImagePath+="&isPublic=true";marilynImagePath+="&time=";marilynImagePath+=SecondsOne;marilynImage.src=marilynImagePath;var BlindsTypeIndex=Math.floor(Math.random()*4);var BlindsBands=Math.floor(Math.random()*10);if(BlindsBands<=0)BlindsBands=1;else if(BlindsBands>10)BlindsBands=10;marilynImage.style.filter="progid:DXImageTransform.Microsoft.Blinds(direction="+BlindsXFormType[BlindsTypeIndex]+",bands="+BlindsBands+",duration=1)";marilynImage.filters(0).Apply();marilynImage.filters(0).Play();}}}catch(e){writeDebug("ERROR in MarilynMonroeImageSwapper() ["+e.name+"]: "+e.message,true);}};function RefreshImageCache(){if(AlbumPhotoCount>0){if(AlbumPhotoIndex== -1){try{if(document.getElementById("picholder")!=null){var newColor=BackgroundColorSet[BackGroundColorSetIndex];document.getElementById("picholder").style.backgroundColor=newColor;BackGroundColorSetIndex++;if(BackGroundColorSetIndex>BackgroundColorSet.length-1){BackGroundColorSetIndex=0;}}}catch(e){writeDebug("Error in RefreshImageCache(Change the IMAGE Background color)",true);}ImageNewURL[0]=null;ImageNewURL[1]=null;}if(ImageNewURL[0]==null){try{ImageNewURL[0]=new Image();var TimeStampOne=new Date();var SecondsOne=TimeStampOne.getTime();AlbumPhotoIndex++;if(AlbumPhotoIndex>=AlbumPhotoCount){AlbumPhotoIndex=0;}var srcTargetOne="whdBaseLinqImgHandler.ashx?PhotoID=";srcTargetOne+=AlbumPhotoDetailSet[AlbumPhotoShuffleArray[AlbumPhotoIndex]].PhotoID;srcTargetOne+="&Size=L";srcTargetOne+="&isPublic=true";srcTargetOne+="&time=";srcTargetOne+=SecondsOne;ImageNewURL[0].src=srcTargetOne;}catch(e){writeDebug("Error in RefreshImageCache(IMAGE Cache ENTRY 0 Management)",true);}}if(ImageNewURL[1]==null){try{ImageNewURL[1]=new Image();var TimeStampTwo=new Date();var SecondsTwo=TimeStampTwo.getTime();AlbumPhotoIndex++;if(AlbumPhotoIndex>=AlbumPhotoCount){AlbumPhotoIndex=0;}var srcTargetTwo="whdBaseLinqImgHandler.ashx?PhotoID=";srcTargetTwo+=AlbumPhotoDetailSet[AlbumPhotoShuffleArray[AlbumPhotoIndex]].PhotoID;srcTargetTwo+="&Size=L";srcTargetTwo+="&isPublic=true";srcTargetTwo+="&time=";srcTargetTwo+=SecondsTwo;ImageNewURL[1].src=srcTargetTwo;}catch(e){writeDebug("Error in RefreshImageCache(IMAGE Cache ENTRY 1 Management)",true);}}if(broswerId=="msie"){if(FadeTransition){ImageObject.opacity=0;ImageFadeIn=true;ImageFadeOut=false;ImageFadeCount=0;}else if(IrisTransition){ApplyIrisOut=true}else if(BlindsTransition){BlindsRandom=true;}}else{ImageObject.src=ImageNewURL[ImageNewURLIndex].src;ImageNewURL[ImageNewURLIndex]=null;ImageNewURLIndex++;if(ImageNewURLIndex>=ImageNewURL.length){ImageNewURLIndex=0;}FadeTransition=false;ImageFadeIn=false;ImageFadeOut=false;ImageFadeCount=0;}}};function SetImageOpacity(imgName,step){try{if(broswerId=="msie"){var img=document.images[imgName];img.opacity+=step;img.style.filter='alpha(opacity = '+img.opacity+')';}}catch(e){writeDebug("Error in SetImageOpacity()",true);}};function JustFadeIn(){try{if(ImageNewURL[ImageNewURLIndex]!=null){if(ImageNewURL[ImageNewURLIndex].readyState=='complete'){ImageObject.src=ImageNewURL[ImageNewURLIndex].src;ImageObject.title="Click to see the next Photo!";ImageObject.style.visibility="visible";ImageObject.width=ImageNewURL[ImageNewURLIndex].width;ImageObject.height=ImageNewURL[ImageNewURLIndex].height;ImageObject.alt=ImageObject.src;if(ImageObject.width>ImageObject.parentElement.clientWidth)ImageObject.width=(ImageObject.parentElement.clientWidth-20);if(ImageObject.height>ImageObject.parentElement.clientHeight)ImageObject.height=(ImageObject.parentElement.clientHeight-20);var vert=(ImageObject.parentElement.clientHeight-ImageObject.height)/2;if(vert>0)ImageObject.style.marginTop=vert-(vert/10);ImageNewURL[ImageNewURLIndex]=null;ImageNewURLIndex++;if(ImageNewURLIndex>=ImageNewURL.length){ImageNewURLIndex=0;}}}else{SetImageOpacity('imgview',10);ImageFadeCount++;if(ImageFadeCount>=10){ImageFadeIn=false;ImageFadeOut=false;ImageFadeCount=0;}}}catch(e){writeDebug("Error in JustFadeIn()",true);}};function JustFadeOut(){SetImageOpacity('imgview',-10);ImageFadeCount++;if(ImageFadeCount>=10){ImageFadeIn=false;ImageFadeOut=false;ImageFadeCount=0;}};function DoTheIrisOut(){try{if(ImageNewURL[ImageNewURLIndex]!=null){if(ImageNewURL[ImageNewURLIndex].readyState=='complete'){var IrisStyleIndex=Math.floor(Math.random()*6);var IrisDuration=1;if(IrisXFormType[IrisStyleIndex]=="plus"||IrisXFormType[IrisStyleIndex]=="cross")IrisDuration=1;ImageObject.style.filter="progid:DXImageTransform.Microsoft.Iris(irisstyle="+IrisXFormType[IrisStyleIndex]+",motion=out,duration="+IrisDuration+")";ImageObject.filters(0).Apply();ImageObject.src=ImageNewURL[ImageNewURLIndex].src;ImageObject.title="Click to see the next Photo!";ImageObject.style.visibility="visible";ImageObject.filters(0).Play();ApplyIrisOut=false;ImageObject.width=ImageNewURL[ImageNewURLIndex].width;ImageObject.height=ImageNewURL[ImageNewURLIndex].height;ImageObject.alt=ImageObject.src;ImageNewURL[ImageNewURLIndex]=null;ImageNewURLIndex++;if(ImageNewURLIndex>=ImageNewURL.length){ImageNewURLIndex=0;}if(ImageObject.width>ImageObject.parentElement.clientWidth)ImageObject.width=(ImageObject.parentElement.clientWidth-20);if(ImageObject.height>ImageObject.parentElement.clientHeight)ImageObject.height=(ImageObject.parentElement.clientHeight-20);var vert=(ImageObject.parentElement.clientHeight-ImageObject.height)/2;if(vert>0)ImageObject.style.marginTop=vert-(vert/10);IrisTransition=false;BlindsTransition=true;}}}catch(e){writeDebug("Error in DoTheIrisOut()",true);}};function DoTheIrisIn(){try{if(ImageNewURL[ImageNewURLIndex]!=null){if(ImageNewURL[ImageNewURLIndex].readyState=='complete'){var IrisStyleIndex=Math.floor(Math.random()*6);var IrisDuration=1;if(IrisXFormType[IrisStyleIndex]=="plus"||IrisXFormType[IrisStyleIndex]=="cross")IrisDuration=1;ImageObject.style.filter="progid:DXImageTransform.Microsoft.Iris(irisstyle="+IrisXFormType[IrisStyleIndex]+",motion=in,duration="+IrisDuration+")";ImageObject.filters(0).Apply();ImageObject.src=ImageNewURL[ImageNewURLIndex].src;ImageObject.title="Click to see the next Photo!";ImageObject.style.visibility="visible";ImageObject.filters(0).Play();ApplyIrisIn=false;ImageObject.width=ImageNewURL[ImageNewURLIndex].width;ImageObject.height=ImageNewURL[ImageNewURLIndex].height;ImageObject.alt=ImageObject.src;ImageNewURL[ImageNewURLIndex]=null;ImageNewURLIndex++;if(ImageNewURLIndex>=ImageNewURL.length){ImageNewURLIndex=0;}if(ImageObject.width>ImageObject.parentElement.clientWidth)ImageObject.width=(ImageObject.parentElement.clientWidth-20);if(ImageObject.height>ImageObject.parentElement.clientHeight)ImageObject.height=(ImageObject.parentElement.clientHeight-20);var vert=(ImageObject.parentElement.clientHeight-ImageObject.height)/2;if(vert>0)ImageObject.style.marginTop=vert-(vert/10);IrisTransition=false;BlindsTransition=true;}}}catch(e){writeDebug("Error in DoTheIrisIn()",true);}};function DoTheBlindsThing(){try{if(ImageNewURL[ImageNewURLIndex]!=null){if(ImageNewURL[ImageNewURLIndex].readyState=='complete'){var BlindsTypeIndex=Math.floor(Math.random()*4);var BlindsBands=Math.floor(Math.random()*10);if(BlindsBands<=0)BlindsBands=1;else if(BlindsBands>10)BlindsBands=10;ImageObject.style.filter="progid:DXImageTransform.Microsoft.Blinds(direction="+BlindsXFormType[BlindsTypeIndex]+",bands="+BlindsBands+",duration=1)";ImageObject.filters(0).Apply();ImageObject.src=ImageNewURL[ImageNewURLIndex].src;ImageObject.title="Click to see the next Photo!";ImageObject.style.visibility="visible";ImageObject.filters(0).Play();BlindsRandom=false;ImageObject.width=ImageNewURL[ImageNewURLIndex].width;ImageObject.height=ImageNewURL[ImageNewURLIndex].height;ImageObject.alt=ImageObject.src;ImageNewURL[ImageNewURLIndex]=null;ImageNewURLIndex++;if(ImageNewURLIndex>=ImageNewURL.length){ImageNewURLIndex=0;}if(ImageObject.width>ImageObject.parentElement.clientWidth)ImageObject.width=(ImageObject.parentElement.clientWidth-20);if(ImageObject.height>ImageObject.parentElement.clientHeight)ImageObject.height=(ImageObject.parentElement.clientHeight-20);var vert=(ImageObject.parentElement.clientHeight-ImageObject.height)/2;if(vert>0)ImageObject.style.marginTop=vert-(vert/10);IrisTransition=true;BlindsTransition=false;}}}catch(e){writeDebug("Error in DoTheBlindsThing()",true);}};function ScrollMessage(){try{if(document.getElementById("scrollerdude")!=null){var div=document.getElementById("scrollerdude");if(newQuoteReady==1){newQuoteReady=0;DontScrollDude=10;ScrollerString=newQuoteSrting;if(CurrentColorSet==0){div.style.color="#000000";div.style.backgroundColor="#ffff00";}else if(CurrentColorSet==1){div.style.color="#ffffff";div.style.backgroundColor="#0000ff";}else if(CurrentColorSet==2){div.style.color="#ffff00";div.style.backgroundColor="#000000";}else if(CurrentColorSet==3){div.style.color="000000";div.style.backgroundColor="#00ff00";}CurrentColorSet++;if(CurrentColorSet>3)CurrentColorSet=0;}var scroller=ScrollerString.substring(Currentpos,ScrollerString.length)+ScrollerString.substring(0,Currentpos);if(scroller.length>86)scroller=scroller.substring(0,86);div.firstChild.nodeValue=scroller;Currentpos++;if(Currentpos>ScrollerString.length)Currentpos=0;}}catch(e){writeDebug("Error in ScrollMessage()",true);}};var PanelSwap=1;function setcolor(){try{if(PanelSwap==1){PanelSwap=2;var r1=Math.floor(Math.random()*256);var g1=Math.floor(Math.random()*256);var b1=Math.floor(Math.random()*256);var colorString1="#"+r1.toString(16)+g1.toString(16)+b1.toString(16);var r2=255-r1;var g2=255-g1;var b2=255-b1;var colorString2="#"+r2.toString(16)+g2.toString(16)+b2.toString(16);var Xpad1=7-colorString1.length;var Xpad2=7-colorString2.length;for(i=0;i<Xpad1;i++){colorString1+="0";}for(i=0;i<Xpad2;i++){colorString2+="0";}if(document.getElementById("cellone")!=null){document.getElementById("cellone").style.backgroundColor=colorString1;document.getElementById("cellone").style.color=colorString2;}}else{PanelSwap=1;var r3=Math.floor(Math.random()*256);var g3=Math.floor(Math.random()*256);var b3=Math.floor(Math.random()*256);var colorString3="#"+r3.toString(16)+g3.toString(16)+b3.toString(16);var r4=255-r3;var g4=255-g3;var b4=255-b3;var colorString4="#"+r4.toString(16)+g4.toString(16)+b4.toString(16);var Xpad3=7-colorString3.length;var Xpad4=7-colorString4.length;for(i=0;i<Xpad3;i++){colorString3+="0";}for(i=0;i<Xpad4;i++){colorString4+="0";}if(document.getElementById("celltwo")!=null){document.getElementById("celltwo").style.backgroundColor=colorString3;document.getElementById("celltwo").style.color=colorString4;}}}catch(e){writeDebug("Error in setcolor()",true);}};function pageLoad(){clearDebug();var thisPhotoShowBehavior=$get("PhotoShowAccordion").AccordionBehavior;if(thisPhotoShowBehavior!=null){thisPhotoShowBehavior.add_selectedIndexChanged(TogglePhotoShowAccordionTitle);}var thisWebCameraBehavior=$get("WebCamAccordion").AccordionBehavior;if(thisWebCameraBehavior!=null){thisWebCameraBehavior.add_selectedIndexChanged(ToggleWebCameraAccordionTitle);}try{var thePhotoShowPanelHideShow=getCookie("PhotoShowVisible");if(thePhotoShowPanelHideShow!=null){if(parseInt(thePhotoShowPanelHideShow)>0){PhotoShowVisible=true;writeMessage("Cookie setting... Expand the Photo Show panel.",true);}else{PhotoShowVisible=false;writeMessage("Cookie setting... Collapse the Photo Show panel.",true);}}}catch(e){writeDebug("Error in load(PhotoShowPANELCookie) ["+e.name+"]: "+e.message,true);}try{var theWebCameraPanelHideShow=getCookie("WebCameraVisible");if(theWebCameraPanelHideShow!=null){if(parseInt(theWebCameraPanelHideShow)>0){WebCameraVisible=true;writeMessage("Cookie setting... Expand the Web CAM panel.",true);}else{WebCameraVisible=false;writeMessage("Cookie setting... Collapse the Web CAM panel.",true);}}}catch(e){writeDebug("Error in load(WemCameraPANELCookie) ["+e.name+"]: "+e.message,true);}try{var PhotoShowAccordionTitle=$get("PhotoShowAccordionTitleID");if(thisPhotoShowBehavior!=null){if(PhotoShowVisible==false){writeMessage("Page Load Event.. Collapse the Photo Show panel.",true);PhotoShowSkip1stSelect=true;thisPhotoShowBehavior.set_SelectedIndex(-1);if(PhotoShowAccordionTitle!=null){PhotoShowAccordionTitle.innerHTML="Show the World of Photography";}}}}catch(e){writeDebug("Error in pageLoad(PhotoShowPanelSetup) ["+e.name+"]: "+e.message,true);}try{var WebCameraAccordionTitle=$get("WebCamViewAccordionTitleID");if(thisPhotoShowBehavior!=null){if(WebCameraVisible==false){writeMessage("Page Load Event.. Collapse the Web Cam panel.",true);WebCameraSkip1stSelect=true;$get("WebCamAccordion").AccordionBehavior.set_SelectedIndex(-1);if(WebCameraAccordionTitle!=null){WebCameraAccordionTitle.innerHTML="Show the Local WebCam Cluster";}}}}catch(e){writeDebug("Error in pageLoad(WebCameraPanelSetup) ["+e.name+"]: "+e.message,true);}try{if($AA.Animation!=null){MovieAnimation=new $AA.FadeAnimation($get("theMovies"),.25,40,AjaxControlToolkit.Animation.FadeEffect.FadeIn,0,.85,false);MovieAnimation.HideTheVideoPlayer=false;MovieAnimation.add_ended(Function.createDelegate(this,this.WeAreDoneAnimating));MovieAnimation.initialize();}}catch(e){writeDebug("Error in pageLoad(MovieAnimationSetup) ["+e.name+"]: "+e.message,true);}};function load(){getEdgesIE();window.onresize=getEdgesIE;document.onmousemove=newPos;showTrail();cycle();LVBRanAccess.shuffle();try{AlbumMasterButton=document.getElementById('dropdownParent');AlbumButtonSet[0]=document.getElementById('AlbumButton1');AlbumButtonSet[1]=document.getElementById('AlbumButton2');AlbumButtonSet[2]=document.getElementById('AlbumButton3');AlbumButtonSet[3]=document.getElementById('AlbumButton4');AlbumButtonSet[4]=document.getElementById('AlbumButton5');AlbumButtonSet[5]=document.getElementById('AlbumButton6');AlbumButtonSet[6]=document.getElementById('AlbumButton7');AlbumButtonSet[7]=document.getElementById('AlbumButton8');AlbumButtonSet[8]=document.getElementById('AlbumButton9');AlbumButtonSet[9]=document.getElementById('AlbumButton10');AlbumButtonSet[10]=document.getElementById('AlbumButton11');AlbumButtonSet[11]=document.getElementById('AlbumButton12');AlbumButtonSet[12]=document.getElementById('AlbumButton13');AlbumButtonSet[13]=document.getElementById('AlbumButton14');AlbumButtonSet[14]=document.getElementById('AlbumButton15');AlbumButtonSet[15]=document.getElementById('AlbumButton16');AlbumButtonSet[16]=document.getElementById('AlbumButton17');AlbumButtonSet[17]=document.getElementById('AlbumButton18');AlbumButtonSet[18]=document.getElementById('AlbumButton19');AlbumButtonSet[19]=document.getElementById('AlbumButton20');AlbumButtonSet[20]=document.getElementById('AlbumButton21');AlbumButtonSet[21]=document.getElementById('AlbumButton22');AlbumButtonSet[22]=document.getElementById('AlbumButton23');AlbumButtonSet[23]=document.getElementById('AlbumButton24');AlbumButtonSet[24]=document.getElementById('AlbumButton25');}catch(e){writeDebug("Trouble in load(getElementById)... Album Buttons!",true);}try{if(document.getElementById("logotable")!=null){document.getElementById("logotable").cellSpacing=2;document.getElementById("logotable").cellPadding=1;}if(document.getElementById("debttable")!=null){document.getElementById("debttable").cellSpacing=0;document.getElementById("debttable").cellPadding=1;}}catch(e){writeDebug("Trouble in load(getElementById)... Table Cell Spacing Setup!",true);}try{ImageObject=document.getElementById('imgview');ImageNewURL[0]=null;ImageNewURL[1]=null;ImageNewURLIndex=0;if(broswerId=="msie"){ImageObject.opacity=0;IrisTransition=true;ApplyIrisOut=true;}ImageReSize=new Image();}catch(e){writeDebug("Trouble in load(getElementById)... ImageObject Setup!",true);}if(GBrowserIsCompatible()){var map=new GMap2(document.getElementById("map"));map.setCenter(new GLatLng(42.52240752764736,-70.89383125305176),16);map.setMapType(G_HYBRID_MAP);map.enableDoubleClickZoom();}NormalModePhotoAlbumButton();GetRandomMegaMotionPictureMMSaccessURIFromWS();GetFullDatabaseAlbumList();GoToNextAlbum=true;GetMarilynAlbumPhotoDetails();setCookie("XHRDomain","SFosterMurray",100);try{var cookieBandWidth=getCookie("BandWidth");if(cookieBandWidth!=null){var OldCheck= -1;var NewCheck= -1;var thisForm=document.forms[0];if(thisForm!=null){for(i=0;i<thisForm.clampmaxbandwidth.length;i++){if(thisForm.clampmaxbandwidth[i].checked){OldCheck=i;}if(thisForm.clampmaxbandwidth[i].value==cookieBandWidth){NewCheck=i;}}if(OldCheck!= -1&&NewCheck!= -1){thisForm.clampmaxbandwidth[OldCheck].checked=false;thisForm.clampmaxbandwidth[NewCheck].checked=true;}}}else{cookieBandWidth=350000;}try{var thePLAYER=document.getElementById("VideoZap");thePLAYER.close();thePLAYER.network.maxBandwidth=cookieBandWidth;}catch(e){writeDebug("Trouble in load(cookieBandWidth)... could not set maxBandwidth!",true);}}catch(e){writeDebug("Error in load(cookieBandWidth) ["+e.name+"]: "+e.message,true);}try{var theMovieTop=getCookie("theMoviePositionY");if(theMovieTop!=null){var TheMoviesDIV=document.getElementById("theMovies");if(TheMoviesDIV!=null){var theTopSplit=theMovieTop.split("px");var theTOPvalue=parseInt(theTopSplit[0]);if(theTOPvalue>500){theTOPvalue=500;}if(theTOPvalue<0){theTOPvalue=0;}TheMoviesDIV.style.top=theTOPvalue+"px";}}}catch(e){writeDebug("Error in load(MovieSetPosition[Y]) ["+e.name+"]: "+e.message,true);}var logoBannerIndex=0;try{var theLogoBannerIndex=getCookie("logoBannerIndex");if(theLogoBannerIndex!=null){if(theLogoBannerIndex==0){logoBannerIndex=0;}else{logoBannerIndex=3;}}}catch(e){writeDebug("Error in load(GetLogoBannerIndexCookie) ["+e.name+"]: "+e.message,true);}var grabTheBanner=$get('NotSoCoolButtHeadID');if(grabTheBanner!=null){var WebSite=location.pathname;var endChar=WebSite.lastIndexOf("/");WebSite=WebSite.substring(0,endChar+1);var currentHostURL="http://"+location.host+WebSite+"images/";bannerImageName="BitemeBlogger"+logoBannerIndex+".png";var urlImageBacker="url("+currentHostURL+bannerImageName+")";grabTheBanner.style.backgroundImage=urlImageBacker;}if(theLogoBannerIndex==0){logoBannerIndex=3;}else{logoBannerIndex=0;}try{setCookie("logoBannerIndex",logoBannerIndex,100);}catch(e){writeDebug("Error in load(SetLogoBannerIndexCookie) ["+e.name+"]: "+e.message,true);}DoTimerPOP();};var debugDiv=null;var debugSpan=null;var debugShow=false;function toggleDebugView(){try{if(debugShow){debugShow=false;hideDebug();}else{debugShow=true;showDebug();}}catch(e){alert("toggleDebugView() call failed");}};function showDebug(){try{debugDiv=document.getElementById("debugDivContent");if(debugDiv!=null){debugDiv.style.display="block";debugDiv.style.visibility="visible";}}catch(e){alert("showDebug() call failed");}};function hideDebug(){try{debugDiv=document.getElementById("debugDivContent");if(debugDiv!=null){debugDiv.style.display="none";debugDiv.style.visibility="hidden";}}catch(e){alert("hideDebug() call failed");}};function clearDebug(){try{debugDiv=document.getElementById("debugDivContent");if(debugDiv!=null){debugDiv.innerHTML="";writeClearLink();}debugSpan=document.getElementById("debugSpanContent");if(debugSpan!=null){debugSpan.style.color="#009900";}}catch(e){alert("clearDebug() call failed");}};function writeMessage(MessageOut,AddTime){try{if(AddTime==null||AddTime==""){AddTime=false;}debugDiv=document.getElementById("debugDivContent");if(debugDiv!=null){if(AddTime){debugDiv.innerHTML+=Date()+"<br\/><b>Information: <b\/><i>"+MessageOut+"<i\/><br\/>";}else{debugDiv.innerHTML+=MessageOut+"<br\/>";}}}catch(e){alert("writeDebug() call failed");}};function writeDebug(MessageOut,AddTime){try{if(AddTime==null||AddTime==""){AddTime=false;}debugDiv=document.getElementById("debugDivContent");if(debugDiv!=null){if(AddTime){debugDiv.innerHTML+=Date()+"<br\/><b>Information: <b\/>"+MessageOut+"<br\/>";}else{debugDiv.innerHTML+=MessageOut+"<br\/>";}}debugSpan=document.getElementById("debugSpanContent");if(debugSpan!=null&&debugSpan.style.color!="#990000"){debugSpan.style.color="#990000";}}catch(e){alert("writeDebug() call failed");}};function writeEval(code){writeDebug(code+" = "+eval(code),true);};function writeDebugObject(myobject){var strCollection="";for(curObj in myobject){if(typeof myobject[curObj]=="object"){strCollection+=curObj+": "+myobject[curObj]+"<br\/>";}else{try{strCollection+=curObj+": "+myobject[curObj]+"<br\/>";}catch(e){strCollection+=curObj+": Unable to evaluate!<br\/>";}}}writeDebug(strCollection,false);};function writeClearLink(){writeDebug("<a href='#' title='Cleanup this mess!' onclick='clearDebug(); return false;'>Clear the Debug Window!</a>",false);};function dumpToPopup(x){var win=window.open();for(var i in x){try{win.document.write(i+" = "+x[i]+"<br>");}catch(e){win.document.write(i+": Unable to evaluate!<br>");}}}
