﻿function favoris() {
	browserName = navigator.appName;
	browserVer = parseInt(navigator.appVersion);
	if (browserName == "Microsoft Internet Explorer" & browserVer >= 4) {
		window.external.AddFavorite('http://www.waterlooTV.be', 'WaterlooTV');
	}
}
var oldVideo = null;
function openLive(base) {

	var theVideo = $get('theVideo');
	if (theVideo) {
		oldVideo = theVideo.innerHTML;
		theVideo.innerHTML = '<img src="'+ base +'Images/live-en-cours.png" alt="live en cours" />';
		
		//WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$cphContent$video$fvVideo$SendToFriend1$hlLive&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, true))

	}
	try{
		//WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$cphContent$video$fvVideo$SendToFriend1$hlLive", "", true, "", "", false, true))
		$get('ctl00_cphContent_video_fvVideo_SendToFriend1_hlLive').click();
//document.getElementById("ctl00_cphContent_video_fvVideo_SendToFriend1_hlLive").click();
		
	}catch(ex){
		//alert($get('ctl00_cphContent_video_fvVideo_SendToFriend1_hlLive'));
		
	}
	//WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$cphContent$video$fvVideo$SendToFriend1$hlLive&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, true))
	$get('ContainerLive').innerHTML='<IFRAME width="410" scrollbars="no" scrollbar="no" scrolling="no" height="360" style="width:410px;height:360px;border:0px solid" SRC="'+ base +'/live/live.html" frameborder="0" />'
	//var winLive = window.open(base + 'Live/live.html', 'waterloolive', 'width=424,height=360,resizable=no,toolbar=no,location=no')
	//if (winLive.closed == false) {
//		winLive.focus();
//	}
	
}
//function closeLive() {
//	var theVideo = $get('theVideo');
//	if (theVideo) {
//		theVideo.innerHTML = oldVideo;
//	}
//}