

var trsLanguge=new function(){var sysLanguage=navigator.browserLanguage?navigator.browserLanguage:navigator.language;_self=this;var sImgUrl;_self.init=function(){switch(sysLanguage.toLowerCase().substring(0,2)){case'fr':{sImgUrl='fr_trs.gif';break;}
case'de':{sImgUrl='ge_trs.gif';break;}
case'it':{sImgUrl='it_trs.gif';break;}
case'nl':{sImgUrl='nl_trs.gif';break;}
case'ja':{}
case'jp':{sImgUrl='jp_trs.gif';break;}
case'ko':{}
case'kr':{sImgUrl='kr_trs.gif';break;}
case'pt':{sImgUrl='pt_trs.gif';break;}
case'ru':{sImgUrl='ru_trs.gif';break;}
case'es':{sImgUrl='sp_trs.gif';break;}
case'zh':{sImgUrl='zh_cn_trs.gif';if(sysLanguage.toLowerCase()=='zh-cn'){sImgUrl='zh_cn_trs.gif';break;}
if(sysLanguage.toLowerCase()=='zh-tw'){sImgUrl='zh_tw_trs.gif';break;}}
default:{sImgUrl=false;break;}}
if(sImgUrl){get('trsTargetId').innerHTML='<img  align="bottom" src="http://img.alibaba.com/images/eng/style/icon/translate_icon.gif" border="0" > <img align="bottom" id="trsLangugeImg" src="http://img.alibaba.com/images/eng/others/'+sImgUrl+'" border="0"/>';}else{get('trsTargetId').innerHTML='<img align="bottom" style="margin-bottom:-3px;" src="http://img.alibaba.com/images/eng/style/icon/translate_icon.gif" border="0" > Translate this page';}}}
try{YUE.on(window,'load',function(){if(top.location!=self.location||!get('trsTargetId')){return;}
trsLanguge.init();var trsTargetWidth=get('trsTargetId').offsetWidth;trsTargetWidth=trsTargetWidth||104;var clickkShowConfig={targetId:"trsTargetId",contentId:"trsContentId",needMask:true,excursion:[trsTargetWidth-104,16],needXY:true};var clickkShowInstance=new AE.widget.clickShow();clickkShowInstance.init(clickkShowConfig);var trsContentItems=get('trsContentId').getElementsByTagName('a');YUE.on(trsContentItems,'click',clickkShowInstance.hiddenDirectly,true);})}catch(E){}

AE.widget.InputHint=new function(){var defConfig={hintMessage:'',hintClass:'InputHint',appearOnce:false};var EMPTY_PATTERN=/^\s*$/;var focusHandler=function(ev,handle){handle.disappear();}
var blurHandler=function(ev,handle){handle.appear();}
var checkModify=function(ev,handle){handle.checkModify();}
this.decorate=function(inputField,config){inputField=$(inputField);config=TB.applyIf(config||{},defConfig);var hintMessage=config.hintMessage||inputField.title;var handle={};handle.disappear=function(){if(hintMessage==inputField.value){inputField.value='';$D.removeClass(inputField,config.hintClass);}};handle.appear=function(){if(EMPTY_PATTERN.test(inputField.value)||hintMessage==inputField.value){inputField.value=hintMessage;$D.addClass(inputField,config.hintClass);}}
inputField.setAttribute("title",hintMessage);$E.on(inputField,'focus',focusHandler,handle);$E.on(inputField,'drop',focusHandler,handle);if(!config.appearOnce)
$E.on(inputField,'blur',blurHandler,handle);handle.checkModify=function(){if(inputField.value!=hintMessage){$D.removeClass(inputField,config.hintClass);}}
$E.on(window,'load',checkModify,handle);handle.appear();return handle;}}

