
/*
fonction pour l'affichage des video
*/
function windowVideo(title, filename, width, height) {
	
	url = "/xmedia/video/etudiant/video.php?title="+ title +"&filename="+ filename;
	url = encodeURI(url);
 my = window.open(url, "videoEtu", "width="+ width +",height="+ height);
 my.focus();
}


function get_obj(id) {
	if (document.getElementById) {
		return document.getElementById(id);
	}
	if (document.all) {
		return document.all[id];
	}
	return null;
}

function hide_obj(id) {
	var obj = get_obj(id);
	obj.style.visibility = "hidden";
	obj.style.display = "none";
}

function show_obj(id) {
	var obj = get_obj(id);
	obj.style.display = "block";
	obj.style.visibility = "visible";
}

function state_obj(id) {
	var obj = get_obj(id);
	if ("block" == obj.style.display || "visible" == obj.style.visibility) {
		return true;
	} else {
		return false;
	}
}

function toggle_obj(id) {
	if (state_obj(id) == false) {
		show_obj(id);
	} else {
		hide_obj(id);
	}
}

go_visibility = new Array;
function goblink()
	{
	if(document.getElementById && document.all)
		{
		blink_tab = document.getElementsByTagName('blink');
		for(a=0;a<blink_tab.length;a++)
			{
			if(go_visibility[a] != "visible")
				go_visibility[a] = "visible";
			else
				go_visibility[a] = "hidden";
			blink_tab[a].style.visibility=go_visibility[a];
			}
		}
	setTimeout("goblink()", 3000);
	}

window.onload = goblink;