String.prototype.trim=function(){return this.replace(/^\s*/,"").replace(/\s*$/,"")};if(typeof com=="undefined")com={};if(!com.Pinpoint)com.Pinpoint={};com.Pinpoint.BaseObject=function(){};com.Pinpoint.BaseObject.prototype.addHandler=function(evtname,evtfn){if(!this[evtname])this[evtname]=[];this[evtname].push(evtfn)};com.Pinpoint.BaseObject.prototype._raiseEvent=function(evtname){if(!!this[evtname])for(var i=0;i<this[evtname].length;i++)this[evtname][i](this)};com.Pinpoint.Global=function(){var _self=this,__doPostBackOld,__globalIdPrefix="Master_MCP_",_hijackElemByIdFn=function(){if(typeof document.$getOld=="undefined"){document.$getOld=document.getElementById;document.getElementById=function(id){return document.$getOld(id)||document.$getOld(__globalIdPrefix+id)}}},_hijackPostBackFn=function(){if(typeof __doPostBackOld=="undefined"&&typeof __doPostBack=="function"){__doPostBackOld=__doPostBack;__doPostBack=function(){var evtTarget=arguments[0];if(/^string$/i.test(typeof evtTarget)&&!document.$getOld(evtTarget)&&!document.$getOld(evtTarget.replace(/\$/g,"_")))arguments[0]=__globalIdPrefix+evtTarget;_self._raiseEvent("onBeforePostBackHandler");__doPostBackOld.apply(this,arguments)}}},_init=function(){_hijackPostBackFn();_hijackElemByIdFn()};this.onBeforePostBack=function(callbackFn){_self.addHandler("onBeforePostBackHandler",callbackFn)};this.onAfterPostBack=function(callbackFn){Sys.WebForms.PageRequestManager.getInstance().add_endRequest(callbackFn)};this.getCulture=function(){return decodeURI(location.pathname).substring(1).split(/[\/\\]/g)[0]};this.getCookie=function(name){var pos=document.cookie.indexOf(name+"=");if(pos!=-1){var start=pos+name.length+1,end=document.cookie.indexOf(";",start);if(end==-1)end=document.cookie.length;return unescape(document.cookie.substring(start,end))}return null};this.setCookie=function(name,value){document.cookie=name+"="+value};_init()};com.Pinpoint.Global.prototype=new com.Pinpoint.BaseObject;com.Pinpoint.Global.prototype.constructor=com.Pinpoint.Global;var ppGlobal=new com.Pinpoint.Global;com.Pinpoint.TextBox=function(ctrlId,hint,emptyInitValue){com.Pinpoint.BaseObject.call(this);var _ctrl=$("#"+ctrlId),_txtbox=$("input[type=text]",_ctrl),_hint=(hint||"").trim(),_emptyInitValue=emptyInitValue||"",_showHint=function(){if(_txtbox.val().trim()=="")_txtbox.val(_hint);if(_txtbox.val()==_hint){_txtbox.addClass("fieldHint");return true}return false},_hideHint=function(){if(_txtbox.val().trim()==_hint){_txtbox.val("");var txtbox=_txtbox[0];if(!!txtbox&&!!txtbox.createTextRange){var r=txtbox.createTextRange();if(!!r)r.select()}}_txtbox.removeClass("fieldHint")},_setValue=function(value){if(!value)value="";_txtbox.val(value);if(!_showHint())_hideHint()},_getValue=function(){if(_txtbox.val().trim()==_hint||_txtbox.val()==_emptyInitValue)return "";return _txtbox.val()},_highlight=function(){_ctrl.addClass("active")},_dehighlight=function(){_ctrl.removeClass("active")},_setHintText=function(hintText){hintText=(hintText||"").trim();if(_txtbox.val().trim()==_hint)_txtbox.val(hintText);_hint=hintText;_showHint()},_emptyToInit=function(){_setValue(_emptyInitValue)},_init=function(){_txtbox.click(function(){_hideHint();_highlight()});_txtbox.blur(function(){_showHint();_dehighlight()});_txtbox.focus(function(){_hideHint();_highlight()});_txtbox[0].setValue=_setValue;_txtbox[0].getValue=_getValue;_txtbox[0].setHintText=_setHintText;_txtbox[0].emptyToInit=_emptyToInit};_init()};com.Pinpoint.TextBox.prototype=new com.Pinpoint.BaseObject;com.Pinpoint.TextBox.prototype.constructor=com.Pinpoint.TextBox;com.Pinpoint.ReadOnlyField=function(fieldId,fulltxt,moretxt,lesstxt){com.Pinpoint.BaseObject.call(this);var _parent=$("#"+fieldId),_link=$("a.morelink",_parent),_txt=$("span",_parent),_shorttxt=_txt.text(),_showMore=function(){_txt.text(fulltxt);_link.text(lesstxt);_link.attr("title",lesstxt)},_showLess=function(){_txt.text(_shorttxt);_link.text(moretxt);_link.attr("title",moretxt)},_init=function(){_link.toggle(_showMore,_showLess)};_init()};com.Pinpoint.ReadOnlyField.prototype=new com.Pinpoint.BaseObject;com.Pinpoint.ReadOnlyField.prototype.constructor=com.Pinpoint.ReadOnlyField;com.Pinpoint.ReadOnlyFieldForLinks=function(fieldId,moretxt,lesstxt,truncateAfter){com.Pinpoint.BaseObject.call(this);var _parent=$("#"+fieldId),_link=$("a.morelink",_parent),_moreChildren=_parent.children("*:gt("+(truncateAfter*2-1)+")"),_ellipsis=_parent.children("span:eq("+(truncateAfter-1)+")"),_showMore=function(){_moreChildren.show();_ellipsis.text(", ");_link.text(lesstxt);_link.attr("title",lesstxt)},_showLess=function(){_moreChildren.hide();_ellipsis.text(",...");_link.show();_link.text(moretxt);_link.attr("title",moretxt)},_init=function(){_link.toggle(_showMore,_showLess)};_init()};com.Pinpoint.ReadOnlyFieldForLinks.prototype=new com.Pinpoint.BaseObject;com.Pinpoint.ReadOnlyFieldForLinks.prototype.constructor=com.Pinpoint.ReadOnlyFieldForLinks;var FireWebTrendsEvent=function(){};$(document).ready(function(){if(typeof DCSext=="undefined")return;var oldDCSext={},oldWT={},eraseWTAfterFireDefaultMeta=["z_sort_products_tab","z_sort_partner_tab","z_result_view_partner_tab","z_noresults"];for(var p in DCSext)oldDCSext[p]=DCSext[p];FireWebTrendsEvent=function(){for(var i=0;i<eraseWTAfterFireDefaultMeta.length;i++)if(typeof WT[eraseWTAfterFireDefaultMeta[i]]!=undefined)WT[eraseWTAfterFireDefaultMeta[i]]="";WT["dl"]="1";dcsMultiTrack.apply(this,arguments);DCSext={};for(var p in oldDCSext)DCSext[p]=oldDCSext[p];for(var p in WT)if(/z_/i.test(p))WT[p]=null}});var win=null,currUrl;function openWindow(strUrl){var width=1024,height=768,left=Math.floor(screen.availWidth/2-width/2),top=Math.floor(screen.availHeight/2-height/2),winFeatures="resizable=yes,scrollbars=yes,menubar=yes,location=yes,toolbar=yes,status=yes,width="+width+",height="+height+",left="+left+",top="+top+"screenX="+left+",screenY="+top,win=window.open(strUrl,"_blank",winFeatures)}var cultureList_displayed=false,cultureListObj=null,cultureSelector=null;function OnCultureSelectorClick(selectorId,listId){cultureListObj=$get(listId);cultureSelector=$get(selectorId);if(!!cultureListObj)if(!cultureList_displayed){cultureListObj.style.display="block";cultureList_displayed=true}else{cultureListObj.style.display="none";cultureList_displayed=false}}function cultureList_bodyclick(evt){if(cultureList_displayed&&!!cultureListObj&&!!cultureSelector){var target=evt.srcElement?evt.srcElement:evt.target;if(!target.id.endsWith("marketSelectorList")&&!target.id.endsWith("currentCultureText")&&!target.id.endsWith("Culturelink")&&target.id!="DropDownArrow"){cultureListObj.style.display="none";cultureSelector.className="";cultureList_displayed=false}}}$addHandler(document.body,"click",cultureList_bodyclick)