//google 统计代码 var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-25894124-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('http:' == document.location.protocol ? 'http://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); //google 统计代码结束 $(function(){ $(".select_sim a").click(function(e){ e.preventDefault(); $(this).parent().find("ul").toggle(); window.setTimeout("method('nvul')",5000); }); $(".select_sim li").click(function(){ var _text= $(this).text(); $(this).parent().hide().siblings("span").text(_text); }); $(function(){ $(".nav").parent().mouseover(function(){ $(this).find(".hide").show(); var _index=$(this).index()+1; $(this).find(".nav").addClass("nav_0"+_index+"_on"); }).mouseout(function(){ $(this).find(".hide").hide(); var _index=$(this).index()+1; $(this).find(".nav").removeClass("nav_0"+_index+"_on"); }); });}); function checkKeywords(){ var keywords=window.document.formsearch.q.value; if(keywords==''||keywords=='请输入关键词...'){ window.document.formsearch.q.focus(); alert('搜索关键字不能为空!'); return false; } else{ return true; } } //底部弹出餐单 $(document).ready(function(){ $(".select_pro").hover( function(){$(this).find(".son_ul").stop(true,true).slideDown(300)}, function(){$(this).find(".son_ul").slideUp(300)}) });