var prods={mapViewer:{test:function(){return systemCheck.ok},okPage:"ge-newLayout.html",failPage:"home/browserTest.html"},outlineMaps:{test:function(){return systemCheck.browserOk&&systemCheck.flashOk},okPage:"outlineMaps.html",failPage:"atlasTest.html"},atlas:{test:function(){return systemCheck.browserOk&&systemCheck.flashOk},okPage:"atlases.html",failPage:"atlasTest.html"},charts:{test:function(){return systemCheck.browserOk&&systemCheck.flashOk},okPage:"charts.html",failPage:"atlasTest.html"},admin:{test:function(){return systemCheck.browserOk&&systemCheck.flashOk},okPage:"admin/admin.html",failPage:"atlasTest.html"},mapLibrary:{test:function(){return systemCheck.browserOk&&systemCheck.flashOk},okPage:"library.html",failPage:"atlasTest.html"}};var retestFlash=false;var mapWindow=null;function launchGE(b){b=b||window.event;var e=b.target||b.srcElement;var d;var c;if(e.nodeName=="A"){d="admin";c=e.href}else{e=e.parentNode;if(!e.id||!prods[e.id]){return false}d=e.id;c=prods[d].okPage}if(retestFlash){systemCheck.run()}if(!prods[d].test()){openBrowserTest(prods[d].failPage);return false}var g=window.screen.availWidth;var a=window.screen.availHeight;var f="location=no,status=no,resizable=yes,scrollbars=yes,left=0,top=0";f+=",outerWidth="+g+",outerHeight="+a;h(c);function h(i){if(mapWindow==null||mapWindow.closed){mapWindow=window.open(i,"mapWindow",f);if(!mapWindow){alert("Disable popup blockers in order to view the Getting Started Tutorial.")}else{mapWindow.resizeTo(g,a);mapWindow.focus()}}else{mapWindow.location=i;mapWindow.resizeTo(g,a);mapWindow.focus()}}if(b.preventDefault){b.preventDefault()}else{b.returnValue=false}return false}function navigatePages(a){a=a||window.event;var c=a.target||a.srcElement;var e=["features","content","testimonials","specs","news","login","logout","seeContentCat","getfull"];var d=new RegExp("(?:^|\\s+)("+e.join("|")+")(?:\\s+|$)");var b=c.className.match(d);if(b){b=b[1]}switch(b){case"features":window.location="features.html";break;case"seeContentCat":case"content":window.location="content.html";break;case"testimonials":window.location="testimonials.html";break;case"specs":window.location="specs.html";break;case"news":window.location="news.html";break;case"login":fadeErrorMsge(0);document.getElementById("loginWindow").className="show";break;case"logout":log_out();break;case"getfull":break;default:break}}function launchGettingStarted(){var b=b||null;var d=820;var a=790;if(browser.isMSIE){if(browser.version<8){a=750;d=842}else{a=745;d=825}}var c="location=no,status=no,resizable=yes,scrollbars=yes,left=0,top=0";c+=",width="+d+",height="+a;e();function e(){if(b==null||b.closed){b=window.open("gettingStarted.html","gettingStarted",c);if(b){b.resizeTo(d,a);b.focus()}}else{b.location="gettingStarted.html";b.resizeTo(d,a);b.focus()}}}function submitForm(a){document.forms[a].submit()}function openBrowserTest(a){a=a||"browserTest.html";window.open(a,"mywindow","menubar=1,resizable=1,width=700,height=550");return false}function closeMapWindow(){if(mapWindow&&!mapWindow.closed){mapWindow.close()}}function openTerms(){document.getElementById("modalOverlay").style.display="block";document.getElementById("termsAndConditions").style.display="block"}function closeTerms(){document.getElementById("modalOverlay").style.display="none";document.getElementById("termsAndConditions").style.display="none"}function checkAgreeTerms(a){a=a||window.event;function b(c){document.body.style.cursor="default";if(c.success){closeTerms()}else{alert("System error")}}document.body.style.cursor="wait";$.post("acceptTermsAndConditions.html","accepted=true",b,"json");if(a.preventDefault){a.preventDefault()}else{a.returnValue=false}return false}$(document).ready(function(){var a=document.getElementById("headerLogin");if(a){a.onclick=function(){window.location="login.html"}}});function fadeErrorMsge(a){if(/loggedout/.test(window.location.search)){setTimeout(function(){jQuery("#loginServerErrorMsges").empty()},a)}};