function hook_image_search(){$("#search_btn").livequery(function(){$(this).unbind().bind("click",function(){var D=$.trim($("input[@name=q]").val());if(D==""){alert("请输入查询关键字");return false}var C=$("#design_search_frm").attr("action");C+="?q="+encodeURIComponent(D);window.location.href=C;return false})});$("#search_go").livequery(function(){$(this).unbind().bind("click",function(){var D=$.trim($("input[@name=key]").val());if(D==""){alert("请输入查询关键字");return false}var C=$("#design_search_href").attr("href");C+="?q="+encodeURIComponent(D);window.location.href=C;return false})})}function hook_login_href(){$("a.jq_a_login").livequery(function(){$(this).unbind().bind("click",function(){var C=getUrl(this.href);var D=window.location.href;window.location.href=C+"?return="+encodeURIComponent(D)})})}function getUrl(C){var D=C.indexOf("#");return(D!=-1)?C.substring(0,D):C}function rebuildLocalPath(H,J){try{var G=H||"/design/info";var F=J||"/content";if(window.location.pathname){return G+F+window.location.pathname}else{return"design/info/home/index.shtml"}}catch(I){}};
