$(function(){$("body").bind("click",function(a){a=$(a.target).data("events");if(typeof a!="undefined"&&typeof a.click!="undefined")for(i in a.click)if(a.click[i].type=="dropmenu_pop")return false;$(".mydropmenu").hide();$(".DropTitle").removeClass("DropTitle_hover")});$(".DropTitle").bind("click.dropmenu_pop",function(){$(this).blur();var a=$(this).attr("rel");if($("#"+a+"_Drop").css("display")=="none"){if(a=="Type"&&$("input[name=TypeID]").val()=="")getRunwayType();else if(a=="City"&&$("input[name=CityID]").val()== "")getCity();else a=="Designer"&&getDesigner();$(".DropMenu").hide();$(".DropTitle").removeClass("DropTitle_hover");$("#"+a+"_Drop").show();$("#"+a+"_Title a.DropTitle").addClass("DropTitle_hover")}else{$("#"+a+"_Drop").hide();$("#"+a+"_Title a.DropTitle").removeClass("DropTitle_hover")}});if($.browser.msie&&parseInt($.browser.version.substr(0,1))<7)if(getCookie("updateie_notice")!="1"){$("#UpdateIE").slideDown();$("#close_updateie").click(function(){$("input[name=update_notice]").attr("checked")== true&&addCookie("updateie_notice",1,30,"/",".eeff.com");$("#UpdateIE").slideUp()})}$(".DropMenu li a").live("click.dropmenu_pop",function(){var a=$(this).html(),b=$(this).attr("rel"),c=$(this).parent().parent().attr("id"),d=$(this).parent().parent().parent().attr("id");$("#"+c+" a").css("background","#FFF");$(this).css("background","#EBF1F1");$("#"+c+"").hide();$("#"+d+" a.DropTitle").removeClass("DropTitle_hover");$("#"+d+" a.DropTitle").html(a);$("#"+d+" input").val(b);if(c=="Root_Drop"){getRunwayType(); getDesigner("")}else if(c=="Type_Drop"){getCity();getDesigner("")}else if(c=="City_Drop")getDesigner("");else c=="Season_Drop"&&getDesigner("")});$("input[name=runway_search_button]").mouseover(function(){$("input[name=runway_search_button]").removeClass("button_on");$("input[name=runway_search_button]").addClass("button_over")}).mouseout(function(){$("input[name=runway_search_button]").removeClass("button_over");$("input[name=runway_search_button]").addClass("button_on")});$(".SearchSelector").bind("click.dropmenu_pop", function(){$(".SearchSelector_float li a").removeClass("Selector_ahover");if($(".SearchSelector_float").css("display")=="none"){var a=$("input[name=rootid]").val();$("#li_"+a+" a").addClass("Selector_ahover");$(".SearchSelector_float").show()}else $(".SearchSelector_float").hide()});$(".SearchSelector_float li").click(function(){var a=$(this).attr("rel"),b=$(this).text();$(".SearchSelector").html(b);$("input[name=rootid]").val(a);$(".SearchSelector_float").hide()});$("#MsgBoard").click(function(){MsgBoard()}); $("#Application").click(function(){Application()});$("#global_login_form").submit(function(){var a=$("input[name=MemberName]"),b=$("input[name=MemberPass]");if(a.val()==""){jAlert("\u7528\u6237\u540d\u4e0d\u80fd\u4e3a\u7a7a\uff0c\u8bf7\u8f93\u5165\u7528\u6237\u540d\u3002","\u7cfb\u7edf\u63d0\u793a",function(){a.focus()});return false}if(b.val()==""){jAlert("\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a\uff0c\u8bf7\u8f93\u5165\u5bc6\u7801\u3002","\u7cfb\u7edf\u63d0\u793a",function(){b.focus()});return false}$.getJSON($("#global_login_form").attr("action")+ "&ajax=1&jsoncallback=?",$("#global_login_form").serialize(),function(c){c.Error=="0"?location.reload():jAlert(c.Text)});return false});$("#OrderByTitle").click(function(){$("#OrderByMenu").show();return false});$("#OrderByMenu").bind("mouseleave",function(){$("#OrderByMenu").hide()});$("#SeasonTitle").click(function(){$("#SeasonMenu").show();return false});$("#SeasonMenu").bind("mouseleave",function(){$("#SeasonMenu").hide()});$(".catdrop").bind("click.dropmenu_pop",function(){DropMenu("");return false}); $(".catdropm").bind("mouseleave.dropmenu_pop",function(){DropMenu("hide");$(".mydrop > a").blur()});$("#SearchForm").submit(function(){if($("input[name=keyword]").val()==""){jAlert("\u8bf7\u8f93\u5165\u4f60\u8981\u67e5\u8be2\u7684\u5173\u952e\u8bcd\u3002","\u7cfb\u7edf\u63d0\u793a",function(){$("input[name=keyword]").focus()});return false}});$("#DownloadpackageButton").bind("click",function(){$(".FloatDiv").hide();var a=$(this).attr("href")+"_Min";$("#DownloadDiv").show();$.getJSON(a,function(b){if(b.Error== 0){$("#DownloadDiv .loader_page").html(b.Msg);$.get("/Download/"+b.CheckUrl,function(c){$("#PackageStatus").html(c)})}else{$("#DownloadDiv").hide();jAlert(b.Msg)}});return false});$(".ContentDownloadButton").click(function(){$("#DownloadpackageButton").trigger("click")});$(".CloseButton").live("click",function(){$(".FloatDiv").hide()});$(".ShareLink").click(function(){window.clipboardData.setData("text",document.title+"\n"+location.href);jAlert("\u9875\u9762\u5730\u5740\u590d\u5236\u6210\u529f\uff0c\u53ef\u4ee5\u7c98\u8d34\u5230QQ\uff0cMSN\uff0c\u8bba\u575b\u7b49\u53d1\u9001\u7ed9\u670b\u53cb\u3002"); return false})});function Report(a){$(".FloatDiv").hide();$("#ReportDiv").show();$("#ReportDiv .loader_page").html()==""&&$.post("/Function/Report.php?type=min",{title:a,url:encodeURI(location.href)},function(b){$("#ReportDiv .loader_page").html(b)})} function DropMenu(a){var b="";$(".h-drop > a").blur();b=a!=""?a=="show"?1:0:$(".catdropm").css("display")=="none"?1:0;if(b==1){$(".catdropm").fadeIn();$(".mydrop").addClass("drop_current")}else{$(".catdropm").fadeOut();$(".mydrop").removeClass("drop_current")}$(".mydrop > a").blur()} function getRunwayType(){$.getJSON("/ajax.php?module=Index&mode=RunwaySearch&get=RunwayType&rootid="+$("input[name=RootID]").val(),function(a){$("#Type_Title .DropTitle").text(a.Title);$("input[name=TypeID]").val(a.ID);$("#Type_Drop").html(a.All)})} function getCity(){$.getJSON("/ajax.php?module=Index&mode=RunwaySearch&get=City&rootid="+$("input[name=RootID]").val()+"&runwaytype="+$("input[name=TypeID]").val(),function(a){$("#City_Title .DropTitle").text(a.Title);$("input[name=CityID]").val(a.ID);$("#City_Drop").html(a.All)})} function AddFavorit(a,b){$.getJSON("/ajax.php?module=User&mode=ToFavorites&type="+a+"&id="+b,function(c){if(c.Error==0&&a=="Article"){var d=parseInt($("#Favs_"+b).html())+1;$("#Favs_"+b).html(d)}c.Error==0?jPopwin(c.Text):jAlert(c.Text)})}function Digg(a,b){$.getJSON("/ajax.php?module=Article&mode=Digg&type="+a+"&id="+b,function(c){c.Error==1?jAlert(c.Text):$("#Digg_"+b).html(c.Text)})} function addBookmark(a,b){try{window.external.addFavorite(b,a)}catch(c){try{window.sidebar.addPanel(a,b,"")}catch(d){jAlert("\u5f53\u524d\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u81ea\u52a8\u52a0\u5165\u6536\u85cf\u5939\uff0c\u8bf7\u6309Ctrl+D\u624b\u52a8\u5c06\u672c\u9875\u52a0\u5165\u6536\u85cf\u5939")}}} function SetHome(a){try{a.style.behavior="url(#default#homepage)";a.setHomePage("http://www.eeff.com/")}catch(b){if(window.netscape)try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(c){alert("\u62b1\u6b49\uff0c\u6b64\u64cd\u4f5c\u88ab\u6d4f\u89c8\u5668\u62d2\u7edd\uff01\n\n\u8bf7\u5728\u6d4f\u89c8\u5668\u5730\u5740\u680f\u8f93\u5165\u201cabout:config\u201d\u5e76\u56de\u8f66\u7136\u540e\u5c06[signed.applets.codebase_principal_support]\u8bbe\u7f6e\u4e3a'true'")}else alert("\u62b1\u6b49\uff0c\u60a8\u6240\u4f7f\u7528\u7684\u6d4f\u89c8\u5668\u65e0\u6cd5\u5b8c\u6210\u6b64\u64cd\u4f5c\u3002\n\n\u60a8\u9700\u8981\u624b\u52a8\u5c06'http://www.eeff.com/'\u8bbe\u7f6e\u4e3a\u9996\u9875\u3002")}} function online(a){var b=encodeURI(location.href);$.getJSON("/online.php?time="+a+"&currentpage="+b,function(c){if(c.Status=="-1"){jAlert(c.Msg,"\u7cfb\u7edf\u8b66\u544a\uff01",function(){if(c.Url=="refresh")location.reload();else location.href=c.Url});return false}})}function closeWindow(){window.open("","_parent","");window.close()}function pingmail(a){document.write(a+"@eeff.com")} function MsgBoard(){if($("#MsgMain").css("display")=="none"){$(".FloatMsg").hide();$(".MsgBoardDiv").show();$("#MsgMain .loader_page").size()>0&&$.get("/Function/MsgBoard.php",function(a){$("#MsgMain").html(a)})}}function Application(){if($("#ApplicationMain").css("display")=="none"){$(".FloatMsg").hide();$(".ApplicationDiv").show();$("#ApplicationMain .loader_page").size()>0&&$.get("/Function/Application.php?isajax=1",function(a){$("#ApplicationMain").html(a)})}} function addCookie(a,b,c,d,e){a=a+"="+escape(b);if(c!=""){b=new Date;b.setTime(b.getTime()+c*24*3600*1E3);a+=";expires="+b.toGMTString()}if(d!="")a+=";path="+d;if(e!="")a+=";domain="+e;document.cookie=a}function getCookie(a){var b=document.cookie,c=b.indexOf(a);if(c!=-1){c+=a.length+1;a=b.indexOf(";",c);if(a==-1)a=b.length;var d=unescape(b.substring(c,a))}return d} function CheckBrownserVersion(){$.browser.msie&&parseInt($.browser.version.substr(0,1))<7?jAlert("\u60a8\u4f7f\u7528\u7684IE\u7248\u672c\u5c0f\u4e8e8\uff0c\u5efa\u8bae\u5347\u7ea7\u5230Internet Explorer 8"):jAlert("\u60a8\u7684\u6d4f\u89c8\u5668\u65e0\u9700\u5347\u7ea7\uff0c\u8c22\u8c22\u3002")};