<!--
var sModeProduct = 0;
var iHproduct = 600;
var iHmaxProduct = 600;

function resizeHeader(iHeight){
	var oDivVideo = null;
	if (document.getElementById) {
		oDivVideo = document.getElementById('swfheader');
	} else if (document.all) {
		oDivVideo = document.all['swfheader'];
	}
	// var oDivVideo = document.getElementById("supra");
	if(oDivVideo){
		oDivVideo.style.height = iHeight + "px";
		if (typeof document.body.style.maxHeight != "undefined") {
		  // IE 7, mozilla, safari, opera 9
		} else {
		  // IE6, older browsers
		  oDivEmbed = document.all['swfheader'];
		  oDivEmbed.style.height = iHeight + "px";
		}
	}
}

function resize(iHeight){
	var oDivVideo = null;
	if (document.getElementById) {
		oDivVideo = document.getElementById('range_zone-bandeau');
	} else if (document.all) {
		oDivVideo = document.all['range_zone-bandeau'];
	}
	// var oDivVideo = document.getElementById("range_zone-bandeau");
	if(oDivVideo){
		oDivVideo.style.height = iHeight + "px";
	}
}	
	
function resize_execute(iHeight){
	var oBody = document.body;
	
	var oDiv = null;
	var oDivFooter = null;
	if (document.getElementById) {
		oDiv = document.getElementById("flashcontent");
		oDivFooter = document.getElementById("barre-noire-bas");
	} else if (document.all) {
		oDiv = document.all['flashcontent'];
		oDivFooter = document.all['barre-noire-bas'];
	}
	/*
	var oDiv = document.getElementById("flashcontent");
	var oDivFooter = document.getElementById("barre-noire-bas");
	*/
	if(oDiv){
		oDiv.style.height = iHeight + "px";
		if (typeof document.body.style.maxHeight != "undefined") {
		  // IE 7, mozilla, safari, opera 9
		} else {
		  // IE6, older browsers
		  oDivEmbed = document.all['home'];
		  oDivEmbed.style.height = iHeight + "px";
		  alert("resize document.all['home'];");
		}
		/*
		alert(iHeight);
		oDiv.style.height = iHeight + "px";
		alert(oDiv.style.height);
		*/
		/*
		if(oDivFooter){
			var oDivBandeau = document.getElementById("range_zone-bandeau");
			if(oDivBandeau){
				var iPosFooter = parseInt(iHeight,10) + 285;
			}else{
				var iPosFooter = parseInt(iHeight,10) + 115;
			}
			oDivFooter.style.position = "absolute";
			oDivFooter.style.top = iPosFooter + "px";
		}
		*/
		if (window.innerWidth){
			//iTmpWidth = window.innerWidth;
			iTmpWidth = '100%'
		}
		else if (document.all){
			iTmpWidth = document.body.clientWidth;
		}
		// oDiv.style.width = iTmpWidth;
		oBody.scroll="yes";
		
		//Patch Safari
		//ligne commente pour eviter bug avec les flash objects
		
		if (navigator.userAgent.indexOf("Safari") >= 0)
		{
		    //document.getElementById("home").height = iHeight;
		}
	}
}

function resizeSmallSize_div_product(h){
	sModeProduct = 1;
	resize_execute(h);
}
function resizeFullSize_div_product(){
	if (window.innerWidth){
		iScreenHeight = window.innerHeight;
	}
	else if (document.all){
		iScreenHeight = document.body.clientHeight;
	}
	resize_execute(iScreenHeight);
	sModeProduct = 2;
}
function resizeScreen_div_product(){
	if (sModeProduct == 1)
		resizeSmallSize_div_product(iHproduct);
	else
		resizeFullSize_div_product();
}
function resize_div_product(h){
	if ((h=='undefined') || (h=='') || (h==undefined)){
		h=iHproduct;
	}
	switch (h){
		case '100%':
			resizeFullSize_div_product();
			break;
	default:
		iHproduct = h;
		resizeSmallSize_div_product(h);
		break;
	}
}
function resize_auto_div_product(){
	if (window.innerWidth){
		iScreenHeight = window.innerHeight;
	}
	else if (document.all){
		iScreenHeight = document.body.clientHeight;
	}
	if (iHproduct < iScreenHeight) {
		iHmaxProduct = iScreenHeight;
	} else {
		iHmaxProduct = iHproduct;
	}
	resizeSmallSize_div_product(iHmaxProduct);
}
//-->