VC().register("gadget-base",function(a){a.namespace("vc.gadget");a.gadget.BaseMetrics=function(){var d=YAHOO.util.Dom,c=YAHOO.env.ua.ie;var b=function(g){return g.replace(/</g,"&lt;").replace(/>/g,"&gt;");};var f=function(g){var h=1;for(var i=2;i<=this.MAX_ITEMS_PER_PAGE;i++){if(this.MAX_ITEMS_PER_PAGE%i==0&&i<=g){h=i;
}}return h;};return{FONT_FAMILY:{"sans":"'\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF',Osaka,'\u30D2\u30E9\u30AE\u30CE\u89D2\u30B4 Pro W3',Arial,Helvetica,sans-serif","serif":"'\uFF2D\uFF33 \uFF30\u660E\u671D','\u7D30\u660E\u671D\u4F53','\u30D2\u30E9\u30AE\u30CE\u660E\u671D Pro W3','Times New Roman',Times,serif"},FONT_SIZE:[10,12,14,16,18],TITLE_PADDING:5,TITLE_HEIGHT:35,ITEM_SPACING:5,ITEM_INTERNAL_SPACING:3,ITEM_NAME_PERCENT_HEIGHT:0.3,ITEM_CODE_PERCENT_HEIGHT:0.1,ITEM_PRICE_PERCENT_HEIGHT:0.1,ITEM_MERCH_PERCENT_HEIGHT:0.1,MIN_IMAGE_SIZE:50,MAX_IMAGE_SIZE:150,ITEM_NAME_WIDTH_THRESHOLD:300,IMAGE_SIZE_THRESHOLD:76,MAX_IMAGE_TO_DETAIL_RATIO:0.4,MIN_DETAIL_WIDTH_MULTIPLIER:6,MAX_ITEMS_PER_PAGE:20,PAGINATOR_HEIGHT:30,VC_LOGO_WIDTH:110,VC_LOGO_HEIGHT:30,BRIGHTNESS_THRESHOLD:0.7,DEFAULT_OPACITY:1,DEFAULT_CONTRAST_COLOR:"white",truncToFit:function(n,g,j){var l=d.getStyle(g,"height").replace("px","");
var m="";d.get(g).innerHTML="";var k=j?"div":"span";e=document.createElement(k);d.get(g).appendChild(e);d.setStyle(e,"visibility","hidden");for(var h=0;h<n.length;h++){m+=n.charAt(h);e.innerHTML=b(m)+" ...W";if(e.offsetHeight>l||e.offsetWidth>g.offsetWidth){break;}}if(m.length<n.length){m+=" ...";}e.innerHTML=b(m);
e.setAttribute("title",n);d.setStyle(e,"visibility","visible");if(j&&e.offsetHeight){d.setStyle(e,"position","relative");d.setStyle(e,"top","50%");if(c){d.setStyle(e,"margin-top","-"+e.offsetHeight+"px");}else{d.setStyle(e,"margin-top","-"+e.offsetHeight/2+"px");}}return m;},truncToFitLink:function(k,g){var j=d.getStyle(g,"height").replace("px","");
var l="";var m=k.innerHTML;d.get(g).innerHTML="";e=document.createElement("div");d.get(g).appendChild(e);d.setStyle(e,"visibility","hidden");d.get(e).appendChild(k);for(var h=0;h<m.length;h++){l+=m.charAt(h);k.innerHTML=b(l)+" ...W";if(e.offsetHeight>j||e.offsetWidth>g.offsetWidth){break;}}if(l.length<m.length){l+=" ...";
}k.innerHTML=b(l);k.setAttribute("title",m);d.setStyle(e,"visibility","visible");return l;},getTitleHeight:function(h,g){return g.tt_on?this.TITLE_HEIGHT:0;},getPaginatorHeight:function(h,g){return g.pg_on?this.PAGINATOR_HEIGHT:0;},getVCLogoWidth:function(h,g){return g.vc_on?this.VC_LOGO_WIDTH:0;},getVCLogoHeight:function(h,g){return g.vc_on?this.VC_LOGO_HEIGHT:0;
},getMinGadgetWidth:function(j,h){var g=h.br_on?h.border_size:0;var i=Math.max(this.MIN_GADGET_WIDTH,this.getVCLogoWidth(j,h)+g*2);return Math.max(i,this.getMinItemWidth(j,h)+this.ITEM_SPACING*2+g*2);},getMinGadgetHeight:function(i,h){var g=h.br_on?h.border_size:0;return Math.max(this.MIN_GADGET_HEIGHT,this.getMinItemHeight(i,h)+this.ITEM_SPACING*2+g*2+this.getTitleHeight(i,h)+this.getPaginatorHeight(i,h)+this.getVCLogoHeight(i,h));
},getOptimalBodyHeight:function(j,h){var g=h.br_on?h.border_size:0;var i=d.getStyle(j,"height").replace("px","");return i-g*2-this.getTitleHeight(j,h)-this.getPaginatorHeight(j,h)-this.getVCLogoHeight(j,h);},getMaxCols:function(i,h){var g=(d.getStyle(i,"width").replace("px","")-this.ITEM_SPACING)/(this.getMinItemWidth(i,h)+this.ITEM_SPACING);
return Math.min(Math.floor(g),this.MAX_ITEMS_PER_PAGE);},getMaxRows:function(i,h){var g=(d.getStyle(i,"height").replace("px","")-this.ITEM_SPACING)/(this.getMinItemHeight(i,h)+this.ITEM_SPACING);return Math.min(Math.max(Math.floor(g),1),this.MAX_ITEMS_PER_PAGE);},getOptimalCols:function(i,h){var g=f(this.getMaxRows(i,h));
return Math.min(Math.floor(this.MAX_ITEMS_PER_PAGE/g),this.getMaxCols(i,h));},getOptimalRows:function(h,g){return Math.min(Math.floor(this.MAX_ITEMS_PER_PAGE/this.getOptimalCols(h,g)),this.getMaxRows(h,g));},canFitMore:function(h,g){return this.getOptimalCols(h,g)*this.getOptimalRows(h,g)>g.cols*g.rows;
},getOptimalItemHeight:function(i,g){var h=(d.getStyle(i,"height").replace("px","")-this.ITEM_SPACING*(g.rows-1))/g.rows;return Math.max(Math.floor(h),this.getMinItemHeight(i,g));},getOptimalItemWidth:function(i,h){var g=(d.getStyle(i,"width").replace("px","")-this.ITEM_SPACING*(h.cols-1))/h.cols;return Math.max(Math.floor(g),this.getMinItemWidth(i,h));
},getMinItemHeight:function(i,g){var h;if(g.im_on){h=Math.max(this.MIN_IMAGE_SIZE,this.getMinDetailHeight(i,g));}else{h=this.getMinDetailHeight(i,g);}return h;},getMinItemWidth:function(j,g){var h;if(g.im_on){var i=this.getMinDetailWidth(j,g);h=this.MIN_IMAGE_SIZE+i+(i?this.ITEM_INTERNAL_SPACING:0);}else{h=this.getMinDetailWidth(j,g);
}return h;},getMinDetailWidth:function(i,g){var h=0;if(g.nm_on){h=Math.max(h,g.nm_sz);}if(g.cd_on){h=Math.max(h,g.cd_sz);}if(g.mr_on){h=Math.max(h,g.mr_sz);}if(g.pr_on){h=Math.max(h,g.pr_sz);}if(g.ds_on){h=Math.max(h,g.ds_sz);}return h>0?this.FONT_SIZE[h-1]*this.MIN_DETAIL_WIDTH_MULTIPLIER:0;},getMinDetailHeight:function(i,g){var h=0;
if(g.nm_on){h+=this.getMinItemNameHeight(i,g)+this.ITEM_INTERNAL_SPACING;}if(g.cd_on){h+=this.getMinItemCodeHeight(i,g)+this.ITEM_INTERNAL_SPACING;}if(g.mr_on){h+=this.getMinItemMerchHeight(i,g)+this.ITEM_INTERNAL_SPACING;}if(g.pr_on){h+=this.getMinItemPriceHeight(i,g)+this.ITEM_INTERNAL_SPACING;}if(g.ds_on){h+=this.getMinItemDescHeight(i,g)+this.ITEM_INTERNAL_SPACING;
}if(h>0){h+=this.ITEM_INTERNAL_SPACING;}return h;},getMinItemNameHeight:function(k,i){if(!i.nm_on){return 0;}var j=document.createElement("div");this.configureFont(j,i,"nm");j.innerHTML="&nbsp;";k.appendChild(j);var h=j.offsetHeight;k.removeChild(j);var g=(this.getOptimalItemWidth(k,i)>this.ITEM_NAME_WIDTH_THRESHOLD)?1:2;
return h*g+2;},getMinItemCodeHeight:function(j,h){if(!h.cd_on){return 0;}var i=document.createElement("div");this.configureFont(i,h,"cd");i.innerHTML="&nbsp;";j.appendChild(i);var g=i.offsetHeight;j.removeChild(i);return g+2;},getMinItemPriceHeight:function(j,i){if(!i.pr_on){return 0;}var h=document.createElement("div");
this.configureFont(h,i,"pr");h.innerHTML="&nbsp;";j.appendChild(h);var g=h.offsetHeight;j.removeChild(h);return g+2;},getMinItemMerchHeight:function(j,h){if(!h.mr_on){return 0;}var i=document.createElement("div");this.configureFont(i,h,"mr");i.innerHTML="&nbsp;";j.appendChild(i);var g=i.offsetHeight;
j.removeChild(i);return g+2;},getMinItemDescHeight:function(j,h){if(!h.ds_on){return 0;}var i=document.createElement("div");this.configureFont(i,h,"ds");i.innerHTML="&nbsp;";j.appendChild(i);var g=i.offsetHeight;j.removeChild(i);return g+2;},getOptimalItemNameHeight:function(i,h){var g=d.getStyle(i,"height").replace("px","");
return Math.max(Math.floor(g*this.ITEM_NAME_PERCENT_HEIGHT),this.getMinItemNameHeight(i,h));},getOptimalItemCodeHeight:function(i,h){var g=d.getStyle(i,"height").replace("px","");return Math.max(Math.floor(g*this.ITEM_CODE_PERCENT_HEIGHT),this.getMinItemCodeHeight(i,h));},getOptimalItemPriceHeight:function(i,h){var g=d.getStyle(i,"height").replace("px","");
return Math.max(Math.floor(g*this.ITEM_PRICE_PERCENT_HEIGHT),this.getMinItemPriceHeight(i,h));},getOptimalItemMerchHeight:function(i,h){var g=d.getStyle(i,"height").replace("px","");return Math.max(Math.floor(g*this.ITEM_MERCH_PERCENT_HEIGHT),this.getMinItemMerchHeight(i,h));},getOptimalItemDescHeight:function(i,h){var g=d.getStyle(i,"height").replace("px","")-this.ITEM_INTERNAL_SPACING*2;
if(h.nm_on){g=g-this.getOptimalItemNameHeight(i,h)-this.ITEM_INTERNAL_SPACING;}if(h.cd_on){g=g-this.getOptimalItemCodeHeight(i,h)-this.ITEM_INTERNAL_SPACING;}if(h.mr_on){g=g-this.getOptimalItemMerchHeight(i,h)-this.ITEM_INTERNAL_SPACING;}if(h.pr_on){g=g-this.getOptimalItemPriceHeight(i,h)-this.ITEM_INTERNAL_SPACING;
}return Math.max(g,this.getMinItemDescHeight(i,h));},getOptimalImageSize:function(j,h){if(!h.im_on){return 0;}var i=this.getOptimalItemWidth(j,h);var g=this.getOptimalItemHeight(j,h)-this.ITEM_INTERNAL_SPACING*2;g=Math.max(g,this.MIN_IMAGE_SIZE);g=Math.min(g,this.MAX_IMAGE_SIZE);g=Math.min(g,i-this.getMinDetailWidth(j,h)-this.ITEM_INTERNAL_SPACING*3);
return this.getMinDetailWidth(j,h)==0?g:Math.min(g,Math.floor((i-this.ITEM_INTERNAL_SPACING*3)*this.MAX_IMAGE_TO_DETAIL_RATIO));},selectOptimalImage:function(h,g){var i="";if(g<=this.IMG_SIZE_THRESHOLD&&h.imageSmall.url){i=h.imageSmall.url;}else{if(h.imageLarge.url){i=h.imageLarge.url;}else{if(h.imageFree.url){i=h.imageFree.url;
}else{if(h.imageSmall.url){i=h.imageSmall.url;}}}}return i;},configureFont:function(g,h,i){d.setStyle(g,"font-family",this.FONT_FAMILY[h[i+"_ff"]]);d.setStyle(g,"font-size",this.FONT_SIZE[h[i+"_sz"]-1]+"px");d.setStyle(g,"font-weight",(h[i+"_bo"]==true?"bold":"normal"));d.setStyle(g,"font-style",(h[i+"_it"]==true?"italic":"normal"));
},isDarkColor:function(i){var h=YAHOO.util.Color.hex2rgb(i.replace("#",""));var g=YAHOO.util.Color.rgb2hsv(h);return g[2]<this.BRIGHTNESS_THRESHOLD;}};}();a.gadget.Base=function(b){this._init(b);};a.gadget.Base.prototype=function(){var k=YAHOO.util.Dom;var f=null,b=0,g=0,i={},c=false,h=null;var j=function(m){m+="";
x=m.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";var l=/(\d+)(\d{3})/;while(l.test(x1)){x1=x1.replace(l,"$1"+","+"$2");}return x1+x2;};var d=function(m){m+="";x=m.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";var l=/(\d+)(\d{3})/;while(l.test(x1)){x1=x1.replace(l,"$1"+","+"$2");}return"&yen;"+x1+x2;};
return{MAX_TOTAL_ITEMS:1000,DEFAULT_WAIT_ICON:"loading.gif",DEFAULT_VC_LOGO:"vclogo.png",DEFAULT_THEME:"glass",DEFAULT_FF:"sans",DEFAULT_SZ:1,DEFAULT_CO:"#000000",DEFAULT_LANG:"JA",WHITE_VC_LOGO:"vclogo_w.png",BLACK_VC_LOGO:"vclogo_b.png",VC_LOGO_IMG_WIDTH:107,VC_LOGO_IMG_HEIGHT:11,PAGINATOR_FONT:"Arial,Helvetica,sans-serif",PAGINATOR_FONT_SIZE:12,BANNER_ENGINE_URL:a.envs.Constants.BANNER_ENGINE_URL,PORTAL_THEMES_PATH:"/portal/images/gadget/themes",BANNER_ENGINE_THEMES_PATH:"/vc/images/gadget/themes",PORTAL_NO_IMAGE_ICON:"/portal/images/gadget/no_image.gif",BANNER_ENGINE_NO_IMAGE_ICON:"/vc/images/gadget/no_image.gif",PDB_URL:a.envs.Constants.PDB_URL,VC_LOGO_URL:a.envs.Constants.VC_LOGO_URL,MESSAGES:{EN:{NO_PRODUCTS_FOUND:"There is no product found.",INVALID_TOKEN:"It can take 15 minutes to display products in this preview."},JA:{NO_PRODUCTS_FOUND:"\u8A72\u5F53\u3059\u308B\u5546\u54C1\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",INVALID_TOKEN:"\u5546\u54C1\u304C\u8868\u793A\u3055\u308C\u308B\u307E\u306715\u5206\u307B\u3069\u304A\u6642\u9593\u3092\u3044\u305F\u3060\u304F\u5834\u5408\u304C\u3042\u308A\u307E\u3059\u306E\u3067\u3001\u3042\u3089\u304B\u3058\u3081\u3054\u4E86\u627F\u304F\u3060\u3055\u3044\u3002"}},_metrics:a.gadget.BaseMetrics,_features:["tt","nm","cd","mr","pr","ds","pg"],_config:null,_data:null,_theme:null,_pdbURL:"",_themeURL:"",_noImageIcon:"",_itemSeqNum:0,_pvIndex:0,_iePNG:function(u){var p=navigator.appVersion.split("MSIE");
var q=parseFloat(p[1]);if((q>=5.5&&q<7)&&document.body.filters){var n=u;var s=n.src.toUpperCase();if(s.substring(s.length-3,s.length)=="PNG"){var o=(n.id)?"id='"+n.id+"' ":"";var t=(n.className)?"class='"+n.className+"' ":"";var m=(n.title)?"title='"+n.title+"' ":"title='"+n.alt+"' ";var r="display:inline-block;"+n.style.cssText;
if(n.align=="left"){r="float:left;"+r;}if(n.align=="right"){r="float:right;"+r;}if(n.parentElement.href){r="cursor:hand;"+r;}var l="<span "+o+t+m+' style="'+"width:"+(n.width||n.getAttribute("width"))+"px; height:"+(n.height||n.getAttribute("height"))+"px;"+r+";"+"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"+"(src='"+n.src+"', sizingMethod='scale');\"></span>";
n.outerHTML=l;}}},_showLoadingIcon:function(){var l=k.get("vc_gadget_"+this._config.oid+"_body_L1");l.innerHTML="";var o=Math.round(k.getStyle(l,"height").replace("px","")/2)-10;var m=document.createElement("div");k.setStyle(m,"position","relative");k.setStyle(m,"top",o+"px");k.setStyle(m,"text-align","center");
l.appendChild(m);var n=document.createElement("img");n.setAttribute("src",this._themeURL+"/"+this._config.theme+"/"+this._config.theme_variant+"/"+this._theme.wait_icon);m.appendChild(n);},_sendRequest:function(m){var l=function(p){c=false;};var n=function(p){};if(c){return;}c=true;this._data=null;var o=YAHOO.util.Get.script(m,{onSuccess:l,onFailure:n,scope:this});
h=o.tId;},_applyTheme:function(o){if(!this._config.theme){return;}var n=null,m=null;var l=a.gadget.Themes;if(l instanceof Array){for(var r=0;r<l.length;r++){var q=l[r];if(q&&q.name==this._config.theme){n=q;break;}}}if(n){this._config.theme_variant=this._config.theme_variant||n.default_variant;if(this._config.theme_variant&&n.variants instanceof Array){for(var r=0;
r<n.variants.length;r++){m=n.variants[r];if(m&&m.name==this._config.theme_variant){break;}}this._theme={};this._theme.border_size=m.border_size||1;this._theme.wait_icon=m.wait_icon||this.DEFAULT_WAIT_ICON;this._config.opacity=(!o&&this._config.opacity)||m.opacity||(m.opacity==0?0:this._metrics.DEFAULT_OPACITY);
if(!n.is_basic){this._theme.vc_logo=this._themeURL+"/"+this._config.theme+"/"+this._config.theme_variant+"/"+(m.vc_logo||this.DEFAULT_VC_LOGO);this._theme.contrast=m.contrast||this._metrics.DEFAULT_CONTRAST_COLOR;}if(m.overall_bg_image){this._theme.overall_bg_image=this._themeURL+"/"+this._config.theme+"/"+this._config.theme_variant+"/"+m.overall_bg_image;
this._theme.overall_bg_image_repeat=m.overall_bg_image_repeat||"no-repeat";}if(m.overall_bg_color){this._theme.overall_bg_color=m.overall_bg_color;}if(m.border_color){this._theme.border_color=m.border_color;}if(m.border_images){this._theme.border_images={};if(m.border_images.top_left){this._theme.border_images.top_left=this._themeURL+"/"+this._config.theme+"/"+this._config.theme_variant+"/"+m.border_images.top_left;
this._theme.border_images.top_left_repeat="no-repeat";}if(m.border_images.top){this._theme.border_images.top=this._themeURL+"/"+this._config.theme+"/"+this._config.theme_variant+"/"+m.border_images.top;this._theme.border_images.top_repeat=m.border_images.top_repeat?m.border_images.top_repeat:"repeat-x";
if(m.border_images.top_fill){this._theme.border_images.top_fill=m.border_images.top_fill;}}if(m.border_images.top_right){this._theme.border_images.top_right=this._themeURL+"/"+this._config.theme+"/"+this._config.theme_variant+"/"+m.border_images.top_right;this._theme.border_images.top_right_repeat="no-repeat";
}if(m.border_images.left){this._theme.border_images.left=this._themeURL+"/"+this._config.theme+"/"+this._config.theme_variant+"/"+m.border_images.left;this._theme.border_images.left_repeat=m.border_images.left_repeat?m.border_images.left_repeat:"repeat-y";if(m.border_images.left_fill){this._theme.border_images.left_fill=m.border_images.left_fill;
}}if(m.border_images.right){this._theme.border_images.right=this._themeURL+"/"+this._config.theme+"/"+this._config.theme_variant+"/"+m.border_images.right;this._theme.border_images.right_repeat=m.border_images.right_repeat?m.border_images.right_repeat:"repeat-y";if(m.border_images.right_fill){this._theme.border_images.right_fill=m.border_images.right_fill;
}}if(m.border_images.bottom_left){this._theme.border_images.bottom_left=this._themeURL+"/"+this._config.theme+"/"+this._config.theme_variant+"/"+m.border_images.bottom_left;this._theme.border_images.bottom_left_repeat="no-repeat";}if(m.border_images.bottom){this._theme.border_images.bottom=this._themeURL+"/"+this._config.theme+"/"+this._config.theme_variant+"/"+m.border_images.bottom;
this._theme.border_images.bottom_repeat=m.border_images.bottom_repeat?m.border_images.bottom_repeat:"repeat-x";if(m.border_images.bottom_fill){this._theme.border_images.bottom_fill=m.border_images.bottom_fill;}}if(m.border_images.bottom_right){this._theme.border_images.bottom_right=this._themeURL+"/"+this._config.theme+"/"+this._config.theme_variant+"/"+m.border_images.bottom_right;
this._theme.border_images.bottom_right_repeat="no-repeat";}}if(m.header_bg_image){this._theme.header_bg_image=this._themeURL+"/"+this._config.theme+"/"+this._config.theme_variant+"/"+m.header_bg_image;this._theme.header_bg_image_repeat=m.header_bg_image_repeat?m.header_bg_image_repeat:"no-repeat";}if(m.header_bg_color){this._theme.header_bg_color=m.header_bg_color;
}if(m.body_bg_image){this._theme.body_bg_image=this._themeURL+"/"+this._config.theme+"/"+this._config.theme_variant+"/"+m.body_bg_image;this._theme.body_bg_image_repeat=m.body_bg_image_repeat?m.body_bg_image_repeat:"no-repeat";}if(m.body_bg_color){this._theme.body_bg_color=m.body_bg_color;}if(m.footer_bg_image){this._theme.footer_bg_image=this._themeURL+"/"+this._config.theme+"/"+this._config.theme_variant+"/"+m.footer_bg_image;
this._theme.footer_bg_image_repeat=m.footer_bg_image_repeat?m.footer_bg_image_repeat:"no-repeat";}if(m.footer_bg_color){this._theme.footer_bg_color=m.footer_bg_color;}var p=this._features;for(var r=0;r<p.length;r++){var s=p[r];this._config[s+"_ff"]=(!o&&this._config[s+"_ff"])||m[s+"_ff"]||this.DEFAULT_FF;
this._config[s+"_sz"]=(!o&&this._config[s+"_sz"])||m[s+"_sz"]||this.DEFAULT_SZ;this._config[s+"_bo"]=(!o&&typeof this._config[s+"_bo"]!="undefined")?this._config[s+"_bo"]:((typeof m[s+"_bo"]!="undefined")?m[s+"_bo"]:false);this._config[s+"_it"]=(!o&&typeof this._config[s+"_it"]!="undefined")?this._config[s+"_it"]:((typeof m[s+"_it"]!="undefined")?m[s+"_it"]:false);
this._config[s+"_co"]=(!o&&this._config[s+"_co"])||m[s+"_co"]||this.DEFAULT_CO;}}this._theme.is_basic=n.is_basic;}if(this._theme.is_basic){if(this._config.br_co&&!o){this._theme.border_color=this._config.br_co;this._theme.header_bg_color=this._config.br_co;this._theme.footer_bg_color=this._config.br_co;
}else{this._config.br_co=this._theme.border_color;}if(this._config.bk_co&&!o){this._theme.body_bg_color=this._config.bk_co;}else{this._config.bk_co=this._theme.body_bg_color;}if((this._config.border_size||this._config.border_size==0)&&!o){this._theme.border_size=this._config.border_size;}else{this._config.border_size=this._theme.border_size;
}this._theme.vc_logo=this._themeURL+"/"+this._config.theme+"/"+(this._theme.footer_bg_color&&this._metrics.isDarkColor(this._theme.footer_bg_color)?this.WHITE_VC_LOGO:this.BLACK_VC_LOGO);}else{this._config.br_on=true;this._config.border_size=this._theme.border_size;this._config.bk_on=true;}},_renderContainer:function(){var l=k.get("vc_gadget_"+this._config.oid+"_container");
if(!l){document.write("<div id='vc_gadget_"+this._config.oid+"_container' class='vc_gadget_container' style='position:relative; z-index:1000'></div>");}else{l.innerHTML="";}},_renderBorder:function(r){var v=k.get("vc_gadget_"+this._config.oid+"_frame_L"+r);var s=document.createElement("table");s.id="vc_gadget_"+this._config.oid+"_frame_table_L"+r;
s.setAttribute("border","0");s.setAttribute("cellspacing","0");s.setAttribute("cellpadding","0");s.setAttribute("class","vc_gadget_frame_table_L"+r);k.setStyle(s,"width",this._config.width+"px");k.setStyle(s,"height",this._config.height+"px");k.setStyle(s,"border-collapse","collapse");var l=s.insertRow(-1);
var z=l.insertCell(-1);z.id="vc_gadget_"+this._config.oid+"_border_TL_L"+r;z.setAttribute("width",b);z.setAttribute("height",b);if(r==0&&b>0){if(this._theme.border_color){k.setStyle(z,"background-color",this._theme.border_color);}if(this._theme.border_images.top_left){k.setStyle(z,"background-image","url('"+this._theme.border_images.top_left+"')");
k.setStyle(z,"background-repeat",this._theme.border_images.top_left_repeat);}}var n=l.insertCell(-1);n.id="vc_gadget_"+this._config.oid+"_border_T_L"+r;n.setAttribute("height",b);if(r==0&&b>0){if(this._theme.border_color){k.setStyle(n,"background-color",this._theme.border_color);}if(this._theme.border_images.top){k.setStyle(n,"background-image","url('"+this._theme.border_images.top+"')");
k.setStyle(n,"background-repeat",this._theme.border_images.top_repeat);}if(this._theme.border_images.top_fill){k.setStyle(n,"background-color",this._theme.border_images.top_fill);}}var o=l.insertCell(-1);o.id="vc_gadget_"+this._config.oid+"_border_TR_L"+r;o.setAttribute("width",b);o.setAttribute("height",b);
if(r==0&&b>0){if(this._theme.border_color){k.setStyle(o,"background-color",this._theme.border_color);}if(this._theme.border_images.top_right){k.setStyle(o,"background-image","url('"+this._theme.border_images.top_right+"')");k.setStyle(o,"background-repeat",this._theme.border_images.top_right_repeat);
}}var w=s.insertRow(-1);var u=w.insertCell(-1);u.id="vc_gadget_"+this._config.oid+"_border_L_L"+r;u.setAttribute("width",b);if(r==0&&b>0){if(this._theme.border_color){k.setStyle(u,"background-color",this._theme.border_color);}if(this._theme.border_images.left){k.setStyle(u,"background-image","url('"+this._theme.border_images.left+"')");
k.setStyle(u,"background-repeat",this._theme.border_images.left_repeat);}if(this._theme.border_images.left_fill){k.setStyle(u,"background-color",this._theme.border_images.left_fill);}}var t=w.insertCell(-1);t.id="vc_gadget_"+this._config.oid+"_inner_L"+r;t.setAttribute("class","vc_gadget_inner_L"+r);
t.setAttribute("valign","top");k.setStyle(t,"margin","0");k.setStyle(t,"padding","0");var q=w.insertCell(-1);q.id="vc_gadget_"+this._config.oid+"_border_R_L"+r;q.setAttribute("width",b);if(r==0&&b>0){if(this._theme.border_color){k.setStyle(q,"background-color",this._theme.border_color);}if(this._theme.border_images.right){k.setStyle(q,"background-image","url('"+this._theme.border_images.right+"')");
k.setStyle(q,"background-repeat",this._theme.border_images.right_repeat);}if(this._theme.border_images.right_fill){k.setStyle(q,"background-color",this._theme.border_images.right_fill);}}var y=s.insertRow(-1);var A=y.insertCell(-1);A.id="vc_gadget_"+this._config.oid+"_border_BL_L"+r;A.setAttribute("width",b);
A.setAttribute("height",b);if(r==0&&b>0){if(this._theme.border_color){k.setStyle(A,"background-color",this._theme.border_color);}if(this._theme.border_images.bottom_left){k.setStyle(A,"background-image","url('"+this._theme.border_images.bottom_left+"')");k.setStyle(A,"background-repeat",this._theme.border_images.bottom_left_repeat);
}}var p=y.insertCell(-1);p.id="vc_gadget_"+this._config.oid+"_border_B_L"+r;p.setAttribute("height",b);if(r==0&&b>0){if(this._theme.border_color){k.setStyle(p,"background-color",this._theme.border_color);}if(this._theme.border_images.bottom){k.setStyle(p,"background-image","url('"+this._theme.border_images.bottom+"')");
k.setStyle(p,"background-repeat",this._theme.border_images.bottom_repeat);}if(this._theme.border_images.bottom_fill){k.setStyle(p,"background-color",this._theme.border_images.bottom_fill);}}var m=y.insertCell(-1);m.id="vc_gadget_"+this._config.oid+"_border_BR_L"+r;m.setAttribute("width",b);m.setAttribute("height",b);
if(r==0&&b>0){if(this._theme.border_color){k.setStyle(m,"background-color",this._theme.border_color);}if(this._theme.border_images.bottom_right){k.setStyle(m,"background-image","url('"+this._theme.border_images.bottom_right+"')");k.setStyle(m,"background-repeat",this._theme.border_images.bottom_right_repeat);
}}v.appendChild(s);},_renderTitleFrame:function(l){var m=k.get("vc_gadget_"+this._config.oid+"_content_L"+l);var n=document.createElement("div");n.id="vc_gadget_"+this._config.oid+"_title_L"+l;n.setAttribute("class","vc_gadget_title_L"+l);k.setStyle(n,"width",(this._config.width-b*2-this._metrics.TITLE_PADDING*2)+"px");
k.setStyle(n,"height",(this._metrics.getTitleHeight(null,this._config)-this._metrics.TITLE_PADDING*2)+"px");k.setStyle(n,"padding",this._metrics.TITLE_PADDING+"px");k.setStyle(n,"margin","0");if(l==0){if(this._theme.header_bg_color){k.setStyle(n,"background-color",this._theme.header_bg_color);}if(this._theme.header_bg_image){k.setStyle(n,"background-image","url('"+this._theme.header_bg_image+"')");
k.setStyle(n,"background-repeat",this._theme.header_bg_image_repeat);}}else{this._metrics.configureFont(n,this._config,"tt");}m.appendChild(n);},_renderBodyFrame:function(l){var n=k.get("vc_gadget_"+this._config.oid+"_content_L"+l);var m=document.createElement("div");m.id="vc_gadget_"+this._config.oid+"_body_L"+l;
m.setAttribute("class","vc_gadget_body_L"+l);k.setStyle(m,"width",(this._config.width-b*2)+"px");k.setStyle(m,"height",this._metrics.getOptimalBodyHeight(f,this._config)+"px");k.setStyle(m,"overflow","hidden");k.setStyle(m,"padding","0");k.setStyle(m,"margin","0");if(l==0){if(this._theme.body_bg_color&&!(this._theme.is_basic&&!this._config.bk_on)){k.setStyle(m,"background-color",this._theme.body_bg_color);
}if(this._theme.body_bg_image){k.setStyle(m,"background-image","url('"+this._theme.body_bg_image+"')");k.setStyle(m,"background-repeat",this._theme.body_bg_image_repeat);}}n.appendChild(m);},_renderPaginatorFrame:function(m){var n=k.get("vc_gadget_"+this._config.oid+"_content_L"+m);var l=document.createElement("div");
l.id="vc_gadget_"+this._config.oid+"_paginator_L"+m;l.setAttribute("class","vc_gadget_paginator_L"+m);k.setStyle(l,"width",(this._config.width-b*2)+"px");k.setStyle(l,"height",this._metrics.getPaginatorHeight(null,this._config)+"px");k.setStyle(l,"padding","0");k.setStyle(l,"margin","0");k.setStyle(l,"overflow","hidden");
l.innerHTML="&nbsp;";if(m==0){if(this._theme.footer_bg_color){k.setStyle(l,"background-color",this._theme.footer_bg_color);}if(this._theme.footer_bg_image){k.setStyle(l,"background-image","url('"+this._theme.footer_bg_image+"')");k.setStyle(l,"background-repeat",this._theme.footer_bg_image_repeat);}}else{k.setStyle(l,"color",this._config.pg_co);
k.setStyle(l,"font-family",this.PAGINATOR_FONT);k.setStyle(l,"font-size",this.PAGINATOR_FONT_SIZE);}n.appendChild(l);},_renderLogoFrame:function(m){var n=k.get("vc_gadget_"+this._config.oid+"_content_L"+m);var l=document.createElement("div");l.id="vc_gadget_"+this._config.oid+"_vclogo_L"+m;l.setAttribute("class","vc_gadget_vclogo_L"+m);
k.setStyle(l,"width",(this._config.width-b*2)+"px");k.setStyle(l,"height",this._metrics.getVCLogoHeight(null,this._config)+"px");k.setStyle(l,"padding","0");k.setStyle(l,"margin","0");k.setStyle(l,"overflow","hidden");n.appendChild(l);if(m==0){if(this._theme.footer_bg_color){k.setStyle(l,"background-color",this._theme.footer_bg_color);
}if(this._theme.footer_bg_image){k.setStyle(l,"background-image","url('"+this._theme.footer_bg_image+"')");k.setStyle(l,"background-repeat",this._theme.footer_bg_image_repeat);}}else{var o=document.createElement("div");var q=Math.round(k.getStyle(l,"height").replace("px","")/2)-6;k.setStyle(o,"position","relative");
k.setStyle(o,"top",q+"px");k.setStyle(o,"text-align","center");l.appendChild(o);var p=document.createElement("a");p.id="vc_gadget_"+this._config.oid+"_vclogo_link";p.setAttribute("class","vc_gadget_vclogo_link");p.setAttribute("href",this.VC_LOGO_URL);p.setAttribute("target","_blank");o.appendChild(p);
this._renderLogoImage(p);}},_renderLogoImage:function(l){var m=document.createElement("img");m.id="vc_gadget_"+this._config.oid+"_vclogo_img";m.setAttribute("src",this._theme.vc_logo);m.setAttribute("class","vc_gadget_vclogo_img");m.setAttribute("width",this.VC_LOGO_IMG_WIDTH);m.setAttribute("height",this.VC_LOGO_IMG_HEIGHT);
k.setStyle(m,"border","0");l.appendChild(m);this._iePNG(m);},_renderFrame:function(){f=k.get("vc_gadget_"+this._config.oid+"_container");f.innerHTML="";this._config.width=Math.max(this._config.width,this._metrics.getMinGadgetWidth(f,this._config));this._config.width=Math.min(this._config.width,this._metrics.MAX_GADGET_WIDTH);
this._config.height=Math.max(this._config.height,this._metrics.getMinGadgetHeight(f,this._config));this._config.height=Math.min(this._config.height,this._metrics.MAX_GADGET_HEIGHT);k.setStyle(f,"width",this._config.width+"px");k.setStyle(f,"height",this._config.height+"px");b=(this._config.br_on||!this._theme.is_basic)?this._config.border_size:0;
this._renderFrameLayer(0);this._renderFrameLayer(1);},_renderFrameLayer:function(l){var n=document.createElement("div");n.id="vc_gadget_"+this._config.oid+"_frame_L"+l;n.setAttribute("class","vc_gadget_frame_L"+l);k.setStyle(n,"position","absolute");if(l==0){k.setStyle(n,"opacity",this._config.opacity);
}k.setStyle(n,"width",this._config.width+"px");k.setStyle(n,"height",this._config.height+"px");k.setStyle(n,"overflow","hidden");if(l==0){if(this._theme.overall_bg_color){k.setStyle(n,"background-color",this._theme.overall_bg_color);}if(this._theme.overall_bg_image){k.setStyle(n,"background-image","url('"+this._theme.overall_bg_image+"')");
k.setStyle(n,"background-repeat",this._theme.overall_bg_image_repeat);}}f.appendChild(n);this._renderBorder(l);var o=k.get("vc_gadget_"+this._config.oid+"_inner_L"+l);var m=document.createElement("div");m.id="vc_gadget_"+this._config.oid+"_content_L"+l;k.setStyle(m,"width",(this._config.width-b*2)+"px");
k.setStyle(m,"height",(this._config.height-b*2)+"px");k.setStyle(m,"padding","0");k.setStyle(m,"margin","0");k.setStyle(m,"overflow","hidden");o.appendChild(m);if(this._config.tt_on){this._renderTitleFrame(l);if(l!=0){this._renderTitle();}}this._renderBodyFrame(l);if(this._config.pg_on){this._renderPaginatorFrame(l);
}if(this._config.vc_on){this._renderLogoFrame(l);}},_renderTitle:function(){var l=k.get("vc_gadget_"+this._config.oid+"_title_L1");k.setStyle(l,"color",this._config.tt_co);var m=this._config.tt_tx||"&nbsp;";this._metrics.truncToFit(m,l,true);},_renderPaginator:function(){if(!this._config.pg_on){return;
}var w=k.get("vc_gadget_"+this._config.oid+"_paginator_L1");w.innerHTML="";if(this._data&&this._data.resultCount>0){var r=document.createElement("table");k.setStyle(r,"width","100%");k.setStyle(r,"height",this._metrics.getPaginatorHeight(null,this._config)+"px");k.setStyle(r,"color",this._config.pg_co);
k.setStyle(r,"border-collapse","collapse");w.appendChild(r);var z=r.insertRow(-1);var v=z.insertCell(-1);v.setAttribute("width","50%");v.setAttribute("align","right");v.setAttribute("valign","middle");this._metrics.configureFont(v,this._config,"pg");var t=Math.ceil(this.MAX_TOTAL_ITEMS/(this._config.rows*this._config.cols))*this._config.rows*this._config.cols;
var A=Math.min(this._data.resultCount,t);var q=(this._data.items instanceof Array)?this._data.items.length:1;q=Math.min(q,this._config.rows*this._config.cols);var y=Math.min(this._data.resultPerPage,this._config.rows*this._config.cols);var p=(this._data.page-1)*y+1;var o=(this._data.page-1)*y+q;v.innerHTML=j(p)+"-"+j(o)+" / "+j(A);
var s=z.insertCell(-1);s.setAttribute("width","5");var l=z.insertCell(-1);l.setAttribute("width","50%");l.setAttribute("align","left");l.setAttribute("valign","middle");var m=document.createElement("select");m.setAttribute("name","page_select");l.appendChild(m);var n=Math.ceil(A/y);for(var u=1;u<=n;u++){var B=document.createElement("option");
B.setAttribute("value",u);if(u==this._data.page){B.setAttribute("selected",true);}B.innerHTML=u;m.appendChild(B);}var C=this;YAHOO.util.Event.addListener(m,"change",function(D){C.search(m.value);});}},_renderItemImage:function(n,l){var p=k.get("vc_gadget_"+this._config.oid+"_body_L1"),m=this._metrics.getOptimalImageSize(p,this._config);
l.setAttribute("width",m);l.setAttribute("height",this._metrics.getOptimalItemHeight(p,this._config));k.setStyle(l,"vertical-align","top");var r=document.createElement("a");r.id="vc_gadget_"+this._config.oid+"_item_"+this._itemSeqNum+"_image";r.setAttribute("class","vc_gadget_item_image");r.setAttribute("href",n.link);
r.setAttribute("target","_blank");l.appendChild(r);var o=document.createElement("img");var q=this._metrics.selectOptimalImage(n,m);if(!q){q=this._noImageIcon;}o.src=q;o.setAttribute("width",m);o.setAttribute("height",m);o.setAttribute("title",n.title);k.setStyle(o,"border","0");r.appendChild(o);},_renderItemName:function(o,l,n){var m=document.createElement("div");
m.id="vc_gadget_"+this._config.oid+"_item_"+this._itemSeqNum+"_name";m.setAttribute("class","vc_gadget_item_name");k.setStyle(m,"width","100%");k.setStyle(m,"height",this._metrics.getOptimalItemNameHeight(n,this._config)+"px");k.setStyle(m,"overflow","hidden");if(this._config.cd_on||this._config.mr_on||this._config.pr_on||this._config.ds_on){k.setStyle(m,"padding-bottom",this._metrics.ITEM_INTERNAL_SPACING+"px");
}l.appendChild(m);var p=document.createElement("a");p.setAttribute("href",o.link);p.setAttribute("target","_blank");p.setAttribute("class","vc_gadget_item_name_link");k.setStyle(p,"color",this._config.nm_co);this._metrics.configureFont(p,this._config,"nm");p.innerHTML=o.title;this._metrics.truncToFitLink(p,m);
},_renderItemCode:function(o,l,n){var m=document.createElement("div");m.id="vc_gadget_"+this._config.oid+"_item_"+this._itemSeqNum+"_code";m.setAttribute("class","vc_gadget_item_code");k.setStyle(m,"width","100%");k.setStyle(m,"height",this._metrics.getOptimalItemCodeHeight(n,this._config)+"px");k.setStyle(m,"overflow","hidden");
if(this._config.mr_on||this._config.pr_on||this._config.ds_on){k.setStyle(m,"padding-bottom",this._metrics.ITEM_INTERNAL_SPACING+"px");}k.setStyle(m,"color",this._config.cd_co);this._metrics.configureFont(m,this._config,"cd");l.appendChild(m);this._metrics.truncToFit(o.janCode+" "+o.markCode+" "+o.productCode+" "+o.modelCode,m);
},_renderMerchCode:function(o,l,m){var n=document.createElement("div");n.id="vc_gadget_"+this._config.oid+"_item_"+this._itemSeqNum+"_merch";n.setAttribute("class","vc_gadget_item_merch");k.setStyle(n,"width","100%");k.setStyle(n,"height",this._metrics.getOptimalItemMerchHeight(m,this._config)+"px");
k.setStyle(n,"overflow","hidden");if(this._config.pr_on||this._config.ds_on){k.setStyle(n,"padding-bottom",this._metrics.ITEM_INTERNAL_SPACING+"px");}k.setStyle(n,"color",this._config.mr_co);this._metrics.configureFont(n,this._config,"mr");l.appendChild(n);this._metrics.truncToFit(o.merchantName,n);},_renderItemPrice:function(o,l,n){var m=document.createElement("div");
m.id="vc_gadget_"+this._config.oid+"_item_"+this._itemSeqNum+"_price";m.setAttribute("class","vc_gadget_item_price");k.setStyle(m,"width","100%");k.setStyle(m,"height",this._metrics.getOptimalItemPriceHeight(n,this._config)+"px");k.setStyle(m,"overflow","hidden");if(this._config.ds_on){k.setStyle(m,"padding-bottom",this._metrics.ITEM_INTERNAL_SPACING+"px");
}k.setStyle(m,"color",this._config.pr_co);this._metrics.configureFont(m,this._config,"pr");if(o.price||o.price===0){m.innerHTML=d(o.price);}l.appendChild(m);},_renderItemDesc:function(o,m,n){var l=document.createElement("div");l.id="vc_gadget_"+this._config.oid+"_item_"+this._itemSeqNum+"_desc";l.setAttribute("class","vc_gadget_item_desc");
k.setStyle(l,"width","100%");k.setStyle(l,"height",this._metrics.getOptimalItemDescHeight(n,this._config)+"px");k.setStyle(l,"overflow","hidden");k.setStyle(l,"color",this._config.ds_co);this._metrics.configureFont(l,this._config,"ds");m.appendChild(l);this._metrics.truncToFit(o.description,l);},_renderPVImg:function(n,m){if(!this._config.preview){this._pvIndex++;
var l=document.createElement("div");k.setStyle(l,"display","none");m.appendChild(l);var o=document.createElement("img");o.setAttribute("src",n.pvImg+"&uin="+this._pvIndex);l.appendChild(o);}},_renderProductList:function(t,l){productsTable=document.createElement("table");productsTable.id="vc_gadget_"+this._config.oid+"_products_table";
productsTable.setAttribute("class","vc_gadget_products_table");productsTable.setAttribute("border","0");productsTable.setAttribute("cellspacing",this._metrics.ITEM_SPACING);productsTable.setAttribute("cellpadding","0");k.setStyle(productsTable,"width","100%");k.setStyle(productsTable,"height","100%");
k.setStyle(productsTable,"border-collapse","collapse");l.appendChild(productsTable);var m=this._metrics.getOptimalItemHeight(l,this._config);var s=this._metrics.getOptimalItemWidth(l,this._config);var r=0;for(var o=0;o<this._config.rows;o++){if(t instanceof Array&&r==t.length){break;}var u=productsTable.insertRow(-1);
for(var p=0;p<this._config.cols;p++){if(t instanceof Array){if(r==t.length){break;}var v=t[r++];}else{var v=t;}this._itemSeqNum=o*this._config.cols+p;var q=u.insertCell(-1);q.id="vc_gadget_"+this._config.oid+"_item_"+this._itemSeqNum+"_cell";q.setAttribute("class","vc_gadget_item_cell");var n=document.createElement("div");
n.id="vc_gadget_"+this._config.oid+"_item_"+this._itemSeqNum;n.setAttribute("class","vc_gadget_item");k.setStyle(n,"width",s+"px");k.setStyle(n,"height",m+"px");k.setStyle(n,"overflow","hidden");q.appendChild(n);this._renderPVImg(v,n);this._renderItem(v,n);if(!(t instanceof Array)){break;}}if(!(t instanceof Array)){break;
}}},_displayProducts:function(){var m=k.get("vc_gadget_"+this._config.oid+"_frame_table_L0");var n=this._config.width-m.offsetWidth;if(n){k.setStyle(m,"margin-left",n/2+"px");}var r=k.get("vc_gadget_"+this._config.oid+"_body_L1");if(this._config.auto_layout){this._config.cols=this._metrics.getOptimalCols(r,this._config);
this._config.rows=this._metrics.getOptimalRows(r,this._config);}else{this._config.cols=Math.min(Math.max(this._config.cols,1),this._metrics.getMaxCols(r,this._config));this._config.rows=Math.min(Math.max(this._config.rows,1),this._metrics.getMaxRows(r,this._config));this._config.cols=Math.min(this._config.cols,Math.floor(this._metrics.MAX_ITEMS_PER_PAGE/this._config.rows));
}if(this._data&&this._data.status=="OK"&&this._config.rows*this._config.cols!=this._data.resultPerPage){if(!(this._data.page==1&&this._config.rows*this._config.cols<this._data.resultPerPage)){this._data=null;}}if(this._data){var l=this._data.items;if(l){r.innerHTML="";this._renderProductList(l,r);}else{var s;
if(this._data.status=="INVALID_TOKEN"){s=this.MESSAGES[this._config.lang].INVALID_TOKEN;}else{s=this.MESSAGES[this._config.lang].NO_PRODUCTS_FOUND;}var p=k.get("vc_gadget_"+this._config.oid+"_body_L1");p.innerHTML="";var o=document.createElement("div");k.setStyle(o,"visibility","hidden");k.setStyle(o,"position","relative");
k.setStyle(o,"text-align","center");k.setStyle(o,"color",this._config.ds_co);k.setStyle(o,"padding","10px");this._metrics.configureFont(o,this._config,"ds");p.appendChild(o);o.innerHTML=s;var q=Math.round(k.getStyle(p,"height").replace("px","")/2-o.offsetHeight/2);k.setStyle(o,"top",q+"px");k.setStyle(o,"visibility","visible");
}this._renderPaginator();}else{this.search(1);}},_validSearch:function(){return true;},_beforeSearch:function(){},_getSearchParams:function(){return"";},_renderItem:function(m,l){},_init:function(n){this._config=n;var l=this._metrics,o=this._config;o.width=o.width||l.DEFAULT_GADGET_WIDTH;o.height=o.height||l.DEFAULT_GADGET_HEIGHT;
o.lang=o.lang||this.DEFAULT_LANG;o.tt_tx=o.tt_tx||"";if(typeof o.br_on=="undefined"){o.br_on=true;}if(typeof o.bk_on=="undefined"){o.bk_on=true;}this._pdbURL=o.pdb_url||this.PDB_URL;this._noImageIcon=o.no_image_icon||(o.preview?this.PORTAL_NO_IMAGE_ICON:this.BANNER_ENGINE_URL+this.BANNER_ENGINE_NO_IMAGE_ICON);
this._themeURL=o.theme_url||(o.preview?this.PORTAL_THEMES_PATH:this.BANNER_ENGINE_URL+this.BANNER_ENGINE_THEMES_PATH);o.theme=o.theme||this.DEFAULT_THEME;this._applyTheme();this._renderContainer();this._renderFrame();this._displayProducts();},getCurrentPage:function(){return g;},search:function(m){if(this._validSearch()){this._beforeSearch();
this._showLoadingIcon();g=m||1;var l=this._pdbURL+"/search?page="+m+"&results_per_page="+this._config.rows*this._config.cols+"&token="+this._config.token+"&format=jsonp&callback=VC.gadget_"+this._config.oid+".callback&"+this._getSearchParams();this._sendRequest(l);}},callback:function(l){i[h]=true;this._data=l;
this._displayProducts();}};}();},"1.1.0",{before:["vc-envs","gadget-themes"]});