var lastFixturePopupAjax=new AjaxClass("","lastfixture.php","~#~");var lastFixturePopup=new SmPopUp("baseDiv","lastfixPopUp",lastFixturePopupAjax,"popupDivLoading","closeX","300",["adslot_1","adslot_2"]);var matchReportPopupAjax=new AjaxClass("","matchreport-ajax.php","~#~");var matchReportPopup=new SmPopUp("baseDiv","matchreportdiv",matchReportPopupAjax,"popupDivLoading","closeX","300",["adslot_1","adslot_2"]);var smtvPopupAjax=new AjaxClass("","smtv-ajax.php","~#~");var smtvPopup=new SmPopUp("baseDiv","matchreportdiv",smtvPopupAjax,"popupDivLoading","closeX","300",["adslot_1","adslot_2"]);function changematchtime(a){for(var b=0;b<4;b++){document.getElementById("h_pitchselect_"+b).className="";document.getElementById("a_pitchselect_"+b).className="";document.getElementById("h_pitch_"+b).style.display="none";document.getElementById("a_pitch_"+b).style.display="none"}document.getElementById("h_pitchselect_"+a).className="selected";document.getElementById("a_pitchselect_"+a).className="selected";document.getElementById("h_pitch_"+a).style.display="block";document.getElementById("a_pitch_"+a).style.display="block"}jQuery(document).ready(function(){$(".openheader2.forma").click(doMRToggle);$(".closedheader2.inst").click(doMRToggle)});function doMRToggle(){var a=$(this);if(a.is(".openheader2")){if(a.is(".forma")){$(".openheader2.forma").removeClass("openheader2").addClass("closedheader2");$(".closedheader2.forma").next().hide()}else{if(a.is(".inst")){$(".openheader2.inst").removeClass("openheader2").addClass("closedheader2");$(".closedheader2.inst").next().hide()}}}else{if(a.is(".forma")){$(".closedheader2.forma").removeClass("closedheader2").addClass("openheader2");$(".openheader2.forma").next().show()}else{if(a.is(".inst")){$(".closedheader2.inst").removeClass("closedheader2").addClass("openheader2");$(".openheader2.inst").next().show()}}}};