$("#stype li:eq(0)").data("v", {Text:"Please Input Product Name!", value:"/en/product/ProductSearch.aspx?key="}); $("#stype li:eq(1)").data("v", {Text:"Please Input Company Name!", value:"/en/supply/SupplySearch.aspx?key="}); $("#skey").click(function() {if ($(this).val() == $("#stype li[class!='']").data("v").Text) $(this).val("")}); $("#ctl00_Searchs").click(function() {if ($.trim($("#skey").val())==''||$("#skey").val()==$("#stype li[class!='']").data("v").Text) alert($("#stype li[class!='']").data("v").Text); else window.location.reload($("#stype li[class!='']").data("v").value+$("#skey").val()+"&msc="+$("#ctl00_cate").val() ); return false }); $("#stype li").click(function() { var lis = $("#stype li"); for(var i=0; i< lis.length; i++) { if (this == lis[i]) $(lis[i]).attr("class", "s"+(i+1)); else $(lis[i]).attr("class", ""); } $("#skey").val($("#stype li[class!='']").data("v").Text); }); if (getUrlFn()=='SupplySearch.aspx') $("#stype li:eq(1)").click(); $("#skey").val(QueryString("key", $("#stype li[class!='']").data("v").Text));
$("#navMenu li:eq(0)").attr("class", "s1");
$('#pro_panel').cycle({fx:'fade', speed: 500, timeout: 5000});