//PARIS GOLF COUNTRY CLUB.com, Powered by BLUE ACACIA : WEB AGENCY, Créateur de liens

function favoris() {
	if ( navigator.appName != 'Microsoft Internet Explorer' ) { 
		window.sidebar.addPanel("CLUB-ALBATROS.com","http://www.club-albatros.com","");
	}else {
		window.external.AddFavorite("http://www.club-albatros.com","CLUB-ALBATROS.com");
	}
}

function setpng(img) { 
	if(document.all && (IEver=parseFloat(navigator.appVersion.split("MSIE")[1])) && (IEver>=5.5) && (IEver<7) && document.body.filters && img) {
		imgName=img.src.toUpperCase();
		if(imgName.substring(imgName.length-3,imgName.length)=="PNG") {
			img.outerHTML="<span "+(img.id?"id='"+img.id+"' ":"")+(img.className?"class='"+img.className+"' ":"")+(img.title?"title=\""+img.title+"\" ":"")+"style=\"width:"+img.width+"px;height:"+img.height+"px;"+(img.align=="left"?"float:left;":(img.align=="right"?"float:right;":""))+(img.parentElement.href?"cursor:hand;":"")+"display:inline-block;"+img.style.cssText+";"+"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+img.src+"',sizingMethod='scale');\"></span>";
		}
	}
}

function photo_afficher(image){
	var texte_image=image;
	document.photo_magasin.src='photos/magasins/photos/'+texte_image+'';
}

function getWindowHeight() {
	var windowHeight = 0;
	if (typeof(window.innerHeight) == 'number') {
		windowHeight = window.innerHeight;
	}
	else {
		if (document.documentElement && document.documentElement.clientHeight) {
			windowHeight = document.documentElement.clientHeight;
		}
		else {
			if (document.body && document.body.clientHeight) {
				windowHeight = document.body.clientHeight;
			}
		}
	}
	return windowHeight;
}

function setFooter() {
	if (document.getElementById) {
		var windowHeight = getWindowHeight();
		if (windowHeight > 0) {
			var contentHeight = document.getElementById('content').offsetHeight;
			var footerElement = document.getElementById('footer');
			var footerHeight  = footerElement.offsetHeight;
			if (windowHeight - (contentHeight + footerHeight) >= 0) {
				footerElement.style.position = 'relative';
				footerElement.style.top = (windowHeight - (contentHeight + footerHeight)) + 'px';
			}
			else {
				footerElement.style.position = 'static';
			}
		}
	}
}

function savoir_element(e, d) {
	var element=e;
	var affichage=d;
	document.getElementById(element).style.display=''+affichage+'';
}