
(function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&/6.0/.test(navigator.userAgent)){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n;},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+'style="display:block;position:absolute;z-index:-1;'+(s.opacity!==false?'filter:Alpha(Opacity=\'0\');':'')+'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+'"/>';return this.each(function(){if($('> iframe.bgiframe',this).length==0)this.insertBefore(document.createElement(html),this.firstChild);});}return this;};})(jQuery);
;

jQuery.autocomplete=function(input,options){var me=this;var $input=$(input).attr("autocomplete","off");if(options.inputClass){$input.addClass(options.inputClass);}
var isCreatedDivResult=false;var $results;var results;function resultDiv(){if(!isCreatedDivResult){results=document.createElement("div");$results=$(results).hide().addClass(options.resultsClass).css("position","absolute");if(options.width>0){$results.css("width",options.width);}
$("body").append(results);isCreatedDivResult=true;}
return $results;};input.autocompleter=me;var timeout=null;var prev="";var active=-1;var cache={};var keyb=false;var hasFocus=false;var lastKeyPressCode=null;var mouseDownOnSelect=false;var hidingResults=false;function flushCache(){cache={};cache.data={};cache.length=0;};flushCache();$input.keydown(function(e){lastKeyPressCode=e.keyCode;switch(e.keyCode){case 38:e.preventDefault();moveSelect(-1);break;case 40:e.preventDefault();moveSelect(1);break;case 9:case 13:if(selectCurrent()){$input.get(0).blur();e.preventDefault();}
break;default:active=-1;if(timeout)clearTimeout(timeout);timeout=setTimeout(function(){onChange();},options.delay);break;}}).focus(function(){hasFocus=true;}).blur(function(){hasFocus=false;if(isCreatedDivResult){if(!mouseDownOnSelect){hideResults();}}});function onChange(){if(lastKeyPressCode==46||(lastKeyPressCode>8&&lastKeyPressCode<32)){if(isCreatedDivResult){return $(resultDiv()).hide();}else{return false;}}
var v=$input.val();if(v==prev)return;prev=v;if(v.length>=options.minChars){$input.addClass(options.loadingClass);requestData(v);}else{$input.removeClass(options.loadingClass);if(isCreatedDivResult){$(resultDiv()).hide();}}
try
{var li=$("li.ac_over",results)[0];if(!li){var $li=$("li",results);if(options.selectOnly){if($li.length==1)li=$li[0];}else if(options.selectFirst){li=$li[0];}
options.onItemSelect(li);}}
catch(e)
{}
if(options.onTextChange){setTimeout(function(){options.onTextChange(v)},1);}};function moveSelect(step){var lis=$("li",results);if(!lis)return;active+=step;if(active<0){active=0;}else if(active>=lis.size()){active=lis.size()-1;}
lis.removeClass("ac_over");$(lis[active]).addClass("ac_over");};function selectCurrent(){if(isCreatedDivResult){var li=$("li.ac_over",results)[0];if(!li){var $li=$("li",results);if(options.selectOnly){if($li.length==1)li=$li[0];}else if(options.selectFirst){li=$li[0];}}
if(li){selectItem(li);return true;}else{return false;}}};function selectItem(li){if(!li){li=document.createElement("li");li.extra=[];li.selectValue="";}
var v=$.trim(li.selectValue?li.selectValue:li.innerHTML);input.lastSelected=v;prev=v;if(isCreatedDivResult){$(resultDiv()).html("");}
$input.val(v);hideResultsNow();if(options.onItemSelect){setTimeout(function(){options.onItemSelect(li)},1);}};function createSelection(start,end){var field=$input.get(0);if(field.createTextRange){var selRange=field.createTextRange();selRange.collapse(true);selRange.moveStart("character",start);selRange.moveEnd("character",end);selRange.select();}else if(field.setSelectionRange){field.setSelectionRange(start,end);}else{if(field.selectionStart){field.selectionStart=start;field.selectionEnd=end;}}
field.focus();};function autoFill(sValue){if(lastKeyPressCode!=8){$input.val($input.val()+sValue.substring(prev.length));if(prev.length==sValue.length||prev.length>sValue.length)
{}else createSelection(prev.length,sValue.length);try
{var li=$("li.ac_over",results)[0];if(!li){var $li=$("li",results);if(options.selectOnly){if($li.length==1)li=$li[0];}else if(options.selectFirst){li=$li[0];}
options.onItemSelect(li);}}
catch(e)
{}}};function showResults(){var pos=findPos(input);var iWidth=(options.width>0)?options.width:$input.width();$(resultDiv()).css({width:parseInt(iWidth)+"px",top:(pos.y+input.offsetHeight)+"px",left:pos.x+"px"}).show();};function hideResults(){if(timeout)clearTimeout(timeout);timeout=setTimeout(hideResultsNow,200);};function hideResultsNow(){if(hidingResults){return;}
hidingResults=true;if(timeout){clearTimeout(timeout);}
var v=$input.removeClass(options.loadingClass).val();if(isCreatedDivResult){if($(resultDiv()).is(":visible")){$(resultDiv()).hide();}}
if(options.mustMatch){if(!input.lastSelected||input.lastSelected!=v){selectItem(null);}}
hidingResults=false;};function receiveData(q,wsdata){if(wsdata){var data=wsdata;$input.removeClass(options.loadingClass);if(isCreatedDivResult){results.innerHTML="";}
if(!hasFocus||data.length==0)return hideResultsNow();$(resultDiv()).bgiframe();results.appendChild(dataToDom(data));if(options.autoFill&&($input.val().toLowerCase()==q.toLowerCase()))autoFill(data[0].Text);showResults();}else{if(options.onNoResults){setTimeout(function(){options.onNoResults()},1);}
hideResultsNow();}};function dataToDom(wsData){var ul=document.createElement("ul");var data=wsData;var num=data.length;if((options.maxItemsToShow>0)&&(options.maxItemsToShow+1<num))num=options.maxItemsToShow;for(var i=0;i<num;i++){var row=data[i];if(!row)continue;var li=document.createElement("li");if(options.formatItem){li.innerHTML=options.formatItem(row,i,num);li.selectValue=row.Text;}else{li.innerHTML=row.Text;li.selectValue=row.Text;}
if(options.setData){li.Data=row.Value;}
ul.appendChild(li);$(li).hover(function(){$("li",ul).removeClass("ac_over");$(this).addClass("ac_over");active=$("li",ul).indexOf($(this).get(0));},function(){$(this).removeClass("ac_over");}).click(function(e){e.preventDefault();e.stopPropagation();selectItem(this)});}
if(wsData.TooManyData){var li=document.createElement("li");if(options.maxItemMessage){li.innerHTML="("+options.maxItemMessage+" "+num+")";}
else if(options.tooManyDataMessage)
{var msgTooManyResults=options.tooManyDataMessage;li.innerHTML=msgTooManyResults.replace("{count}",num);}
else
{li.innerHTML="... more than "+num+" ...";}
ul.appendChild(li);}
$(ul).mousedown(function(){mouseDownOnSelect=true;}).mouseup(function(){mouseDownOnSelect=false;});return ul;};function requestData(q){if(!options.matchCase)q=q.toLowerCase();var data=options.cacheLength?loadFromCache(q):null;if(data){receiveData(q,data);}else if(typeof(options.jFunction)=='function'){options.jFunction(q,function(result,adapter,methodName){addToCache(q,result.Locations);receiveData(q,result.Locations);if(options.noDataHandler){options.noDataHandler()}},function(result){});}else{$input.removeClass(options.loadingClass);}};this.getCache=function()
{return cache.data;};function loadFromCache(q){if(!q)return null;if(cache.data[q])return cache.data[q];if(options.matchSubset){for(var i=q.length-1;i>=options.minChars;i--){var qs=q.substr(0,i);var c=cache.data[qs];if(c&&c.Items){var csub=[];var tmpObj={};var data=c.Items;tmpObj.TooManyData=false;for(var j=0;j<data.length;j++){var x=data[j].Text;if(matchSubset(x,q)){csub[csub.length]=data[j];}}
tmpObj.Items=csub;return tmpObj;}}}
return null;};function matchSubset(s,sub){if(!options.matchCase)s=s.toLowerCase();var i=s.indexOf(sub);if(i==-1)return false;return i==0||options.matchContains;};this.flushCache=function(){flushCache();};this.findFirstValue=function()
{try
{var li=$("li.ac_over",results)[0];if(!li){var $li=$("li",results);if($li.length>=1)li=$li[0];}
return li;}
catch(e)
{}};this.findValue=function(){var q=$input.val();if(!options.matchCase)q=q.toLowerCase();var data=options.cacheLength?loadFromCache(q):null;if(data){findValueCallback(q,data);}
else if(typeof(options.jFunction)=='function'){options.jFunction(q,function(result){if(!result){addToCache(q,result.Result);receiveData(q,result.Result)}},function(result){alert("Error");});}else{findValueCallback(q,null);}}
function findValueCallback(q,data){if(data)$input.removeClass(options.loadingClass);var num=(data)?data.length:0;var li=null;for(var i=0;i<num;i++){var row=data[i];if(row.Text.toLowerCase()==q.toLowerCase()){li=document.createElement("li");if(options.formatItem){li.innerHTML=options.formatItem(row,i,num);li.selectValue=row.Text;}else{li.innerHTML=row.Text;li.selectValue=row.Text;}}}
if(options.onFindValue)setTimeout(function(){options.onFindValue(li)},1);}
function addToCache(q,wsdata){if(!wsdata||!q||!options.cacheLength)return;var data=wsdata;if(wsdata.TooManyData||!data)return;if((options.maxItemsToShow>-1)&&(data.length<options.maxItemsToShow+1)){if(!cache.length||cache.length>options.cacheLength){flushCache();cache.length++;}else if(!cache[q]){cache.length++;}
cache.data[q]=wsdata;}};function findPos(obj){var curleft=obj.offsetLeft||0;var curtop=obj.offsetTop||0;while(obj=obj.offsetParent){curleft+=obj.offsetLeft
curtop+=obj.offsetTop}
return{x:curleft,y:curtop};}}
jQuery.fn.autocomplete=function(Fce,options,data){options=options||{};options.jFunction=Fce;options.data=((typeof data=="object")&&(data.constructor==Array))?data:null;options=$.extend({inputClass:"ac_input",resultsClass:"ac_results",minChars:3,delay:10,matchCase:false,matchSubset:1,matchContains:1,cacheLength:10,mustMatch:0,loadingClass:"ac_loading",selectFirst:false,selectOnly:false,maxItemsToShow:100,autoFill:false,width:0},options);options.width=parseInt(options.width,10);this.each(function(){var input=this;new jQuery.autocomplete(input,options);});return this;}
jQuery.fn.autocompleteArray=function(data,options){return this.autocomplete(null,options,data);}
jQuery.fn.indexOf=function(e){for(var i=0;i<this.length;i++){if(this[i]==e)return i;}
return-1;};
;

Type.registerNamespace('Monster.Client.Behavior');Monster.Client.Behavior.ReduxRightNowAdapter=function(element)
{Monster.Client.Behavior.ReduxRightNowAdapter.initializeBase(this,[element]);this.createProperty("helptype");this.createProperty("answerid");this.createProperty("categoryid");this.createProperty("readmorelabel");this.createProperty("readmoreurl");this.createProperty("showreadmore");this.createProperty("readmorelink");this.createProperty("globalurl");this.createProperty("ds1");this.createProperty("ds2");this.createProperty("ds3");this.createProperty("isMessage");this.createProperty("messageContent");this.createProperty("rightNowActive");this.createProperty("triggerElement");this.helpDiv=null;this.helpClose=null;this.helpContent=null;this.closeanimation=null;this.closeanimation2=null;this.internalid=null;}
Monster.Client.Behavior.ReduxRightNowAdapter.prototype={initialize:function(){Monster.Client.Behavior.ReduxRightNowAdapter.callBaseMethod(this,'initialize');this.initAllOnDemand();if(this._pageManager.CFVersion==1){var that=this
this.triggerEl.click(function(e){that.openHelp(this,e,that);})}},initAllOnDemand:function(){this.internalid=Math.random();if(typeof this.triggerElement!=='undefined'&&this.triggerElement!=null){var trigger=document.getElementById(this.triggerElement);this.triggerEl=$(trigger);}else{if(this.helptype=='Icon'){this.triggerEl=$(this._element).find(':img');}else{this.triggerEl=$(this._element).find(':a');}}},openHelp:function(element,event,context){var self=this;var opentype;switch(this.helptype){case"Icon":opentype=0;break;case"Hyperlink":opentype=0;break;case"GlobalHelp":opentype=1;break;case"ContactUs":opentype=1;break;}
if(opentype==0&&Boolean.parse(this.rightNowActive)){if(this.helpDiv===null){this.createPopUp();var pos=this.positionHelp();this.helpDiv.animate({"height":"18px"},100);this.helpDiv.animate(pos.a1,100);this.helpDiv.animate(pos.a2,400,function(){self.getAnswer();setTimeout(function(){self.checkForSlideUp()},180);});}else{var pos=this.positionHelp();self.helpContent.hide()
this.helpDiv.animate({"height":"18px"},100);this.helpDiv.animate(pos.a1,100);this.helpDiv.animate(pos.a2,400,function(){self.helpClose.show();self.readmorelink.show();self.helpDiv.css('height','auto');self.helpContent.show();setTimeout(function(){self.checkForSlideUp()},180);});}}else{this.openExternalHelp(this.globalurl);}
if((jQuery.browser.msie)&&(parseInt(jQuery.browser.version.slice(0,1))<=6)){this.helpDiv.bgiframe();}},createPopUp:function()
{var self=this;this.helpDiv=helpDiv=$("<div></div>").addClass("reduxHelpPopup");this.helpClose=$("<div class='close-icon'></div>").click(function(){self.closeHelp();});helpDiv.append(this.helpClose);this.helpContent=$("<div style='padding:10px;'/>").addClass("helpContents");helpDiv.append(this.helpContent);this.readmorelink=$("<a class='readMore' href='#'>"+this.readmorelabel+"</a>").click(function(e){var winhelp=window.open(self.readmoreurl,'help','width=700,height=820,scrollbars,resizable');e.preventDefault();});this.readmorelink.hide();if(this.showreadmore=="true")
{this.helpDiv.append(this.readmorelink);}
$('body').append(helpDiv);},openExternalHelp:function(url)
{if(typeof url!=="undefined"){var winhelp=window.open(url,'help','width=700,height=820,scrollbars,resizable');if(!winhelp){alertPopUpBlockerDetected();}else{winhelp.focus();}
if(((this.helptype='GlobalHelp')||(this.helptype='ContactUs'))&&(this.ds1!==null)){try{if(this.ds3==null){dcsMultiTrack('DCS.dcsuri',this.ds1,'DCSext.en',this.ds2);}else{dcsMultiTrack('DCS.dcsuri',this.ds1,'DCSext.en',this.ds2,'DCSext.engine',this.ds3);}}catch(e){}}}},closeHelp:function()
{var self=this;this.helpClose.hide();this.readmorelink.hide();var helpDiv=this.helpDiv;if(this.closeanimation2!=null)
{helpDiv.animate(this.closeanimation2,100);}
helpDiv.animate({"height":"18px"},300);helpDiv.animate(this.closeanimation,200,function(){self.helpDiv.hide();});},checkForSlideUp:function()
{var h=$(window).height();var diff=((this.helpDiv.offset().top+this.helpDiv.height())-(h)-$(window).scrollTop())
if(diff>0)
{diff+=4;var amount="-="+diff+"px";var closeamount="+="+diff+"px";this.helpDiv.animate({"top":amount},300);this.closeanimation2={"top":closeamount};}},positionHelp:function()
{var animation1;var animation2;var closeanimation;var elOffset=this.triggerEl.offset();ptop=parseInt(elOffset.top);pleft=parseInt(elOffset.left);var ew=this.triggerEl.width();var w=$(window).width();var h=$(window).height();if((pleft+300-$(window).scrollLeft())<w)
{if((ptop-20-$(window).scrollTop())>0)
{animation1={"top":"-=20px","left":"+=20px"}
animation2={"width":"280px"};closeanimation={"width":"2px","height":"2px","top":"+=20px","left":"-=20px"};}
else
{animation1={"top":"+=20px","left":"+=20px"};animation2={"width":"280px"};closeanimation={"width":"2px","height":"2px","top":"-=20px","left":"-=20px"};}}
else
{if((ptop-20-$(window).scrollTop())>0)
{animation1={"top":"-=20px","left":"-=20px"}
animation2={"width":"280px","left":"-=260px"};closeanimation={"width":"2px","height":"2px","top":"+=20px","left":"+=300px"};}
else
{animation1={"top":"+=20px","left":"-=20px"};animation2={"width":"280px","left":"-=260px"};closeanimation={"width":"2px","height":"2px","top":"-=20px","left":"+=300px"};}}
this.helpDiv.css({"top":ptop,"left":pleft,"height":"2px"})
this.closeanimation=closeanimation;return{"a1":animation1,"a2":animation2}},getAnswer:function()
{var self=this;if(this.isMessage.toLowerCase()=="true")
{var result=[];result[0]=this.answerid;result[1]=this.messageContent;this.GetAnswerSucceededCallback(result);}
else
{var success=this.createCallback(self,self.GetAnswerSucceededCallback);var fail=this.createCallback(self,self.GetAnswerFailCallback);Services.KnowledgeBase.RightNow.GetAnswer(self.answerid,self.categoryid,"x",success,fail);}},createCallback:function(callbackObject,callbackFunction)
{return function()
{callbackFunction.apply(callbackObject,arguments);};},GetAnswerFailCallback:function(result)
{this.helpContent.html("Error Loading RightNow Answer.");},GetAnswerSucceededCallback:function(result)
{this.helpClose.show();this.readmorelink.show();this.helpDiv.css('height','auto');if(result!=null)
{try
{this.helpContent.html(result[1]);}
catch(ex)
{this.helpContent.html("Error Loading RightNow Answer.");}}},dispose:function()
{if(this.helpClose!=null)
{this.helpClose.unbind('click');}
if(this.triggerEl&&this.rightNowActive.toLowerCase()=="true")
{this.triggerEl.unbind('click')}
Monster.Client.Behavior.ReduxRightNowAdapter.callBaseMethod(this,'dispose');}}
Monster.Client.Behavior.ReduxRightNowAdapter.registerClass('Monster.Client.Behavior.ReduxRightNowAdapter',Monster.Client.Behavior.DataAdapterBase);if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();
;

Type.registerNamespace('Monster.Client.Behavior');Monster.Client.Behavior.MiniCartAdapter=function(element)
{Monster.Client.Behavior.MiniCartAdapter.initializeBase(this,[element]);this.createProperty('_headerTotalPrice');this.createProperty('_bodyTotalPrice');this.createProperty('_bodyTable');this.createProperty('_diversityMessage');this.createProperty('_boldingMessage');this.createProperty('_autoRefreshMessage');this.miniCartOpenLink=$get("miniCartOpen",element);this.miniCartCloseLink=$get("miniCartClose",element);this.miniCartBody=$get("miniCartBody",element);this._miniCartHeight=0;this._miniCartWidth=0;this._clipTop=0;this._animInterval=null;}
Monster.Client.Behavior.MiniCartAdapter.prototype={initialize:function(){Monster.Client.Behavior.MiniCartAdapter.callBaseMethod(this,'initialize');if(!MonsPageManager.enableInitOnDemand){this.initOnDemand();}
else{MonsPageManager.registerInitState(this._id,false,null);}
if(this._pageManager.CFVersion==1){this.registerDataProperty('MiniCartData');}
var cartBounds=Sys.UI.DomElement.getBounds(this.miniCartBody);this._miniCartHeight=this._clipTop=cartBounds.height;this._miniCartWidth=cartBounds.width;},initOnDemand:function(){},initHandlers:function(element,event,context){},dispose:function(){},onDataStoreEvent:function(sender,args){switch(args.get_propertyName()){case'MiniCartData':var data=this._dataStore.get_property("MiniCartData");this._headerTotalPrice.innerHTML=data.shortPrice;this._bodyTotalPrice.innerHTML=data.price;var rowCount=this._bodyTable.rows.length;for(var i=0;i<data.items.length;++i){var item,row;var isNewRow=false;if(i+1<rowCount)
{item=data.items[i];row=this._bodyTable.rows[i+1];}
else
{item=data.items[i];row=this._bodyTable.rows[i].cloneNode(true);isNewRow=true;}
var descriptionBuilder=new Sys.StringBuilder();descriptionBuilder.append(item.Description);descriptionBuilder.append('<div style="margin-left: 20px;">');if(item.IsBolding){descriptionBuilder.append(this._boldingMessage);}
else if(item.IsDiversity){descriptionBuilder.append(this._diversityMessage);}
else if(item.IsAutoRefresh){descriptionBuilder.append(this._autoRefreshMessage);}
row.cells[0].innerHTML+='</span>';row.cells[0].innerHTML=descriptionBuilder.toString();row.cells[1].innerHTML=item.ItemType;row.cells[2].innerHTML=item.Quantity;row.cells[3].innerHTML=item.UnitPrice;row.cells[4].innerHTML=item.ItemPrice;if(isNewRow)
{this._bodyTable.appendChild(row);}}
while(rowCount>data.items.length+1){this._bodyTable.deleteRow(--rowCount);}
var hasItems=(this._bodyTable.rows.length>0);if(hasItems)
{$(this._bodyTable).show();var checkoutLink=$(this._element).find(".minicart-link-checkout").show();}
else
{$(this._bodyTable).hide();var checkoutLink=$(this._element).find(".minicart-link-checkout").hide();}
break;default:break;}},ShowCart:function(object,event,args){event.preventDefault();var hasItems=(this._bodyTable&&this._bodyTable.style.display!="none");if(hasItems)
{var miniCart=$(this.miniCartBody);if(miniCart.is(":hidden"))
{miniCart.slideDown("slow");}}
cartViewClicked();},HideCart:function(object,event,args){event.preventDefault();var miniCart=$(this.miniCartBody);if(!miniCart.is(":hidden")){miniCart.slideUp("slow");}}}
Monster.Client.Behavior.MiniCartAdapter.registerClass('Monster.Client.Behavior.MiniCartAdapter',Monster.Client.Behavior.DataAdapterBase);if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();
;

Type.registerNamespace('Monster.Client.Behavior');Monster.Client.Behavior.NavBarAdapter=function(element){Monster.Client.Behavior.NavBarAdapter.initializeBase(this,[element]);var _isWidthSet=false;}
Monster.Client.Behavior.NavBarAdapter.prototype={initialize:function(){Monster.Client.Behavior.NavBarAdapter.callBaseMethod(this,'initialize');this._webService=Monster.EBiz.Web.Services.MCF.WebTrendsPublisher;var that=this;var navbar=$(this.get_element());navbar.find("a").each(function(i,anchor){$addHandlers(anchor,{click:that.handleMenuItemSelection},that);});navbar.find("li.navbar-top-level").each(function(i,li){$addHandlers(li,{mouseover:that.handleTopLevelMenuHover},that);});navbar.find(".navbar-dd-last a").each(function(i,anchor){$addHandlers(anchor,{mouseover:that.handleLastMenuItem},that);});},onSuccess:function(result,context,methodName){switch(methodName){case"PublishSiteMap":break;default:break;}},onFailure:function(result,context,methodName){},handleMenuItemSelection:function(evt){this.triggerWebTrendsBeacon(evt);},handleTopLevelMenuHover:function(evt){if(!this._isWidthSet){this.setDropdownWidth();this._isWidthSet=true;}},handleLastMenuItem:function(evt){var bot=$(evt.target).closest("ul").find(".navbar-dd-bot");bot.addClass("on");$(evt.target).bind("mouseout",function(e){bot.removeClass("on");});},setDropdownWidth:function(){var dropdownMenu;var liWidth,ulWidth,newWidth,newWidthBot;$(".header-region .navbar ul:first li").each(function(i,li){if($(li).hasClass("navbar-top-level")){dropdownMenu=$(li).find("ul");dropdownMenu.css("visibility","hidden").css("display","block");liWidth=$(li).width();ulWidth=dropdownMenu.width();if(!isNaN(liWidth)&&!isNaN(ulWidth)){newWidth=(ulWidth>liWidth)?ulWidth:liWidth;newWidthBot=newWidth-20;dropdownMenu.find("li").css("width",newWidth);dropdownMenu.find(".navbar-dd-bot-mid").css("width",newWidthBot);}
dropdownMenu.css("display","").css("visibility","");}});},triggerWebTrendsBeacon:function(evt){var topNavID,subNavID;var elemID=evt.target.id;if(elemID.indexOf("wtvN")>-1){topNavID=elemID.substr(3);subNavID="";}else if(elemID.indexOf("wtvS")>-1){var topNav=$("#"+elemID).closest("ul").prev().get(0);if(typeof topNav!=="undefined"){topNavID=topNav.id.substr(3);subNavID=elemID.substr(3);}else{topNavID="";subNavID=elemID.substr(3);}}else if(elemID.indexOf("wtv")>-1){if($(evt.target).hasClass("navbar-top-level-link")){topNavID=elemID.substr(3);subNavID="";}else{topNavID="";subNavID=elemID.substr(3);}}else{return false;}
this.callServer("PublishSiteMap",[topNavID,subNavID,location.href]);}}
Monster.Client.Behavior.NavBarAdapter.registerClass('Monster.Client.Behavior.NavBarAdapter',Monster.Client.Behavior.DataAdapterBase);if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();
;

Type.registerNamespace('Ajax.Logging');Ajax.Logging.BaseTraceListener=function(lineSeparator){this._lineSeparator='\n';if(lineSeparator){this._lineSeparator=lineSeparator;}}
Ajax.Logging.BaseTraceListener.prototype={get_lineSeparator:function(){if(arguments.length!==0)throw Error.parameterCount();return this._lineSeparator;},dispose:function(){},publishException:function(errorCode,exception,environmentInfo){throw Error.notImplemented();},formatException:function(errorCode,exception){var lineSeparator=this.get_lineSeparator();var errorInfo=new Sys.StringBuilder();errorInfo.append('Error Code: '+errorCode.toString()+lineSeparator);if(typeof exception.get_exceptionType!='undefined'){errorInfo.append('Message: '+exception.get_message()+lineSeparator+'Type: '+exception.get_exceptionType()+lineSeparator+'StackTrace: '+exception.get_stackTrace());}
else{errorInfo.append('Message: '+exception.message+lineSeparator+'Type: '+exception.name+lineSeparator+'Description: '+exception.description);if(typeof exception.httpStatusCode!='undefined'){errorInfo.append(lineSeparator+'HttpStatusCode: '+exception.httpStatusCode);}
if(typeof exception.lineNumber!='undefined'){errorInfo.append(lineSeparator+'LineNumber: '+exception.lineNumber);}
if(typeof exception.url!='undefined'){errorInfo.append(lineSeparator+'Url: '+exception.url);}}
return errorInfo.toString();}}
Ajax.Logging.BaseTraceListener.registerClass('Ajax.Logging.BaseTraceListener',null,Sys.IDisposable);Ajax.Logging.SysDebugTraceListener=function(lineSeparator){Ajax.Logging.SysDebugTraceListener.initializeBase(this,[lineSeparator]);}
Ajax.Logging.SysDebugTraceListener.prototype={dispose:function(){Ajax.Logging.SysDebugTraceListener.callBaseMethod(this,'dispose');},publishException:function(errorCode,exception,environmentInfo){var errorInfo=Ajax.Logging.SysDebugTraceListener.callBaseMethod(this,'formatException',[errorCode,exception]);Sys.Debug.traceDump(errorInfo);}}
Ajax.Logging.SysDebugTraceListener.registerClass('Ajax.Logging.SysDebugTraceListener',Ajax.Logging.BaseTraceListener);Ajax.Logging.AlertTraceListener=function(lineSeparator){Ajax.Logging.AlertTraceListener.initializeBase(this,[lineSeparator]);}
Ajax.Logging.AlertTraceListener.prototype={dispose:function(){Ajax.Logging.AlertTraceListener.callBaseMethod(this,'dispose');},publishException:function(errorCode,exception,environmentInfo){var errorInfo=Ajax.Logging.AlertTraceListener.callBaseMethod(this,'formatException',[errorCode,exception]);alert(errorInfo);}}
Ajax.Logging.AlertTraceListener.registerClass('Ajax.Logging.AlertTraceListener',Ajax.Logging.BaseTraceListener);Ajax.Logging.DivTraceListener=function(lineSeparator,targetElement){if(typeof targetElement=='string'){this._element=$get(targetElement);}
else{this._element=targetElement;}
Ajax.Logging.DivTraceListener.initializeBase(this,[lineSeparator]);}
Ajax.Logging.DivTraceListener.prototype={dispose:function(){this._element=null;Ajax.Logging.DivTraceListener.callBaseMethod(this,'dispose');},publishException:function(errorCode,exception,environmentInfo){var errorInfo=Ajax.Logging.DivTraceListener.callBaseMethod(this,'formatException',[errorCode,exception]);var lineSeparator=Ajax.Logging.DivTraceListener.callBaseMethod(this,'get_lineSeparator')
if(this._element.innerHTML.length>0){this._element.innerHTML=lineSeparator+lineSeparator+this._element.innerHTML;}
this._element.innerHTML=errorInfo+this._element.innerHTML;}}
Ajax.Logging.DivTraceListener.registerClass('Ajax.Logging.DivTraceListener',Ajax.Logging.BaseTraceListener);Ajax.Logging.WebServiceTraceListener=function(lineSeparator){Ajax.Logging.WebServiceTraceListener.initializeBase(this,[lineSeparator]);}
Ajax.Logging.WebServiceTraceListener.prototype={dispose:function(){Ajax.Logging.WebServiceTraceListener.callBaseMethod(this,'dispose');},publishException:function(errorCode,exception,environmentInfo){var errorInfo=Ajax.Logging.WebServiceTraceListener.callBaseMethod(this,'formatException',[errorCode,exception]);EBiz.Services.Globals.Logger.Publish(PAGE_IDENTIFIER,errorCode,exception,environmentInfo.url,environmentInfo.referrer,environmentInfo.scripts,this.onSuccess,this.onError,this);},onSuccess:function(result,context,method)
{return;},onError:function(result,context,method)
{return;}}
Ajax.Logging.WebServiceTraceListener.registerClass('Ajax.Logging.WebServiceTraceListener',Ajax.Logging.BaseTraceListener);Ajax.Logging.ExceptionManager=function(){this._listeners=new Array();Ajax.Logging.ExceptionManager.initializeBase(this);}
Ajax.Logging.ExceptionManager.prototype={initialize:function(){Ajax.Logging.ExceptionManager.callBaseMethod(this,'initialize');},dispose:function(){if(this._listeners.length>0){for(var i=0;i<this._listeners.length;i++){this._listeners[i].dispose();}}
delete this._listeners;Ajax.Logging.ExceptionManager.callBaseMethod(this,'dispose');},addListener:function(listener){var e=Function._validateParams(arguments,[{name:'listener',type:Ajax.Logging.BaseTraceListener}]);if(e)throw e;if(!Array.contains(this._listeners,listener))
{Array.add(this._listeners,listener);}},removeListener:function(listener){var e=Function._validateParams(arguments,[{name:'listener',type:Ajax.Logging.BaseTraceListener}]);if(e)throw e;listener.dispose();Array.remove(this._listeners,listener);},publishException:function(errorCode,exception){var e1=Function._validateParams(arguments,[{name:'errorCode',type:Number},{name:'exception',type:Error}]);var e2=Function._validateParams(arguments,[{name:'errorCode',type:Number},{name:'exception',type:Sys.Net.WebServiceError}]);if((e1)&&(e2)){throw e1;}
if(this._listeners.length>0){var environmentInfo=this._getEnvironmentInfo();for(var i=0;i<this._listeners.length;i++){this._listeners[i].publishException(errorCode,exception,environmentInfo);}}},_getEnvironmentInfo:function(){var scriptTags=document.getElementsByTagName('script');var scripts=new Array();if(scriptTags){for(var i=0;i<scriptTags.length;i++){var scriptTag=scriptTags[i];if(typeof scriptTag.src!='undefined'){if(scriptTag.src.length>0){Array.add(scripts,scriptTag.src+' : '+scriptTag.readyState);}}}}
var url=window.location.href;var referrer='';if(document.referrer){if(document.referrer.length>0){referrer=document.referrer;}}
return{url:url,referrer:referrer,scripts:scripts};}}
Ajax.Logging.ExceptionManager.registerClass('Ajax.Logging.ExceptionManager',Sys.Component);Ajax.Logging.ExceptionManager._staticInstance=$create(Ajax.Logging.ExceptionManager,{'id':'exceptionManager'});Ajax.Logging.ExceptionManager.getInstance=function(){return Ajax.Logging.ExceptionManager._staticInstance;}
if(typeof(Sys)!='undefined'){Sys.Application.notifyScriptLoaded();}
var ERROR_CODE_UNHANDLED=1;var ERROR_CODE_WEB_SERVICE=2;Sys.Application.add_init(initializeLogger);function initializeLogger(){}
function publishException(result){Ajax.Logging.ExceptionManager.getInstance().publishException(ERROR_CODE_WEB_SERVICE,result);}
;
