function pass(){if(ouku.cookie.read("OKSID")){try{ouku.ajax.call(ouku.path.root+"pss.php","",function(){},"get","text","no")}catch(a){}}}function show_top_tips(){var c={rest:"\u60a8\u597d\uff0c\u8fd9\u4e48\u665a\u8fd8\u6765\u6b27\u9177\uff01\u4f46\u662f\u5f88\u62b1\u6b49\uff0c\u5ba2\u670d\u73b0\u5728\u5df2\u7ecf\u4f11\u606f\u4e86\u3002\u60a8\u53ef\u4ee5\u7559\u8a00\u54a8\u8be2\u6216\u76f4\u63a5\u4e0b\u5355\u3002\u6211\u4eec\u4f1a\u53ca\u65f6\u56de\u590d\u548c\u786e\u8ba4\u8ba2\u5355\uff0c\u795d\u60a8\u5728\u6b27\u9177\u8d2d\u7269\u6109\u5feb\uff01",morning:"\u65e9\u4e0a\u597d\uff0c\u6b22\u8fce\u6765\u5230\u6b27\u9177\uff01\u4f46\u5ba2\u670d\u5c1a\u672a\u4e0a\u73ed\u3002\u60a8\u53ef\u4ee5\u7559\u8a00\u54a8\u8be2\u6216\u76f4\u63a5\u4e0b\u5355\u3002\u6211\u4eec\u4f1a\u53ca\u65f6\u56de\u590d\u548c\u786e\u8ba4\u8ba2\u5355\uff0c\u795d\u60a8\u5728\u6b27\u9177\u8d2d\u7269\u6109\u5feb\uff01",busy:"\u4eb2\u7231\u7684\u987e\u5ba2\uff0c\u76ee\u524d\u6b27\u9177\u987e\u5ba2\u6d41\u91cf\u8f83\u5927\uff0c\u98df\u5802\u540c\u5b66\u4eec\u90fd\u5728\u6ee1\u8d1f\u8377\u5de5\u4f5c\u4e2d\uff0c\u56e0\u6b64\u7559\u8a00\u53ca\u7535\u8bdd\u7684\u63a5\u542c\u4f1a\u7a0d\u6709\u5ef6\u8bef\uff0c\u4e0d\u8fc7\u6211\u4eec\u4f1a\u5c3d\u5feb\u4e3a\u60a8\u5904\u7406\uff0c\u8bf7\u60a8\u4e0d\u8981\u7740\u6025\uff01",eat:"\u4eb2\u7231\u7684\u987e\u5ba2\uff0c\u73b0\u5728\u662f\u5c31\u9910\u65f6\u95f4\uff0c\u6b27\u9177\u7684\u201c\u98df\u5802\u540c\u5b66\u4eec\u201d\u6b63\u5728\u5c31\u9910\u4e2d\uff0c\u60a8\u53ef\u4ee5\u7559\u8a00\u54a8\u8be2\u6216\u76f4\u63a5\u4e0b\u5355\u3002\u6211\u4eec\u4f1a\u53ca\u65f6\u56de\u590d\u548c\u786e\u8ba4\u8ba2\u5355\uff0c\u795d\u60a8\u5728\u6b27\u9177\u8d2d\u7269\u6109\u5feb\uff01",repair:"\u554a\uff01\u88ab\u60a8\u53d1\u73b0\u4e86\uff0c\u6b27\u9177\u5373\u5c06\u5728\u51cc\u66683\u70b9\u5bf9\u670d\u52a1\u5668\u8fdb\u884c\u7ef4\u62a4\uff0c\u5c4a\u65f6\u7f51\u7ad9\u8bbf\u95ee\u53ef\u80fd\u51fa\u73b0\u5c0f\u95ee\u9898\uff0c\u8bf7\u4e0d\u8981\u62c5\u5fc3\uff0c\u7ef4\u62a4\u5c06\u6301\u7eed10\u5206\u949f\u3002\u5f88\u665a\u4e86\uff0c\u65e9\u70b9\u4f11\u606f\uff01\uff5e",repair_onetime:'<a href="'+ouku.path.root+'article/?article_id=526" target="_blank" style="color:#fff;">\u4eca\u665a22\u70b9\u5f00\u59cb\uff0c\u6211\u4eec\u5c06\u5bf9\u540e\u53f0\u7cfb\u7edf\u8fdb\u884c\u66f4\u65b0\uff0c\u9884\u8ba1\u6301\u7eed2\u5c0f\u65f6\u5de6\u53f3\uff0c\u4e0d\u4f1a\u7ed9\u60a8\u8d2d\u7269\u5e26\u6765\u5f71\u54cd\uff0c\u5177\u4f53\u60c5\u51b5\u8bf7\u70b9\u51fb\u67e5\u770b\u516c\u544a\uff0c\u795d\u60a8\u5728\u6b27\u9177\u8d2d\u7269\u6109\u5feb\uff01</a>',user_exp:'<a href="http://bbs.ouku.com/thread-12778-1-1.html" target="_blank" style="color:#fff;">\u7b2c\u56db\u5b63\u6652\u5355\u5341\u5927\u7cbe\u54c1\u7968\u9009\u6d3b\u52a8\uff1a\u5b9e\u529b\uff1f\u4eba\u6c14\uff1f \u8c01\u662f\u7b2c\u4e00\uff1f3000\u5143\u5927\u5956\u51b3\u5b9a\u6743\u7531\u60a8\uff01\u53c2\u4e0e\u5c31\u6709\u673a\u4f1a\u5f97\u7ea2\u5305~~\u8d76\u5feb\u6765\u6295\u51fa\u4f60\u795e\u5723\u7684\u4e00\u7968\uff01</a>'};var d=ouku.date.hours,h=ouku.date.minutes,b=ouku.date.day,e=0,a=0;if(b==6||b==0){e=1000;a=1900}else{e=900;a=2100}if(h<10){h="0"+h.toString()}var g=d.toString()+h.toString();var f=new Date().getFullYear()+"-"+(new Date().getMonth()+1)+"-"+new Date().getDate();g=Math.floor(g);if(g>=2200&&g<=2359&&f=="2009-2-10"){$("#topTip").show().attr("class","topTip_repair");$("#topcontent").html(c.repair_onetime)}else{if(g>=a||g<600){$("#topTip").show().attr("class","topTip_sleep");$("#topcontent").html(c.rest)}else{if(g>=600&&g<e){$("#topTip").show().attr("class","topTip_normal");$("#topcontent").html(c.morning)}else{if(g>=1000&&g<1100){$("#topTip").show().attr("class","topTip_busy");$("#topcontent").html(c.busy)}else{if(g>=1200&&g<1230){$("#topTip").show().attr("class","topTip_eat");$("#topcontent").html(c.eat)}else{if(g>=1300&&g<1400){$("#topTip").show().attr("class","topTip_busy");$("#topcontent").html(c.busy)}else{if(g>=1600&&g<1700){$("#topTip").show().attr("class","topTip_busy");$("#topcontent").html(c.busy)}else{if(g>=1830&&g<1900){$("#topTip").show().attr("class","topTip_eat");$("#topcontent").html(c.eat)}else{$("#topTip").show().attr("class","topTip_exp");$("#topcontent").html(c.user_exp);$("#topTip").hide()}}}}}}}}}function load_cart_goods(){ouku.ajax.call(ouku.path.root+"Cart.Controller.php?Action=get_cart_goods","",load_cart_goods_response,"get","json")}function load_cart_goods_response(a){var g=$("#cartGoods");var c=a.total_num;if(a.error!=0){alert(a.message);return}var h='<dl class="myCart_hidn_cont">';var f="";var b=0;var e="";for(var d=0;d<a.goods.length;d++){++b;f+="<li>"+(a.goods[d].parent_id==0?"":'<span class="subOrderIcon"></span>')+"<a href='"+a.goods[d].goods_link+"'>"+a.goods[d].goods_name+"</a><span style='color:#fe6601;margin:0 10px;font-weight:bold;'>"+a.goods[d].shop_price+"</span>\u00d7 "+a.goods[d].goods_number+"</li>";if(a.goods[d].parent_id==0){h+='<dd class="myCart_hidn_p14Bold"><span><a href="'+a.goods[d].goods_link+'" class="mC_spanBlue">'+a.goods[d].goods_name+'</a></span><span class="mC_spanYellow">'+a.goods[d].shop_price+'</span><span class="mC_spanBlack">\u00d7'+a.goods[d].goods_number+"</span></dd>";b=0}else{e=b%2==0?' class="myCart_hidn_li20pading_odd"':' class="myCart_hidn_li20pading"';h+="<dd "+e+'><p><span><a href="'+a.goods[d].goods_link+'" class="mC_spanBlue">'+a.goods[d].goods_name+'</a></span><span class="mC_spanYellow">'+a.goods[d].shop_price+'</span><span class="mC_spanBlack">\u00d7'+a.goods[d].goods_number+"</span>"+(a.goods[d].shop_price==0?'<span class="mC_spanVoilet">\u8d60\u54c1</span>':"")+"</p></dd>"}}$("#cart_goods_list").html(f);$("#cart_goods_list_2").html(f);if(a.total_num==0){h+="<dd>\u60a8\u7684\u8d2d\u7269\u888b\u4e2d\u6682\u65e0\u5546\u54c1\uff0c\u8d76\u5feb\u9009\u62e9\u5fc3\u7231\u7684\u5546\u54c1\u5427\uff01</dd>";c=0}else{h+='<dd><p class="myCart_hidn_Ttl"><span>\u5408\u8ba1</span><span class="mC_spanRed">'+a.total_num+'</span><span>\u4ef6</span><span class="mC_spanRed">'+a.total_amount+'</span></p></dd><dd class="myCart_hidn_btm"><a class="myCart_hidn_ipt1" href="'+ouku.path.root+'Checkout.php">\u8fdb\u884c\u5982\u7ed3\u7b97\u4e2d\u5fc3</a><a class="myCart_hidn_ipt2" href="'+ouku.path.root+"Cart.php?back_act="+ouku.path.uri+'">\u67e5\u770b\u8d2d\u7269\u8f66</a></dd>'}h+="</dl>";g.html(h);$("#cartTotalNum").html(c)}function add_to_cart(h,l,j,b){var f=new Object();var c=new Array();var o=new Array();var d=1;var n=location.href;var p=n.split("#");try{d=$("#goods_number").val();d=parseInt(d);if(isNaN(d)||d<=0){return}}catch(k){}is_scroll=false;if(j=="fit"||j=="free"){is_scroll=true;if(free_fittings_num<free_fittings_limit){alert("\u8be5\u5546\u54c1\u53ef\u9009\u8d60\u54c1\u4e3a"+free_fittings_limit+"\u4e2a\uff0c\u5982\u60a8\u9700\u8981\u66f4\u6362\u8d60\u54c1\uff0c\u8bf7\u5148\u53d6\u6d88\u5f53\u524d\u9009\u62e9\u8d60\u54c1\u3002");return false}var m=document.getElementsByName("fitting_goods_id");for(var e=0;e<m.length;++e){var g=$("#fitting_goods_num_"+m[e].value).val();g=parseFloat(g);if(isNaN(g)||g<=0){continue}o[o.length]=[m[e].value,g]}location.href=p[0]+"#goodsFitting"}if(c){f.spec=c}if(o){f.fittings=o}f.goods_id=h;f.number=d;f.group_goods_id=b>0?b:0;if(styleMulti!=""){if(goodsStyleId==0){item_scroll_to("color_id",150,"\u8bf7\u70b9\u51fb\u6709\u8d27\u989c\u8272\u6846\u9009\u62e9\u9700\u8981\u8d2d\u4e70\u7684\u989c\u8272\uff01");return}else{f.style_id=goodsStyleId}}f.is_set_meal=(j=="fit"||j=="free");ouku.ajax.call(ouku.path.root+"Cart.Controller.php?Action=add_to_cart&GoodsId="+h+"&BjStoreGoodsId="+l+"&back="+ouku.path.uri,"goods="+JSON.stringify(f),a,"post","json");function a(i){if(i.error>0){alert(i.message)}else{if(i.is_set_meal&&j=="free"||!i.is_set_meal){$("#addToCartId").show();$("#addToCartId_fit").hide();$("#totalAmout").html("\uffe5"+i.total_amount);$("#totalNum").html(i.total_num);$("#cartTotalNum").html(i.total_num)}else{$("#addToCartId").hide();$("#addToCartId_fit").show();$("#cartTotalNum").html(i.total_num);$("#totalAmout_fit").html("\uffe5"+i.total_amount);$("#totalNum_fit").html(i.total_num)}load_cart_goods()}}}function add_preferential_fittings_to_cart(e,b,f){var d=new Object();var c=new Array();var h=new Array();var g=location.href;var i=g.split("#");if(c){d.spec=c}d.number=1;d.style_id=undefined;d.goods_id=e;d.group_goods_id=b>0?b:0;d.is_set_meal=false;ouku.ajax.call(ouku.path.root+"Cart.Controller.php?Action=add_to_cart&GoodsId="+e+"&BjStoreGoodsId=undefined&back="+ouku.path.uri,"goods="+JSON.stringify(d),a,"post","json");function a(j){if(j.error>0){alert(j.message)}else{var l=$("#add_to_cart_btn_"+e);btn_width=l.width();btn_height=l.height();btn_pos=l.offset();if(!f||f=="center"){posx=btn_pos.left+btn_width/2-425/2}else{if(f=="right"){posx=btn_pos.left+btn_width-425}else{if(f=="left"){posx=btn_pos.left}}}posy=btn_pos.top+22;var k="position: absolute;left:"+posx+"px;top:"+posy+"px;display:block;";$("#addToCartId").attr("style",k);$("#totalAmout").html("\uffe5"+j.total_amount);$("#totalNum").html(j.total_num);load_cart_goods()}}}function slideCart(){$("#cartId").attr("class","myCart cartOn");$("#cartGoods").css("display","");slideCartTime=setTimeout("$('#cartId').attr('class','myCart');$('#cartGoods').css('display','none')",3000)}function style_price(e,f,k,b,l,i,a){goodsStyleId=e;iSum=sum=f;$("#select_analog span").html("1");$("#goods_number").val("1");goods_num=1;total_goods_sum=iSum;$("#mobileNum").html(goods_num);$("#fitting_sum").html(total_goods_sum);$("#mobile_price_now").html("\uffe5"+total_goods_sum);$("#select_analog ul").hide();$("#collect_show_id").hide();ouku.state_name=i;if(f==-1){stylePrice_format="\u5f85\u5b9a"}else{stylePrice_format="\uffe5"+f}$("#shopPrice").html("&nbsp;&nbsp;"+stylePrice_format);$("#mobile_price_now").html(stylePrice_format);if(f==-1){$("#goods_amount_0").html("\u5f85\u5b9a");$("#goods_amount_1").html("\u5f85\u5b9a")}else{var c=g_fitt_price+f;var h=Math.floor(c*0.02);$("#goods_amount_0").html("\uffe5"+(f+shipping_fee+package_fee+g_fitt_price));$("#goods_amount_1").html("\uffe5"+(f+shipping_cod_fee+h+package_fee+g_fitt_price))}if(isFitting!=undefined){$("#fitting_sum").html(stylePrice_format);$("#fit_shop_price").html("\uffe5"+sum);if(isFitting>0){$("#fitting_sum").html("\uffe5"+(g_fitt_price+f));$("#fitMessage").html("")}else{$("#fitMessage").html(goodsDesc)}$("#styleFittSum").show();$("#mobileNum").html("1");$("#showThumb").attr("src",sImg+l)}if(goodsStyleId==0){var g=k;if(i=="shortage"){g+="\u6682\u7f3a\u8d27\uff0c\u8bf7\u8010\u5fc3\u7b49\u5f85\uff0c\u6211\u4eec\u4f1a\u5728\u5230\u8d27\u540e\u5c3d\u5feb\u4e0a\u67b6\u3002"}else{if(i=="tosale"){g+="\u5373\u5c06\u4e0a\u5e02\uff0c\u656c\u8bf7\u671f\u5f85"}else{if(i=="withdrawn"){g+="\u6b64\u6b3e\u673a\u5668\u5df2\u4e0b\u5e02\uff0c\u7559\u7740\u7eaa\u5ff5\u4e00\u4e0b"}}}$("#colorName").html(g)}else{$("#colorName").html('<span style="color:red;">\u201c'+k+"\u201d</span>")}$("#shortage_price_info").hide();if(i=="shortage"){$("#shopPrice").html("\u7f3a\u8d27\u5546\u54c1\uff0c\u6682\u65e0\u552e\u4ef7");$("#savePrice").html("");$("#marketPrice").html("");$("#mobile_price_now").html("\u7f3a\u8d27");$("#goods_amount_0").html("\u7f3a\u8d27\u5546\u54c1\uff0c\u6682\u65e0\u552e\u4ef7");$("#goods_amount_1").html("\u7f3a\u8d27\u5546\u54c1\uff0c\u6682\u65e0\u552e\u4ef7");$("#shortage_price_info").show();$("#shortage_color_price").html(stylePrice_format);$("#ouku_price_new").hide()}else{if(i=="withdrawn"){$("#shopPrice").html("\u5df2\u4e0b\u5e02");$("#savePrice").html("");$("#marketPrice").html("");$("#mobile_price_now").html("\u5df2\u4e0b\u5e02");$("#goods_amount_0").html("\u5df2\u4e0b\u5e02");$("#goods_amount_1").html("\u5df2\u4e0b\u5e02");$("#ouku_price_new").hide()}else{if(i=="tosale"){$("#shopPrice").html("\u5373\u5c06\u4e0a\u5e02");$("#savePrice").html("");$("#marketPrice").html("");$("#mobile_price_now").html("\u5373\u5c06\u4e0a\u5e02");$("#goods_amount_0").html("\u5373\u5c06\u4e0a\u5e02");$("#goods_amount_1").html("\u5373\u5c06\u4e0a\u5e02");$("#ouku_price_new").hide()}else{if(a!="limit_goods"){$("#marketPrice").html("\u5e02\u573a\u4ef7\u683c\uff1a\uffe5"+mp);$("#savePrice").html("\u4e3a\u60a8\u8282\u7701\uff1a\uffe5"+(mp-sum))}$("#ouku_price_new").show()}}}$("#savePrice").show();$("#color_id .colorStyle").attr("val","0");$("#color_id .colorBox img").remove();var d='<img src="'+ouku.path.img+'images/select_goods_color.png" alt="\u9009\u62e9" />';$("#color_id .colorBox:eq("+b+")").append(d);$("#showPicBig").attr("src",mImg+l);style_status=i;$("#color_first_tip").fadeOut();if(i=="normal"){$("#addFitToCart").show();$("#addGoodsToCart").show();$("#alert_none_goods").hide();$("#notAddFitToCart").hide();$("#addGoodsToInform").hide();$("#goodsWithdrawn").hide();$("#addToInformId").hide();$("#goods_inform_div").hide();goodsColor=k;set_pricecut_inform(e,k,f)}else{if(i=="shortage"||i=="tosale"){set_goods_inform(e,k,i)}else{if(i=="withdrawn"){set_goods_withdrawn()}}}if(is_scroll==true&&i=="normal"){item_scroll_to("getFittings",10)}}function item_scroll_to(e,c,d){var b=navigator.userAgent;var a=$("#"+e).offset().top-c;if(b.indexOf("AppleWebKit")>-1){$("body").animate({scrollTop:a+"px"},1000,"",function(){if(d){show_color_tip(d)}})}else{$("html").animate({scrollTop:a+"px"},1000,"",function(){if(d){show_color_tip(d)}})}}function show_color_tip(c){var a=$("#color_id").offset().left;var b=$("#color_id").offset().top-40;$("#color_first_tip").fadeOut("fast").css({top:b+"px",left:a+"px"}).fadeIn("fast");$("#color_first_tip span").text(c);setTimeout(function(){$("#color_first_tip").fadeOut("fast")},7000)}function show_fittings(a,b){$("#fittingUl").attr("cid",b[0]);if(b[0]==-1){$("#fittingUl li").show();$("#noneFitt").hide()}else{$("#fittingUl li").hide();$("#fittingUl li.l_"+b[0]).show()}suit_ul("fittingUl")}function add_sub_cart(a,g){if(goodsStyleId==0&&!g){is_scroll=true;item_scroll_to("color_id",150,"\u8bf7\u70b9\u51fb\u6709\u8d27\u989c\u8272\u6846\u9009\u62e9\u9700\u8981\u8d2d\u4e70\u7684\u989c\u8272\uff01");return false}var b=$("#btn_fitting_"+a);var l=$("#fitting_goods_num_"+a);var h=0;if(l.val()=="1"){l.val("0");if(g=="free"&&free_fittings_num>0){free_fittings_num--}b.attr("src",ouku.path.img+"images/buyGoods_1.gif");$("#fitt_group_"+a).removeClass("choose");var j=$("#fitting_goods_price_"+a).parent().parent().attr("cid");if(j==0){$("#fitting_goods_price_"+a).parent().hide();var o=$("#fittingUl li").length;for(var e=0;e<o;e++){if($("#fittingUl li").eq(e).css("display")!="none"){h++}}if(h==0){$("#noneFitt").show()}}}else{if(g=="free"){free_fittings_num++;if(free_fittings_num>free_fittings_limit){alert("\u8be5\u5546\u54c1\u8d60\u9001\u76840\u5143\u8d60\u54c1\u9650\u989d"+free_fittings_limit+"\u4e2a\uff0c\u4e0d\u80fd\u591f\u591a\u9009\u54e6\u3002");free_fittings_num=free_fittings_limit;return false}}l.val("1");b.attr("src",ouku.path.img+"images/cancelGoods_1.gif");$("#fitt_group_"+a).addClass("choose")}var m=document.getElementsByName("fitting_goods_id");var c=0;var d=sum=total_goods_sum;g_fitt_price=0;for(var e=0;e<m.length;++e){var f=$("#fitting_goods_num_"+m[e].value).val();if(f=="0"){continue}c+=1;g_fitt_price+=parseFloat($("#fitting_goods_price_"+m[e].value).val());d+=parseFloat($("#fitting_shop_price_"+m[e].value).val())}sum+=g_fitt_price;isFitting=c;fittShopPrice=g_fitt_price;$("#fitting_cnt").html(c.toString());if(iSum==-1){$("#fitting_sum").html("\u5373\u5c06\u4e0a\u5e02\uff0c\u4ef7\u683c\u5f85\u5b9a")}else{$("#fitting_sum").html("\uffe5"+ouku.format_price(sum))}if(ouku.state_name=="normal"){var k=$("#goods_number").val();var n=Math.floor(sum*0.02);$("#shipping_proxy_fee").html("\uffe5"+n);$("#goods_amount_0").html("\uffe5"+(sum+shipping_fee+package_fee));$("#goods_amount_1").html("\uffe5"+(sum+shipping_cod_fee+n+package_fee))}else{if(ouku.state_name=="shortage"){$("#goods_amount_0").html("\u5546\u54c1\u7f3a\u8d27\uff0c\u6682\u65e0\u552e\u4ef7");$("#goods_amount_1").html("\u5546\u54c1\u7f3a\u8d27\uff0c\u6682\u65e0\u552e\u4ef7")}else{if(ouku.state_name=="withdrawn"){$("#goods_amount_0").html("\u5df2\u4e0b\u5e02");$("#goods_amount_1").html("\u5df2\u4e0b\u5e02")}else{if(ouku.state_name=="tosale"){$("#goods_amount_0").html("\u5373\u5c06\u4e0a\u5e02");$("#goods_amount_1").html("\u5373\u5c06\u4e0a\u5e02")}}}}$("#select_fitt_price").html("\uffe5"+ouku.format_price(g_fitt_price));if(iSum==-1){$("#fitting_ex").html("")}else{$("#fitting_ex").html(c>0?('\u8282\u7701:<span class="bRed">\uffe5'+ouku.format_price(d-sum)+"</span>"):"")}$("#fitMessage").html(c>0?"":goodsDesc);$("#chooseFittNum").html(c.toString())}function suit_ul(d){var c=$("#"+d+" li");var b=135;for(var a=1;a<c.length;a++){if(c.eq(a).css("display")!="none"){b+=135}}$("#"+d).width(b)}function show_tag(a){if($("#"+a).css("display")=="none"){$("blockquote").css("display","none")}$("#"+a).css("display",$("#"+a).css("display")=="none"?"":"none")}function change_goods_info(a,b,c){$("#"+a+" li a").attr("class","");$("#"+a+" li:eq("+c+") a").attr("class","slct_pdnav");$("#"+b+" .goods-tab").hide();$("#"+b+" .goods-tab:eq("+c+")").show()}function collect_goods_new(){if(goodsStyleId==0&&styleMulti==1){show_color_tip("\u8bf7\u5728\u6536\u85cf\u5546\u54c1\u524d\u9009\u62e9\u9700\u8981\u5173\u6ce8\u7684\u989c\u8272\uff01");return false}var a={};a.goods_id=goods_id;a.style_id=goodsStyleId==-1?0:goodsStyleId;ouku.ajax.call(ouku.path.root+"_ajax.php?action=collect_goods",a,collect_response,"post","json")}function collect_response(d){if($("#collect_show_id")){$("#collect_show_id").remove()}var a=$("#collect_goods").offset().left+"px";var c=$("#collect_goods").offset().top+25+"px";var b='<div class="addToCart" id="collect_show_id" style="width:400px;position:absolute;top:'+c+";left:"+a+'"><p class="tipMessage"><a href="#"><img src="'+ouku.path.img+'images/closeIcon.gif" alt="\u5173\u95ed" onclick="$(\'#collect_show_id\').hide();return false;"/></a>\u6536\u85cf\u63d0\u9192</p>';b+='<p style="height:auto;">'+d.msg+"</p>";b+='<p style="margin-top:0;text-align:center;"><img src="'+ouku.path.img+'images/sure-closew.jpg" alt="\u5173\u95ed" style="cursor:pointer;" onclick="$(\'#collect_show_id\').hide();"/></p></div>';$("body").append(b);if(parseInt(d.collect_num)>0){$("#collect_number").html(d.collect_num)}}function report_low_price(d){var c={};c.message=$("#message_low_price").val();c.url=document.getElementById("url").value.replace("&","%26");c.goods_id=$("#goods_id").val();var b=JSON.stringify(c);if(c.message==""||c.message=="\u8bf7\u5728\u6b64\u8f93\u5165\u4e3e\u62a5\u5185\u5bb9"){alert("\u8bf7\u8f93\u5165\u4e3e\u62a5\u5185\u5bb9");return false}else{if(c.url==""||c.url=="\u8bf7\u5728\u6b64\u7c98\u8d34\u76f8\u5173\u7f51\u5740 http://"){alert("\u8bf7\u8f93\u5165\u4e3e\u62a5\u5730\u5740");return false}}function a(e){alert(e.message);$("#message_low_price").val("\u8bf7\u5728\u6b64\u8f93\u5165\u4e3e\u62a5\u5185\u5bb9");$("url").val("\u8bf7\u5728\u6b64\u7c98\u8d34\u76f8\u5173\u7f51\u5740 http://")}ouku.ajax.call(ouku.path.root+"User.Controller.php?Action=add_low_price_report",{JSON:b},a,"POST","JSON")}function SubmitComment(d,k,m){var g=new Object;g.storeGoodsId=d;g.storeId=k;g.message=$.trim($("#message").val());var b=false;for(var f=0;f<tip_message.length;f++){if(g.message==tip_message[f]){alert("\u8bf7\u8f93\u5165\u60a8\u7684\u54a8\u8be2\u7559\u8a00\u3002");b=true;break}}if(b){return false}g.message=g.message.replace(/\\/g,"\\\\");g.message=g.message.replace(/\r\n/g,"");var h=location.href;var l=h.split("#");var c=document.getElementsByName("type");var j=false;var a="goods";for(var f=0;f<c.length;f++){if(c[f].checked){j=true;a=c[f].value;break}}g.type=a;g.my="my";if(!j){alert("\u8bf7\u9009\u62e9\u5bf9\u5e94\u7684\u5206\u7c7b\uff0c\u4ee5\u4fbf\u6211\u4eec\u6700\u5feb\u4e3a\u60a8\u89e3\u7b54\uff01");return false}if(g.message==""||g.message==tip_message_common){alert("\u8bf7\u8f93\u5165\u54a8\u8be2\u5185\u5bb9");return false}var e=ouku.path.root+"biaoju/submitComment.php";if(m){e+="?size="+m}ouku.ajax.call(e,"comment="+JSON.stringify(g),SubmitCommentResponse,"POST","JSON");location.href=l[0]+"#commentTitle"}function SubmitCommentResponse(a){if(a.errno<0){if(a.errno==-100){alert(a.error);return false}}else{document.getElementById("comments").innerHTML=a.html;$("#message").val("");$("#goodsAskType li").removeClass();$("#stabId li:eq(0)").attr("class","on").css("border","0");$("#stabId li:eq(1)").removeClass().css("border","0");return true}}function GotoCommentType(c,e,a,d){var d=d?d:"";var b=ouku.path.root+"biaoju/getComment.php?type="+c+"&storeGoodsId="+e+"&storeId="+a+"&my="+d;ouku.ajax.call(b,"",GotoCommentPageResponse,"post","json");comment_tab_show(c)}var comment_cache=[];function go_to_comment_type(c,e,a){var d=ouku.path.root+"_ajax.php?action=get_bj_comment&response=json&zip=1&type="+c+"&storeGoodsId="+e+"&storeId="+a;var b=c+"_"+1;if(comment_cache[b]){document.getElementById("comments").innerHTML=comment_cache[b]}else{ouku.ajax.call(d,"",go_to_comment_response,"post","text")}comment_tab_show(c)}function comment_tab_show(b){var c=document.getElementById("goodsAskType").getElementsByTagName("li");for(var a=0;a<c.length;a++){if(c[a].attributes.types.value==b){c[a].className="on"}else{c[a].className=""}}$("#stabId li").attr("class","");if(b==""){$("#stabId li:eq(1)").attr("class","on");$("#know_work_time").hide().css("margin-left","70px")}else{if(b=="my"){$("#stabId li:eq(0)").attr("class","on").css("border","0");$("#stabId li:eq(1)").css("border","0");$("#know_work_time").show().animate({marginLeft:0})}else{if(b=="all"){$("#stabId li:eq(1)").attr("class","on");$("#goodsAskType li:eq(0)").attr("class","on");$("#know_work_time").hide().css("margin-left","70px")}}}}function GotoCommentPage(g,a,e,c,d,f){var f=f?f:"";var b=ouku.path.root+"biaoju/getComment.php?storeGoodsId="+g+"&storeId="+a+"&page="+e+"&my="+f;if(c){b+="&size="+c}if(d){b+="&type="+d}ouku.ajax.call(b,"",GotoCommentPageResponse,"POST","JSON")}function go_to_comment_page(g,a,f,c,d){var e=ouku.path.root+"_ajax.php?action=get_bj_comment&response=json&zip=1&storeGoodsId="+g+"&storeId="+a+"&page="+f;if(c){e+="&size="+c}if(d){e+="&type="+d}var b=d+"_"+f;if(comment_cache[b]){document.getElementById("comments").innerHTML=comment_cache[b]}else{ouku.ajax.call(e,"",go_to_comment_response,"post","text")}}function go_to_comment_response(b){var a=zip_inflate(base64decode(b));b=JSON.parse(a);document.getElementById("comments").innerHTML=b.html_text;comment_cache[b.cache_key]=b.html_text}function go_to_comment_by_search(d,b){var a=$("#comment_search_val").val();if(a==""||a=="\u54a8\u8be2\u524d\u5148\u641c\u7d22\u4e0b\uff0c\u5feb\u901f\u627e\u5230\u7b54\u6848"){alert("\u8bf7\u8f93\u5165\u60f3\u641c\u7d22\u7684\u5173\u952e\u8bcd\uff0c\u5982\u5f85\u673a\u600e\u4e48\u6837");return false}var c=ouku.path.root+"_ajax.php?action=bj_search&response=json&zip=1&key_word="+encodeURI(a)+"&page="+d+"&goods_id="+b;ouku.ajax.call(c,"",comment_search_response,"get","text")}function comment_search_response(b){var a=zip_inflate(base64decode(b));b=JSON.parse(a);document.getElementById("comments").innerHTML=b.html_text}function GotoCommentPage_(e,d,h,b,c,f){var a=$("#page_id").val();a=a<b?a:b;a=a>0?a:1;var f=f?f:"";GotoCommentPage(e,d,a,h,c,f)}function GotoCommentPageResponse(a){if(a.errno<0){if(a.errno==-100){alert(a.error);return false}}else{document.getElementById("comments").innerHTML=a.html}}function show_tip(b){var d=$("#message").val()?$("#message").val():"";var a=false;var f=false;if(b==5){$("#beforeOrder").hide();$("#low_price_report").show()}else{$("#low_price_report").hide();$("#beforeOrder").show();var g=$('input[name="type"]').length;for(var c=0;c<g-1;c++){$("#cat"+c+"_tip").hide()}for(var c=0;c<g-1;c++){if(c==b&&(d==tip_message[c]||d==""||d==tip_message_common)){a=true;break}}for(var c=0;c<g-1;c++){if(d==tip_message[c]){f=true;break}}if(a){$("#message").val(tip_message[b])}if(f&&d!=tip_message[b]){$("#message").val("")}$("#message").css("color","#666");$("#cat"+b+"_tip").show();if(typeof(is_login)=="number"){if(is_login==1&&(b==0||b==1)){ouku.ajax.call(ouku.path.root+"_ajax.php?action=have_goods",{goods_id:goods_id},e,"get","json");$("#cat"+b+"_tip").hide()}}$("#after_order_tip").hide()}function e(h){if(h.error==0){$("#after_order_tip").show()}else{$("#cat"+b+"_tip").show()}}}function userEdit(a){var b="";if(typeof(a)=="object"){b=a.id}else{b=a}ouku.validate.is_empty(b,"user_realname","\u8bf7\u8f93\u5165\u60a8\u7684\u771f\u5b9e\u59d3\u540d");if(!ouku.validate.is_ok){return false}ouku.validate.is_phone(b,"user_mobile","\u60a8\u8f93\u5165\u7684\u624b\u673a\u53f7\u7801\u683c\u5f0f\u4e0d\u5bf9");if(!ouku.validate.is_ok){return false}ouku.validate.is_zip(b,"zipcode","\u60a8\u8f93\u5165\u7684\u90ae\u7f16\u683c\u5f0f\u4e0d\u5bf9");if(!ouku.validate.is_ok){return false}ouku.validate.is_empty(b,"user_address","\u8bf7\u8f93\u5165\u60a8\u7684\u8054\u7cfb\u5730\u5740");if(!ouku.validate.is_ok){return false}ouku.validate.is_selected(b,"province","\u8bf7\u9009\u62e9\u6240\u5728\u7684\u7701");if(!ouku.validate.is_ok){return false}ouku.validate.is_selected(b,"city","\u8bf7\u9009\u62e9\u6240\u5728\u7684\u5e02");if(!ouku.validate.is_ok){return false}ouku.validate.is_selected(b,"district","\u8bf7\u9009\u62e9\u6240\u5728\u7684\u533a");if(!ouku.validate.is_ok){return false}return true}function userEdit_1(a){var c=document.forms.formEdit;var d="";var b=null;switch(a){case 1:if(c.user_realname.value==0){d="\u8bf7\u8f93\u5165\u60a8\u7684\u771f\u5b9e\u59d3\u540d\uff01";$("#msg_1").html(d);return false}else{$("#msg_1").html("\u5fc5\u586b")}break;case 2:if(!/1\d{10}/.test(c.user_mobile.value)){d="\u60a8\u8f93\u5165\u7684\u624b\u673a\u53f7\u7801\u683c\u5f0f\u4e0d\u5bf9\uff01";$("#msg_2").html(d);return false}else{$("#msg_2").html("\u5fc5\u586b")}break;case 3:if(c.province.value==0||c.city.value==0){d="\u60a8\u8f93\u5165\u7684\u7701\u5e02\u4e0d\u5bf9\uff01";$("#msg_3").html(d);return false}else{$("#msg_3").html("\u5fc5\u9009")}break;case 4:if(!/^\d{6}$/.test(c.zipcode.value)){d="\u60a8\u8f93\u5165\u7684\u90ae\u7f16\u683c\u5f0f\u4e0d\u5bf9\uff01";$("#msg_4").html(d);return false}else{$("#msg_4").html("\u5fc5\u586b")}break;case 5:if(c.user_address.value==""){d="\u8bf7\u8f93\u5165\u6b63\u786e\u5730\u5740\uff01";$("#msg_5").html(d);return false}else{$("#msg_5").html("\u5fc5\u586b")}break}if(d.length>0){return false}else{return true}}function addrCheck(a){var b="";if(typeof(a)=="object"){b=a.id}else{b=a}ouku.validate.is_empty(b,"consignee","\u8bf7\u8f93\u5165\u6536\u8d27\u4eba\u59d3\u540d");if(!ouku.validate.is_ok){return false}ouku.validate.is_phone(b,"mobile","\u60a8\u8f93\u5165\u7684\u624b\u673a\u53f7\u7801\u683c\u5f0f\u4e0d\u5bf9");if(!ouku.validate.is_ok){return false}ouku.validate.is_zip(b,"zipcode","\u60a8\u8f93\u5165\u7684\u90ae\u7f16\u683c\u5f0f\u4e0d\u5bf9");if(!ouku.validate.is_ok){return false}ouku.validate.is_email(b,"email","\u60a8\u8f93\u5165\u7684Email\u683c\u5f0f\u4e0d\u5bf9");if(!ouku.validate.is_ok){return false}ouku.validate.is_selected(b,"province","\u8bf7\u9009\u62e9\u6240\u5728\u7684\u7701");if(!ouku.validate.is_ok){return false}ouku.validate.is_selected(b,"city","\u8bf7\u9009\u62e9\u6240\u5728\u7684\u5e02");if(!ouku.validate.is_ok){return false}ouku.validate.is_selected(b,"district","\u8bf7\u9009\u62e9\u6240\u5728\u7684\u533a");if(!ouku.validate.is_ok){return false}ouku.validate.is_empty(b,"address","\u8bf7\u8f93\u5165\u8be6\u7ec6\u5730\u5740");if(!ouku.validate.is_ok){return false}if($("#"+b+' input[name="sex"]:checked').length==0){alert("\u8bf7\u9009\u62e9\u60a8\u7684\u6027\u522b");return false}}function editPassword(a){if(typeof(a)=="object"){id=a.id}else{id=a}ouku.validate.is_empty(id,"old_password","\u8bf7\u8f93\u5165\u65e7\u7684\u5bc6\u7801");if(!ouku.validate.is_ok){return false}ouku.validate.is_empty(id,"new_password","\u8bf7\u8f93\u5165\u65b0\u7684\u5bc6\u7801");if(!ouku.validate.is_ok){return false}ouku.validate.is_empty(id,"comfirm_password","\u8bf7\u518d\u6b21\u8f93\u5165\u65b0\u7684\u5bc6\u7801");if(!ouku.validate.is_ok){return false}ouku.validate.is_same(id,"new_password","comfirm_password","\u4e24\u6b21\u8f93\u5165\u7684\u5bc6\u7801\u4e0d\u4e00\u6837\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165");if(!ouku.validate.is_ok){return false}}function checkbonusCode(a){if(typeof(a)=="object"){id=a.id}else{id=a}ouku.validate.is_empty(id,"bonusCode","\u8bf7\u8f93\u5165\u62b5\u7528\u5238\u4ee3\u7801");if(!ouku.validate.is_ok){return false}ouku.validate.is_size(id,"bonusCode",16,"\u62b5\u7528\u5238\u4e3a16\u4f4d\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165");if(!ouku.validate.is_ok){return false}}function appear(b){var a=document.getElementById(b);a.style.display=a.style.display=="block"?"none":"block";a.style.right=0+"px";a.style.top=30+"px";a.style.zIndex="100"}function capinfo(a){var b="";if(typeof(a)=="object"){b=a.id}else{b=a}ouku.validate.is_empty(b,"username","\u7528\u6237\u540d\u4e0d\u80fd\u4e3a\u7a7a");if(!ouku.validate.is_ok){return false}ouku.validate.is_empty(b,"userauthkey","\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a");if(!ouku.validate.is_ok){return false}}function show_qh(group_id,qh_id,qh_name,align){var quick_ele=group_id+"_"+qh_id;if(typeof(window.quick_help)=="undefined"){window.quick_help=new Array()}if($("#qucik_help_from").val()==quick_ele&&document.getElementById("fitting_fault").style.display!="none"){document.getElementById("fitting_fault").style.display="none";document.getElementById("qucik_help_from").value="";return false}var qh_link_ele=$("#qh_link_"+quick_ele);link_width=qh_link_ele.width();link_height=qh_link_ele.height();link_pos=qh_link_ele.offset();if(typeof(quick_help[qh_id])=="undefined"){var response=$.ajax({url:ouku.path.root+"_ajax.php?qh_id="+qh_id+"&action=get_quick_help&response=json&zip=1",async:false}).responseText;response=zip_inflate(base64decode(response));response=eval("("+response+")");quick_help[qh_id]={width:response.qh_width,content:response.content};display_width=response.qh_width;display_content=response.content}else{display_width=quick_help[qh_id].width;display_content=quick_help[qh_id].content}switch(align){default:case"center":posx=(link_pos.left-display_width/2+link_width/2);if(link_pos.left+link_width/2+display_width/2>($("body").width()-10)){posx=$("body").width()-display_width-20}break;case"left":posx=link_pos.left;break;case"right":posx=link_pos.left-display_width+link_width;break}posy=(link_pos.top+link_height);var msg_str='<blockquote id="fitting_fault" class="tipMessage_z" style="position: absolute;left: '+posx+"px; top:"+posy+"px; width: "+display_width+'px;z-index:999;display:none;"><h5><img onclick="document.getElementById(\'fitting_fault\').style.display=\'none\';" alt="\u5173\u95ed" src="http://www.ouku.com/themes/ouku/images/closeIcon.gif"/>'+qh_name+'</h5><div style="margin: 10px 20px 20px; line-height:20px;">'+display_content+"</div><input type='hidden' value='"+quick_ele+"' id='qucik_help_from' /></blockquote>";$("#quick_help_display_area").html(msg_str);$("#fitting_fault").show();if(typeof(pageTracker)!="undefined"){pageTracker._trackPageview("/clickto/"+qh_name)}}function init_goods_inform(b,a){if(styleMulti&&goodsStyleId==0){is_scroll=false;item_scroll_to("color_id",100,"\u8bf7\u70b9\u51fb\u7f3a\u8d27\u6216\u5373\u5c06\u4e0a\u5e02\u989c\u8272\u6846\u9009\u62e9\u9700\u8981\u8bbe\u7f6e\u5230\u8d27\u901a\u77e5\u7684\u989c\u8272\uff01");return false}set_goods_inform(b,a);$("#addToInformId").show();$("#addToCartId").hide();$("#style_id").val(b)}function set_goods_inform(e,d,b){var a=false;var c;var b=b?b:"";$("#id").val(0);for(c=0;c<goods_informs.length;++c){goods_inform=goods_informs[c];if(goods_inform.is_deal==0&&goods_inform.style_id==e){$("#id").val(goods_inform.id);$("#addGoodsToInform").html("\u53d6\u6d88\u5230\u8d27\u901a\u77e5").attr("class","cancel_goods_to_inform");$("#inform_goods").html("\u60a8\u5df2\u7ecf\u8bbe\u7f6e\u4e86 <a href='javascript:void(0)' >"+goodsName+" "+d+"</a> \u5230\u8d27\u901a\u77e5\u529f\u80fd\uff0c\u5982\u60a8\u8981\u66f4\u6539\u63d0\u9192\u65b9\u5f0f\uff0c\u8bf7\u4fee\u6539\u63d0\u9192\u65b9\u5f0f\u7684\u5185\u5bb9\u3002");$("#goods_inform_cancel").show();$("#goods_inform_edit").show();$("#goods_inform_set").hide();if(goods_inform.user_mobile!=null&&goods_inform.user_mobile!=""){$("#means1").attr("checked","checked");$("#meanstext1").val(goods_inform.user_mobile);$("#means1suc").show()}else{$("#means1").attr("checked","")}if(goods_inform.email!=null&&goods_inform.email!=""){$("#means2").attr("checked","checked");$("#meanstext2").val(goods_inform.email);$("#means2suc").show()}else{$("#means2").attr("checked","")}if(goods_inform.is_deal==2){$("#means1").attr("checked","");$("#means2").attr("checked","")}else{if(goods_inform.is_deal==0){$("#goods_inform_set").hide();$("#goods_inform_cancel").show();$("#goods_inform_edit").show()}}if($("#means1").attr("checked")==true){$("#meanstext1").attr("class","event_style_a")}if($("#means2").attr("checked")==true){$("#meanstext2").attr("class","event_style_a")}a=true}if(goods_inform.style_id==e){$("#id").val(goods_inform.id)}}if(a==false){$("#inform_goods").html("\u975e\u5e38\u62b1\u6b49\u76ee\u524d\u8be5\u6b3e <a href='javascript:void(0)' >"+goodsName+" "+d+"</a> \u6682\u65f6\u7f3a\u8d27\uff0c\u9009\u62e9\u4ee5\u4e0b\u63d0\u9192\u65b9\u5f0f\uff0c\u6211\u4eec\u4f1a\u5728\u5230\u8d27\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u5230\u60a8\u3002");$("#addGoodsToInform").html("\u5230\u8d27\u901a\u77e5").attr("class","add_goods_to_inform");$("#goods_inform_cancel").hide();$("#goods_inform_edit").hide();$("#goods_inform_set").show()}var f=$("#colorName").html();if(!/\u5230\u8d27\u901a\u77e5/.test(f)){if(a==false){if(b=="tosale"){f+="\u5373\u5c06\u4e0a\u5e02\uff0c\u4ef7\u683c\u548c\u4e0a\u5e02\u65f6\u95f4\u65e0\u6cd5\u9884\u6d4b\uff0c\u8bbe\u7f6e\u201c\u5230\u8d27\u901a\u77e5\u201d\u7b49\u5f85\u901a\u77e5\u3002"}else{if(b=="shortage"){f+="\u76ee\u524d\u7f3a\u8d27\uff0c\u5230\u8d27\u65f6\u95f4\u65e0\u6cd5\u9884\u6d4b\uff0c\u8bbe\u7f6e\u201c\u5230\u8d27\u901a\u77e5\u201d\u7b49\u5f85\u901a\u77e5\u3002"}}$("#colorName").html(f)}else{$("#colorName").html(f+" \u60a8\u5df2\u8bbe\u7f6e\u5230\u8d27\u901a\u77e5\u3002")}}$("#style_id").val(e);$("#addGoodsToCart").hide();$("#alert_none_goods").show();$("#goodsWithdrawn").hide();$("#addGoodsToPricecutInform").hide();$("#addToPricecutInformId").hide();$("#addFitToCart").hide();$("#addToCartId").hide();$("#notAddFitToCart").show();$("#addGoodsToInform").show();goodsColor=d}function submit_goods_inform(a){if(a==null){if(!document.getElementById("means1").checked&&!document.getElementById("means2").checked){alert("\u8bf7\u60a8\u9009\u62e9\u901a\u77e5\u65b9\u5f0f\uff01");return false}if(document.getElementById("means1").checked&&!ouku.validate.is_phone("form_goods_inform","meanstext1","\u8bf7\u60a8\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01")){return false}if(document.getElementById("means2").checked&&!ouku.validate.is_email("form_goods_inform","meanstext2","\u8bf7\u60a8\u8f93\u5165\u6b63\u786e\u7684\u90ae\u7bb1\u5730\u5740\uff01")){return false}}ouku.ajax.call(ouku.path.root+"User.Controller.php?Action=apply_goods_inform&op=add","id="+$("#id").val()+"&goods_id="+$("#goods_id").val()+"&style_id="+$("#style_id").val()+"&means1="+$("#means1").attr("checked")+"&means2="+$("#means2").attr("checked")+"&meanstext1="+$("#meanstext1").val()+"&meanstext2="+$("#meanstext2").val(),goods_inform_response,"get","json")}function goods_inform_response(a){var d="",c="";if(a.refresh){location.reload()}var b;for(b=0;b<goods_informs.length;++b){goods_inform=goods_informs[b];if(goods_inform.style_id==a.style_id){goods_informs[b].is_deal=a.is_deal;goods_informs[b].user_mobile=a.user_mobile;goods_informs[b].email=a.email;break}}if(b==goods_informs.length&&a.add=="true"){goods_informs.push(a)}if(a.is_deal==0){d="\u53d6\u6d88\u5230\u8d27\u901a\u77e5";c="cancel_goods_to_inform";var e=$("#colorName").html();if(/\u76ee\u524d\u7f3a\u8d27\uff0c\u5230\u8d27\u65f6\u95f4\u65e0\u6cd5\u9884\u6d4b\uff0c\u8bbe\u7f6e\u201c\u5230\u8d27\u901a\u77e5\u201d\u7b49\u5f85\u901a\u77e5/.test(e)&&style_status=="shortage"){e=e.replace("\u76ee\u524d\u7f3a\u8d27\uff0c\u5230\u8d27\u65f6\u95f4\u65e0\u6cd5\u9884\u6d4b\uff0c\u8bbe\u7f6e\u201c\u5230\u8d27\u901a\u77e5\u201d\u7b49\u5f85\u901a\u77e5\u3002","\u60a8\u5df2\u8bbe\u7f6e\u5230\u8d27\u901a\u77e5\u3002");$("#colorName").html(e)}if(/\u5373\u5c06\u4e0a\u5e02\uff0c\u4ef7\u683c\u548c\u4e0a\u5e02\u65f6\u95f4\u65e0\u6cd5\u9884\u6d4b\uff0c\u8bbe\u7f6e\u201c\u5230\u8d27\u901a\u77e5\u201d\u7b49\u5f85\u901a\u77e5/.test(e)&&style_status=="tosale"){e=e.replace("\u5373\u5c06\u4e0a\u5e02\uff0c\u4ef7\u683c\u548c\u4e0a\u5e02\u65f6\u95f4\u65e0\u6cd5\u9884\u6d4b\uff0c\u8bbe\u7f6e\u201c\u5230\u8d27\u901a\u77e5\u201d\u7b49\u5f85\u901a\u77e5\u3002","\u60a8\u5df2\u8bbe\u7f6e\u5230\u8d27\u901a\u77e5\u3002");$("#colorName").html(e)}}else{if(a.is_deal==2){d="\u5230\u8d27\u901a\u77e5";c="add_goods_to_inform";var e=$("#colorName").html();if(/\u60a8\u5df2\u8bbe\u7f6e\u5230\u8d27\u901a\u77e5/.test(e)){if(style_status=="shortage"){e=e.replace("\u60a8\u5df2\u8bbe\u7f6e\u5230\u8d27\u901a\u77e5\u3002","\u76ee\u524d\u7f3a\u8d27\uff0c\u5230\u8d27\u65f6\u95f4\u65e0\u6cd5\u9884\u6d4b\uff0c\u8bbe\u7f6e\u201c\u5230\u8d27\u901a\u77e5\u201d\u7b49\u5f85\u901a\u77e5\u3002")}else{if(style_status=="tosale"){e=e.replace("\u60a8\u5df2\u8bbe\u7f6e\u5230\u8d27\u901a\u77e5\u3002","\u5373\u5c06\u4e0a\u5e02\uff0c\u4ef7\u683c\u548c\u4e0a\u5e02\u65f6\u95f4\u65e0\u6cd5\u9884\u6d4b\uff0c\u8bbe\u7f6e\u201c\u5230\u8d27\u901a\u77e5\u201d\u7b49\u5f85\u901a\u77e5\u3002")}}$("#colorName").html(e)}}}if(a.user_mobile!=null){$("#means1").attr("checked","checked")}else{$("#means1").attr("checked","")}if(a.email!=null){$("#means2").attr("checked","checked")}else{$("#means2").attr("checked","")}$("#addGoodsToInform").html(d).attr("class",c);$("#addToInformId").hide();$("#goods_inform_tips").html(a.tips);$("#goods_inform_div").show();setTimeout(function(){$("#goods_inform_div").hide()},8000)}function set_goods_withdrawn(){$("#addGoodsToFavo").hide();$("#addGoodsToPricecutInform").hide();$("#addGoodsToCart").hide();$("#alert_none_goods").hide();$("#addGoodsToInform").hide();$("#goodsWithdrawn").show()}function init_pricecut_inform(c,a,b){if(styleMulti&&goodsStyleId==0){is_scroll=false;item_scroll_to("color_id",100,"\u8bf7\u70b9\u51fb\u6709\u8d27\u989c\u8272\u6846\u9009\u62e9\u9700\u8981\u8bbe\u7f6e\u964d\u4ef7\u63d0\u9192\u7684\u989c\u8272\uff01\uff01");return false}set_pricecut_inform(c,a,b);$("#addToPricecutInformId").show();$("#addToCartId").hide();$("#addToCartId_fit").hide();$("#pricecut_style_id").val(c)}function set_pricecut_inform(f,c,e){var a=false;var b;$("#pricecut_id").val(0);for(b=0;b<pricecut_informs.length;++b){pricecut_inform=pricecut_informs[b];if(pricecut_inform.is_deal==0&&pricecut_inform.style_id==f){$("#pricecut_id").val(pricecut_inform.id);$("#addGoodsToPricecutInform").html("\u53d6\u6d88\u964d\u4ef7\u63d0\u9192").attr("class","cancel_goods_price_inform");$("#topnav").html("\u60a8\u5df2\u7ecf\u5bf9<a href='javascript:void(0)' >"+goodsName+" "+c+"</a> \u8bbe\u7f6e\u4e86\u964d\u4ef7\u63d0\u9192\u529f\u80fd\uff0c\u5982\u9700\u8981\u66f4\u6539\uff0c\u8bf7\u91cd\u65b0\u9009\u62e9\u964d\u4ef7\u533a\u95f4\u548c\u63d0\u9192\u65b9\u5f0f\u3002");$("#pricecut_inform_cancel").show();$("#pricecut_inform_edit").show();$("#pricecut_inform_set").hide();if(pricecut_inform.user_mobile!=null&&pricecut_inform.user_mobile!=""){$("#pricecut_means1").attr("checked","checked");$("#pricecut_meanstext1").val(pricecut_inform.user_mobile);$("#pricecut_means1suc").show()}else{$("#pricecut_means1").attr("checked","")}if(pricecut_inform.email!=null&&pricecut_inform.email!=""){$("#pricecut_means2").attr("checked","checked");$("#pricecut_meanstext2").val(pricecut_inform.email);$("#pricecut_means2suc").show()}else{$("#pricecut_means2").attr("checked","")}if(pricecut_inform.is_deal==2){$("#pricecut_means1").attr("checked","");$("#pricecut_means2").attr("checked","")}else{if(pricecut_inform.is_deal==0){$("#pricecut_inform_set").hide();$("#pricecut_inform_cancel").show();$("#pricecut_inform_edit").show()}}if($("#pricecut_means1").attr("checked")==true){$("#pricecut_meanstext1").attr("class","event_style_a")}if($("#pricecut_means2").attr("checked")==true){$("#pricecut_meanstext2").attr("class","event_style_a")}a=true}if(pricecut_inform.style_id==f){$("#pricecut_id").val(pricecut_inform.id)}}if(a==false){$("#topnav").html("\u60a8\u9009\u62e9\u7684 <a href='javascript:void(0)' >"+goodsName+" "+c+"</a> \u5f53\u524d\u4ef7\u683c\u4e3a <b>"+e+"</b> \u5143<br />\u8bf7\u9009\u62e9\u9700\u8981\u63d0\u9192\u7684\u964d\u4ef7\u8303\u56f4\u548c\u63d0\u9192\u65b9\u5f0f\uff0c\u7cfb\u7edf\u4f1a\u5728\u4ef7\u683c\u8c03\u6574\u540e\u7b2c\u4e00\u65f6\u95f4\u63d0\u9192\u60a8");$("#addGoodsToPricecutInform").html("\u964d\u4ef7\u63d0\u9192").attr("class","add_goods_price_inform");$("#pricecut_inform_cancel").hide();$("#pricecut_inform_edit").hide();$("#pricecut_inform_set").show()}html=$("#colorName").html();var d="";if(!/\u8bf7\u8bbe\u7f6e\u201c\u5230\u8d27\u901a\u77e5\u201d/.test(html)&&!/\u6216\u8bbe\u7f6e\u201c\u964d\u4ef7\u63d0\u9192\u201d/.test(html)){if(a==false){if(shortage_num){d="\uff0c\u7f3a\u8d27\u7684\u5230\u8d27\u65f6\u95f4\u65e0\u6cd5\u9884\u6d4b\uff0c\u8bf7\u8bbe\u7f6e\u201c\u5230\u8d27\u901a\u77e5\u201d\u3002"}else{if(tosale_num){d="\uff0c\u5373\u5c06\u4e0a\u5e02\u7684\u4e0a\u5e02\u65f6\u95f4\u4ef7\u683c\u65e0\u6cd5\u9884\u6d4b\uff0c\u8bf7\u8bbe\u7f6e\u201c\u5230\u8d27\u901a\u77e5\u201d\u3002"}else{d="\u6216\u8bbe\u7f6e\u201c\u964d\u4ef7\u63d0\u9192\u201d\u3002"}}$("#colorName").html(html+"\u53ef\u201c\u7acb\u5373\u8d2d\u4e70\u201d"+d)}else{if(!/\u60a8\u5df2\u8bbe\u7f6e\u964d\u4ef7\u63d0\u9192/.test(html)){$("#colorName").html(html+" \u60a8\u5df2\u8bbe\u7f6e\u964d\u4ef7\u63d0\u9192\u3002")}}}$("#pricecut_style_id").val(f);$("#addGoodsToCart").show();$("#goodsWithdrawn").hide();$("#addFitToCart").show();$("#addToCartId").hide();$("#addGoodsToInform").hide();$("#addGoodsToPricecutInform").show();set_pricecut_range_select(f);goodsColor=c;goodsPrice=e}function submit_pricecut_inform(a){if(a==null){if(!document.getElementById("pricecut_means1").checked&&!document.getElementById("pricecut_means2").checked){alert("\u8bf7\u60a8\u9009\u62e9\u901a\u77e5\u65b9\u5f0f\uff01");return false}if(document.getElementById("pricecut_means1").checked&&!ouku.validate.is_phone("form_pricecut_inform","pricecut_meanstext1","\u8bf7\u60a8\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01")){return false}if(document.getElementById("pricecut_means2").checked&&!ouku.validate.is_email("form_pricecut_inform","pricecut_meanstext2","\u8bf7\u60a8\u8f93\u5165\u6b63\u786e\u7684\u90ae\u7bb1\u5730\u5740\uff01")){return false}if($('input:radio[name="pricecut_range_radio"]:checked').val()==null){alert("\u8bf7\u60a8\u9009\u62e9\u964d\u4ef7\u533a\u95f4\uff01");return false}}ouku.ajax.call(ouku.path.root+"User.Controller.php?Action=apply_pricecut_inform&op=add","id="+$("#pricecut_id").val()+"&goods_id="+$("#pricecut_goods_id").val()+"&style_id="+$("#pricecut_style_id").val()+"&means1="+$("#pricecut_means1").attr("checked")+"&means2="+$("#pricecut_means2").attr("checked")+"&meanstext1="+$("#pricecut_meanstext1").val()+"&meanstext2="+$("#pricecut_meanstext2").val()+"&price_inform="+$('input:radio[name="pricecut_range_radio"]:checked').val(),pricecut_inform_response,"get","json")}function pricecut_inform_response(a){var b="",d="";if(a.refresh){location.reload()}var c;for(c=0;c<pricecut_informs.length;++c){pricecut_inform=pricecut_informs[c];if(pricecut_inform.style_id==a.style_id){pricecut_informs[c].is_deal=a.is_deal;pricecut_informs[c].user_mobile=a.user_mobile;pricecut_informs[c].email=a.email;if(pricecut_informs[c].is_deal!=2){pricecut_informs[c].price_inform=a.price_inform;pricecut_informs[c].price_range=a.price_range}break}}if(c==pricecut_informs.length&&a.add=="true"){pricecut_informs.push(a)}if(a.is_deal==0){btn_html="\u53d6\u6d88\u964d\u4ef7\u63d0\u9192";d="cancel_goods_price_inform";html=$("#colorName").html();if(!/\u60a8\u5df2\u8bbe\u7f6e\u964d\u4ef7\u63d0\u9192/.test(html)){if(shortage_num){html=html.replace("\u53ef\u201c\u7acb\u5373\u8d2d\u4e70\u201d\uff0c\u7f3a\u8d27\u7684\u5230\u8d27\u65f6\u95f4\u65e0\u6cd5\u9884\u6d4b\uff0c\u8bf7\u8bbe\u7f6e\u201c\u5230\u8d27\u901a\u77e5\u201d\u3002","\u60a8\u5df2\u8bbe\u7f6e\u964d\u4ef7\u63d0\u9192\u3002")}else{if(tosale_num){html=html.replace("\u53ef\u201c\u7acb\u5373\u8d2d\u4e70\u201d\uff0c\u5373\u5c06\u4e0a\u5e02\u7684\u4e0a\u5e02\u65f6\u95f4\u4ef7\u683c\u65e0\u6cd5\u9884\u6d4b\uff0c\u8bf7\u8bbe\u7f6e\u201c\u5230\u8d27\u901a\u77e5\u201d\u3002","\u60a8\u5df2\u8bbe\u7f6e\u964d\u4ef7\u63d0\u9192\u3002")}else{html=html.replace("\u53ef\u201c\u7acb\u5373\u8d2d\u4e70\u201d\u6216\u8bbe\u7f6e\u201c\u964d\u4ef7\u63d0\u9192\u201d\u3002","\u60a8\u5df2\u8bbe\u7f6e\u964d\u4ef7\u63d0\u9192\u3002")}}$("#colorName").html(html)}}else{if(a.is_deal==2){btn_html="\u964d\u4ef7\u63d0\u9192";d="add_goods_price_inform";html=$("#colorName").html();if(/\u60a8\u5df2\u8bbe\u7f6e\u964d\u4ef7\u63d0\u9192/.test(html)){if(shortage_num){html=html.replace("\u60a8\u5df2\u8bbe\u7f6e\u964d\u4ef7\u63d0\u9192\u3002","\u53ef\u201c\u7acb\u5373\u8d2d\u4e70\u201d\uff0c\u7f3a\u8d27\u7684\u5230\u8d27\u65f6\u95f4\u65e0\u6cd5\u9884\u6d4b\uff0c\u8bf7\u8bbe\u7f6e\u201c\u5230\u8d27\u901a\u77e5\u201d\u3002")}else{if(tosale_num){html=html.replace("\u60a8\u5df2\u8bbe\u7f6e\u964d\u4ef7\u63d0\u9192\u3002","\u53ef\u201c\u7acb\u5373\u8d2d\u4e70\u201d\uff0c\u5373\u5c06\u4e0a\u5e02\u7684\u4e0a\u5e02\u65f6\u95f4\u4ef7\u683c\u65e0\u6cd5\u9884\u6d4b\uff0c\u8bf7\u8bbe\u7f6e\u201c\u5230\u8d27\u901a\u77e5\u201d\u3002")}else{html=html.replace("\u60a8\u5df2\u8bbe\u7f6e\u964d\u4ef7\u63d0\u9192\u3002","\u53ef\u201c\u7acb\u5373\u8d2d\u4e70\u201d\u6216\u8bbe\u7f6e\u201c\u964d\u4ef7\u63d0\u9192\u201d\u3002")}}$("#colorName").html(html)}}}if(a.user_mobile!=null){$("#pricecut_means1").attr("checked","checked")}else{$("#pricecut_means1").attr("checked","")}if(a.email!=null){$("#pricecut_means2").attr("checked","checked")}else{$("#pricecut_means2").attr("checked","")}$("#addGoodsToPricecutInform").html(btn_html).attr("class",d);$("#addToPricecutInformId").hide();$("#pricecut_inform_tips").html(a.tips);$("#pricecut_inform_div").show();setTimeout(function(){$("#pricecut_inform_div").hide()},8000)}function set_pricecut_range_select(f){var c="";goods_price_range=10;var e;for(var a=0;a<goods_pricecuts.length;++a){if(goods_pricecuts[a].style_id==f){goods_price_range=goods_pricecuts[a].price_range;e=goods_pricecuts[a].price;break}}for(var a=0;a<pricecut_informs.length;++a){if(pricecut_informs[a].style_id==f){price_inform=pricecut_informs[a].price_inform;price_range=pricecut_informs[a].price_range;price_floor=price_inform-price_range;price_roof=price_inform;break}}if(a==pricecut_informs.length){price_inform=e}c+="<tr>";for(var b=0;b<6;++b){if(e<=b*goods_price_range){break}if(b==3){c+="</tr><tr>"}var d="";if(price_inform>e-(b+1)*goods_price_range&&price_inform<=e-b*goods_price_range){price_floor=e-(b+1)*goods_price_range;if(price_floor<1){price_floor=1}price_roof=e-b*goods_price_range;d=' checked = "checked" '}c+='<td width="33%"><input type="radio" name="pricecut_range_radio" id="pricecut_range_radio_'+b+'" style="border:0;width:20px;" value="'+(e-b*goods_price_range)+'" '+d+' onclick="set_pricecut_range_span('+b+', goods_price_range);"><font onclick="set_pricecut_range_span('+b+', goods_price_range);">\u964d '+(goods_price_range==1?(b+1):(b*goods_price_range+1)+"\uff5e"+(((b+1)*goods_price_range)>(e-1)?(e-1):((b+1)*goods_price_range)))+" \u5143</font></input></td>"}for(var a=0;a<((6-b)%3);++a){c+="<td width='33%'></td>"}c+="</tr>";$("#pricecut_range_select").html(c);$("#pricecut_range_span").html((price_floor==price_roof-1?price_floor:(price_floor+"\uff5e"+(price_roof-1)))+"\u5143")}function set_pricecut_range_span(b,a){$("#pricecut_range_radio_"+b).attr("checked","checked");price_roof=$("#pricecut_range_radio_"+b).val();price_floor=price_roof-a;if(price_floor<1){price_floor=1}$("#pricecut_range_span").html((price_floor==price_roof-1?price_floor:(price_floor+"\uff5e"+(price_roof-1)))+"\u5143")}function is_phone(a){is_ok=false;if(a!=""&&!/^\u8bf7\u8f93\u5165\u60a8\u7684\u7535\u8bdd\u53f7\u7801$/.test(a)&&!/^1\d{10}$/.test(a)){is_ok=false}else{is_ok=true}return is_ok}function is_email(a){is_ok=false;if(a!=""&&!/^\u8bf7\u8f93\u5165\u60a8\u7684\u7535\u5b50\u90ae\u7bb1$/.test(a)&&!/@/.test(a)){is_ok=false}else{is_ok=true}return is_ok}function scroll_to_id(m,f){var h=ouku.position.sTop();var i=$("#"+m);var j=$("#"+f);var e=j.offset().top-i.offset().top;if(f=="scroll_to_comment"){if(e>0){e+=document.documentElement.clientHeight/20}else{e-=document.documentElement.clientHeight/20}}var b="";var a=new Date().getTime();var l=0;var k=0.05;var d=0;var c=navigator.userAgent;function g(){var o=ouku.position.sTop();var n=new Date().getTime();l=n-a;if(d>e&&e<0){d=-(k*l+1/2*0.05*l*l);if(d<e){d=e}if(c.indexOf("AppleWebKit")>-1){document.getElementsByTagName("body")[0].scrollTop=h+d}else{document.documentElement.scrollTop=h+d}b=setTimeout(function(){g()},10)}else{if(d<e&&e>0){d=k*l+1/2*0.05*l*l;if(d>e){d=e}if(c.indexOf("AppleWebKit")>-1){document.getElementsByTagName("body")[0].scrollTop=h+d}else{document.documentElement.scrollTop=h+d}b=setTimeout(function(){g()},10)}else{d=0;clearTimeout(b)}}}g()}function scroll_position(f){var c=$("#"+f);c.show();var a=ouku.position.sTop();var e=$("#scroll_to_comment").offset().top-document.documentElement.clientHeight;var d=$("#main").offset().left+952;var b=a+document.documentElement.clientHeight-150;c.css({left:d+"px",top:b+"px"});(a>0)?c.find(".go_top").fadeIn():c.find(".go_top").fadeOut();(a>e)?c.find(".go_comment").fadeOut():c.find(".go_comment").fadeIn()}function show_function_tab(a){if(typeof(window.fucntion_tab)=="undefined"){window.fucntion_tab=new Array()}if(typeof(fucntion_tab[a])=="undefined"){ouku.ajax.call(ouku.path.root+"_ajax.php?action=get_tag_intro","tag_id="+a+"&response=text",function(b){fucntion_tab[a]=b;$("#function_tab_"+a).html(fucntion_tab[a])},"get","text")}}function show_tab(d,e,f,a){var c=$("#"+d).html();if(typeof(b)=="undefined"){var b="cn"}if(c==null||c==""){if(d!="tmjc"){ouku.ajax.call(ouku.path.root+"_ajax.php?action=get_goods_"+d,"top_cat_id="+a+"&cat_id="+f+"&goods_id="+e+"&response=text&ln="+b,function(g){$("#"+d).html(g+" ")},"get","text")}else{ouku.ajax.call(ouku.path.root+"templates/"+d+".html","",function(g){$("#"+d).html(g)},"get","text")}}}function load_mobile_item(d,a){$("#mobile_item_list").html('<img src="'+ouku.path.img+'images/load.gif" style="width:75px;height:91px;margin:30px 0 0 320px;"/>');ouku.ajax.call(ouku.path.root+"_ajax.php?action=mobile_item&response=json&zip=1&"+d+"=y","",c,"get","text","",true);function c(f){var e=zip_inflate(base64decode(f));f=JSON.parse(e);$("#mobile_item_list").html(f.html_text);$("#mobile_item_list li").mouseover(function(){$("#mobile_item_list li .img_link").css("position","relative");$(this).find(".hover_div").show()}).mouseout(function(){$(this).find(".hover_div").hide()})}if(a){var b=[37,11,4,3,28];load_first_item("t2",b)}}function load_first_item(e,b){var d=b;a("t2");function a(f){ouku.ajax.call(ouku.path.root+"_ajax.php?action=mobile_item&response=json&zip=1&"+f+"=y","",c,"get","text","",true)}function c(g){var f=zip_inflate(base64decode(g));g=JSON.parse(f);$("body").append('<ul style="display:none;">'+g.html_text+"</ul>");if(d.length>0){a("t"+d.shift())}}}function get_index_soft(a){$("#soft_list").html('<img src="'+ouku.path.img+'images/load.gif" style="height:67px;margin:0 0 0 310px;"/>');ouku.ajax.call(ouku.path.root+"_ajax.php?action=soft_list&response=json&type="+a,"",b,"get","json","",true);function b(e){var f="";var c=e.length;for(var d=0;d<c;d++){if(d==0){f+='<li style="background-image:none"><a class="img_link" href="http://ruanjian.ouku.com/soft_'+e[d].soft_id+'.htm" target="_blank"><img src="http://ruanjian.ouku.com/upimg/ouku/Image/soft/icon/'+e[d].soft_icon+'" alt="'+e[d].soft_name+'" width=40 height=40 /></a><p><a href="http://ruanjian.ouku.com/soft_'+e[d].soft_id+'.htm" target="_blank">'+e[d].soft_name+"</a></p></li>"}else{f+='<li><a class="img_link" href="http://ruanjian.ouku.com/soft_'+e[d].soft_id+'.htm" target="_blank"><img src="http://ruanjian.ouku.com/upimg/ouku/Image/soft/icon/'+e[d].soft_icon+'" alt="'+e[d].soft_name+'" width=40 height=40 /></a><p><a href="http://ruanjian.ouku.com/soft_'+e[d].soft_id+'.htm" target="_blank">'+e[d].soft_name+"</a></p></li>"}}$("#soft_list").html(f)}}function get_my_attention(){ouku.ajax.call(ouku.path.root+"_ajax.php?action=my_attention&response=json&zip=1","",a,"get","text");function a(c){if(c==""||c==null){return false}var b=zip_inflate(base64decode(c));c=JSON.parse(b);$("#_my_info").html(c.html_text);if(c.error==0){$("#_my_info").show();$("#_hot_brand").hide();$("#hot_wrap_id dt").removeClass("on");$("#_my_info .hotFocus_1").eq(0).show()}$("#attention_page a").each(function(d){$(this).click(function(){$("#attention_page a").removeClass();$(this).attr("class","hotFocus_aslct");$("#_my_info .hotFocus_1").hide();$("#_my_info .hotFocus_1").eq(d).show();return false})})}}function get_article_list_by_cat(b){$("#article_content").html('<img src="'+ouku.path.img+'images/load.gif" style="width:75px;height:91px;margin:40px 0 0 190px;"/>');ouku.ajax.call(ouku.path.root+"_ajax.php?action=article_list&response=text&cat="+b,"",a,"get","text","",true);function a(c){$("#article_content").html(c)}}function get_limit_goods(){var a=ouku.path.root+"_ajax.php?action=get_limit_goods";ouku.ajax.call(a,"",b,"get","json");function b(c){$("#limit_goods").html(c.content)}}function ad_loop(j){var j=j==""||j==undefined?"left":j;var g=$("#ad_pic_id img").length;var f=1,b=0,d=1,m="",c=0;var h=$("#ad_pic_id").width();var a=$("#ad_pic_id").height();if(j=="top"){$("#ad_pic_id a").css("display","block")}var l=$("#ad_pic_id").html();$("#ad_pic_id").html(l+l);function e(i){b=f*h;c=f*a;if(j=="left"){$("#ad_pic_id").animate({scrollLeft:b+"px"},{duration:300,complete:function(){if(i){return false}++f;d++;if(f==g){d=0}if(f==g+1){f=1;$("#ad_pic_id").scrollLeft(0)}m=setTimeout(function(){e()},3000)}})}else{if(j=="top"){$("#ad_pic_id").animate({scrollTop:c+"px"},{duration:300,complete:function(){if(i){return false}++f;d++;if(f==g){d=0}if(f==g+1){f=1;$("#ad_pic_id").scrollTop(0)}m=setTimeout(function(){e()},3000)}})}}$("#pic_tab_id a").removeClass("slct_ad");$("#pic_tab_id a").eq(d).addClass("slct_ad")}if(g>1){m=setTimeout(function(){e()},3000);$("#ad_pic_id img").each(function(i){$(this).mouseover(function(){f=i;d=i;$("#ad_pic_id").stop();e(true);clearTimeout(m)}).mouseout(function(){if(i<g){f=i+1;d=i+1}if(f==g){d=0}if(f==g+1){f=1}m=setTimeout(function(){e()},3000)})});$("#pic_tab_id a").each(function(i){$(this).mouseover(function(){f=i;d=i;$("#ad_pic_id").stop();e(true);clearTimeout(m)}).mouseout(function(){if(i<g){f=i+1;d=i+1}if(f==g){d=0}if(f==g+1){f=1}m=setTimeout(function(){e()},3000)})})}}function get_fitt_img(b){ouku.ajax.call(ouku.path.root+"_ajax.php?action=get_fitt_img&goods_id="+b,"",a,"get","json","",true);function a(e){var c=e.length;for(var d=0;d<c;d++){$("#fittingUl img").eq(d).attr("src",e[d]).css("height","89px")}}}function loading_img(d){var b=[];for(var c=0;c<d.length;c++){b[c]=new Image();b[c].src=d[c]}}function get_flink_logo(){ouku.ajax.call(ouku.path.root+"_ajax.php?action=get_friend_link","",a,"get","json","",true);function a(b){$("#flink_logo").html(b.content)}}$(function(){$("#input_1").focus(function(){if($(this).val()=="N97"){$(this).val("")}}).blur(function(){if($(this).val()==""){$(this).val("N97")}});$("#form1").submit(function(){if($("#input_1").val()==""){$("#input_1").val("").focus();return false}});$("#my_opinion_a, #my_opinion_div").mouseover(function(){$("#my_opinion_div").show();return false});$("#my_opinion_div").mouseout(function(){$(this).hide()});$("#cartId, #cartGoods").mouseover(function(){$("#cartGoods").show();$("#_cart_1").attr("class","myCart_hidn");$("#_cart_2").attr("class","myCart_hidn_p");return false});$("#cartGoods, #cartId").mouseout(function(){$("#cartGoods").hide();$("#_cart_1, #_cart_2").removeClass()});$("#my_ouku_a, #my_ouku_div").mouseover(function(){$("#my_ouku_div").show();return false});$("#my_ouku_div").mouseout(function(){$("#my_ouku_div").hide()});$("#open_all_cat").click(function(){$("#cat_item").css("display")=="none"?$("#cat_item").show():$("#cat_item").hide();if(typeof(pageTracker)!="undefined"){pageTracker._trackPageview("/clickto/\u67e5\u770b\u6240\u6709\u5546\u54c1\u7c7b\u76ee")}return false});$("#close_cat_item").click(function(){$("#cat_item").hide();return false});$("#goods_cat_select a").each(function(a){$(this).mouseover(function(){$("#cat_item .all_goods_cat").hide();$("#cat_item .all_goods_cat:eq("+a+")").show();$("#goods_cat_select a").removeClass();$(this).addClass("AllGoods_hidn_taslct");return false})})});
