var PLATFORM_OTHER=0;var PLATFORM_WINDOWS=1;var PLATFORM_LINUX=2;var PLATFORM_MACOSX=3;var PLATFORM_MAC=4;var gPlatform=PLATFORM_WINDOWS;if(navigator.platform.indexOf("Win32")!=-1){gPlatform=PLATFORM_WINDOWS}else{if(navigator.platform.indexOf("Linux")!=-1){gPlatform=PLATFORM_LINUX}else{if(navigator.userAgent.indexOf("Mac OS X")!=-1){gPlatform=PLATFORM_MACOSX}else{if(navigator.userAgent.indexOf("MSIE 5.2")!=-1){gPlatform=PLATFORM_MACOSX}else{if(navigator.platform.indexOf("Mac")!=-1){gPlatform=PLATFORM_MAC}else{gPlatform=PLATFORM_OTHER}}}}}function offerBestDownloadLink(b){var a=document.getElementById(b);if(a&&gPlatform){switch(gPlatform){case PLATFORM_WINDOWS:setDownloadListClass(a,"os_windows");break;case PLATFORM_LINUX:setDownloadListClass(a,"os_linux");break;case PLATFORM_MACOSX:setDownloadListClass(a,"os_osx");break;default:break}}}function setDownloadListClass(d,b){if(d){var a=d.getElementsByTagName("ul");for(var c=0;c<a.length;c++){if(a[c].getAttribute("class")&&a[c].getAttribute("class").indexOf("home-download")!=-1){a[c].setAttribute("class",a[c].getAttribute("class")+" "+b)}if(a[c].getAttribute("className")&&a[c].getAttribute("className").indexOf("home-download")!=-1){a[c].setAttribute("className",a[c].getAttribute("className")+" "+b)}}}}function replaceDownloadLinksForId(f){if((window.location.protocol=="file:")||(window.navigator.userAgent.indexOf("SV1")!=-1)||(window.navigator.userAgent.indexOf("MSIE 7")!=-1)){return}var e=document.getElementById(f);if(e){var c=e.getElementsByTagName("a");for(var d=0;d<c.length;d++){var b=c[d].getAttribute("href");if(b.indexOf("?")!=-1){var a=b.split("?");if(a[0].indexOf("http://download.mozilla.org")==0){c[d].setAttribute("href","/products/download.html?"+a[1])}}}}}function init_download(a){if(navigator.appVersion.indexOf("MSIE")!=-1){window.open(a,"download_window","toolbar=0,location=no,directories=0,status=0,scrollbars=0,resizeable=0,width=1,height=1,top=0,left=0");window.focus()}};
