function xLoaded() {}

function showFiche(section,numero,langue) {
	if(!langue) langue=xLg;
	var vUrl = "/canada/aluminum/"+langue+"/fiches/f"+section+"_"+numero+".asp";
	
	showPage(vUrl);
}

function showPub(langue) {
	var vUrl = "/canada/aluminum/fr/ads/default.asp";
	if(langue=="en") vUrl="/canada/aluminum/en/ads/default.asp";
	tb_show(null,vUrl+"?s=1&TB_iframe=true&width=605&height=560&modal=false&scrolling=no");
}

function showPage(vUrl,vTitre,vWidth,vHeight) {
	if(!vTitre) vTitre=null;
	if(!vWidth || vWidth==null) vWidth=607;
	if(!vHeight || vHeight==null) {
		vHeight = 550;
		if(document.body.clientHeight) vHeight = document.body.clientHeight-150;
		if(window.innerHeight) vHeight=window.innerHeight-150;
	}
	showFrame(vUrl,vTitre,vWidth,vHeight);
}

/*ThickBox*/
if(xLg == "fr"){ var tb_closeCaption = "Fermer"; var tb_closeCaption2 = "";}

function showMedia(vFile,vTitre,vWidth,vHeight) {	
	if(!vWidth) vWidth= 450;
	if(!vHeight) vHeight= 340;
	if(!vTitre) vTitre = "";
	//vWidth-=30;
	//vHeight-=10;
	tb_show(vTitre,"/canada/aluminum/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=auto");
}

function showImage(imageUrl,imageTitre) {
    if(!imageTitre) imageTitre = top.document.title;
	tb_show(imageTitre,imageUrl+"?width");
}

function CloseAndOpen(){
    tb_remove();
    window.setTimeout('tb_show(null,"/canada/aluminum/fr/friend.asp?TB_iframe=true&width=200&height=200&modal=false&scrolling=no");', 500);
    


}
