$(function(){$("#mp_header_twelve .print > a").click(function(a){a.preventDefault();window.print();}).css("cursor","pointer");$("#AcceptUnsupportedBrowserRisks").live("click",function(){var d=window.location.toString();d.match(/\?(.+)$/);var a=RegExp.$1;var a=a.split("&");var e={};for(var b=0;b<a.length;b++){var f=a[b].split("=");e[f[0]]=unescape(f[1]);}var c=e["redirectUrl"];$.ajax({url:"/Utilities/AcceptRisksOfUnsupportedBrowser",type:"POST",cache:false,timeout:60000,dataType:"json",error:function(){redirectError();},success:function(g){if(c!=null&&c.length>0){window.location=c;}else{$("#BrowserNotSupported").slideUp("slow");}}});});});function redirectOnError(a){if(a.RedirectUrl!=null&&a.RedirectUrl.match(/Error\?redirectUrl/)){setRefresh();window.location=a.RedirectUrl;}if(a.toString().match(/Error\?redirectUrl/)||a.toString().match(/login/)){setRefresh();window.location=a;}}function setRefresh(){var a=$("#refresh");if(a.length>0){a.val("yes");}}function redirectError(){var a=window.location;var b=a.pathname+a.search;b="/Error?redirectUrl="+URLEncode(b);window.location=b;}function URLEncode(f){var c="";var b=0;f=f.toString();var g=/(^[a-zA-Z0-9_.]*)/;while(b<f.length){var e=g.exec(f.substr(b));if(e!=null&&e.length>1&&e[1]!=""){c+=e[1];b+=e[1].length;}else{if(f[b]==" "){c+="+";}else{var d=f.charCodeAt(b);var a=d.toString(16);c+="%"+(a.length<2?"0":"")+a.toUpperCase();}b++;}}return c;}