function showTooltip(id){
	if(document.getElementById(id)){
		document.getElementById(id).style.display = "block";
	}
}
function hideTooltip(id){
	if(document.getElementById(id)){
		document.getElementById(id).style.display = "none";
	}
}
function printPreview(){
	document.getElementById("contentBlockForPrint").className = "contentBlockForPrint";
	setElementOpacity("contentBlockForPrint",0);		
	var idInterval = setInterval(enlargeAlpha,100);
	var startAlpha = 0;
	function enlargeAlpha(){
		setElementOpacity("contentBlockForPrint",startAlpha);
		startAlpha += 0.1;
		if(startAlpha >= 1){
			clearInterval(idInterval);
		}
	}
}
function printClose(){
	setElementOpacity("contentBlockForPrint",1);
	document.getElementById("contentBlockForPrint").className = "";
}
function openPopup(address,wid,hei){
	window.open(address,'Email','scrollbars,resizable,width='+wid+',height='+hei);
}
function clockUnderLogo() {
	var title="JavaScriptSource The home of free scripts!";
	var date=new Date();
	var year=date.getFullYear();
	var month=date.getMonth();
	var day=date.getDate();
	var hour=date.getHours();
	var minute=date.getMinutes();
	var second=date.getSeconds();
	var months=new Array("JAN", "F&Eacute;V", "MARS", "AVR", "MAI", "JUIN", "JUILLET", "AO&Ucirc;T", "SEPT", "OCT", "NOV", "D&Eacute;C")
	
	var monthname=months[month];
	
	if (minute < 10) {
	minute="0"+minute;
	}
	
	if (second < 10) {
	second="0"+second;
	}
	
	
	document.getElementById('countdownTime').innerHTML=day+" "+monthname+" "+year+" - "+hour+":"+minute+":"+second;
	setTimeout(clockUnderLogo, 1000);
}
function doShowSpecTab(id, tag){
	var table = document.getElementById(id);
	if(table.style.display == "none"){
		table.style.display = "block";
		tag.getElementsByTagName("img")[0].src = "/images/minus.gif";
	}
	else{
		table.style.display = "none";
		tag.getElementsByTagName("img")[0].src = "/images/plus.gif";
	}
}
function showPlayerInfoBlock(num, tag){
	var block;
	for(i=1;i<5;i++){
		block = document.getElementById("playerInfoBlock" + i);
		if(block){
			if(i == num){
				block.style.display = "block";
			}
			else{
				block.style.display = "none";
			}
		}
	}
	for(i=0;i<document.getElementById("bookmarksBlock").getElementsByTagName("a").length;i++){
		if(tag == document.getElementById("bookmarksBlock").getElementsByTagName("a")[i]){
			tag.className = "active";
		}
		else if(Trim(document.getElementById("bookmarksBlock").getElementsByTagName("a")[i].className)!="disable"){
			document.getElementById("bookmarksBlock").getElementsByTagName("a")[i].className = "";
		}
	}
}
function initVideo(listValue, idd){
	var so = new SWFObject("/actualites/medias/flashplayer/video.swf", "player", "328", "200", "9", "#000000");
	so.addParam("allowfullscreen", "true");
	so.addParam("allowscriptaccess", "always");
	if(listValue != ""){
		so.addVariable("videoPath", videoPath + listValue + ".flv");
		//so.addVariable("image", "player/preview.jpg");
		so.write(idd);
	}
}