var popupG;
function fullscreen(etat) {window.moveTo(0,0);window.resizeTo(screen.availWidth,screen.availHeight);var module = document.getElementById("module");module.style.visibility = "hidden";module.className=(etat?"pleinEcran":"centrer");module.style.visibility = "visible";};
function googleMAP(x,y,z,i) {popupG = window.open("../googleMAP.php?x="+x+"&y="+y+"&z="+z+"&i="+i,"popupGmap","width=700,height=550,top=10,left=10,resizable=0,scrollbars=0");popupG.focus();};
function affichage() {if(window!=top) {window.open("http://www.portimaorace.com/");} else {with (document.getElementById("module").style) {visibility = "visible";};};};
function module(l,e,h,b,x) {document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' width='100%' height='100%' id=course align=middle>");document.write("<param name=movie value='../_elements/module_"+e+".swf?RQ_lg="+l+"&RQ_e="+e+"&L="+x+"' /><param name=allowScriptAccess value=sameDomain /><param name=loop value=false /><param name=menu value=false /><param name=quality value=high /><param name=bgcolor value='"+b+"' /><param name=\"FlashVars\" value=\"PARAM_heureServeur="+h+"\" />");document.write("<embed src='../_elements/module_"+e+".swf?RQ_lg="+l+"&RQ_e="+e+"&L="+x+"' FlashVars=\"PARAM_heureServeur="+h+"\" loop=false menu=false quality=high bgcolor='"+b+"' width='100%' height='100%' name=course align=middle allowScriptAccess=sameDomain type='application/x-shockwave-flash' /></object>");};
function displayReport(leg,state){var report = document.getElementById("report");var raceviewer = document.getElementById("module");if(!report.src) report.src="report_"+leg+".html?l="+Math.random();report.style.visibility = state ? "visible" : "hidden";raceviewer.style.visibility = state ? "hidden" : "visible";};
window.onload = affichage;
