try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}function doSubmit(){if(document.sform.SearchValue.value==""){alert("车队名称不能为空！");document.sform.SearchValue.focus();return false}if(document.sform.SearchType.value==""){alert("请选择分类属性！");document.sform.SearchType.focus();return false}document.sform.submit()}function SubmitQuery(a){a.submit()}function QuerySelect(a){if(a.options[a.selectedIndex].value!=""&&a.options[a.selectedIndex].value!="0"){document.myform.submit()}}function CancleSelect(b,a){if(b.options[b.selectedIndex].value==a&&b.options[b.selectedIndex].value!="0"){b.options[b.selectedIndex].selected=false;b.selectedIndex=-1;document.myform.submit();return false}}$(window).load(function(){$(".news_content, .box_m, .sd_mid, .sd_right, .index_nextsd_mid").find("img").each(function(){var c=$(this);var a=c.parents(".news_content, .box_m, .index_nextsd_mid").innerWidth()-20;var b=c.parents(".news_content, .box_m, .index_nextsd_mid").innerHeight()-40;if(c.width()>a){c.attr({alt:"点击查看原始尺寸:"+c.width()+"*"+c.height()}).css({cursor:"pointer"}).click(function(){window.open(this.src)});c.height(a/c.width()*c.height());c.width(a)}if(c.height()>b){c.width(b/c.height()*c.width());c.height(b)}})});$(function(){$(".tabs > .tab_nav li:nth-child(1), .tabs > .tab_mid > div:nth-child(1)").addClass("on");$(".tabs > .tab_nav li").each(function(a){$(this).mouseover(function(){$(this).addClass("on").siblings("li").removeClass("on");$($(".tab_mid > div:eq("+a+")")).show().siblings(".tab_con").hide()})});$("#Yid").FillOptions("WebClass.asp?type=json",{datatype:"json",textfield:"ClassName",valuefiled:"Codes"});$("#Yid").CascadingSelect($("#Sid"),"WebClass.asp?type=json",{datatype:"json",textfield:"ClassName",valuefiled:"Codes",parameter:"Codes"},function(){$("#Gid").html("")});$("#Sid").CascadingSelect($("#Gid"),"WebClass.asp?type=json",{datatype:"json",textfield:"ClassName",valuefiled:"Codes",parameter:"Codes"},function(){});$("#SD_Yid").FillOptions("WebClass.asp?type=json",{datatype:"json",textfield:"ClassName",valuefiled:"Codes"});$("#SD_Yid").CascadingSelect($("#SD_Sid"),"SaiDaoBackJSON.asp?type=json",{datatype:"json",textfield:"ClassName",valuefiled:"Codes",parameter:"SD_Yid"},function(){});$("#MYid").FillOptions("WebClass.asp?type=json",{datatype:"json",textfield:"ClassName",valuefiled:"Codes"});$("#MYid").CascadingSelect($("#MGid"),"DriverJSON.asp?type=json",{datatype:"json",textfield:"ClassName",valuefiled:"Codes",parameter:"Yid"},function(){$("#MCid").html("")});$("#MGid").CascadingSelect($("#MCid"),"DriverTeamJSON.asp?type=json",{datatype:"json",textfield:"ClassName",valuefiled:"Codes",parameter:"MGid"},function(){});$(document.body).focus()});function SetRemainTime(){if(SysSecond&&SysSecond>0){SysSecond=SysSecond-1;var d=Math.floor(SysSecond%60);var c=Math.floor((SysSecond/60)%60);var a=Math.floor((SysSecond/3600)%24);var b=Math.floor((SysSecond/3600)/24);$("#sd_time").html("<span>"+b+"</span><span>"+a+"</span><span>"+c+"</span><span>"+d+"</span>")}else{$("#sd_time").html("<div>赛事已经结束</div>");window.clearInterval(InterValObj)}}$(document).ready(function(){$(".tab_con table").addClass("datatable");$(".tab_con .datatable").find("tr:lt(2)").addClass("trtitle");$(".tab_con .datatable tr:not(.trtitle):even").addClass("treven");$(".tab_con .datatable tr:not(.trtitle):odd").addClass("trodd");$(".tab_con .datatable tr:not(.trtitle)").mouseover(function(){$(this).addClass("trhover")}).mouseout(function(){$(this).removeClass("trhover")}).click(function(){$(".trsel").removeClass("trsel");$(this).addClass("trsel")})});