$(document).ready(function(){$(".nav").superfish({pathClass:"current",speed:"fast",delay:0});$("ul",$(".nav")).bgIframe({opacity:false});$(".sortNav p").mouseover(function(){$(this).addClass("sortNavTOn").next("ol").slideDown("slow").siblings("ol").slideUp("slow");$(this).siblings("p").removeClass("sortNavTOn");});$("#indTabM0 li").hover(function(){$(this).addClass("indTabMOn1");},function(){var c=$(this).attr("class");if(c=="indTabMOn1"){$(this).removeClass("indTabMOn1");}});$("#skuM li").hover(function(){$(this).addClass("proCur1");},function(){var c=$(this).attr("class");if(c=="proCur1"){$(this).removeClass("proCur1");}});$("dl.proExp:last,#cartHavePro ul.lineDotH3:last,ul.expSecBrand li:last").css("background","none");$(".skuTopLogo img").each(function(i){var WskuLogo=260;if($(this).attr("width")*1>WskuLogo){$(this).width(WskuLogo);}});$(".brandInfoL img").each(function(i){var WbrandInfoL=246;if($(this).attr("width")*1>WbrandInfoL){$(this).width(WbrandInfoL);}});$(".proInfoTopL img").each(function(i){var WbrandInfoL=250;if($(this).attr("width")*1>WbrandInfoL){$(this).width(WbrandInfoL);}});});$(document).ready(function(){$("#indPPT").switchTabs({tab_tt_tag:".tab_tt",tab_ct_tag:".tab_ct",tab_tt_childTag:"li",tab_ct_childTag:"li",tab_tt_container_tag:".tab_tt_container",prevTag:".prev",nextTag:".next",focusClassName:"focus",type:"hover",intval_seconds:5000,animate_seconds:1000});
$("#banRight").marquee({direction:"down",step:1,speed:1,pause:1000});});function indTab(m,n){var tli=document.getElementById("indTabM"+m).getElementsByTagName("li");var mli=document.getElementById("indTabCont"+m).getElementsByTagName("div");for(i=0;i<tli.length;i++){tli[i].className=i==n?"indTabMOn":"";mli[i].style.display=i==n?"block":"none";}}function SKU(m,n){var tli=document.getElementById("skuM").getElementsByTagName("li");var mli=document.getElementById("skuC").getElementsByTagName("div");for(i=0;i<tli.length;i++){tli[i].className=i==m?"proCur":"";mli[i].style.display=i==n?"block":"none";}}function show(){document.getElementById("skuC4").style.display="block";document.getElementById("skuProInfo").style.display="block";}function hide(){document.getElementById("skuProInfo").style.display="none";}function proComment(){document.getElementById("").style.display="block";document.getElementById("").style.display="none";}function payTab(m,n){var tli=document.getElementById("payMenu"+m).getElementsByTagName("li");var mli=document.getElementById("payCont"+m).getElementsByTagName("ul");for(i=0;i<tli.length;i++){tli[i].className=i==n?"payCur":"";mli[i].style.display=i==n?"block":"none";if(n==2){tli[2].style.color="";}else{tli[2].style.color="#eb008d";}}}function acc(m,n){var tli=document.getElementById("accTabM"+m).getElementsByTagName("li");var mli=document.getElementById("accCont"+m).getElementsByTagName("div");for(i=0;i<tli.length;i++){tli[i].className=i==n?"accCur":"";mli[i].style.display=i==n?"block":"none";}}function cmsNew(m,n){var tli=document.getElementById("cmsNewM"+m).getElementsByTagName("li");var mli=document.getElementById("cmsNewC"+m).getElementsByTagName("ul");for(i=0;i<tli.length;i++){tli[i].className=i==n?"cmsNewCur":"";mli[i].style.display=i==n?"block":"none";}}function expRec(m,n){var tli=document.getElementById("expRecM"+m).getElementsByTagName("li");var mli=document.getElementById("expRecC"+m).getElementsByTagName("ul");for(i=0;i<tli.length;i++){tli[i].className=i==n?"expRecCur":"";mli[i].style.display=i==n?"block":"none";}}function setTab(m,n){var tli=document.getElementById("expSecRMenu").getElementsByTagName("dt");var mli=document.getElementById("expSecRMenu").getElementsByTagName("dd");for(i=0;i<tli.length;i++){tli[i].className=i==n?"current":"";mli[i].style.display=i==n?"block":"none";}}$(document).ready(function(){var $content=$("#expSolshow");var i=5;var m=5;var count=$content.find("li").length;var ulWidth=count*73;if(count<=m){$(".expBtnnext").css("background-image","url(/html/imagesNew/express/btn_expPreNone.gif)");$(".expBtnprev").css("background-image","url(/html/imagesNew/express/btn_expNextNone.gif)");}$("#expSolshow").width(ulWidth);$("#expnext").click(function(){if(!$content.is(":animated")){if(m<count){m++;$content.animate({left:"-=73px"},500);$(".expBtnprev").css("background-image","url(/html/imagesNew/express/btn_expPre.gif)");if(m==count){$(".expBtnnext").css("background-image","url(/html/imagesNew/express/btn_expNextNone.gif)");}}}});$("#expprev").click(function(){if(!$content.is(":animated")){if(m>i){m--;$content.animate({left:"+=73px"},500);$(".expBtnnext").css("background-image","url(/html/imagesNew/express/btn_expNext.gif)");if(m==i){$(".expBtnprev").css("background-image","url(/html/imagesNew/express/btn_expPreNone.gif)");}}}});});function MM_openBrWindow(theURL,winName,features){window.open(theURL,winName,features);}function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p){d.MM_p=new Array();}var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++){if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i];}}}}function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++){x.src=x.oSrc;}}function MM_findObj(n,d){var p,i,x;if(!d){d=document;}if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}if(!(x=d[n])&&d.all){x=d.all[n];}for(i=0;!x&&i<d.forms.length;i++){x=d.forms[i][n];}for(i=0;!x&&d.layers&&i<d.layers.length;i++){x=MM_findObj(n,d.layers[i].document);}if(!x&&d.getElementById){x=d.getElementById(n);}return x;}function MM_swapImage(){var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3){if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc){x.oSrc=x.src;}x.src=a[i+2];}}}var vcmpId="select1 img_ar";var vctrId="sovs";var vctrs=["sovs","sovs2","sovs3","sovs4","sovs5","sovs6"];function hsPageList(cmpId,ctrId,evt){if(!evt){var evt=window.event;}var src=evt.target||evt.srcElement;var srcId=src.id;if(typeof srcId=="undefined"||srcId==null||srcId==""||srcId=="undefined"){srcId="";}var cids=cmpId.split(" ");var find=false;for(var f=0;f<cids.length;f++){if(cids[f]==srcId&&srcId!=""){find=true;}if(find){break;}}vcmpId=cmpId;vctrId=ctrId;hsItem(ctrId,find);for(var ci=0;ci<vctrs.length;ci++){if(vctrs[ci]==ctrId){}else{hsItem(vctrs[ci],false);}}}function hsItem(cVctrId,find){if(typeof cVctrId=="undefined"||cVctrId==null){cVctrId=vctrId;}var curObj=document.getElementById(cVctrId);if(typeof curObj=="undefined"||curObj==null){}else{var clsn=curObj.className+"";var re=new RegExp("hidden");clsn=clsn.replace(re,"");if(find){curObj.className=clsn;}else{curObj.className=clsn+" hidden";}}}function showOptions(relativedId,cmpId,ctrId,evt,movePox){var posi=getElementPosition(relativedId);posi.y=posi.y+movePox;positionElement(ctrId,posi);hsPageList(cmpId,ctrId,evt);}function positionElement(elementId,position){var curObj=document.getElementById(elementId);if(typeof curObj=="undefined"||curObj==null){}else{curObj.style.position="absolute";curObj.style.top=position.y+"px";curObj.style.left=position.x+"px";}}function getElementPosition(elementId){var ua=navigator.userAgent.toLowerCase();var isOpera=(ua.indexOf("opera")!=-1);var isIE=(ua.indexOf("msie")!=-1&&!isOpera);var el=document.getElementById(elementId);if(el.parentNode===null||el.style.display=="none"){return false;}var parent=null;var pos=[];var box;if(el.getBoundingClientRect){box=el.getBoundingClientRect();var scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop);var scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);return{x:box.left+scrollLeft,y:box.top+scrollTop};}else{if(document.getBoxObjectFor){box=document.getBoxObjectFor(el);var borderLeft=(el.style.borderLeftWidth)?parseInt(el.style.borderLeftWidth):0;var borderTop=(el.style.borderTopWidth)?parseInt(el.style.borderTopWidth):0;pos=[box.x-borderLeft,box.y-borderTop];}else{pos=[el.offsetLeft,el.offsetTop];parent=el.offsetParent;if(parent!=el){while(parent){pos[0]+=parent.offsetLeft;pos[1]+=parent.offsetTop;parent=parent.offsetParent;}}if(ua.indexOf("opera")!=-1||(ua.indexOf("safari")!=-1&&el.style.position=="absolute")){pos[0]-=document.body.offsetLeft;pos[1]-=document.body.offsetTop;}}}if(el.parentNode){parent=el.parentNode;}else{parent=null;}while(parent&&parent.tagName!="BODY"&&parent.tagName!="HTML"){pos[0]-=parent.scrollLeft;pos[1]-=parent.scrollTop;if(parent.parentNode){parent=parent.parentNode;}else{parent=null;}}return{x:pos[0],y:pos[1]};}var aeOL=[];function addEvent(o,n,f,l){var a="addEventListener",h="on"+n,b="",s="";if(o[a]&&!l){return o[a](n,f,false);}o._c|=0;if(o[h]){b="_f"+o._c++;o[b]=o[h];}s="_f"+o._c++;o[s]=f;o[h]=function(e){e=e||window.event;var r=true;if(b){r=o[b](e)!=false&&r;}r=o[s](e)!=false&&r;return r;};aeOL[aeOL.length]={o:o,h:h};}addEvent(window,"unload",function(){for(var i=0;i<aeOL.length;i++){with(aeOL[i]){o[h]=null;for(var c=0;o["_f"+c];c++){o["_f"+c]=null;}}}});function cancelEvent(e,c){e.returnValue=false;if(e.preventDefault){e.preventDefault();}if(c){e.cancelBubble=true;if(e.stopPropagation){e.stopPropagation();}}}addEvent(document,"click",function(evt){evt=evt||window.event;if(typeof(vcmpId)=="undefined"){}else{hsPageList(vcmpId,vctrId,evt);}},1);function changeBgImg(img){var bg=document.getElementById("Selections");bg.style.height="100px";bg.style.padding="3px";bg.style.lineHeight="1.5em";bg.style.background="url("+img+") no-repeat left 30px";}