function checkCookiesEnabled(){ var cookieEnabled = (navigator.cookieEnabled)? true : false; // Cater for browsers that don't support cookieEnabled if(typeof navigator.cookieEnabled == "undefined" && !cookieEnabled){ // Try and set a cookie document.cookie="test"; cookieEnabled=(document.cookie.indexOf("test") != -1) ? true: false; } if(!cookieEnabled){ window.location.href="/appl/internet/web/ERR_COOKIES_DISABLED.shtml"; } } function checkBrowserSupport() { //Obtain version number var version=$.browser.version; //Ignore the sub version, grab the main version only var versionNumber=parseFloat((version==null || version=="")?0:version.substr(0,3)); var browser=navigator.appName; var supportLevel=0; //0 means no support, 1 means partly support, 2 means fully support if($.browser.mozilla) { //Fully support firefox version 2.9 - 3.0 //The version number obtained in jquery is the version of the Gecko rendering engine //To map this number into Firefox version need,you need to look at //http://en.wikipedia.org/wiki/Mozilla_Firefox if (versionNumber>=1.8 && versionNumber<=1.9) { supportLevel=2; } else { supportLevel=1; } } else if($.browser.msie) { //Fully support IE version 6.0 - 8.0 if (versionNumber>=6.0 && versionNumber<=8.0) { supportLevel=2; } else { supportLevel=1; } } else if($.browser.opera) { //No support for Operal at the moment } else if($.browser.safari) { //Fully support safari version 3+ if (versionNumber>=522) { supportLevel=2; } else { supportLevel=1; } } else if ($.browser.chrome) { browser="Chrome"; } if (supportLevel==0 || supportLevel==1) { //display error message //window.location.href="/pub/nrma/about-us/about-website.shtml"; displayBrowserNotSupportMessage(supportLevel); } } function displayBrowserNotSupportMessage(supportLevel) { var sentence="!"; if (supportLevel==0) { sentence=sentence+"Your browser is not supported by this site,"; } else if (supportLevel==1) { sentence=sentence+"Your browser is partially supported by this site,"; } var messageContent= sentence+ " for a better experience please switch to "+ " FireFox 3,"+ //Firefox " Safari 4 or"+ //Safari " Internet Explorer 7."; //IE $("
"+messageContent+" [close]
") .css({ 'backgroundColor': '#fcfdde', 'width': '100%', 'border-top': 'solid 1px #000', 'border-bottom': 'solid 1px #000', 'text-align': 'center', padding:'5px 0px 5px 0px' }) .prependTo("body"); $('#warningClose').click(function(){ $('#browserWarning').slideUp('slow'); return false; }); } function pdf_window(page){ window.open(page,"_"+"blank","toolbars=no,menubars=no,location=no,scrollbars=yes,resizable=yes,width=500,height=500"); } function new_window(page){ var win = window.open(page,"_"+"blank","toolbar=yes,menubar=yes,location=no,scrollbars=yes,resizable=yes,width=500,height=500"); } function printWindow(){ var win = window.print(); } function printIt(obj) { window.frames[''+obj+''].focus(); window.frames[''+obj+''].print(); } /* Sends custom link track request*/ function sendOmnitureCustomLinkRequest(omniturePrintVars, friendlyName){ var omnitureEnabled = false; for(var omnitureVar in omniturePrintVars){ if(omnitureVar == 'omnitureEnabled'){ (omniturePrintVars[omnitureVar] == 'Y') ? omnitureEnabled = true : omnitureEnabled = false; } if(omnitureEnabled){ if(omnitureVar == 'reportSuite'){ var s=s_gi(omniturePrintVars[omnitureVar]); } else{ eval(omnitureVar + ' = "' + omniturePrintVars[omnitureVar] + '"'); } } } if(omnitureEnabled){ void(s.tl(this,'o',friendlyName)); } } /** * This variable is a page level variable used to give print IFRAME elements a unique name. * (Browser bug workaround). See next-steps.vm for the details. */ var load = 0;