
try{document.domain="alibaba.com";}catch(E){}
AE.namespace("AE.home.clastics");AE.home.clastics.delayShow=function(){this.running=0;this.init.apply(this,arguments);};AE.home.clastics.delayShow.prototype={stop:function(){clearTimeout(this.TO_ID);},start:function(){var _me=this;_me.running=1;_me.TO_ID=setTimeout(function(){_me.show();},5000);},show:function(){var _me=this,i=this._curIndex;try{_me._ulNodeList[i].className="";if(i==_me._ulNodeList.length-1){i=-1;}
_me._ulNodeList[i+1].className="current";i++;_me._curIndex=i;_me.start();}
catch(err)
{_me.start();}},init:function(pTabID,pTabID2){var _me=this,i=0;var pID=pTabID+"content";var p=get(pID);if(!p)return;var pTab1=get(pTabID);var pTab2=get(pTabID2);_me._ulNodeList=p.getElementsByTagName("ul");YUE.addListener(_me._ulNodeList,'mouseover',function(){_me.stop();},_me._ulNodeList,true);YUE.addListener(_me._ulNodeList,'mouseout',function(){_me.start();},_me._ulNodeList,true);_me.start();},_curIndex:0};function switchTab(tabList,css,eve,fn,isDelay){var _fn=function(e,tab){switchTabList=tabList;switchCss=css;switchTabTab=tab;switchFn=fn;switchE=e;function startSwitchTab(){YUD.removeClass(switchTabList,switchCss);YUD.addClass(switchTabTab,switchCss);switchFn.call(switchTabTab,switchE,switchTabList);}
function stopSwitchTab(){clearTimeout(this.timeout);}
if(isDelay){switchTabTab.timeout=setTimeout(startSwitchTab,200);YUE.on(switchTabTab,'mouseout',stopSwitchTab,switchTabTab,switchTabTab);}else{startSwitchTab();}};YUE.on(tabList,eve,function(e){if(YUD.hasClass(this,css))return;_fn(e,this);});arguments.callee.go=function(inx){_fn('manual',tabList[inx]);};return arguments.callee;}
function signin(){window.location="https://login.alibaba.com";}
YUE.onDOMReady(function(){AE.fix.imageLoader('http://img.alibaba.com/images/eng/style/css_images/sprites/main_navig_sprites.gif');var overShowForBuyerConfig={targetId:"overShowForBuyer",contentId:"overShowForBuyerContent",needMask:true,showDelayTime:200,hiddenDelayTime:200,excursion:[0,19]};var overShowForSellerConfig={targetId:"overShowForSeller",contentId:"overShowForSellerContent",needMask:true,showDelayTime:200,hiddenDelayTime:200,excursion:[0,19]};var overShowCommunityConfig={targetId:"overShowCommunity",contentId:"overShowCommunityContent",needMask:true,showDelayTime:200,hiddenDelayTime:200,excursion:[0,19]};var overShowMyAlibabaConfig={targetId:"overShowMyAlibaba",contentId:"overShowMyAlibabaContent",needMask:true,showDelayTime:200,hiddenDelayTime:200,excursion:[0,19]};var overShowHelpConfig={targetId:"overShowHelp",contentId:"overShowHelpContent",needMask:true,showDelayTime:200,hiddenDelayTime:200,excursion:[-111,19]};var overShowForHelpInstance=new AE.widget.overShow();overShowForHelpInstance.init(overShowHelpConfig);overShowForHelpInstance.afterShowDelay.subscribe(function(){YUD.addClass('overShowHelp','onshow');});overShowForHelpInstance.afterHiddenDelay.subscribe(function(){YUD.removeClass('overShowHelp','onshow');});var overShowForBuyerInstance=new AE.widget.overShow();overShowForBuyerInstance.init(overShowForBuyerConfig);overShowForBuyerInstance.afterShowDelay.subscribe(function(){YUD.addClass('overShowForBuyer','onshow');});overShowForBuyerInstance.afterHiddenDelay.subscribe(function(){YUD.removeClass('overShowForBuyer','onshow');});var overShowForSellerInstance=new AE.widget.overShow();overShowForSellerInstance.init(overShowForSellerConfig);overShowForSellerInstance.afterShowDelay.subscribe(function(){YUD.addClass('overShowForSeller','onshow');});overShowForSellerInstance.afterHiddenDelay.subscribe(function(){YUD.removeClass('overShowForSeller','onshow');});var overShowCommunityInstance=new AE.widget.overShow();overShowCommunityInstance.init(overShowCommunityConfig);overShowCommunityInstance.afterShowDelay.subscribe(function(){YUD.addClass('overShowCommunity','onshow');});overShowCommunityInstance.afterHiddenDelay.subscribe(function(){YUD.removeClass('overShowCommunity','onshow');});var overShowMyAlibabaInstance=new AE.widget.overShow();overShowMyAlibabaInstance.init(overShowMyAlibabaConfig);overShowMyAlibabaInstance.afterShowDelay.subscribe(function(){YUD.addClass('overShowMyAlibaba','onshow');});overShowMyAlibabaInstance.afterHiddenDelay.subscribe(function(){YUD.removeClass('overShowMyAlibaba','onshow');});var myInbox=new AE.run.inboxIcon();myInbox.init({businessRole:adsControlData.servType});myInbox.afterGetMessageEvent.subscribe(function(){if(top_msgdata.inbox<1){get('messageInfo').innerHTML='Check <a href="http://us.my.alibaba.com/mcadmin/inbox/inboxList.htm" rel="nofollow" id="checkNewMessages">New Messages</a>';}else if(top_msgdata.inbox==1){get('messageInfo').innerHTML='<a href="http://us.my.alibaba.com/mcadmin/inbox/inboxList.htm" rel="nofollow" id="checkNewMessages">1 New Message</a>';}else{var tempNumber=top_msgdata.inbox.toLocaleString();if(AE.bom.isIE){tempNumber=tempNumber.substring(0,tempNumber.length-3);}
get('messageInfo').innerHTML='<a href="http://us.my.alibaba.com/mcadmin/inbox/inboxList.htm" rel="nofollow" id="checkNewMessages">'+tempNumber+' New Messages</a>';}});},'mainNavig');var autoSuggest=new AE.widget.intelligentSearch();autoSuggest.init({url:'http://connectkeyword.alibaba.com/lenoIframeJson.htm?iframe_delete=true',inputElId:'SearchTextIdx',listCssClass:'intelligentList',listCssStyle:'left:0px;top:'+(AE.bom.isIE?32:31)+'px;width:406px;z-index:777',returnVarName:'intelSearchData',keyWordClass:'boldKeword'});var fSelector=new AE.widget.xSelector();fSelector.init({selectId:'searchCountry',fakeSelectId:'fakeSelectorBox',selectBoxWH:[157,AE.bom.isIE?26:22],selectBoxZIndex:100,optionBoxTop:'32px',arrowBoxLeft:'141px'});fSelector.onChange.subscribe(function(e,sel){var orgSel=sel[0];if(orgSel.value=='0'){orgSel.options[0].selected=true;window.location='http://www.alibaba.com/trade/advancesearch';}});YUE.onDOMReady(function(){var historyInx=document.SearchForm.IndexArea.value.toLowerCase();switchTab(get('searchTabsBox').getElementsByTagName('li'),'current','click',function(e,tabs){var input=get('SearchTextIdx'),f=input.form;var fData={product:{url:'http://www.alibaba.com/trade/search',inx:'product_en',hint:'Search Products'},company:{url:'http://www.alibaba.com/trade/search',inx:'company_en',hint:'Search Suppliers'},buy:{url:'http://importer.alibaba.com/buyeroffers',inx:'offer_en',hint:'Search Buyers'}};var tabAs=this.getElementsByTagName('a'),tabA=null;if(tabAs.length<=0)return;tabA=tabAs[0];if(trim(input.value)==''||isHintKey(input.value)){YUD.addClass(input,'hint');input.value=fData[tabA.id].hint;}
f.action=fData[tabA.id].url;f.IndexArea.value=fData[tabA.id].inx;if(input.createTextRange){var rng=input.createTextRange();rng.moveStart('character',input.value.length);rng.collapse(true);rng.select();}else if(input.setSelectionRange){var rng=input.setSelectionRange(0,0);}
input.focus();showSpliteLine();}).go(historyInx=='offer_en'?2:historyInx=='company_en'?1:0);});YUE.on('SearchTextIdx','click',clearHint);YUE.on('SearchTextIdx','keydown',clearHint);YUE.on('SearchTextIdx','paste',clearHint);function showSpliteLine(){var currentTabA=YUD.getElementsByClassName('current','li','searchTabsBox')[0].childNodes[0];var tabCenter=get('searchTabsBox').getElementsByTagName('li')[1];switch(currentTabA.id){case'product':tabCenter.className='';YUD.addClass(tabCenter,'tabSplitLineRight');break;case'buy':tabCenter.className='';YUD.addClass(tabCenter,'tabSplitLineLeft');break;case'company':tabCenter.className='current';break;}}
function isHintKey(val){return(/^search (?:products|suppliers|buyers)$/i).test(trim(val.toLowerCase()));}
function clearHint(){if(isHintKey(this.value)){this.value='';}
YUD.removeClass(this,'hint');}
function verify(f){var searchInput=f.SearchText;if(isHintKey(searchInput.value)||trim(searchInput.value)==''){alert('Please input a search term.');searchInput.focus();return false;}
if(searchInput.value.length>50){alert('please input a search term less than 50 characters.');searchInput.focus();return false;}
if(!YL.isEnglish(searchInput.value)){alert('Sorry, the information you filled in is not in English.\nPlease input the information in English instead.');searchInput.focus();return false;}
logKeywordsHistory(searchInput.value);return true;}
var hotNewsAE=AE.widget.SimpleScroll.decorate('tradeNews',{lineHeight:12,startDelay:3,delay:3});var PWatch1=AE.widget.SimpleScroll.decorate('PWLine1',{lineHeight:20,startDelay:3,delay:3});var PWatch2=AE.widget.SimpleScroll.decorate('PWLine2',{lineHeight:20,startDelay:3.5,delay:3});var PWatch3=AE.widget.SimpleScroll.decorate('PWLine3',{lineHeight:20,startDelay:4,delay:3});try{var cateControl=get("cate-father").categories=(new AE.app.categories()).init({excursion:[AE.bom.isIE6?177:178,0]});cateControl.onAfterShow.subscribe(function(){autoSuggest.UIController.hideList();});}catch(err){}
YUE.on('cate-button','click',function(){if(YUD.hasClass(this,'cate-more')){YUD.replaceClass(this,'cate-more','cate-less');this.childNodes[0].nodeValue='Less Categories';animBy(get("hidden-cate"),'height',220,8);return 0;}else{YUD.replaceClass(this,'cate-less','cate-more');this.childNodes[0].nodeValue='More Categories';animBy(get("hidden-cate"),'height',-220,8);return 0;}});if(window.ABTestFlag!='new'){var switchProducts=new AE.home.clastics.delayShow("tab-tn-1","tab-tn-2");var switchBuyLeads=new AE.home.clastics.delayShow("tab-tn-2","tab-tn-1");switchTab(get(['tab-tn-1','tab-tn-2']),'tab-current','mouseover',function(e,tabs){var cntBoxes=YUD.getElementsByClassName("box",'div','todaysNew');YUD.removeClass(cntBoxes,'tabc-current');YUD.addClass(this.id+'content','tabc-current');},true).go((adsControlData.tradeType=='buyer'||adsControlData.tradeType=='')?0:1);}
var lngOptions=get(['lan-en','lan-cn','lan-tw']);function hideMenu(){YUD.removeClass('lan-switch-btn',"switcherClicked");YUD.replaceClass('lan-menu',"menuVisible","menuHidden");}
switchTab(lngOptions,'fake-css','click',function(e,tabs){var cntBox=get(this.id.replace('lan','con'));var switcher=get("lan-switch-btn");YUD.removeClass(['con-en','con-cn','con-tw'],'current');YUD.addClass(cntBox,'current');YUD.setStyle(this,'background-color','#f4f4f4');switcher.innerHTML=this.innerHTML;});YUE.on(lngOptions,'mouseover',function(){YUD.setStyle(lngOptions,'background-color','#fff');YUD.setStyle(this,'background-color','#f4f4f4');});YUE.on('lan-switch-btn','click',function(e){YUE.stopEvent(e);if(YUD.hasClass(this,'switcherClicked')){hideMenu();}else{YUD.addClass(this,"switcherClicked");YUD.replaceClass('lan-menu',"menuHidden","menuVisible");}});YUE.on(document.body||document.documentElement,'click',hideMenu);YUE.onDOMReady(function(){switchTab(get(['buy-tab','sell-tab']),'current-signed-tab','mouseover',function(e,tabs){YUD.removeClass(['buy-tabButton','sell-tabButton'],'current-button');YUD.addClass(this.id+"Button",'current-button');},true).go(adsControlData.tradeType=="buyer"||adsControlData.tradeType==''?0:1);});var countryReguibOverShow=new AE.widget.overShow();countryReguibOverShow.init({targetId:'moreCountry',contentId:'cList',needMask:true,showDelayTime:20,hiddenDelayTime:20,excursion:[AE.bom.isIE?-52:-51,21]});countryReguibOverShow.afterShowDelay.subscribe(function(){YUD.replaceClass('moreCountry','unClicked','clicked');});countryReguibOverShow.afterHiddenDelay.subscribe(function(){YUD.replaceClass('moreCountry','clicked','unClicked');});YUE.on('cList','mouseover',function(){YUD.replaceClass('moreCountry','unClicked','clicked');});YUE.onDOMReady(function(){var GMTDate=new Date(GMTDateObj.year,GMTDateObj.month-1,GMTDateObj.day,GMTDateObj.hour);var offsetMSec=new Date().getTimezoneOffset()*1000*60;var localDate=new Date(GMTDate-offsetMSec);var monthData=localDate.getMonth();switch(monthData){case 0:monthData='Jan.';break;case 1:monthData='Feb.';break;case 2:monthData='Mar.';break;case 3:monthData='Apr.';break;case 4:monthData='May';break;case 5:monthData='Jun.';break;case 6:monthData='July';break;case 7:monthData='Aug';break;case 8:monthData='Sep.';break;case 9:monthData='Oct.';break;case 10:monthData='Nov.';break;case 11:monthData='Dec.';break;}
get('todayMonth').innerHTML=monthData;get('todayDay').innerHTML=localDate.getDate();});function setMask(e,el,val){if(e.button!=0&&e.button!=1){el.setAttribute('over','0');return;}
el.setAttribute('over',val);}
function initOverShow(){var items=YUD.getElementsByClassName('tdnImg','a','todayNewContent');var overShow=new AE.widget.overShow();YUE.removeListener(items);YUE.removeListener('infoPop');overShow.afterShowDelay.subscribe(function(e,d){var data=(d[0].parentNode).getAttribute('data'),titleTxt,titleEl,ctryEl;if(data&&data!=''){data=data.split('||');titleEl=get('infoTlt');titleTxt=data[2];ctryEl=get('infoCountry');titleEl.setAttribute('title',titleTxt);titleEl.href=d[0].href;if(titleTxt.length>28)titleTxt=titleTxt.substring(0,28)+'...';titleEl.childNodes[0].nodeValue=titleTxt;ctryEl.className='';YUD.addClass(ctryEl,'country-flag css_'+data[1]);get('countryName').childNodes[0].nodeValue=data[0];}});overShow.afterShow.subscribe(function(){YUD.setStyle('infoPop','top',(parseInt(YUD.getStyle('infoPop','top'),10)-2)+'px');});overShow.init({targetId:items,contentId:'infoPop',excursion:['center','bottom']});}
function initTodaysNew(){var tnScroll=new AE.app.infiniteScroll();tnScroll.onScroll.subscribe(function(e,d){if(this.scrolling||get(d[0]).getAttribute('over')=='0')return;this.scroll(d[0]);});tnScroll.onInit.subscribe(initOverShow);tnScroll.onUpdate.subscribe(initOverShow);tnScroll.init({scrollBody:'todayNewContent',dataSource:'todayNewData',showNum:5,step:1,itemWidth:95,speed:19});var btns=get(['prev','next']);YUE.removeListener(btns);YUE.on(btns,'mousedown',function(e){if((e.button!=0&&e.button!=1)||tnScroll.scrolling)return;tnScroll.scroll(this.id);setMask(e,this,1);});YUE.on(btns,'mouseover',function(e){setMask(e,this,1);YUD.addClass(this,this.id+'Mover');});YUE.on(btns,'mouseout',function(e){setMask(e,this,0);YUD.removeClass(this,this.id+'Mover');});YUE.on(btns,'mouseup',function(e){setMask(e,this,0);});YUE.on(btns,'dblclick',function(e){YUE.stopEvent(e);return false;});}
YUE.onDOMReady(initTodaysNew);AE.namespace("AE.home.slideShow");AE.home.slideShow=function(){this.config={slideItems:[],slideFrom:[],slideTo:[],currentClass:'showed',slideEvent:'mouseover',fatherID:''};this._afterScrollEvent=new YAHOO.util.CustomEvent("_afterScroll",this,false,YAHOO.util.CustomEvent.FLAT);this.init=function(defConfig){var CFG=this.config=YL.merge(this.config,defConfig);YUE.on(CFG.slideItems,'mouseover',this.slide,this);var itemNumber=CFG.slideItems.length;var i=1;CFG.slideItems[0].className='showed';CFG.slideItems[0].style.height=CFG.slideTo[0]+'px';CFG.slideItems[0].style.overflow='hidden';for(;i<itemNumber;i++){CFG.slideItems[i].style.height=CFG.slideFrom[i]+'px';CFG.slideItems[i].style.overflow='hidden';}
window.RPSLIDING=false;};this.setSildeSize=function(defConfig){var CFG=this.config;this.config.slideFrom=defConfig.slideFrom;this.config.slideTo=defConfig.slideTo;var itemNumber=CFG.slideItems.length;var i=1;CFG.slideItems[0].className='showed';CFG.slideItems[0].style.height=CFG.slideTo[0]+'px';CFG.slideItems[0].style.overflow='hidden';for(;i<itemNumber;i++){CFG.slideItems[i].style.height=CFG.slideFrom[i]+'px';CFG.slideItems[i].style.overflow='hidden';}}}
AE.home.slideShow.prototype=YL.merge(AE.home.slideShow.prototype,{sliding:function(){window.RPSLIDING=false;},slide:function(ev,_self){if(window.RPSLIDING==true){return;}
slideSelf=_self;slideThis=this;function startSlide(){showedItem=YUD.getElementsByClassName(slideSelf.config.currentClass,null,slideSelf.config.fatherID)[0];var relativePostion=slideSelf.getRelativePosition(slideThis,showedItem);var thisIndex=slideThis.getAttribute('slideindex');var showedInex=showedItem.getAttribute('slideindex');thisExpendSize=slideSelf.config.slideTo[thisIndex]-slideSelf.config.slideFrom[thisIndex];showedExpendsize=slideSelf.config.slideFrom[showedInex]-slideSelf.config.slideTo[showedInex];if(relativePostion=='onCurrent'){return;}else{slideSelf._afterScrollEvent.fire(slideThis);window.RPSLIDING=true;softAnim(showedItem,'height',showedExpendsize,10);softAnim(slideThis,'height',thisExpendSize,10,slideSelf.sliding);slideThis.className='showed';showedItem.className='';}}
this.timeout=setTimeout(startSlide,200);YUE.on(this,'mouseout',stopSlide,this,this);function stopSlide(){clearTimeout(this.timeout);}},getRelativePosition:function(el,elShowed){var currentIndex=elShowed.getAttribute('slideindex');if(currentIndex>el.getAttribute('slideindex')){return'beforeCurrent';}
else if(currentIndex<el.getAttribute('slideindex')){return'afterCurrent';}
else{return'onCurrent';}}});var poromtionSlideConfig={slideItems:get(['goldSupplier','certSupplier','expressService']),slideFrom:[29,44,44],slideTo:[139,154,154],fatherID:'tab-RP-2content'};var promotionSlideShow=new AE.home.slideShow();promotionSlideShow.init(poromtionSlideConfig);promotionSlideShow._afterScrollEvent.subscribe(function(el){YUD.replaceClass(['GSArrow','ESArrow','CSArrow'],'upArrow','downArrow');switch(el.id){case'goldSupplier':YUD.replaceClass('GSArrow','downArrow','upArrow');break;case'certSupplier':YUD.replaceClass('CSArrow','downArrow','upArrow');break;case'expressService':YUD.replaceClass('ESArrow','downArrow','upArrow');break;}
YUD.replaceClass(el,'downArrow','upArrow');});window.GLOBLELANTAG=false;(function(){YUE.on('RPSwitcher','click',function(e){if(window.GLOBLELANTAG==false){window.GLOBLELANTAG=true;get('RPSwitcherList').style.display='block';}
else{window.GLOBLELANTAG=false;get('RPSwitcherList').style.display='none';}
YUE.stopEvent(e);});YUE.on(document.body,'click',function(){window.GLOBLELANTAG=false;get('RPSwitcherList').style.display='none';});YUE.on(['lanEN','lanCN','lanTW'],'click',RPSwitch);})();function RPSwitch(lanID,firstIn){window.GLOBLELANTAG=false;get('RPSwitcherList').style.display='none';if(this.id=='lanEN'||lanID=='lanEN'){get('goldSupplierImgEN').style.display='block';get('goldSupplierImgCN').style.display='none';get('goldSupplierImgTW').style.display='none';get('certSupplier').style.display='none';get('expressService').style.display='none';YUD.setStyle('goldSupplier','height','138px');get('RPTitle').innerHTML='Premium Membership';if(!firstIn){get('RPSwitcher').style.background='#fff';get('RPSwitcher').innerHTML='English';YUD.addClass(get('RPSwitcher'),'lanSelected');}
get('GSArrow').style.display='none';get('displayProductsLink').innerHTML='Display Products Free';}else if(this.id=='lanCN'||lanID=='lanCN'){get('goldSupplierImgCN').style.display='block';get('goldSupplierImgEN').style.display='none';get('goldSupplierImgTW').style.display='none';get('expressServiceImgCN').style.display='block';get('expressServiceImgTW').style.display='none';get('certSupplierImg').style.display='block';get('certSupplier').style.display='block';get('expressService').style.display='block';promotionSlideShow.setSildeSize({slideFrom:[29,44,44],slideTo:[139,154,154]});get('RPTitle').innerHTML='Our Services';if(!firstIn){get('RPSwitcher').style.background='#fff';get('RPSwitcher').innerHTML='<img src="http://img.alibaba.com/images/eng/style/css_images/home/simple_chinese.gif" />';YUD.addClass(get('RPSwitcher'),'lanSelected');}
get('GSArrow').style.display='block';get('displayProductsLink').innerHTML='Display Products';}else{get('goldSupplierImgEN').style.display='none';get('goldSupplierImgCN').style.display='none';get('goldSupplierImgTW').style.display='block';get('expressServiceImgCN').style.display='none';get('expressServiceImgTW').style.display='block';get('certSupplier').style.display='none';get('expressService').style.display='block';promotionSlideShow.setSildeSize({slideFrom:[29,44,43],slideTo:[180,154,194]});get('RPTitle').innerHTML='Our Services';if(!firstIn){get('RPSwitcher').style.background='#fff';get('RPSwitcher').innerHTML='<img src="http://img.alibaba.com/images/eng/style/css_images/home/traditional_chinese.gif" />';YUD.addClass(get('RPSwitcher'),'lanSelected');}
get('GSArrow').style.display='block';get('displayProductsLink').innerHTML='Display Products Free';}}
var promotionType=1;if(!adsControlData.isLogin){if(adsControlData.ipRegion=='China'){promotionType=1;get('buyerStory').style.display='block';get('sellerStory').style.display='none';RPSwitch('lanCN',true);get('RPSwitcher').style.background='transparent url(http://img.alibaba.com/images/eng/style/css_images/home/homeClasticV1.gif) no-repeat scroll -540px -380px';}else{if(Math.random()>0.5){promotionType=0;get('buyerStory').style.display='none';get('sellerStory').style.display='block';}
RPSwitch('lanEN',true);get('RPSwitcher').style.background='transparent url(http://img.alibaba.com/images/eng/style/css_images/home/homeClasticV1.gif) no-repeat scroll -642px -380px';}}else{if(adsControlData.tradeType=='seller'||adsControlData.tradeType=='both'){promotionType=1;get('buyerStory').style.display='none';get('sellerStory').style.display='block';if(adsControlData.isChinaMainland){RPSwitch('lanCN',true);get('RPSwitcher').style.background='transparent url(http://img.alibaba.com/images/eng/style/css_images/home/homeClasticV1.gif) no-repeat scroll -540px -380px';}
if(adsControlData.isHK){RPSwitch('lanTW',true);get('RPSwitcher').style.background='transparent url(http://img.alibaba.com/images/eng/style/css_images/home/homeClasticV1.gif) no-repeat scroll -540px -380px';}
if(adsControlData.isOversea){RPSwitch('lanEN',true);get('RPSwitcher').style.background='transparent url(http://img.alibaba.com/images/eng/style/css_images/home/homeClasticV1.gif) no-repeat scroll -642px -380px';}}
else{promotionType=0;get('buyerStory').style.display='block';get('sellerStory').style.display='none';}}
YUE.onDOMReady(function(){switchTab(get(['tab-RP-1','tab-RP-2']),'currentTab','mouseover',function(e,tabs){var cntBoxes=YUD.getElementsByClassName('content','div','rightPromotion');YUD.removeClass(cntBoxes,'currentTab');YUD.addClass(this.id+'content','currentTab');if(this.id=='tab-RP-1'){get('buyerStory').style.display='block';get('sellerStory').style.display='none';}else{get('buyerStory').style.display='none';get('sellerStory').style.display='block';}},true).go(promotionType);});function loadAskPostQuestion(){get('askPostQuestion').src='http://ask.alibaba.com/question/searchPostQuestion.htm?iframe_delete=true';YUE.removeListener(window,'scroll',loadAskPostQuestion);}
YUE.on(window,'scroll',loadAskPostQuestion);

