if (window.addEventListener) {window.addEventListener("load", onloadfunct, false);}
else if (window.attachEvent) {window.attachEvent("onload", onloadfunct);}
else if (document.getElementById) {window.onload=onloadfunct;}



function onloadfunct(){
	
	fixAreaHeight("midArea","200");
//	embedVideoPlayerObj();

	//ToggleTabContent("TNB","5","Reload");

}
	
function fixAreaHeight(arg1,arg2) {
	var Area_Id = arg1;
	var Area_MinH = parseInt(arg2);
	var Child_Height = new Array();
	Area_Children = document.getElementById(Area_Id).childNodes;
	var MaxH = Area_MinH;
	for (var i = 0; i < Area_Children.length; i++) {
		if  (Area_Children[i].nodeName !== "DIV") continue;
		Child_Height = Area_Children[i].offsetHeight;
		if (Child_Height > MaxH) MaxH = Child_Height;
	}
	document.getElementById(Area_Id).style.height = MaxH + 'px';
}

function showOrHideElem(arg1,arg2){
	var TipId = arg1;
	var OpType = arg2;
	var mess;
	var AttrList = document.getElementById(TipId).attributes;
	if (!AttrList.getNamedItem("CLASS")) {
		mess = alert("Tip <div>: " + TipId + " has no class attribute");
		return mess;
	}
	if (OpType == "show") document.getElementById(TipId).getAttributeNode("class").value = "Visible";
	if (OpType == "hide") document.getElementById(TipId).getAttributeNode("class").value = "Hidden";
}


/*




function loadVideoObj(arg1) {
	var paragId = arg1;
	var contenuParagraphe;
	var mess, msg;
	mess = alert("paragID is " + paragId );
	newTextNode = document.createTextNode("Ceci est le contenu du paragraphe vtdloc");
	document.getElementById(paragId).appendChild(newTextNode);
	contenuParagraphe = document.getElementById(paragId).lastChild.nodeValue;
	msg = alert("parag content is " + contenuParagraphe);
}
*/