function xLoaded() { }

function showTT(txt,width) {
	showtip("xTooltip",txt,"#FFFFFF",width);
}

function hideTT() {
	hidetip("xTooltip");
}

/*ThickBox*/
if(langue=="en") {
		tb_closeCaption="Close";
		tb_closeCaption2="";
	} else {
		tb_closeCaption="Fermer";
		tb_closeCaption2="";
	}

function showMedia(vFile,vTitre,vWidth,vHeight) {	
	if(!vWidth) vWidth= 800;
	if(!vHeight) vHeight= 400;
	if(!vTitre) vTitre = "";
	//vWidth-=30;
	//vHeight-=10;
	tb_show(vTitre,"/medias/player.aspx?file="+vFile+"&TB_iframe=true&width="+vWidth+"&height="+vHeight+"&modal=false&scrolling=no");
}

function showFrame(vUrl,vTitre,vWidth,vHeight) {
	var paramSep="?";
	if(vUrl.indexOf("?")>0) paramSep="&";
	tb_show(vTitre,vUrl+paramSep+"s=1&TB_iframe=true&width="+vWidth+"&height="+vHeight+"&modal=false&scrolling=no");
}

function showImage(imageUrl,imageTitre) {
    if(!imageTitre) imageTitre = top.document.title;
	tb_show(imageTitre,imageUrl+"?width");
}


//function toggleItem(oTarget) {

//	// Class Active
//	toggleClass(oTarget,'_a');
//	
//	// Toggle Content
//	toggle(oTarget);
//	
//	var icon = oTarget.childNodes[0].childNodes[0].childNodes[0];
//	if(icon) toggleImageActive(icon);
//}

//function toggleImageActive(oImg) {
//	// Toggle Icon
//	if(!oImg.oSrc) oImg.oSrc = oImg.src;
//	if(oImg.src.indexOf("_a.")==-1) {
//		// Active
//		typeIndex = oImg.oSrc.indexOf(".gif");
//		oImg.src = oImg.oSrc.substr(0,typeIndex) + "_a" + oImg.oSrc.substr(typeIndex,oImg.oSrc.length);
//	} else {
//		// Unactive
//		oImg.src = oImg.oSrc;
//	}
//}

//function toggleClass(oTarget,sSuffix) {
//	if (typeof(oTarget) == "string") oTarget = document.getElementById(oTarget);
//	if (!oTarget || oTarget == null) oTarget = xGetObject(oTarget);
//	if (!oTarget || oTarget == null) return false;
//	
//	var className = oTarget.className;
//	if(!oTarget.initClass) oTarget.initClass = className;
//	
//	if(className.indexOf(sSuffix)==-1) {
//		// Active
//		oTarget.className=className+sSuffix;
//	} else {
//		// Unactive
//		oTarget.className=oTarget.initClass;
//	}
//}