jQuery.noConflict();$jq=jQuery;var bIsIe6=false;var bIsOutdatedBrowser=false;var bIsPublicNetwork=null;var sResourcePath="/bh_com/templates09/resourcesCompressed";var sIpAddress="";var sDefaultSearch="Search...";$jq(document).ready(function(){if($jq.browser.msie&&$jq.browser.version<7){bIsIe6=true}checkForOutdatedBrowser();checkForPublicNetwork(function(){if(bIsOutdatedBrowser&&bIsPublicNetwork!=null&&bIsPublicNetwork){showOutdatedBrowserPrompt()}});bhGlobalRenderUpdates();bhGlobalAttachEvents()});function checkForOutdatedBrowser(){if(window.location.toString().toLowerCase().indexOf("outdatedbrowser=true")!=-1){bIsOutdatedBrowser=true}else{var a=parseFloat($jq.browser.version);if(($jq.browser.msie&&a<7)||($jq.browser.safari&&a<520)||($jq.browser.opera&&a<9)||($jq.browser.mozilla&&a<1.8)){bIsOutdatedBrowser=true}}}function checkForPublicNetwork(a){if(window.location.toString().toLowerCase().indexOf("publicnetwork=true")!=-1){bIsPublicNetwork=true;if(typeof(a)=="function"){a()}}else{try{$jq.get("/getIpAddress.aspx",{},function(c){if(typeof(c)=="string"&&c.substring(0,4).indexOf(".")!=-1){sIpAddress=c;aOctets=sIpAddress.split(".");for(var d=0;d<aOctets.length;d++){aOctets[d]=parseInt(aOctets[d])}if(aOctets[0]==10||(aOctets[0]==192&&aOctets[1]==168)||(aOctets[0]==172&&(aOctets[1]>=16&&aOctets[1]<32))||sIpAddress=="206.213.41.1"){bIsPublicNetwork=false}else{bIsPublicNetwork=true}}if(typeof(a)=="function"){a()}})}catch(b){}}}function bhGlobalRenderUpdates(){if($jq("#topSearchTxt").val().trim()==""){$jq("#topSearchTxt").val(sDefaultSearch)}if(($jq.browser.msie&&$jq.browser.version>=7)||$jq.browser.opera){$jq(".button").each(function(){curvyCorners({tl:{radius:10},tr:{radius:10},bl:{radius:10},br:{radius:10},antiAlias:true},this)})}$jq.bhTopNav()}function bhGlobalAttachEvents(){$jq("#topSearchTxt").focus(function(){if($jq(this).val().trim()==sDefaultSearch){$jq(this).val("")}});$jq("#topSearchTxt").blur(function(){if($jq(this).val().trim()==""){$jq(this).val(sDefaultSearch)}})}function showOutdatedBrowserPrompt(){sHtml="";sHtml+='<div id="outdatedBrowserWarning" style="margin:10px; border: 2px solid #F7941D; background: #FEEFDA; text-align: center; clear: both; height: 75px; position: relative;">';sHtml+='    <div style="position: absolute; right: 3px; top: 3px; font-family: courier new; font-weight: bold;"><a href="#" onclick="javascript:this.parentNode.parentNode.style.display=\'none\'; return false;"><img src="'+sResourcePath+'/images/ie6nomore-cornerx.jpg" style="border: none;" alt="Close this notice"/></a></div>';sHtml+='    <div style="width: 640px; margin: 0 auto; text-align: left; padding: 0; overflow: hidden; color: black;">';sHtml+='        <div style="width: 75px; float: left;"><img src="'+sResourcePath+'/images/ie6nomore-warning.jpg" alt="Warning!"/></div>';sHtml+='        <div style="width: 275px; float: left; font-family: Arial, sans-serif;">';sHtml+='	        <div style="font-size: 14px; font-weight: bold; margin-top: 12px;">You are using an outdated browser</div>';sHtml+='	        <div style="font-size: 12px; margin-top: 6px; line-height: 12px;">For a better experience using this site, please upgrade to a modern web browser.</div>';sHtml+="        </div>";sHtml+='        <div style="width: 75px; float: left;"><a href="http://www.firefox.com" target="_blank"><img src="'+sResourcePath+'/images/ie6nomore-firefox.jpg" style="border: none;" alt="Get Firefox 3.5"/></a></div>';sHtml+='        <div style="width: 75px; float: left;"><a href="http://www.microsoft.com/windows/internet-explorer/" target="_blank"><img src="'+sResourcePath+'/images/ie6nomore-ie8.jpg" style="border: none;" alt="Get Internet Explorer 8"/></a></div>';sHtml+='        <div style="width: 73px; float: left;"><a href="http://www.apple.com/safari/download/" target="_blank"><img src="'+sResourcePath+'/images/ie6nomore-safari.jpg" style="border: none;" alt="Get Safari 4"/></a></div>';sHtml+='        <div style="float: left;"><a href="http://www.google.com/chrome" target="_blank"><img src="'+sResourcePath+'/images/ie6nomore-chrome.jpg" style="border: none;" alt="Get Google Chrome"/></a></div>';sHtml+="    </div>";sHtml+="</div>";$jq("#OutdatedBrowserWarning").prepend(sHtml)}var isDefined=function(a){return(typeof(a)!="undefined"&&a!=null)};String.prototype.contains=function(a){return(this.match(a)==a)};String.prototype.startsWith=function(a){return(this.match("^"+a)==a)};String.prototype.endsWith=function(a){return(this.match(a+"$")==a)};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};String.prototype.ltrim=function(){return this.replace(/^\s+/,"")};String.prototype.rtrim=function(){return this.replace(/\s+$/,"")};
