
var PageTimer={"_placeholderSessions":{},"_sessionGroups":[],"_instance":Math.floor(Math.random()*100),"_cookiesSent":0,"_restored":false,"_implicitBackgroundTimerKind":0,"_publicationTimer":0,"_getSessionGroup":PageTimer_GetSessionGroup,"_removeSessionGroupKind":PageTimer_RemoveSessionGroupKind,"_removeSessionGroupByIndex":PageTimer_RemoveSessionGroupByIndex,"_publishSession":PageTimer_PublishSession,"_completeSession":PageTimer_CompleteSession,"_cookieAllowed":PageTimer_CookieAllowed,"_sendCookies":PageTimer_SendCookies,"AddPlaceholderSession":PageTimer_AddPlaceholderSession,"RemovePlaceholderSession":PageTimer_RemovePlaceholderSession,"ConnectToSession":PageTimer_ConnectToSession,"AddSession":PageTimer_AddSession,"ResetSession":PageTimer_ResetSession,"DefineProgressCounters":PageTimer_DefineProgressCounters,"DefineProgressCountersForActivityKind":PageTimer_DefineProgressCountersForActivityKind,"FulfillProgressCounter":PageTimer_FulfillProgressCounter,"CancelProgressCounter":PageTimer_CancelProgressCounter,"ExchangeProgressCounters":PageTimer_ExchangeProgressCounters,"SplitSession":PageTimer_SplitSession,"CancelSession":PageTimer_CancelSession,"RemoveSession":PageTimer_RemoveSession,"SetImplicitBackgroundTimerKind":PageTimer_SetImplicitBackgroundTimerKind,"ChangeCurrentSession":PageTimer_ChangeCurrentSession};function PageTimer_AddPlaceholderSession(kind){var placeholderSession={"_progress":0,"_published":null,"Kind":kind,"Window":null,"Label":null,"RequestTime":new Date(),"ReplyTime":null,"CompletionTime":null,"ProgressCounters":{},"LastProgressCounter":null};var newEntry={"Value":placeholderSession,"Next":null};var placeholderSessionQueue=this._placeholderSessions[kind];if(!!placeholderSessionQueue){var endEntry=placeholderSessionQueue.Last;if(!!endEntry){endEntry.Next=newEntry;placeholderSessionQueue.Last=newEntry;}
else{placeholderSessionQueue.First=placeholderSessionQueue.Last=newEntry;}}
else{this._placeholderSessions[kind]={"First":newEntry,"Last":newEntry};}
return true;}
function PageTimer_RemovePlaceholderSession(kind){var placeholderSessionQueue=this._placeholderSessions[kind];if(!!placeholderSessionQueue){if(!!placeholderSessionQueue.First){if((placeholderSessionQueue.First=placeholderSessionQueue.First.Next)===null);{placeholderSessionQueue.Last=null;}
return true;}
else{return false;}}
else{return false;}}
function PageTimer_GetSessionGroup(ownerWindow){var sessionGroup=null;for(var sessionGroupIndex=0;sessionGroupIndex<this._sessionGroups.length;sessionGroupIndex++){sessionGroup=this._sessionGroups[sessionGroupIndex];while(true){try{if(sessionGroup.Window.closed){this._removeSessionGroupByIndex(sessionGroupIndex);}
else{break;}}
catch(Problem){sessionGroupIndex++;}
if(sessionGroupIndex>=this._sessionGroups.length){return null;}
sessionGroup=this._sessionGroups[sessionGroupIndex];}
try{if(sessionGroup.Window.document===ownerWindow.document){break;}}
catch(Problem){}
sessionGroup=null;}
return sessionGroup;}
function PageTimer_ConnectToSession(ownerWindow,kind,label){label=label||null;var sessionGroup;var sessionKindsToPreserve={};if(!(this._restored)){this._restored=true;var currentCookie=window.document.cookie;var recentTime;var searchIndex=currentCookie.indexOf("PageTimer_Recent=");if(searchIndex!==-1){recentTime=new Date(parseInt(decodeURIComponent(currentCookie.substr(searchIndex+17)),10));}
else{recentTime=new Date(0);}
var requestTime;var locationHint=window.location.hash;searchIndex=locationHint.indexOf("PageTimer_Request=");if((searchIndex!==-1)&&((requestTime=new Date(parseInt(decodeURIComponent(locationHint.substr(searchIndex+18)),10)))>=recentTime)){this.AddSession(ownerWindow,label);sessionGroup=this._getSessionGroup(ownerWindow);sessionGroup.Sessions[0].RequestTime=requestTime;}
else{locationHint=window.location.search;var searchIndex=locationHint.indexOf("PageTimer_Request=");if((searchIndex!==-1)&&((requestTime=new Date(parseInt(decodeURIComponent(locationHint.substr(searchIndex+18)),10)))>=recentTime)){this.AddSession(ownerWindow,label);sessionGroup=this._getSessionGroup(ownerWindow);sessionGroup.Sessions[0].RequestTime=requestTime;}
else{searchIndex=currentCookie.indexOf("PageTimer=");if(searchIndex!==-1){savedSessionText=currentCookie.substr(searchIndex);searchIndex=savedSessionText.indexOf(";")
if(searchIndex!==-1){savedSessionText=savedSessionText.substring(0,searchIndex);}
this._cookiesSent=parseInt(savedSessionText.substr(savedSessionText.indexOf("_Sent:")+6),10);this.AddSession(ownerWindow,label);sessionGroup=this._getSessionGroup(ownerWindow);sessionGroup.Sessions[0].RequestTime=new Date(parseInt(savedSessionText.substr(savedSessionText.indexOf("_Request:")+9),10));window.document.cookie="PageTimer=; expires=Thu, 31-Dec-1970 08:00:00 GMT; path=/";}
else{sessionGroup=this._getSessionGroup(ownerWindow);}}}
var backgroundCookieHeading="PageTimer_Background_"+kind+"=";searchIndex=currentCookie.indexOf(backgroundCookieHeading);if(searchIndex===-1){backgroundCookieHeading="PageTimer_Background=";searchIndex=currentCookie.indexOf(backgroundCookieHeading);}
if(searchIndex!==-1){window.document.cookie=backgroundCookieHeading+"; expires=Thu, 31-Dec-1970 08:00:00 GMT; path=/";var cookieText=currentCookie.substr(searchIndex+backgroundCookieHeading.length);searchIndex=cookieText.indexOf(";");if(searchIndex!==-1){cookieText=cookieText.substring(0,searchIndex);}
searchIndex=cookieText.indexOf("|");var backgroundKind;if(searchIndex===-1){backgroundKind=this._implicitBackgroundTimerKind;}
else{backgroundKind=parseInt(cookieText,10);}
this.SplitSession(ownerWindow,backgroundKind);sessionGroup=this._getSessionGroup(ownerWindow);sessionGroup.Sessions[backgroundKind].RequestTime=new Date(parseInt(cookieText.substr(searchIndex+1),10));var originalBaseKind=sessionGroup.BaseKind;var originalCurrentKind=sessionGroup.CurrentKind;sessionGroup.BaseKind=-1;this.ConnectToSession(ownerWindow,backgroundKind,label);this.DefineProgressCounters(ownerWindow,["_published_"+kind]);sessionGroup.BaseKind=originalBaseKind;sessionGroup.CurrentKind=originalCurrentKind;sessionKindsToPreserve[backgroundKind]=true;}
window.document.cookie="PageTimer_Recent="+((new Date()).getTime())+"; path=/";}
else{sessionGroup=this._getSessionGroup(ownerWindow);}
var session=null;if(!!sessionGroup){if(sessionGroup.BaseKind===0){var previousSession=sessionGroup.Sessions[kind];if(!!previousSession){if(previousSession._published===false){this._completeSession(previousSession,sessionGroup);}
sessionGroup.Sessions[kind]=null;}
session=sessionGroup.Sessions[0];sessionGroup.Sessions[kind]=session;sessionGroup.BaseKind=kind;this._removeSessionGroupKind(sessionGroup,0);sessionGroup.Sessions[0]=null;sessionGroup.CurrentKind=kind;sessionGroup.Kinds.push(kind);}
else{session=sessionGroup.Sessions[kind];}}
if(!(session)){var placeholderSessionQueue=this._placeholderSessions[kind];if(!!placeholderSessionQueue){var sessionEntry=placeholderSessionQueue.First;if(!!sessionEntry){if((placeholderSessionQueue.First=sessionEntry.Next)===null){placeholderSessionQueue.Last=null;}
session=sessionEntry.Value;session.Window=ownerWindow;if(!(sessionGroup)){sessionGroup={"Window":ownerWindow,"BaseKind":kind,"CurrentKind":kind,"Kinds":[kind],"Sessions":{}};sessionGroup.Sessions[kind]=session;this._sessionGroups.push(sessionGroup);}
else{if(!(sessionGroup.Sessions[kind])){sessionGroup.Kinds.push(kind);}
sessionGroup.Sessions[kind]=session;sessionGroup.CurrentKind=kind;}}}}
if(!(session)){session={"_progress":0,"_published":false,"Kind":kind,"Window":ownerWindow,"Label":label,"RequestTime":null,"ReplyTime":new Date(),"CompletionTime":null,"ProgressCounters":{},"LastProgressCounter":null};if(!(sessionGroup)){sessionGroup={"Window":ownerWindow,"BaseKind":kind,"CurrentKind":kind,"Kinds":[kind],"Sessions":{}};sessionGroup.Sessions[kind]=session;this._sessionGroups.push(sessionGroup);}
else{if(!(sessionGroup.Sessions[kind])){sessionGroup.Kinds.push(kind);}
sessionGroup.Sessions[kind]=session;sessionGroup.CurrentKind=kind;}}
else{if(session._published===false){this._completeSession(session,sessionGroup);}
if(session._published!==null){session.RequestTime=null;}
session._published=false;session.Kind=kind;session.Label=label;session.ReplyTime=new Date();session.CompletionTime=null;session.ProgressCounters={};session.LastProgressCounter=null;session._progress=0;}
if(kind===sessionGroup.BaseKind){sessionKindsToPreserve[kind]=true;var newKinds=[];for(var kindIndex=0;kindIndex<sessionGroup.Kinds.length;kindIndex++){var kindCursor=sessionGroup.Kinds[kindIndex];if(sessionKindsToPreserve[kindCursor]!==true){var sessionCursor=sessionGroup.Sessions[kindCursor];if(sessionCursor._published===false){this._completeSession(sessionCursor,sessionGroup);}
sessionGroup.Sessions[kindCursor]=null;}
else{newKinds.push(kindCursor);}}
sessionGroup.Kinds=newKinds;sessionGroup.CurrentKind=sessionGroup.BaseKind;}}
function PageTimer_AddSession(ownerWindow,label){label=label||null;var sessionGroup=this._getSessionGroup(ownerWindow);if(!(sessionGroup)){var session={"_progress":0,"_published":null,"Kind":null,"Window":ownerWindow,"Label":label,"RequestTime":new Date(),"ReplyTime":null,"CompletionTime":null,"ProgressCounters":{},"LastProgressCounter":null};sessionGroup={"Window":ownerWindow,"BaseKind":0,"CurrentKind":0,"Kinds":[0],"Sessions":{}};sessionGroup.Sessions[0]=session;this._sessionGroups.push(sessionGroup);}}
function PageTimer_ResetSession(ownerWindow){var currentTime=new Date();var sessionGroup=this._getSessionGroup(ownerWindow);if(!!sessionGroup){for(var kindIndex=sessionGroup.Kinds.length-1;kindIndex>=0;kindIndex--){var kind=sessionGroup.Kinds[kindIndex];var session=sessionGroup.Sessions[kind];if(!!session){if(session._published===false){this._completeSession(session,sessionGroup);}}}
var session=sessionGroup.Sessions[sessionGroup.BaseKind];if(!!session){var originalKind=session.Kind;session._published=null;session.Kind=0;session.Label=null;session.RequestTime=currentTime;session.ReplyTime=null;session.CompletionTime=null;session.ProgressCounters={};session.LastProgressCounter=null;session._progress=0;this._removeSessionGroupKind(sessionGroup,originalKind);sessionGroup.Sessions[0]=session;sessionGroup.BaseKind=0;sessionGroup.Sessions[originalKind]=null;sessionGroup.Kinds.push(0);}}
try{if(ownerWindow.document===window.document){if(this._cookieAllowed()){window.document.cookie="PageTimer=_Sent:"+this._cookiesSent+"_Request:"+currentTime.getTime()+"; path=/";}}}
catch(Problem){}}
function PageTimer_DefineProgressCounters(ownerWindow,counterList){var sessionGroup=this._getSessionGroup(ownerWindow);if(!!sessionGroup){var session=sessionGroup.Sessions[sessionGroup.CurrentKind];if(!!session){for(var counterIndex=0;counterIndex<counterList.length;counterIndex++){var counter=counterList[counterIndex];if(!!session.ProgressCounters[counter]){session.ProgressCounters[counter]++;}
else{session.ProgressCounters[counter]=1;}
session._progress--;}}}}
function PageTimer_DefineProgressCountersForActivityKind(ownerWindow,counterList,activityKind){var sessionGroup=this._getSessionGroup(ownerWindow);if(!!sessionGroup){var session=sessionGroup.Sessions[activityKind];if(!!session){for(var counterIndex=0;counterIndex<counterList.length;counterIndex++){var counter=counterList[counterIndex];if(!!session.ProgressCounters[counter]){session.ProgressCounters[counter]++;}
else{session.ProgressCounters[counter]=1;}
session._progress--;}}}}
function PageTimer_FulfillProgressCounter(ownerWindow,counter){var sessionGroup=this._getSessionGroup(ownerWindow);var setAnyKind=false;if(!!sessionGroup){var session=sessionGroup.Sessions[sessionGroup.CurrentKind];if(!!session){if(!!session.ProgressCounters[counter]){session.ProgressCounters[counter]--;session._progress++;session.LastProgressCounter=counter;setAnyKind=true;if(session._progress===0){session.CompletionTime=new Date();if(session._published===false){this._completeSession(session,sessionGroup);}}}}
for(var kindIndex=sessionGroup.Kinds.length-1;kindIndex>=0;kindIndex--){var kind=sessionGroup.Kinds[kindIndex];if(kind!=sessionGroup.CurrentKind){var session=sessionGroup.Sessions[kind];if(!!session){if(!!session.ProgressCounters[counter]){session.ProgressCounters[counter]--;session._progress++;session.LastProgressCounter=counter;if(session._progress===0){session.CompletionTime=new Date();if(session._published===false){this._completeSession(session,sessionGroup);}}
if(!setAnyKind){sessionGroup.CurrentKind=kind;}
setAnyKind=true;}}}}}
return setAnyKind;}
function PageTimer_CancelProgressCounter(ownerWindow,counter){var sessionGroup=this._getSessionGroup(ownerWindow);if(!!sessionGroup){var session=sessionGroup.Sessions[sessionGroup.CurrentKind];if(!!session){if(!!session.ProgressCounters[counter]){var quantity=session.ProgressCounters[counter];session.ProgressCounters[counter]=0;session._progress+=quantity;session.LastProgressCounter=counter;if(session._progress===0){session.CompletionTime=new Date();if(session._published===false){this._completeSession(session,sessionGroup);}}
return true;}}
for(var kindIndex=sessionGroup.Kinds.length-1;kindIndex>=0;kindIndex--){var kind=sessionGroup.Kinds[kindIndex];var session=sessionGroup.Sessions[kind];if(!!session){if(!!session.ProgressCounters[counter]){var quantity=session.ProgressCounters[counter];session.ProgressCounters[counter]=0;session._progress+=quantity;session.LastProgressCounter=counter;if(session._progress===0){session.CompletionTime=new Date();if(session._published===false){this._completeSession(session,sessionGroup);}}
sessionGroup.CurrentKind=kind;return true;}}}}
return false;}
function PageTimer_ExchangeProgressCounters(ownerWindow,originalCounter,newCounterList){if(newCounterList.length!==0){var sessionGroup=this._getSessionGroup(ownerWindow);if(!!sessionGroup){var sessionFound=false;var session=sessionGroup.Sessions[sessionGroup.CurrentKind];if(!!session){if(!!session.ProgressCounters[originalCounter]){session.ProgressCounters[originalCounter]--;session._progress++;session.LastProgressCounter=originalCounter;sessionFound=true;}}
if(!(sessionFound)){for(var kindIndex=sessionGroup.Kinds.length-1;kindIndex>=0;kindIndex--){var kind=sessionGroup.Kinds[kindIndex];var session=sessionGroup.Sessions[kind];if(!!session){if(!!session.ProgressCounters[originalCounter]){session.ProgressCounters[originalCounter]--;session._progress++;session.LastProgressCounter=originalCounter;sessionFound=true;sessionGroup.CurrentKind=kind;break;}}}}
if(sessionFound){return this.DefineProgressCounters(ownerWindow,newCounterList);}}
return false;}
else{return this.FulfillProgressCounter(ownerWindow,originalCounter);}}
function PageTimer_SplitSession(ownerWindow,kind){var sessionGroup=this._getSessionGroup(ownerWindow);if(!!sessionGroup){if(!(sessionGroup.Sessions[kind])){var requestTime;var baseSession;if((sessionGroup.BaseKind!==0)&&!!(baseSession=sessionGroup.Sessions[sessionGroup.BaseKind])){requestTime=baseSession.RequestTime;if(requestTime===null){requestTime=baseSession.ReplyTime;}}
else{requestTime=new Date();}
sessionGroup.Kinds.push(kind);sessionGroup.Sessions[kind]={"_progress":0,"_published":null,"Kind":null,"Window":ownerWindow,"Label":null,"RequestTime":requestTime,"ReplyTime":null,"CompletionTime":null,"ProgressCounters":{},"LastProgressCounter":null};sessionGroup.CurrentKind=kind;}}}
function PageTimer_CancelSession(ownerWindow){var sessionGroup=this._getSessionGroup(ownerWindow);if(!!sessionGroup){var session=sessionGroup.Sessions[sessionGroup.CurrentKind];if(!!session){session._published=null;session.Kind=null;session.Label=null;session.RequestTime=new Date();session.ReplyTime=null;session.CompletionTime=null;session.ProgressCounters={};session.LastProgressCounter=null;session._progress=0;}}}
function PageTimer_RemoveSession(ownerWindow){var sessionGroup=null;for(var sessionGroupIndex=0;sessionGroupIndex<this._sessionGroups.length;sessionGroupIndex++){sessionGroup=this._sessionGroups[sessionGroupIndex];while(true){try{if(sessionGroup.Window.closed){this._removeSessionGroupByIndex(sessionGroupIndex);}
else{break;}}
catch(Problem){sessionGroupIndex++;}
if(sessionGroupIndex>=this._sessionGroups.length){return null;}
sessionGroup=this._sessionGroups[sessionGroupIndex];}
if(sessionGroup.Window.document===ownerWindow.document){this._removeSessionGroupByIndex(sessionGroupIndex);sessionGroup=null;return true;}
sessionGroup=null;}
return false;}
function PageTimer_RemoveSessionGroupKind(sessionGroup,kind){var kinds=sessionGroup.Kinds;for(var kindIndex=0;kindIndex<kinds.length;kindIndex++){if(kinds[kindIndex]===kind){kinds[kindIndex]=kinds[kinds.length-1];kinds.pop();if(sessionGroup.CurrentKind===kind){sessionGroup.CurrentKind=sessionGroup.BaseKind;}
return true;}}
return false;}
function PageTimer_RemoveSessionGroupByIndex(sessionGroupIndex){var sessionGroup=this._sessionGroups[sessionGroupIndex];for(var kindIndex=sessionGroup.Kinds.length-1;kindIndex>=0;kindIndex--){var session=sessionGroup.Sessions[sessionGroup.Kinds[kindIndex]];if(session._published===false){this._completeSession(session,sessionGroup);}
session=null;}
this._sessionGroups[sessionGroupIndex]=this._sessionGroups[this._sessionGroups.length-1];this._sessionGroups.pop();return true;}
function PageTimer_SetImplicitBackgroundTimerKind(kind){this._implicitBackgroundTimerKind=kind;}
function PageTimer_CompleteSession(session,sessionGroup){this._publishSession(session);session._published=true;this.FulfillProgressCounter(session.Window,"_published_"+session.Kind);}
function PageTimer_PublishSession(session){if(!(this._cookieAllowed())){return;}
var originTiming=0;if(!!session.RequestTime){originTiming=session.RequestTime.getTime();}
else if(!!session.ReplyTime){originTiming=session.ReplyTime.getTime();}
if(originTiming!==0){var cookieValue="kind="+encodeURIComponent(session.Kind);if(!!session.RequestTime){cookieValue+="&request="+encodeURIComponent(session.RequestTime.getTime()-originTiming);}
if(!!session.ReplyTime){cookieValue+="&reply="+encodeURIComponent(session.ReplyTime.getTime()-originTiming);}
if(!!session.CompletionTime){cookieValue+="&completion="+encodeURIComponent(session.CompletionTime.getTime()-originTiming);}
if(!!session.LastProgressCounter){cookieValue+="&lastCounter="+encodeURIComponent(session.LastProgressCounter);}
if(!!session.Label){cookieValue+="&label="+encodeURIComponent(session.Label);}
switch(window.navigator.onLine){case true:cookieValue+="&online=1";break;case false:cookieValue+="&online=0";break;}
var clientCapabilities=window.document.getElementById("ClientCaps");if(clientCapabilities===null){clientCapabilities=window.document.createElement("LINK");clientCapabilities.id="ClientCaps";window.document.getElementsByTagName("HEAD")[0].appendChild(clientCapabilities);try{clientCapabilities.style.behavior="url(\"#default#clientCaps\")";}
catch(Problem){}}
try{var connectionType=clientCapabilities.connectionType;if(!!connectionType){cookieValue+="&connection="+encodeURIComponent(connectionType);}}
catch(Problem){}}
var expires=new Date();expires.setMinutes(expires.getMinutes()+30);window.document.cookie="loadingTime"+this._instance+"_"+(this._cookiesSent++)+"="+encodeURIComponent(cookieValue)+"; path=/; expires="+expires.toUTCString();if(this._publicationTimer!==0){window.clearTimeout(this._publicationTimer);}
this._publicationTimer=window.setTimeout(PageTimerCallback_SendCookies,5000);}
function PageTimerCallback_SendCookies(){PageTimer._sendCookies();}
function PageTimer_SendCookies(){if(window.document.cookie.indexOf("loadingTime")!==-1){if(this._publicationTimer!==0){window.clearTimeout(this._publicationTimer);this._publicationTimer=0;}
var beacon=window.document.createElement("SCRIPT");beacon.type="text/javascript";beacon.defer=true;beacon.src="Remote.aspx?HTTPStatus=204";window.document.getElementsByTagName("HEAD")[0].appendChild(beacon);}}
function PageTimer_CookieAllowed(){var currentCookies=window.document.cookie;if(currentCookies.indexOf("ID=OPT_OUT")!==-1){return false;}
var availableCookieCount=14;for(var cookieSeparatorIndex=0;cookieSeparatorIndex!==-1;cookieSeparatorIndex=currentCookies.indexOf(";",cookieSeparatorIndex+1)){availableCookieCount--;}
return(availableCookieCount>0);}
function PageTimer_ChangeCurrentSession(ownerWindow,kind){var sessionGroup=this._getSessionGroup(ownerWindow);if(!!sessionGroup){if(!!(sessionGroup.Sessions[kind])){sessionGroup.CurrentKind=kind;}}}
var SlideshowRuntime={ShowSlide:function(idx){var slideShowPicture=document.getElementById('imgSlideshow');if(slideShowPicture!==null&&idx<Slideshow.Slides.length&&idx>=0){slideShowPicture.src=Slideshow.Slides[idx].Url;}
else{SlideshowRuntime.WrapItUp();}},SlideDisplayed:function(){var idx=Slideshow.CurrentSlide;Slideshow.SlidesSeen.push(Slideshow.Slides[idx].Id);if(Slideshow.CurrentSlide<Slideshow.Slides.length-1){Slideshow.CurrentSlide++;setTimeout(SlideshowRuntime.ShowNextSlide,Slideshow.Slides[idx].Duration);}
else{setTimeout(SlideshowRuntime.WrapItUp,Slideshow.Slides[idx].Duration);}
PageTimer.FulfillProgressCounter(window,"SlideShowDisplayed");},ShowNextSlide:function(){SlideshowRuntime.ShowSlide(Slideshow.CurrentSlide);},StartTime:null,StartTheShow:function(){if(screen.width>800){var caption=document.getElementById('divStartingUp');if(caption!==null){caption.style.fontSize="50px";caption.style.lineHeight="50px";}}
try{window.moveTo(0,0);}
catch(Problem){}
try{window.resizeTo(screen.availWidth,screen.availHeight);}
catch(Problem){}
this.StartTime=new Date();var slideShowPicture=document.getElementById('imgSlideshow');slideShowPicture.onload=slideShowPicture.onerror=slideShowPicture.onabort=SlideshowRuntime.SlideDisplayed;SlideshowRuntime.ShowNextSlide();PageTimer.AddPlaceholderSession("6");PageTimer.ConnectToSession(window,"6",null);PageTimer.DefineProgressCounters(window,["SlideShowComplete"]);PageTimer.AddPlaceholderSession("93");window.setTimeout(SlideshowRuntime.AllowInterruptions,3000);},InterruptionsAllowed:false,AllowInterruptions:function(){SlideshowRuntime.InterruptionsAllowed=true;MarkLoadingMilestoneFree("SlideShow");},WrapItUp:function(){SlideshowRuntime.SaveHistory();PageTimer.FulfillProgressCounter(window,"SlideShowComplete");SlideshowRuntime.InterruptionsAllowed=true;MarkLoadingMilestoneFree("SlideShow");},SaveHistory:function(){if(!(os.gst)){var beacon=window.document.createElement("SCRIPT");beacon.type="text/javascript";beacon.defer=true;beacon.src="http://www.fanbox.com/socnet/Tips/Remote.ashx?lss="+encodeURIComponent(Slideshow.SlidesSeen[Slideshow.SlidesSeen.length-1])+"&v="+encodeURIComponent(Slideshow.Visits+1)+"&ssc="+encodeURIComponent(Slideshow.SlidesSeen.join());window.document.getElementsByTagName("HEAD")[0].appendChild(beacon);}}};var ImageDownloadAvailable=false;TestImageDownloadAvailable();function TestImageDownloadAvailable(){ImageDownloadAvailable=false;var image=window.document.createElement("IMG");image.onload=image.onerror=image.onabort=TestImageDownloadAvailable_Complete;image.src="about:blank";}
function TestImageDownloadAvailable_Complete(){ImageDownloadAvailable=true;}
var BootLoaderFileType={"Image":1,"CSS":2,"JavaScript":3,"HTML":4};function CreateDownloaderElement(url,bootLoaderFileType,downloadCompletedCallback){var element;switch(window.navigator.appName){case"Microsoft Internet Explorer":switch(bootLoaderFileType){case BootLoaderFileType.CSS:if(ImageDownloadAvailable){element=window.document.createElement("IMG");element.onload=element.onerror=element.onabort=downloadCompletedCallback;element.src=element.rawURL=url;return element;}
else{return null;}
case BootLoaderFileType.Image:if(!(ImageDownloadAvailable)){return null;}
element=window.document.createElement("IMG");element.onload=element.onerror=element.onabort=downloadCompletedCallback;element.src=element.rawURL=url;return element;default:if(ImageDownloadAvailable){element=window.document.createElement("IMG");element.onload=element.onerror=element.onabort=downloadCompletedCallback;element.src=element.rawURL=url;return element;}
else{element=window.document.createElement("LINK");element.onload=element.onerror=element.onabort=downloadCompletedCallback;element.rel="Stylesheet";element.type="text/css";element.href=element.rawURL=url;return element;}}
break;case"Netscape":default:switch(bootLoaderFileType){case BootLoaderFileType.JavaScript:return null;case BootLoaderFileType.Image:if(!(ImageDownloadAvailable)){return null;}
default:element=window.document.createElement("SCRIPT");element.onload=element.onerror=element.onabort=downloadCompletedCallback;element.type="text/javascript";element.src=element.rawURL=url;return element;}
break;}}
function BootLoaderURLCollection(){this.URLIndex={};this.URLs=[];this.FileTypes=[];this.InstallationElementIdentifiers=[];this.DownloadCount=0;this.DownloadNeeded=true;this.InstallationNeeded=true;this.InstallIncompleteURLs=false;this.InstallWhenCollectionDownloads=false;this.OnDownloadURLCompleted=null;this.OnDownloadCollectionCompleted=null;this.AddURL=BootLoaderURLCollection_AddURL;}
function BootLoaderURLCollection_AddURL(url,fileType,installationElementIdentifiers){var index=this.URLs.length;this.URLIndex[url]=index;this.URLs.push(url);this.FileTypes.push(fileType);this.InstallationElementIdentifiers.push(installationElementIdentifiers);}
var DownloadStatus={"Registered":0,"Downloading":1,"Downloaded":2,"PartiallyInstalledBeforeDownloading":3,"PartiallyInstalledWhileDownloading":4,"Installed":5};var BootLoader={"URLDownloadStatus":{},"URLCollectionsByURL":{},"URLCollections":[],"AddURLCollection":BootLoader_AddURLCollection,"DownloadAll":BootLoader_DownloadAll,"DownloadMultiple":BootLoader_DownloadMultiple,"OnDownloadAllCompleted":null,"InstallCollection":BootLoader_InstallCollection,"InstallAll":BootLoader_InstallAll,"OnInstallAllRequested":null,"AvailableDownloaders":0,"DownloaderElements":[],"CollectionProgressIndex":0,"CollectionElementProgressIndex":-1,"NewCollectionsAllowed":true,"DownloadsAllowed":true};function BootLoader_AddURLCollection(collection){if(!(this.NewCollectionsAllowed)){return false;}
this.URLCollections.push(collection);for(var addressIndex=0;addressIndex<collection.URLs.length;addressIndex++){var address=collection.URLs[addressIndex];var currentCollections=this.URLCollectionsByURL[address];if(currentCollections===undefined){this.URLCollectionsByURL[address]=[collection];}
else{currentCollections.push(collection);}
if(this.URLDownloadStatus[address]===undefined){this.URLDownloadStatus[address]=DownloadStatus.Registered;}}
if(collection.InstallationNeeded){for(var collectionElementIndex=0;collectionElementIndex<collection.URLs.length;collectionElementIndex++){var url=collection.URLs[collectionElementIndex];var currentStatus=this.URLDownloadStatus[url];switch(currentStatus){case DownloadStatus.Registered:case DownloadStatus.Downloading:case DownloadStatus.Downloaded:break;case DownloadStatus.PartiallyInstalledBeforeDownloading:case DownloadStatus.PartiallyInstalledWhileDownloading:if(!(collection.InstallIncompleteURLs)){break;}
case DownloadStatus.Installed:BootLoader_Install(url,collection.InstallationElementIdentifiers[collectionElementIndex]);BootLoader_RecordDownload(collection);break;}}}
return true;}
function BootLoader_DownloadAll(){this.DownloadMultiple(4);}
var BootLoader_DownloadMultipleLock=false;function BootLoader_DownloadMultiple(downloadCount){this.AvailableDownloaders+=downloadCount;if(BootLoader_DownloadMultipleLock){return;}
BootLoader_DownloadMultipleLock=true;while(this.CollectionProgressIndex<this.URLCollections.length){var collection=this.URLCollections[this.CollectionProgressIndex];for(this.CollectionElementProgressIndex++;this.CollectionElementProgressIndex<collection.URLs.length;this.CollectionElementProgressIndex++){var url=collection.URLs[this.CollectionElementProgressIndex];var currentStatus=this.URLDownloadStatus[url];var downloadRequested=false;var nextStatus;switch(currentStatus){case DownloadStatus.Registered:downloadRequested=true;nextStatus=DownloadStatus.Downloading;break;case DownloadStatus.PartiallyInstalledBeforeDownloading:downloadRequested=true;nextStatus=DownloadStatus.PartiallyInstalledWhileDownloading;break;}
if(downloadRequested){if(collection.DownloadNeeded){this.URLDownloadStatus[url]=nextStatus;var downloader=CreateDownloaderElement(url,collection.FileTypes[this.CollectionElementProgressIndex],BootLoader_DownloadCompleted);if(downloader!==null){this.DownloaderElements.push(downloader);window.document.getElementsByTagName("HEAD")[0].appendChild(downloader);this.AvailableDownloaders--;if(this.AvailableDownloaders===0){BootLoader_DownloadMultipleLock=false;return;}}
else{this.URLDownloadStatus[url]=currentStatus;BootLoader_RecordDownload(collection);}}}}
if(!(BootLoader.DownloadsAllowed)){BootLoader_DownloadMultipleLock=false;return;}
this.CollectionProgressIndex++;this.CollectionElementProgressIndex=-1;}
BootLoader_DownloadMultipleLock=false;}
function BootLoader_DownloadCompleted(){this.onload=this.onerror=this.onabort=null;if(window.closed){return;}
var url=this.rawURL;var finishDeferredInstallations=false;switch(BootLoader.URLDownloadStatus[url]){case DownloadStatus.Installed:break;case DownloadStatus.Registered:case DownloadStatus.Downloaded:case DownloadStatus.PartiallyInstalledBeforeDownloading:var problem=new Error();problem.message="A download completed for a URL in an unexpected state.";throw problem;break;case DownloadStatus.Downloading:BootLoader.URLDownloadStatus[url]=DownloadStatus.Downloaded;break;case DownloadStatus.PartiallyInstalledWhileDownloading:finishDeferredInstallations=true;BootLoader.URLDownloadStatus[url]=DownloadStatus.Installed;break;}
var collections=BootLoader.URLCollectionsByURL[url];for(var collectionIndex=0;collectionIndex<collections.length;collectionIndex++){var collection=collections[collectionIndex];if(finishDeferredInstallations){if((collection.InstallationNeeded)&&!(collection.InstallIncompleteURLs)){BootLoader_Install(url,collection.InstallationElementIdentifiers);BootLoader_RecordDownload(collection);}}
else{BootLoader_RecordDownload(collection);}}
if(BootLoader.DownloadsAllowed){BootLoader.DownloadMultiple(1);}}
function BootLoader_Install(url,elementIdentifiers){for(var index=0;index<elementIdentifiers.length;index++){var element=window.document.getElementById(elementIdentifiers[index]);switch(element.tagName.toUpperCase()){case"SCRIPT":switch(window.navigator.appName){case"Microsoft Internet Explorer":element.src=url;break;case"Netscape":default:break;}
break;case"IMG":element.src=url;break;case"LINK":element.href=url;break;default:break;}}}
function BootLoader_InstallAll(){for(var collectionIndex=0;collectionIndex<this.URLCollections.length;collectionIndex++){var collection=this.URLCollections[collectionIndex];this.InstallCollection(collection);}}
function BootLoader_InstallCollection(collection){if(collection.InstallationNeeded){for(var collectionElementIndex=0;collectionElementIndex<collection.URLs.length;collectionElementIndex++){var url=collection.URLs[collectionElementIndex];var currentStatus=this.URLDownloadStatus[url];var forceInstallation=false;var nextStatus;switch(currentStatus){case DownloadStatus.PartiallyInstalledBeforeDownloading:case DownloadStatus.PartiallyInstalledWhileDownloading:case DownloadStatus.Installed:break;case DownloadStatus.Downloaded:var pendingCollections=this.URLCollectionsByURL[url];for(var pendingCollectionIndex=0;pendingCollectionIndex<pendingCollections.length;pendingCollectionIndex++){var pendingCollection=pendingCollections[pendingCollectionIndex];var index=pendingCollection.URLIndex[url];BootLoader_Install(url,pendingCollection.InstallationElementIdentifiers[index]);}
this.URLDownloadStatus[url]=DownloadStatus.Installed;break;case DownloadStatus.Registered:forceInstallation=true;nextStatus=DownloadStatus.PartiallyInstalledBeforeDownloading;break;case DownloadStatus.Downloading:forceInstallation=true;nextStatus=DownloadStatus.PartiallyInstalledWhileDownloading;break;}
if(forceInstallation){var pendingCollections=this.URLCollectionsByURL[url];for(var pendingCollectionIndex=0;pendingCollectionIndex<pendingCollections.length;pendingCollectionIndex++){var pendingCollection=pendingCollections[pendingCollectionIndex];if(pendingCollection.InstallIncompleteURLs){var index=pendingCollection.URLIndex[url];BootLoader_Install(url,pendingCollection.InstallationElementIdentifiers[index]);BootLoader_RecordDownload(pendingCollection);}}
this.URLDownloadStatus[url]=nextStatus;}}}}
function BootLoader_RecordDownload(collection){var downloadCount=++collection.DownloadCount;if(!!collection.OnDownloadURLCompleted){collection.OnDownloadURLCompleted();}
if(downloadCount===collection.URLs.length){if(collection.InstallWhenCollectionDownloads){BootLoader.InstallCollection(collection);}
if(!!collection.OnDownloadCollectionCompleted){window.setTimeout(collection.OnDownloadCollectionCompleted,0);}}}
function RegisterBootLoaderCollections(){LastRequiredCollectionCompleted();var collection=new BootLoaderURLCollection();collection.AddURL("http://files.fbstatic.com/sprites/masterliteMHP.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/sprites/spr_socnet_btn2.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/sprites/spr_aboutme.png",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/DesktopPreview/_images/btn_glaire.png",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/Themes/_images/Loading_bar.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/Themes/_images/masterliteMHP.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/sprites/spr_socnet_lrg2.jpg",BootLoaderFileType.Image,[]);if((window.navigator.appName==="Microsoft Internet Explorer")&&(window.navigator.appVersion.indexOf("MSIE 6.")!==-1)){collection.AddURL("http://files.fbstatic.com/socnet/_images/spacer.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/Themes/_images/tpxl.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/socnet/_images/fanboxblog_16x16.png",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/socnet/_images/im_16x16.png",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/socnet/_images/widget_16x16.png",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/socnet/_images/public%20profile_16x16.png",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/themes/_images_shared/ico_blog_recent.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/socnet/_images/previews/buddy_list.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/socnet/_images/previews/chat_window.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/socnet/_images/previews/fanbox_blog.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/socnet/_images/previews/fanbox_home.png",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/socnet/_images/previews/my_settings.png",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/socnet/_images/previews/product_suggestion.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/socnet/_images/previews/shared_folder_files.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/socnet/_images/previews/widget.png",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/socnet/_images/previews/friends.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/socnet/_images/previews/widget_directory.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/socnet/_images/previews/word_processor.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/socnet/_images/previews/media_player.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/themes/_images_shared/blank_headshot_male.jpg",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/themes/_images_shared/blank_headshot_female.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/themes/_images_shared/blank_headshot_uni_l.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/themes/_images_shared/blank_headshot_uni.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/themes/_images/btn_green_m.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/socnet/_images/btn_glaire_add.png",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/socnet/_images/shared_folders_files.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/Themes/_images/btn_green_xs.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/Themes/_images/btn_playnow_up.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/Themes/_images/comment_bot_line.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/themes/_images/comment_rt.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/themes/_images/mastermhp.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/Themes/_images/btn_green_xs.gif",BootLoaderFileType.Image,[]);collection.AddURL("http://files.fbstatic.com/sprites/spr_desktop.gif",BootLoaderFileType.Image,[]);}
collection.AddURL(window.document.getElementById("ProfileBrowserCSSURL").value,BootLoaderFileType.CSS,[]);collection.AddURL(window.document.getElementById("ProfilePaletteCSSURL").value,BootLoaderFileType.CSS,[]);collection.AddURL(window.document.getElementById("ProfileJavaScriptURL").value,BootLoaderFileType.JavaScript,[]);collection.OnDownloadURLCompleted=null;collection.OnDownloadCollectionCompleted=LastCollectionCompleted;collection.InstallWhenCollectionDownloads=true;BootLoader.AddURLCollection(collection);}
function LastRequiredCollectionCompleted(){AdvanceLoadingMilestoneTimeoutRequirement();if(!(BootLoader.NewCollectionsAllowed)){BootLoader.DownloadsAllowed=false;}}
function LastCollectionCompleted(){if(!(isNaN(BootLoaderTimer))){window.clearTimeout(BootLoaderTimer);BootLoaderTimer=NaN;}
BootLoader.InstallAll();MarkLoadingMilestoneFree("BootLoader");if(!(PageOnLoadCalled)){PageOnLoadCalled=true;load();}}
var BootLoaderTimer=NaN;function SetBootLoaderTimeout(){var slideShowStartTime=SlideshowRuntime.StartTime;var currentTime=new Date();var remainingTime=Math.max(0,15000-(currentTime-slideShowStartTime));BootLoaderTimer=window.setTimeout(BootLoaderTimer_Expire,remainingTime);}
function BootLoaderTimer_Expire(){BootLoaderTimer=NaN;BootLoader.NewCollectionsAllowed=false;PageTimer.ConnectToSession(window,"93",null);PageTimer.DefineProgressCounters(window,["WelcomePageTimeoutSlideShowComplete"]);}
var LoadingMilestoneTimer=NaN;var LoadingMilestoneRemainderCount=5;var LoadingMilestoneReadiness={"DocumentModelLoaded":false,"BootLoader":false,"Profile":true,"DesktopIcons":false,"DesktopFiles":false,"Wallpaper":false,"SlideShow":false};var LoadingMilestoneProgressWeights={"DocumentModelLoaded":1,"BootLoader":1,"Profile":0,"DesktopIcons":1,"DesktopFiles":1,"Wallpaper":1,"SlideShow":0};var LoadingMilestoneProgressWeightCompleted=0;var LoadingMilestoneProgressWeightTotal=5;var LoadingMilestoneIdleProgressTimer=NaN;var LoadingMilestoneIdleProgressUnitRemainderRatio=1;var PageOnLoadCalled=false;function MarkLoadingMilestoneFree(milestone){if(!(LoadingMilestoneReadiness[milestone])){LoadingMilestoneProgressWeightCompleted+=LoadingMilestoneProgressWeights[milestone];if(!(isNaN(LoadingMilestoneIdleProgressTimer))){window.clearTimeout(LoadingMilestoneIdleProgressTimer);LoadingMilestoneIdleProgressTimer=NaN;LoadingMilestoneIdleProgressUnitRemainderRatio=1;}
if(LoadingMilestoneProgressWeightCompleted===LoadingMilestoneProgressWeightTotal){PageTimer.FulfillProgressCounter(window,"LoadingProgressComplete");}
else if(PaintWelcomeScreenProgressBar()){LoadingMilestoneIdleProgressTimer=window.setTimeout(PaintWelcomeScreenProgressBarIdleProgress,1000);}
LoadingMilestoneReadiness[milestone]=true;if(LoadingMilestoneRemainderCount>0){LoadingMilestoneRemainderCount--;if(LoadingMilestoneRemainderCount===0){if(!(isNaN(LoadingMilestoneTimer))){window.clearTimeout(LoadingMilestoneTimer);LoadingMilestoneTimer=NaN;}
CloseWelcomeScreen();return true;}}}
else if(LoadingMilestoneRemainderCount===0){return true;}
return false;}
function PaintWelcomeScreenProgressBar(){var progressBarElement=window.document.getElementById("WelcomeProgressBar");if(!!progressBarElement){progressBarElement.style.width=(Math.floor((LoadingMilestoneProgressWeightCompleted+(1-LoadingMilestoneIdleProgressUnitRemainderRatio))*100/LoadingMilestoneProgressWeightTotal)).toString()+"%";return true;}
else{return false;}}
function PaintWelcomeScreenProgressBarIdleProgress(){LoadingMilestoneIdleProgressUnitRemainderRatio*=0.8;if(PaintWelcomeScreenProgressBar()){LoadingMilestoneIdleProgressTimer=window.setTimeout(PaintWelcomeScreenProgressBarIdleProgress,1000);}
else{LoadingMilestoneIdleProgressTimer=NaN;}}
function MarkLoadingMilestoneBusy(milestone){if((LoadingMilestoneRemainderCount!==0)&&(LoadingMilestoneReadiness[milestone])){LoadingMilestoneReadiness[milestone]=false;LoadingMilestoneRemainderCount++;}}
var LoadingMilestoneTimeoutRequirementsNeeded=2;var DefaultLoadCalled=false;function AdvanceLoadingMilestoneTimeoutRequirement(){LoadingMilestoneTimeoutRequirementsNeeded--;if(LoadingMilestoneTimeoutRequirementsNeeded===0){if(!(isNaN(BootLoaderTimer))){window.clearTimeout(BootLoaderTimer);BootLoaderTimer=NaN;}
SetLoadingMilestoneTimeout();}}
function SetLoadingMilestoneTimeout(){var slideShowStartTime=SlideshowRuntime.StartTime;var currentTime=new Date();var remainingTime=Math.max(0,15000-(currentTime-slideShowStartTime));LoadingMilestoneTimer=window.setTimeout(LoadingMilestoneTimer_Expire,remainingTime);}
function LoadingMilestoneTimer_Expire(){LoadingMilestoneTimer=NaN;if(LoadingMilestoneRemainderCount!==0){LoadingMilestoneRemainderCount=0;if(!(PageOnLoadCalled)){PageOnLoadCalled=true;load();}
CloseWelcomeScreen();}}
function RenderProfileSilently(){var script=window.document.createElement("SCRIPT");script.type="text/javascript";script.defer=true;script.src="http://profile.fanbox.com/Profile/NewCustomProfile.aspx?silent=1";window.document.getElementsByTagName("HEAD")[0].appendChild(script);}
var startupMasterVersion=2;