function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.
{
	if (navigator.appName == "Microsoft Internet Explorer") {
		var reg = new RegExp('^.+MSIE ([0-9])\.[0-9].+$', 'i');
		var version = reg.exec(navigator.userAgent);
		if (version[1] < 7) {
			for(var i=0; i<document.images.length; i++)
			{
				var img = document.images[i]
				var imgName = img.src.toUpperCase()
				if (imgName.substring(imgName.length-3, imgName.length) == "PNG" )
				{
					var imgID = (img.id) ? "id='" + img.id + "' " : ""
					var imgClass = (img.className) ? "class='" + img.className + "' " : ""
					var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
					var imgStyle = "display:inline-block;" + img.style.cssText
					var imgAttribs = img.attributes;
					for (var j=0; j<imgAttribs.length; j++)
					{
						var imgAttrib = imgAttribs[j];
						if (imgAttrib.nodeName == "align" )
						{
							if (imgAttrib.nodeValue == "left" ) imgStyle = "float:left;" + imgStyle
							if (imgAttrib.nodeValue == "right" ) imgStyle = "float:right;" + imgStyle
							break
						}
					}
					var strNewHTML = "<span " + imgID + imgClass + imgTitle
					strNewHTML += " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
					strNewHTML += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
					strNewHTML += "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
					img.outerHTML = strNewHTML
					i = i - 1
				}
			}
		}
		else
			return;
	}
	else
		return;
}

function resize_acceuil() {
	var height = Math.floor(88*getWindowHeight()/100);
	if (height < 570)
		height = 570;
	else if (height > 1000)
		height = 1000;
	document.getElementById('page_accueil').style.height = height+'px';
}

function remonte_page() {
	if (navigator.appName == "Netscape") {
		var reg = new RegExp('^.+Firefox\/([0-9]).+$', 'i');
		var reg2 = new RegExp('^.+Safari\/([0-9]).+$', 'i');
		var version = reg.exec(navigator.userAgent);
		var version2 = reg2.exec(navigator.userAgent);
		if (version2 != null) {
			if (version2[1] > 4)
				if (document.getElementById('page'))
					document.getElementById('page').style.marginTop="80px";
		}
		if (version != null) {
			if (version[1] == 3)
				if (document.getElementsByClassName('main clearfix')) 
					document.getElementsByClassName('main clearfix')[0].style.marginTop = '80px';
		}
	}
}