var BN=function(){var A={};A.namespace=function(B){if(A[B]==undefined){A[B]={}}};return A}();jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;var A=0;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){var C=new Date().getMilliseconds();this.call(document,jQuery);var B=new Date().getMilliseconds()});jQuery.readyList=null}jQuery(document).triggerHandler("ready");if(jQuery.readyList==null){jQuery(document).triggerHandler("afterReady")}}}});$.live=function(A,C,B){var D=$([]);D.selector=A;if(C&&B){D.live(C,B)}return D};BN.namespace("core");BN.core=function(){return{getSite:function(){var sSite=$("#bn_page_data").attr("data-site");if(sSite!==undefined){return sSite}else{return"BN"}},getShipToCountryCode:function(){var sShipTo=$("#bn_page_data").attr("data-shipTo");if(sShipTo!==undefined){return sShipTo}else{return"US"}},getDomain:function(){var sDomain=$("#bn_page_data").attr("data-domain");if(sDomain!==undefined){return sDomain}else{return"bluenile.com"}},getUniquePageId:function(){return $("#bn_page_data").attr("data-uniquePageId")},isDev:function(){return $("#bn_page_data").attr("data-isDev")==="true"},getQuerystring:function(url){if(url===undefined){url=window.location}return url.replace(/^.*[?]|#.*$/g,"")},getQuerystringVariable:function(variable){var query=window.location.search.substring(1);var vars=query.split("&");for(var i=0;i<vars.length;i++){var pair=vars[i].split("=");if(pair[0]==variable){return pair[1]}}return""},getQuerystringMap:function(url){var vars=BN.core.getQuerystring(url).split("&");var map={};$.each(vars,function(i){var pair=this.split("=");var k=decodeURIComponent(pair[0]);var v=decodeURIComponent(pair[1]);if($.isArray(map[k])){map[k].push(v)}else{if(map[k]!==undefined){map[k]=[map[k],v]}else{map[k]=v}}});return map},htmlEntityDecode:function(str){if(str==null){str=""}var ta=document.createElement("textarea");ta.innerHTML=str.replace(/</g,"&lt;").replace(/>/g,"&gt;");return ta.value},isIE6Sp2OrLess:function(){return false
/*@cc_on || @_jscript_version < 5.7 @*/
}}}();(function(){Function.prototype.method=function(A,B){if(!this.prototype[A]){this.prototype[A]=B}return this};if(!String.prototype.isIn){String.prototype.isIn=function(C){var B=this.valueOf();var A=false;$.each(C,function(E,F){var D=$.isArray(C)?F:E;if(B===D){A=true}});return A}}if(!String.prototype.compare){String.prototype.compare=function(A){if(this<A){return -1}if(this>A){return 1}if(this===A){return 0}}}if(!Number.prototype.compare){Number.prototype.compare=function(A){if(this<A){return -1}if(this>A){return 1}if(this===A){return 0}}}if(!Number.prototype.isIn){Number.prototype.isIn=function(C){var B=this.valueOf();var A=false;$.each(C,function(E,F){var D=$.isArray(C)?F:E;if(B===D){A=true}});return A}}if(!Boolean.prototype.isIn){Boolean.prototype.isIn=function(C){var B=this.valueOf();var A=false;$.each(C,function(E,F){var D=$.isArray(C)?F:E;if(B===D){A=true}});return A}}if(!String.prototype.isNotIn){String.prototype.isNotIn=function(A){return !this.isIn(A)}}if(!Number.prototype.isNotIn){Number.prototype.isNotIn=function(A){return !this.isIn(A)}}if(!Boolean.prototype.isNotIn){Boolean.prototype.isNotIn=function(A){return !this.isIn(A)}}if(!Array.prototype.notAllElementsIn){Array.prototype.notAllElementsIn=function(B){if(this.length===0&&B.length!==0){return true}var A=false;$.each(this,function(C,D){if(D.isNotIn(B)){A=true}});return A}}if(!Array.prototype.min){Array.prototype.min=function(){return Math.min.apply(Math,this)}}if(!Array.prototype.max){Array.prototype.max=function(){return Math.max.apply(Math,this)}}if(!Array.prototype.allElementsIn){Array.prototype.allElementsIn=function(A){return !this.notAllElementsIn(A)}}}());BN.namespace("core");BN.core.formatting=function(){var A=[37,39,17,18,16,8,46,144,9,35,36,45,33,34];return{currencyToNumber:function(B){if(B){B=""+B.replace(/\,/g,"");B=""+B.replace(/[^0-9.-]/g,"");B=""+B.replace(/^[0]+[^0]/g,"$1");B=parseInt(parseFloat(B))}return B},numberToCurrency:function(F,B){var E="";F=new String(parseInt(F));var C=0;for(var D=F.length-1;D!==-1;D--){C++;E=F.charAt(D)+E;if(C===3&&D!==0){E=","+E;C=0}}E=B+E;return E},formatNumber:function(F){var E=F.toString();var B="";var C=0;for(var D=E.length-1;D!==-1;D--){C++;B=E.charAt(D)+B;if(C===3&&D!==0){B=","+B;C=0}}return B},isSpecialChar:function(B){for(var C=0;C<A.length;C++){if(B===A[C]){return true}}return false},isDefined:function(B){return !(typeof (B)==="undefined")}}}();BN.logger=function(){var getTimeMilli=function(){var d=new Date();return d.getHours()*60*60*1000+d.getMinutes()*60*1000+d.getSeconds()*1000+d.getMilliseconds()};var func_times=new Object();var startTime=getTimeMilli();var iFuncTimeNum=0;var bLoggedJSData=false;var callPixel=function(sEventType,sEventText){var sReferrer="";if(document.referrer){sReferrer=document.referrer+""}var sDelimStart="&__evt=";var pixel=new Image(1,1);pixel.src="/track/pxtrk.gif?cbst="+((new Date()).getTime())+sDelimStart+escape("tp="+sEventType+"|ref="+escape(sReferrer)+"|upt="+BN.core.getUniquePageId()+"|"+sEventText);pixel.onload=function(){}};var jsPixel=function(str){if(bLoggedJSData){return }var src="/assets/images/track-lite/pxllog.gif?ts="+((new Date()).getTime())+"&area="+window.sLogJSPerf+str;var pixel=new Image(1,1);pixel.src=src;pixel.onload=function(){};bLoggedJSData=true};var pixelEvent=function(sErrorType,sName,sDescription,error){if(BN.core.isDev()&&typeof console!=="undefined"&&typeof console.log!=="undefined"){console.log(sName+": "+sDescription)}var sErrorText="";if(error){if(error.number){sErrorText=sErrorText+",errnum:"+error.number}else{if(error.lineNumber){sErrorText=sErrorText+",errnum:"+error.lineNumber}}if(error.description){sErrorText=sErrorText+",errdesc:"+error.description}else{if(error.message){sErrorText=sErrorText+",errdesc:"+error.message}}if(error.fileName){sErrorText=sErrorText+",errfname:"+error.fileName}if(error.name){sErrorText=sErrorText+",errname:"+error.name}if(error.stack){sErrorText=sErrorText+",errstack:"+error.stack}}sDescription=sErrorText===""?sDescription:", "+sDescription;var sEventText="nam="+escape(sName+"")+"|dsc="+escape(sDescription);callPixel(sErrorType,sEventText)};var getBrowser=function(){var browserMost=(/(Firefox|Chrome|Safari|Opera)\/[0-9.]+/i.exec(navigator.userAgent));var ie=(/(MSIE|AOL|Opera) [0-9.]+/i.exec(navigator.userAgent));var browser="unknown";if(browserMost!=null){browser=browserMost[0].toString().replace("/"," ")}else{if(ie!=null){browser=ie[0].toString()}else{browser=navigator.userAgent}}return browser.replace(/[^a-z0-9.]+/ig,"-")};var getJavascriptVersion=function(){var jsver="";
/*@cc_on jsver = @_jscript_version @*/
return jsver};return{getLoggingPerf:function(){if(typeof (window.sLogJSPerf)===undefined){alert(window.sLogJSPerf);return false}else{return true}},debug:function(sName,sDescription){pixelEvent("DP",sName,sDescription)},info:function(sName,sDescription){pixelEvent("IP",sName,sDescription)},warn:function(sName,sDescription,error){pixelEvent("WP",sName,sDescription,error)},error:function(sName,sDescription,error){pixelEvent("EP",sName,sDescription,error)},fatal:function(sName,sDescription,error){pixelEvent("FP",sName,sDescription,error)},track:function(sName,sDescription){pixelEvent("TP",sName,sDescription)},p_start:function(label){if(func_times[label]==null){func_times[label]={label:label,duration:0,start_time:getTimeMilli()-startTime,stop_time:0,calls:0}}else{func_times[label].start_time=getTimeMilli()-startTime;func_times[label].calls++}},p_stop:function(label){var stop=getTimeMilli()-startTime;var foundFunction=false;var ft=func_times;for(k in func_times){if(func_times[k].label==label){func_times[k].stop_time=stop;func_times[k].duration+=(func_times[k].stop_time-func_times[k].start_time);foundFunction=true}}if(label=="everything"&&foundFunction){BN.logger.dump_perf()}},dump_perf:function(){var logstr="&brver="+getBrowser()+"&jsver="+getJavascriptVersion()+"&";var ft=func_times;for(k in func_times){var str=func_times[k].duration.toString()+","+func_times[k].start_time.toString()+","+func_times[k].stop_time.toString()+","+func_times[k].calls.toString();logstr+="&f["+func_times[k].label+"]="+str}jsPixel(logstr)}}}();if(window.sLogJSPerf!=undefined){BN.logger.p_start("everything")}function isValidEmail(A){if(A==""){return false}if(A.indexOf("@")==-1){return false}if(A.indexOf(".")==-1){return false}if(A.indexOf(" ")>-1){return false}if(A.indexOf(",")>-1){return false}if(A.indexOf(";")>-1){return false}return true}function isInteger(B){var A;for(A=0;A<B.length;A++){var C=B.charAt(A);if(((C<"0")||(C>"9"))){return false}}return true}function stripCharsInBag(C,D){var B;var A="";for(B=0;B<C.length;B++){var E=C.charAt(B);if(D.indexOf(E)==-1){A+=E}}return A}function daysInFebruary(A){return(((A%4==0)&&((!(A%100==0))||(A%400==0)))?29:28)}function DaysArray(B){for(var A=1;A<=B;A++){this[A]=31;if(A==4||A==6||A==9||A==11){this[A]=30}if(A==2){this[A]=29}}return this}function isValidDate(J){var K=1900;var F=2100;var D="/";var A=DaysArray(12);var I=J.indexOf(D);var H=J.indexOf(D,I+1);var G=J.substring(0,I);var C=J.substring(I+1,H);var B=J.substring(H+1);if(B.length==2){if(parseInt(B)<=29){B="20"+B}else{B="19"+B}}strYr=B;if(C.charAt(0)=="0"&&C.length>1){C=C.substring(1)}if(G.charAt(0)=="0"&&G.length>1){G=G.substring(1)}for(var E=1;E<=3;E++){if(strYr.charAt(0)=="0"&&strYr.length>1){strYr=strYr.substring(1)}}month=parseInt(G);day=parseInt(C);year=parseInt(strYr);if(I==-1||H==-1){return false}if(G.length<1||month<1||month>12){return false}if(C.length<1||day<1||day>31||(month==2&&day>daysInFebruary(year))||day>A[month]){return false}if(B.length!=4||year==0||year<K||year>F){return false}if(J.indexOf(D,H+1)!=-1||isInteger(stripCharsInBag(J,D))==false){return false}return true}function clearText(A){if(A.defaultValue==A.value){A.value=""}}function restoreText(A){if(A.value==""){A.value=A.defaultValue}}function stripSpaces(A){while(A.substring(0,1)==" "){A=A.substring(1)}while(A.substring(A.length-1,A.length)==" "){A=A.substring(0,A.length-1)}return A}function isChecked(A){if(!A){}var C=-1;var B;for(B=A.length-1;B>-1;B--){if(A[B].checked){C=B;break}}if(C==-1){return false}else{return true}}function getRadioValue(B){if(!B){return null}var A=document.getElementsByName(B);for(var C=0;C<A.length;C++){if(A[C].checked){return A[C].value}}return null}function getQueryString(E){var D;var G="";var F=getObj(E);if(F){D=F.getElementsByTagName("input");for(var I=0;I<=D.length;I++){checkfield=true;try{if(D[I]){if(G.indexOf("&"+D[I].name+"=")!=-1){if(!typeof D[I]=="checkbox"){checkfield=false}}if(D[I].value==""){checkfield=false}if(D[I].name=="email"){checkfield=false}}}catch(B){errorEvent("ajax_tab_build_qs","Validation could not get an object")}if(checkfield){try{if(D[I].type=="radio"){if(D[I].checked==true){G=G+D[I].name+"="+escape(D[I].value)+"&"}}else{if(D[I].type=="checkbox"){if(D[I].checked==true){G=G+D[I].name+"="+escape(D[I].value)+"&"}}else{G=G+D[I].name+"="+escape(D[I].value)+"&"}}}catch(B){errorEvent("ajax_tab_build_qs_2","Validation could not get an object")}}}var D=F.getElementsByTagName("textarea");for(var I=0;I<=D.length;I++){try{G=G+D[I].name+"="+escape(D[I].value)+"&"}catch(B){errorEvent("ajax_tab_build_qs_3","Validation could not get an object")}}var D=F.getElementsByTagName("select");for(var I=0;I<=D.length;I++){try{G=G+D[I].name+"="+escape(D[I].value)+"&"}catch(B){errorEvent("ajax_tab_build_qs_4","Validation could not get an object")}}if(getObj("add_to_qs")){var A=getObj("add_to_qs").value.split("&");var C;var H;for(var I=0;I<=A.length;I++){C=A[I];if(C){if(C.indexOf("=")){strAddToQSnv=C.split("=");if(G.indexOf("&"+strAddToQSnv[0])==-1&&strAddToQSnv[1]!=""){G=G+""+strAddToQSnv[0]+"="+strAddToQSnv[1]+"&"}}}}}}G+="__cache_buster="+(new Date()).getTime()+"&";return G}if(typeof jQuery!="undefined"){$(document).bind("afterReady",function(){$("input[type=text], textarea").bind("keyup",function(D){var A=new RegExp("[^\x00-\xFF]");var C=this.value;var B=C.replace(A,"");if(C!=B){alert("Please complete the form using Latin characters only.");this.value=B;return false}})})}var GlobalPageObj=function(){var B="";var A="";return{setSEOUrl:function(C){GlobalPageObj.strSEOUrl=C},setFileName:function(C){GlobalPageObj.strASPFileName=C},getSEOUrl:function(){return GlobalPageObj.strSEOUrl},getFileName:function(){return GlobalPageObj.strASPFileName}}}();function jsError(){this.desc=null;this.page=null;this.line=null;this.chr=null;this.count=0}jsError.prototype.onError=function(B,A,C,D){if(jsE.count<200){jsE.count++;jsE.desc=B;jsE.page=A;jsE.line=C;jsE.chr=D;sErrorMsg="JavaScript Error - "+B+" - "+A+" - Line "+C+" - Char "+D;errorEvent("js_error_event",sErrorMsg)}return false};var jsE=new jsError;window.onerror=jsE.onError;function XHConn(){this.initXmlHttp=function(){try{B=new ActiveXObject("Msxml2.XMLHTTP")}catch(C){try{B=new ActiveXObject("Microsoft.XMLHTTP")}catch(C){try{B=new XMLHttpRequest()}catch(C){B=false}}}if(!B){this.creationSucceeded=false;return null}};this.abort=function(){B.abort()};this.connect=function(E,D,C,F,H){if(!B){return false}A=false;D=D.toUpperCase();try{if(D=="GET"){if(C!=null&&C.length>0){B.open(D,E+"?"+C,true)}else{B.open(D,E,true)}C=""}else{B.open(D,E,true);B.setRequestHeader("Method","POST "+E+" HTTP/1.1");B.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}B.onreadystatechange=function(){if(B.readyState==4&&!A){A=true;var I=new Array(1);I[0]=B;F.apply(null,I.concat(H))}};B.send(C)}catch(G){return false}return true};var B,A=false;this.creationSucceeded=true;this.initXmlHttp();return this}function IFConn(){this.initIFConn=function(){if(!document.createElement){return null}if(!this.IFrameObj){try{var B=document.createElement("iframe");B.setAttribute("id","RSIFrame");B.setAttribute("name","RSIFrame");B.style.border="0px";B.style.width="0px";B.style.height="0px";this.IFrameObj=document.body.appendChild(B);if(document.frames){this.IFrameObj=document.frames.RSIFrame}}catch(C){iframeHTML='<iframe id="RSIFrame" name="RSIFrame" style="';iframeHTML+="border:0px;";iframeHTML+="width:0px;";iframeHTML+="height:0px;";iframeHTML+='"></iframe>';document.body.innerHTML+=iframeHTML;this.IFrameObj=new Object();this.IFrameObj.document=new Object();this.IFrameObj.document.location=new Object();this.IFrameObj.document.location.iframe=document.getElementById("RSIFrame")}}if(!this.IFrameObj){this.creationSucceeded=false;return null}};this.abort=function(){this.IFrameObj.onload=function(){return true}};this.connect=function(J,I,O,F,H){if(!this.IFrameObj){this.initIFConn()}if(!this.IFrameObj){return false}A=false;I=I.toUpperCase();try{this.IFrameObj.onload=function(){A=true;var P=new Array(1);var Q=new Object();Q.responseText=window.frames.RSIFrame.document.body.innerHTML;Q.status=200;P[0]=Q;F.apply(null,P.concat(H))};if(I=="GET"){if(O!=null&&O.length>0){window.frames.RSIFrame.location.replace(J+"?"+O)}else{window.frames.RSIFrame.location.replace(J)}O=""}else{var G=window.frames.RSIFrame.document.body;var M=O.replace(/\+/g," ");var K=M.split("&");G.innerHTML='<form action="'+J+'" method="POST">';for(var E=0;E<K.length;E++){var N;var D=K[E].split("=");var B=unescape(D[0]);if(D.length==2){N=unescape(D[1])}else{N=B}G.innerHTML+='<input type="text" name="'+B+'" value="'+N+'" />'}G.innerHTML+="</form>";var C=G.firstChild;C.submit()}}catch(L){return false}return true};var A=false;this.creationSucceeded=true;this.IFrameObj=null;return this}dom_utils_loaded=true;function findPosX(A){var B=0;if(A.offsetParent){while(A.offsetParent){B+=A.offsetLeft;A=A.offsetParent}}else{if(A.x){B+=A.x}}return B}function findPosY(B){var A=0;if(B.offsetParent){while(B.offsetParent){A+=B.offsetTop;B=B.offsetParent}}else{if(B.y){A+=B.y}}return A}function findViewScrollX(){var A=0;if(typeof (window.pageYOffset)=="number"){A=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){A=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){A=document.documentElement.scrollLeft}}}return A}function findViewScrollY(){var A=0;if(typeof (window.pageYOffset)=="number"){A=window.pageYOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){A=document.body.scrollTop}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){A=document.documentElement.scrollTop}}}return A}function findViewSizeX(){if(window.innerWidth){return window.innerWidth}else{if(document.all){return document.body.clientWidth}}}function findViewSizeY(){var A=0;if(typeof (window.innerWidth)=="number"){A=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){A=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){A=document.body.clientHeight}}}return A}function disableSelection(A){A.onselectstart=function(){return false};A.unselectable="on";A.style.MozUserSelect="none";A.style.cursor="default"}function getParentAttributeFromObject(B,A){if(B==null){return null}if(B.getAttribute(A)!=null){return B.getAttribute(A)}else{return getParentAttributeFromObject(B.parentNode,A)}}function addEvent(F,E,C,B){if(F.addEventListener&&!window.opera){F.addEventListener(E,C,B);return true}else{if(F.attachEvent){var D=F.attachEvent("on"+E,C);EventCache.add(F,E,C);return D}else{var A=elem["on"+E];if(typeof elem["on"+E]!="function"){F["on"+E]=C}else{F["on"+E]=function(G){A(G);func(G)}}}}}function getEventSrc(A){if(!A){A=window.event}if(A.originalTarget){return A.originalTarget}else{if(A.srcElement){return A.srcElement}}}function getEventTarget(B){if(!B){B=window.event}var A=(B.relatedTarget)?B.relatedTarget:B.toElement;return A}function addLoadEvent(A){var B=window.onload;if(typeof window.onload!="function"){window.onload=A}else{window.onload=function(){B();A()}}}function removeEvent(C,B,A){EventCache.remove(C,B,A)}var EventCache=function(){var A=[];return{listEvents:A,add:function(C,E,D,B){A.push(arguments)},flush:function(){var B,C;for(B=A.length-1;B>=0;B=B-1){C=A[B];if(C[0].removeEventListener){C[0].removeEventListener(C[1],C[2],C[3])}if(C[1].substring(0,2)!="on"){C[1]="on"+C[1]}if(C[0].detachEvent){C[0].detachEvent(C[1],C[2])}C[0][C[1]]=null}},remove:function(D,F,E){var B,C;for(B=A.length-1;B>=0;B=B-1){if(D==A[B][0]&&F==A[B][1]&&E==A[B][2]){C=A[B];if(C[0].removeEventListener){C[0].removeEventListener(C[1],C[2],C[3])}if(C[1].substring(0,2)!="on"){C[1]="on"+C[1]}if(C[0].detachEvent){C[0].detachEvent(C[1],C[0][F+E])}C[0][C[1]]=null}}}}}();function createAndCallMouseEventSimple(B,A){createAndCallMouseEvent(B,A,true,true,window,1,0,0,0,0,false,false,false,false,0,null)}function createAndCallMouseEvent(P,F,I,Q,J,O,A,R,M,L,D,C,K,E,B,G){if(typeof P=="string"){P=document.getElementById(P)}if(document.createEvent){var N=document.createEvent("MouseEvents");N.initMouseEvent(F,I,Q,J,O,A,R,M,L,D,C,K,E,B,G);P.dispatchEvent(N)}else{if(document.createEventObject){var H=document.createEventObject();H.srcElement=P;H.originalTarget=P;if(F=="click"){P.fireEvent(F,H)}else{P.fireEvent("on"+F,H)}}else{return }}}function cancelBubble(B){try{if(!B){var B=window.event}if(B){B.cancelBubble=true;if(B.stopPropagation){B.stopPropagation()}}}catch(A){alert(A)}}if(!window.opera){addEvent(window,"unload",EventCache.flush,false)}$(document).bind("afterReady",function(){if($("#chat-button-header").length>0){showChatButton("customerservice@workgroup."+$("#bn_page_data").attr("data-chat-host-name"),$("#bn_page_data").attr("data-chat-server-name"))}});var chat_windows=new Array();function chatWindowExists(A){for(var C=0;C<chat_windows.length;C++){try{if(chat_windows[C].name==A){return true}}catch(B){}}return false}function getChatWindow(A){for(var C=0;C<chat_windows.length;C++){try{if(chat_windows[C].name==A){return chat_windows[C]}}catch(B){}}}function launchChatWin(D,C,F,A){var B="location=no,status=no,toolbar=no,personalbar=no,menubar=no,directories=no,";var G=(screen.width-F)/2;var E=(screen.height-A)/2;B+="scrollbars=no,resizable=yes,top="+E+",left="+G+",";B+="width="+F+",height="+A;launchChatWinWithOptions(D,C,B)}function launchChatWinWithOptions(D,C,B){if(!chatWindowExists(D)){var E=window.open(C,D,B);chat_windows[chat_windows.length]=E;return E}else{var A=getChatWindow(D);A.focus()}}function showChatButton(B,C){var D=new Image();D.onload=function(){var E="http://"+C+"/start.jsp?workgroup="+B+"&location="+window.location.href;var F=$("#chat-button-header");if((D!==undefined)&&(D.width>34)||(D.height>14)){F.html("<a href=\"#\" onclick=\"launchChatWin('framemain','"+E+'\',500, 400);return false;" class="main-nav-chat-link"><img src="/assets/chrome/but/bn_chat_20x20.gif" width="20" height="20"/>&nbsp;Live Chat</a><span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>')}};var A=Math.floor((new Date()).getTime()/(5*1000*60));D.src="http://"+C+"/live?action=isAvailable&workgroup="+B+"&__cache_buster="+A}function getChatLink(B,A,D){var F=new Date();var G=F.getSeconds()+""+F.getDay();var C="http://"+D+"/start.jsp?workgroup="+A+"&location="+window.location.href;var E=new Image();E.src="http://"+D+"/live?action=isAvailable&workgroup="+A;if((E.width>1)&&(E.height>1)){return"<a href=\"#\" onclick=\"launchChatWin('framemain','"+C+"',500, 400);return false;\">"+B+"</a>"}else{return""}}function storeJavaScriptInfo(){var B=areCookiesEnabled();var C="";var A="sitetrack";if(areCookiesEnabled()){C=getCookie("jse",A);if(C==""||C=="0"){setCookie("jse","1","",A,getCurrentDomain());var D=getCookie("sid",A);infoEvent(A,"sid="+D+"&jse=1")}}else{}}if(typeof jQuery!="undefined"){$(document).ready(function(){try{storeJavaScriptInfo()}catch(A){BN.logger.error("JAVASCRIPT_ENABLED_CHECK","Error loading js: "+A)}})}objCurrTab="";var strFlyoutMain;FlyoutMain=function(){var A={"span.flyout_tab_flyout":function(B){B.onmouseover=function(){try{objCurrTab=this;return delay_action("open")}catch(C){}};B.onmouseout=function(){try{return delay_action("close")}catch(C){}};B.onclick=function(){try{follow_link(B)}catch(C){}}},"div.flyout_menu":function(B){B.onmouseover=function(){try{return delay_action("on_flyout")}catch(C){}};B.onmouseout=function(C){if(!C){C=window.event}try{if(isMouseLeaveOrEnter(C,this)){delay_action("close")}}catch(D){}}}};return{FlyoutRules:function(){Behaviour.register(A)}}}();isClosing=false;function delay_action(A){if(A=="open"){close_dropdowns();isClosing=false;show_dropdown(objCurrTab)}else{if(A=="on_flyout"){isClosing=false;show_dropdown(objCurrTab)}else{isClosing=true;setTimeout("close_dropdowns(); isClosing=false;",250)}}}function isShimOn(){if(IsIE()){if(IsIE7()){return false}else{return true}}return false}function IsIE7(){agent=navigator.userAgent;agent.toUpperCase();return(agent.indexOf("MSIE 7.")!=-1)}function IsIE(){return(navigator.appName=="Microsoft Internet Explorer")}function remove_iframe_shim(B){var C;C=document.getElementById(B);if(!isShimOn()){return }for(var A=1;A<=6;A++){objNode=getObj("iframe_shim_menu"+A);if(objNode){objNode.style.display="none"}}}function add_iframe_shim(A){var C=getObj(A);if(!isShimOn()){return }objNode=getObj("iframe_shim_"+A);try{if(objNode&&C){blnUpdateShim=false;if(objNode.style.left!=C.offsetLeft+"px"){blnUpdateShim=true}if(objNode.style.top!=C.offsetTop+"px"){blnUpdateShim=true}objNode.style.display="block";if(blnUpdateShim){C.style.display="block";objNode.style.left=C.offsetLeft+"px";objNode.style.top=C.offsetTop+"px";objNode.style.width=C.offsetWidth+"px";objNode.style.height=C.offsetHeight+"px";C.style.zIndex=10000;objNode.style.zIndex=9500}return }}catch(B){errorEvent("navigation_flyouts_shim_add","Error adding shim in navigation flyouts")}return }function preload_shim(){if(!isShimOn()){return }align_dropdown();for(var A=1;A<=6;A++){add_iframe_shim("menu"+A);objNode=getObj("iframe_shim_menu"+A);if(objNode){objNode.style.display="none"}}}function preload_align(){for(var A=1;A<=6;A++){align_dropdown(A)}}function close_dropdowns(){if(isClosing){for(var A=1;A<=6;A++){obj1=getObj("nav"+A);obj2=getObj("menu"+A);if(obj1&&obj2){remove_iframe_shim(obj2.id);obj1.className=obj1.className.replace("_hover","_off");obj2.style.display="none"}}}isClosing=false;return false}function align_dropdown(A){var E=getObj("nav"+A);var D=getObj("menu"+A);var B=getObj("topnav");var C=30;if(A>5){B=getObj("action-nav");C=20}if(E&&D&&B){if(parseInt(D.style.left)!=parseInt(findPosX(E))){D.style.display="block";D.style.left=findPosX(E)+"px";D.style.display="none"}if(parseInt(D.style.top)!=parseInt(findPosY(E))){D.style.display="block";D.style.top=findPosY(B)+C+"px";D.style.display="none"}}}function show_dropdown(A){objCurrTab=A;if(A){strTab=A.id+"";intNum=parseInt(strTab.replace("nav",""));strMenu=strTab.replace("nav","menu");strId=strTab.replace("nav","");align_dropdown(strId);objMenu=getObj(strMenu);if(objMenu){add_iframe_shim(objMenu.id);objMenu.style.display="block";var B=A.className;blnIsImageOn=B.match("_on");bg="/assets/images/shell/shell_v3_tab_topline.gif";if(blnIsImageOn==null){}else{}}if(blnIsImageOn==null){obj1.className=obj1.className.replace("_off","_hover")}}return false}function isMouseLeaveOrEnter(C,B){if(C){if(C.type!="mouseout"&&C.type!="mouseover"){return false}var A=C.relatedTarget?C.relatedTarget:C.type=="mouseout"?C.toElement:C.fromElement;while(A&&A!=B){A=A.parentNode}return(A!=B)}}function follow_link(A){var B=getObj(A.id+"_link");if(B){document.location.href=B.getAttribute("href")}return false}FlyoutMain.FlyoutRules();function showAccountMenu(A){$(A).addClass("hovered")}function hideAccountMenu(A){$(A).removeClass("hovered")};