function GetHttpRequestObject()
{ var xmlHttp = null; if (typeof XMLHttpRequest != 'undefined')
{ xmlHttp = new XMLHttpRequest();} if (!xmlHttp)
{ try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");} catch(e)
{ try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");} catch(e) { xmlHttp = null;} } } return xmlHttp;}
function PressSearchGoogleMaps(ev)
{ if (ev.keyCode == 13 || ev.which == 13)
{ document.aspnetForm.ctl00$cphContent$ctl00.click(); return false;}
return true;}
function PressSearch(ev)
{ if (ev.keyCode == 13 || ev.which == 13)
{ document.aspnetForm.ctl00$cphContent$Search1$btn_Search.click(); return false;}
return true;}
function toggleLayer(whichLayer)
{ var elem, vis; if (document.getElementById)
elem = document.getElementById(whichLayer); else if (document.all)
elem = document.all[whichLayer]; else if (document.layers)
elem = document.layers[whichLayer]; vis = elem.style; if (vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none'; vis.display = (vis.display==''||vis.display=='block')?'none':'block';}
function GetWindowWidth()
{ var windowWidth; if (self.innerHeight)
{ windowWidth = self.innerWidth;}
else if (document.documentElement && document.documentElement.clientHeight)
{ windowWidth = document.documentElement.clientWidth;}
else if (document.body)
{ windowWidth = document.body.clientWidth;}
return windowWidth;}
function GetWindowHeight()
{ var windowHeight; if (self.innerHeight)
{ windowHeight = self.innerHeight;}
else if (document.documentElement && document.documentElement.clientHeight)
{ windowHeight = document.documentElement.clientHeight;}
else if (document.body)
{ windowHeight = document.body.clientHeight;}
return windowHeight;}
function ShowTimelineHint()
{ var windowWidth = GetWindowWidth() - 445; new TransparentMenu('timeline_splash_left', {showMode:'now', showEffectOptions: {duration: 0.8}, hideMode:"timeout", hideEffectOptions: {duration: 0.8}, hideDelay:8, top:332, left:75}); new TransparentMenu('timeline_splash_right', {showMode:'now', showEffectOptions: {duration: 0.8}, hideMode:"timeout", hideEffectOptions: {duration: 0.8}, hideDelay:8, top:332, left:windowWidth});}
function SessionKeepAlive()
{ var request = GetHttpRequestObject(); if (request)
{ request.open('GET', '/Account/SessionKeepAlive.aspx', true); request.send(null); window.setTimeout("SessionKeepAlive();", 900000);} }