if (randomnumber==null) {

	var axel;

	var randomnumber;

}

var isAdvised = false;

	function gf_PopUpWindowScroll(URL, WindowName, WindowWidth, WindowHeight) {

		PosX = Math.round(screen.availWidth / 2) - (WindowWidth / 2)

		PosY = Math.round(screen.availHeight / 2) - (WindowHeight / 2) - 20



		popupwin = window.open(URL,WindowName,"scrollbars=yes,resizable=yes,directories=no,menubar=no,screenx=" + PosX + ",screeny=" + PosY + ",left=" + PosX + ",top=" + PosY + ",status=no,titlebar=yes,toolbar=no,height=" + WindowHeight + ",width=" + WindowWidth )

		if (!popupwin && !isAdvised) {

			isAdvised = true;

			alert("Vous devez accepter les 'popup' pour ce site afin d'utiliser ce service.\n\nVeuillez vous assurer de d�sactiver tous logiciels bloquant les 'popup'. Merci")

		} else {popupwin.focus();}



	    //return(popupwin);

	}

	function gf_PopUpWindow(URL, WindowName, WindowWidth, WindowHeight) {

		PosX = Math.round(screen.availWidth / 2) - (WindowWidth / 2)

		PosY = Math.round(screen.availHeight / 2) - (WindowHeight / 2) - 20



		popupwin = window.open(URL,WindowName,"scrollbars=no,resizable=yes,directories=no,menubar=no,screenx=" + PosX + ",screeny=" + PosY + ",left=" + PosX + ",top=" + PosY + ",status=no,titlebar=yes,toolbar=no,height=" + WindowHeight + ",width=" + WindowWidth )

		if (!popupwin && !isAdvised) {

			isAdvised = true;

			alert("Vous devez accepter les 'popup' pour ce site afin d'utiliser ce service.\n\nVeuillez vous assurer de d�sactiver tous logiciels bloquant les 'popup'. Merci")

		} else {popupwin.focus();}



	    //return(popupwin);

	}





function EnDirect() {

//	gf_PopUpWindow("http://www.blitzhockey.net/ext/radioblitz72/live/live.asp","LiveForm",733,500);

//	gf_PopUpWindow("http://www.blitzhockey.net/ext/blitzhockey/archivesRadio/radio_archives.asp?LisFile=bh_last.asx&Annee=2006","LiveForm",303,210);

//	gf_PopUpWindow("http://www.kaluxo.com/ext/blitzhockey/liveradio/live.asp","LiveForm",733,500);

	gf_PopUpWindow("http://www.blitzhockey.net/ext/blitzhockey/radio.asp","CONSOLEForm",650,330);



}

function LastShow() {

	gf_PopUpWindow("http://www.blitzhockey.net/ext/blitzhockey/archivesRadio/radio_archives.asp?LisFile=bh_last.asx&Annee=2006","LiveForm",303,210);

}



function lf_refreshAds(iLink) {

	if (iLink != '') gf_PopUpWindowScroll(iLink, 'BlitzhockeyRSSDetail', 700, 500);

	if (document.getElementById('FrmAdsTop').src != undefined){

		document.getElementById('FrmAdsTop').src = document.getElementById('FrmAdsTop').src;

	}

	if (document.getElementById('FrmAdsRight').src != undefined){

		document.getElementById('FrmAdsRight').src = document.getElementById('FrmAdsRight').src;

	}

	if (document.getElementById('FrmAdsBottom').src != undefined){

		document.getElementById('FrmAdsBottom').src = document.getElementById('FrmAdsBottom').src;

	}

}



function gf_PoolConnect(){

	document.getElementById("login").value = "blitzhockey";

	document.getElementById("pass").value = "123456";

	document.FormPool.method = "POST";

	document.FormPool.submit();

}



function gf_LogToPool(){



	lf_refreshAds("http://www.blitzhockey.net/templates/38C298C4-1BEF-43C1-BB49-0FB25AC99006/logtopool.htm");



//	gf_PopUpWindowScroll("http://www.blitzhockey.net/templates/38C298C4-1BEF-43C1-BB49-0FB25AC99006/logtopool.htm", "PoolHockey", 795, 600);

//	gf_PopUpWindowScroll("http://www.blitzhockey.net/templates/38C298C4-1BEF-43C1-BB49-0FB25AC99006/infopool.htm", "InfoPoolHockey", 775, 440);



	isAdvised = false;

}



function gf_InviteToSite(){

	lf_refreshAds("http://www.blitzhockey.net/ext/blitzhockey/invite.asp");

	//gf_PopUpWindowScroll("http://www.blitzhockey.net/ext/blitzhockey/invite.asp", "InviteToSite", 405, 490);

}



function gf_ShowVideo(bShow, sURL){

	

	var oList = document.getElementById("listvideo");

	var oVideo = document.getElementById("showvideo");

	var oFrame = document.getElementById("videoDisplay");

	var oCadre = document.getElementById("cadrevideo");

	

	if (bShow) {

		oCadre.style.marginLeft = "0px";

		oCadre.style.marginRight = "0px";

		oList.style.display = "none";

		oVideo.style.display = "block";

		oFrame.src = sURL;

	}else{

		oCadre.style.marginLeft = "4px";

		oCadre.style.marginRight = "4px";

		oFrame.src = "/ext/blitzhockey/tv_off.htm";

		oVideo.style.display = "none";

		oList.style.display = "block";

	}

}