if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="";_19+="";var _1d=this.getParams();for(var key in _1d){_19+="";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="";}_19+="";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.majorfv.major){return true;}if(this.minorfv.minor){return true;}if(this.rev=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject; var YT={};(function(){YT.$=function(id){return document.getElementById(id);};YT.dom={setDisplay:function(elem,show){if(!elem){return;} elem.style.display=(show)?'':'none';},truncateAtWord:function(value,len,isSmart){if(value&&value.length>len){var truncStr=value.substring(0,len);var truncAtWrd=truncStr.replace(/\w+$/,'');if(isSmart&&truncAtWrd.length==0){return truncStr;}else{return truncAtWrd;}} return value;}};YT.trim=function trim(value){return value.replace(/^\s+|\s+$/g,'');};YT.getBeacon=function getBeacon(be_url){if(be_url.indexOf("[timestamp]")!=-1){be_url=be_url.replace(new RegExp("\\[timestamp\\]","g"),new Date().getTime());} var oImg=document.createElement("img");oImg.setAttribute('src',be_url);};YT.G={};YT.G.POST='POST';YT.G.GET='GET';YT.G.SUCCESS='success';YT.G.FAILED='failed';YT.G.ICS_SRVR='';YT.G.ATS_SRVR='';YT.G.TLOG_SRVR='';YT.G.IMG_SRVR='';YT.G.LOGO_SRVR='';YT.G.ATS_NEW_WINDOW=true;YT.G.USE_ATS_GET=false;YT.G.ENGAGE_CNTR=0;YT.Params={Server:{},Client:{},BASELOG:{AdType:null,StoreId:null,ProductsTheme:null,PageUrl:null,ISN:null,UserId:null,ServiceControlID:null,ZiniRealm:null,ZiniStrategy:null,SozFeatures:null,PublisherURL:null},TLOG:{PublisherId:null,SID:null},ATSLOG:{PublisherID:null,ClickTrackerURL:null,sid:null,AffiliateID:null,AffiliateName:null},addParamsObj:function(gObj,pObj){var v;for(var k in pObj){v=pObj[k];if(v!==null&&v!==undefined){gObj[k]=v;}}}};})();(function(){var _msxml_progid=['Microsoft.XMLHTTP','MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP'];var _post_header='application/x-www-form-urlencoded';var tId=0;function createXhrObject(){var o={};var http=null;try{http=new XMLHttpRequest();} catch(e){for(var i=0;i<_msxml_progid.length;++i){try{http=new ActiveXObject(_msxml_progid[i]);break;} catch(e1){}}} o.tId=tId++;o.xhr=http;return o;} function handleReadyState(xhrObj,callback){if(callback===undefined||callback===null){return;} var xhr=xhrObj.xhr;xhr.onreadystatechange=function(){try{if(xhr.readyState!==undefined&&xhr.readyState==4&&xhr.status!==undefined){if(callback&&callback.onXhrDone){callback.onXhrDone(createResponseObject(xhrObj));}}} catch(e){}};} function createResponseObject(xhrObj){var obj={};obj.status=(xhrObj.xhr.status==200)?YT.G.SUCCESS:YT.G.FAILED;obj.statusText=(xhrObj.xhr.status==1223)?"No Content":xhrObj.xhr.statusText;obj.responseText=xhrObj.xhr.responseText;obj.tId=xhrObj.tId;return obj;} YT.XHR={send:function(method,uri,postData,callback){method=method.toUpperCase();if(method=='GET'&&postData!==null){if(postData.length!==0){uri+=((uri.indexOf('?')==-1)?'?':'&')+postData;}} var o=createXhrObject();handleReadyState(o,callback);var http=o.xhr;http.open(method,uri,true);http.setRequestHeader("Content-type",_post_header);http.setRequestHeader("Connection","close");http.send(method=='POST'?postData:null);return o;},getEncodedPostStr:function(postData,o){if(!postData){postData='';} for(var key in o){if(o[key]&&o[key]!==''){if(postData.substring(postData.length-1,postData.length)!='&'){postData+="&";} postData+=encodeURIComponent(key)+"="+encodeURIComponent(o[key])+"&";}} var len=postData.length;if(len>0){postData=postData.substr(0,len-1);} return postData;}};})();YT.iCS={GET_DATA:0,GET_CATEGORY_DATA:1,GET_KEYWD_DATA:2,POST_STR:'',queryOffers:function(callback){var g=YT.G;var xhrO=YT.XHR.send(g.POST,g.ICS_SRVR,this.getPostStr(),callback);xhrO.queryType=this.GET_DATA;return xhrO;},queryCategory:function(catId,catName,callback){var g=YT.G;var catPost={categoryName:catId,categoryDisplayName:catName};var xhrO=YT.XHR.send(g.POST,g.ICS_SRVR,this.getCustomPostStr(catPost),callback);xhrO.queryType=this.GET_CATEGORY_DATA;xhrO.catId=catId;return xhrO;},querySearch:function(keywords,callback){var g=YT.G;var keywdPost={keywd:keywords};var xhrO=YT.XHR.send(g.POST,g.ICS_SRVR,this.getCustomPostStr(keywdPost),callback);xhrO.queryType=this.GET_KEYWD_DATA;xhrO.keywd=keywords;return xhrO;},getPostStr:function(){if(this.POST_STR===''){var postStr=YT.XHR.getEncodedPostStr(null,YT.Params.Server);postStr=YT.XHR.getEncodedPostStr(postStr,YT.Params.Client);this.POST_STR=postStr;} return this.POST_STR;},getCustomPostStr:function(customObj){var postStr=this.getPostStr();return YT.XHR.getEncodedPostStr(postStr,customObj);}};YT.iCS.xhrScope=YT.iCS;YT.TLOG={SEARCH:'SEARCH',KEYWORD:'KEYWORD',LOGPREFIX:'logType=event-log.widgetEvents&',_nLogs:0,CAT_SELECT:'CATEGORY_SELECT',CAT_DESELECT:{EventType:'CATEGORY_DESELECT',Direction:'CATEGORY_DESELECT'},NAVIGATE:{EventType:'NAVIGATE',Direction:'1:2'},PREVIOUS:{EventType:'SCROLL',Direction:'PREVIOUS'},logNext:function(prods){var evt={EventType:'SCROLL',Direction:'NEXT',ProductsViewed:prods};this.doLog(evt);},logPrevious:function(prods){var evt={EventType:'SCROLL',Direction:'PREVIOUS',ProductsViewed:prods};this.doLog(evt);},logCatSelect:function(catId,catName,prods){var logEvt={EventType:this.CAT_SELECT,Direction:this.CAT_SELECT,CategoryName:catId,CategoryDisplayName:catName,ProductsViewed:prods};this.doLog(logEvt);},logCatDeselect:function(){this.doLog(this.CAT_DESELECT);},logKeywdSrch:function(uiElem,msg,keyword){var logEvt={EventType:this.SEARCH,Direction:uiElem,ProductsViewed:msg,SearchKeyword:keyword};this.doLog(logEvt);},logPg1_2:function(){this.doLog(this.NAVIGATE);},logBanner:function(name){this.doLog({EventType:'BANNER',Direction:name})},doLog:function(logEvt){YT.G.ENGAGE_CNTR++;if(YT.G.ENGAGE_CNTR==1&&YT.G.FE_BE_URL&&YT.G.FE_BE_URL!=''){var fe_be_url=YT.G.FE_BE_URL;if(fe_be_url.indexOf("^(SEC)")!=-1&&logEvt.ClickTime){var td=Math.round(logEvt.ClickTime/1000);fe_be_url=fe_be_url.replace(new RegExp("\\^\\(SEC\\)","g"),td);} YT.getBeacon(fe_be_url);} logEvt.Timestamp=new Date();var postStr=YT.XHR.getEncodedPostStr(this.LOGPREFIX,YT.Params.BASELOG);postStr=YT.XHR.getEncodedPostStr(postStr,YT.Params.TLOG);postStr=YT.XHR.getEncodedPostStr(postStr,logEvt);var g=YT.G;YT.XHR.send(g.POST,g.TLOG_SRVR,postStr,this);},onXhrDone:function(respObj){if(respObj.status==YT.G.SUCCESS){this._nLogs++;}}};YT.ATS={CLICK_THRU:'CLICK_THRU',BRAND:'BRAND',CATEGORY:'CATEGORY',ATS_CMD:'cmd',ATS_FORM_ID:'atsForm',CATEGORY_OFFER_TYPE:'CATEGORY_OFFER_TYPE',_getClkObj:function(adLink,adPosition,product,clickX,clickY,clickTime,clickType){return{cmd:this.CLICK_THRU,AdLink:adLink,AdPosition:adPosition,ClickType:(typeof clickType!='undefined')?clickType:product.offer_type,ProductID:product.id,ProductCategory:(typeof product.category_id!='undefined')?product.category_id:product.cat_id,OfferType:product.offer_type,ProductPrice:product.offerPrice.replace(/^[^\d]*(.*)$/,"$1"),CurrencyCode:product.c_code,MerchantID:product.merchant_id,Provider:product.provider,ProductBrand:product.brand,ProductUrl:product.product_url,SozFeatures:product.sozFeatures,DisplayCategoryName:product.display_category_name,DiscountPrice:product.discount_price.replace(/^[^\d]*(.*)$/,"$1"),CPC:product.cpc,CPA:product.cpo,Rank:product.rank,ProviderCategoryID:product.advertiser_category_id,ProviderCategoryName:product.display_advertiser_category_name,GlobalID:product.globalid,ClickX:clickX,ClickY:clickY,ClickTime:clickTime};},_getClkBrandObj:function(adLink,adPosition,url,merchantId,providerId,clickX,clickY){return{cmd:this.CLICK_THRU,AdLink:adLink,AdPosition:adPosition,ClickType:this.BRAND,ProductUrl:url,MerchantID:merchantId,Provider:providerId,ClickX:clickX,ClickY:clickY};},_getClkCatObj:function(adLink,adPosition,catId,url,merchantId,providerId,clickX,clickY){return{cmd:this.CLICK_THRU,AdLink:adLink,AdPosition:adPosition,ClickType:this.CATEGORY,ProductUrl:url,MerchantID:merchantId,Provider:providerId,ClickX:clickX,ClickY:clickY};},_clearForm:function(atsForm){atsForm.innerHTML='';},_getAtsForm:function(){var atsForm=YT.$(this.ATS_FORM_ID);if(atsForm){return atsForm;} atsForm=document.createElement("FORM");atsForm.target=YT.G.ATS_NEW_WINDOW?"_blank":"_top";atsForm.action=YT.G.ATS_SRVR;atsForm.method=YT.G.POST;atsForm.id=this.ATS_FORM_ID;YT.dom.setDisplay(atsForm,false);document.body.appendChild(atsForm);return YT.$(this.ATS_FORM_ID);},_addFormElements:function(atsForm,paramObj){var val;var inputElm;for(var key in paramObj){val=paramObj[key];if(val){inputElm=YT.$(key);inputElm=document.createElement("INPUT");inputElm.type="hidden";inputElm.name=key;atsForm.appendChild(inputElm);inputElm.value=val;}}},_internalSubmitForm:function(clkObj){var atsForm=this._getAtsForm();this._clearForm(atsForm);this._addFormElements(atsForm,YT.Params.BASELOG);this._addFormElements(atsForm,YT.Params.ATSLOG);this._addFormElements(atsForm,clkObj);atsForm.submit();},_encodeURIComponentNew:function(s){var s=utf8(s);var c;var enc="";for(var i=0;i0&&ADPOD.max_cats<_catNew.length){_catNew.length=ADPOD.max_cats;} var respArgs={_tId:0,_prods:_productsNew,_cats:_catNew,_isn:_isnNew,_realm:_realmNew,_strategy:_strategyNew,_serverFeatures:_sozFeatures};nProds=this.handleGetData(respArgs);if(this.nLGType>0&&this.nPType>0){this.offerType=this.BOTH;} else if(this.nLGType>0){this.offerType=this.LGTYPE;} this.updateCategoryAll();return nProds;} WgtData.prototype.processData=function(respObj){var nProds=this.ERROR;try{eval(respObj.responseText);} catch(e){return this.ERROR;} if(typeof ytError!='undefined'||typeof _catNew=='undefined'){return this.ERROR;} var respArgs={_tId:respObj.tId,_prods:_productsNew,_cats:_catNew,_isn:_isnNew,_realm:_realmNew,_strategy:_strategyNew,_serverFeatures:_sozFeatures};switch(this.xhrObj[respObj.tId].queryType){case YT.iCS.GET_DATA:nProds=this.handleGetData(respArgs);break;case YT.iCS.GET_CATEGORY_DATA:nProds=this.handleCatData(respArgs,respObj.catId);break;case YT.iCS.GET_KEYWD_DATA:nProds=this.handleKeywdData(respArgs,respObj.keywd);break;default:nProds=this.handleGetData(respArgs);break;} if(this.nLGType>0&&this.nPType>0){this.offerType=this.BOTH;} else if(this.nLGType>0){this.offerType=this.LGTYPE;} return nProds;};WgtData.prototype.handleGetData=function(respArgs){var _cats=respArgs._cats;var nCats=_cats.length;var newCat;for(var i=0;i1&&cat_obj.products[cat_obj.TOTAL-2].offer_type==wgtData.LGTYPE){cat_obj.prodIdx=cat_obj.TOTAL-1;}} return true;};WgtData.prototype.addCategory=function(newCat){if(!this.categoryMap[newCat.categoryDisplayName]){this.categoryMap[newCat.categoryDisplayName]=newCat;this.categories.push(newCat);newCat.products=[];newCat.prodIdx=0;newCat.idx=this.categories.length-1;}};function getImgDetails(imageUrlVal){if(!imageUrlVal||imageUrlVal==''){return null;} var imageDetails=imageUrlVal.split('|');var imgindex=0;if(imageDetails.length==4){imgindex=3;if(imageDetails[1].charAt(0)=='0'){imageDetails[1]=imageDetails[1].substring(1);} if(imageDetails[2].charAt(0)=='0'){imageDetails[2]=imageDetails[2].substring(1);} imageDetails[1]=parseInt(imageDetails[1]);imageDetails[2]=parseInt(imageDetails[2]);} var imgurl=imageDetails[imgindex];if(imgurl.search(/^http:/i)==-1){imgurl=YT.G.IMG_SRVR+imageDetails[imgindex];} if(imageDetails.length==1){imageDetails[1]=0;imageDetails[2]=0;} imageDetails[3]=imgurl;return imageDetails;} function setImageWH(imgW,imgH,maxImgW,maxImgH,product_obj){var imgDim=scaleImageWH(imgW,imgH,maxImgW,maxImgH);product_obj.width=imgDim[0];product_obj.height=imgDim[1];} function setHeroImageWH(imgW,imgH,maxProdImgW,maxProdImgH,product_obj,imgDetails){var imgDim;if(imgDetails[1]!=0&&imgDetails[2]!=0){imgDim=scaleImageWH(imgDetails[1],imgDetails[2],maxProdImgW,maxProdImgH);} else{imgDim=scaleImageWHRatio(imgW,imgH,maxProdImgW,maxProdImgH);} product_obj.prod_img_width=imgDim[0];product_obj.prod_img_height=imgDim[1];} function setMerchantLogoWH(imgW,imgH,maxLogoW,maxLogoH,product_obj){if(product_obj.merchant_logo_url==''){product_obj.merchant_img_width='';product_obj.merchant_img_height='';return;} var imgDim=scaleImageWH(imgW,imgH,maxLogoW,maxLogoH);product_obj.merchant_img_width=imgDim[0];product_obj.merchant_img_height=imgDim[1];} function scaleImageWH(imgW,imgH,maxImgW,maxImgH){var scaledW=imgW;var scaledH=imgH;var scaledImg=[];if(imgW>maxImgW){scaledW=maxImgW;scaledH=((maxImgW*imgH)/imgW);} if(scaledH>maxImgH){scaledH=maxImgH;scaledW=((maxImgH*imgW)/imgH);} scaledImg[0]=''+scaledW;scaledImg[1]=''+scaledH;return scaledImg;} function scaleImageWHRatio(imgW,imgH,maxImgW,maxImgH){var scaledW=0;var scaledH=0;var scaledImg=[];if(imgW*maxImgH>imgH*maxImgW){scaledW=maxImgW;scaledH=(imgH*scaledW)/imgW;if(scaledH>maxImgH){scaledH=maxImgH;scaledW=(imgW*scaledH)/imgH;}}else{scaledH=maxImgH;scaledW=(imgW*scaledH)/imgH;if(scaledW>maxImgW){scaledW=maxImgW;scaledH=(imgH*scaledW)/imgW;}} scaledImg[0]=''+scaledW;scaledImg[1]=''+scaledH;return scaledImg;} function setupImages(product_obj){var adPod=YT.ADPOD;var srcImageDetails=getImgDetails(product_obj.picture_url);product_obj.picture_url=srcImageDetails[3];var imageDetails=[0,0,0];var smImgDetails;if(product_obj.offer_type==wgtData.PTYPE){imageDetails=getImgDetails(product_obj.thumbnailraw);smImgDetails=imageDetails;if(srcImageDetails[1]!=0&&srcImageDetails[2]!=0){smImgDetails=(product_obj.picture_url.indexOf(YT.G.IMG_SRVR)!=-1)?srcImageDetails:imageDetails;} product_obj.url=smImgDetails[3];setImageWH(smImgDetails[1],smImgDetails[2],adPod.max_img_w,adPod.max_img_h,product_obj);} setHeroImageWH(imageDetails[1],imageDetails[2],adPod.max_hero_w,adPod.max_hero_h,product_obj,srcImageDetails);} function setupPrice(product_obj){product_obj.discount='0';product_obj.showPrice=(!(product_obj.price=='0'||product_obj.price==''));if(product_obj.showPrice){if(!(product_obj.discount_price=='0'||product_obj.discount_price=='')){var nPrice=eval(product_obj.price);var nDiscPrice=eval(product_obj.discount_price);if(nDiscPrice>0&&nDiscPrice0){product.offerMsgs.push(offrMsg);} continue;} index=value.indexOf(urlKey) if(index!=-1){category.url=trim(value.substring(urlKey.length));continue;} index=value.indexOf(ctaKey) if(index!=-1){product.cta=trim(value.substring(ctaKey.length));continue;} index=value.indexOf(offerKey) if(index!=-1){product.offer=trim(value.substring(offerKey.length));continue;}}} YT.wgtData=new WgtData('0.1','basic');YT.wgtData.xhrScope=YT.wgtData;})();var ADPOD=YT.ADPOD;var wgtData=YT.wgtData; (function(){var imgs=[];var nProcessed=0;var imgObjs=[];function onProcessed(){nProcessed++;if(nProcessed==imgs.length){tView.onPreloadDone();imgs=[];imgObjs=[];nProcessed=0;}} function setupImgs(){for(var i=0;i0){this.setTxt(this.ORIG_PRICE,origprice);this.setTxt(this.DISC,disc+' %');} else{this.setTxt(this.ORIG_PRICE,'');this.setTxt(this.DISC,'');} this.setTxt(this.PRICE,price);},setCtaLink:function(prod){var el=$(this.CTA_LINK);if(el){el.clkId=prod.id;var cta=YT.ADPOD.cta;if(prod.cta){cta=prod.cta;} el.innerHTML=cta;}}};})(); (function(){var ats=YT.ATS;function FlashWgtView(){} FlashWgtView.prototype={processData:function(respTxt){var nProds=wgtData.processInline(respTxt);var categories=wgtData.categories;var categoriesResponse=[];for(var i=1;i