var atn=0;
var hwn=0;
var wwn=0;

function detnav() {
nomnav=navigator.appName
	if (nomnav == "Microsoft Internet Explorer") {
	hwn=window.document.body.offsetHeight;
	wwn=window.document.body.offsetWidth;
	}
	else	{
	hwn=window.innerHeight;
	wwn=window.innerWidth;
	}

//	if ((nomnav !== "Microsoft Internet Explorer")&&(document.getElementById("val_sf").value=="")) {
//	alert ("Le navigateur que vous utilisez ne permet pas d'afficher correctement certains éléments de ces pages.\n Si vous le pouvez, utilisez Internet //Explorer. \n Merci.")
//	atn=1
//	}
//document.getElementById("val_atn").value=atn
//window.resizeTo(740,screen.availHeight);
//window.moveTo(0,0);
//document.getElementById("val_nav").value=navigator.appName;
//document.getElementById("val_platt").value=navigator.platform;
//document.getElementById("val_usag").value=navigator.userAgent;
//document.getElementById("val_wsc").value=screen.availWidth
//document.getElementById("val_hsc").value=screen.availHeight;

	if ((navigator.userAgent.search("Safari")>0)&&(navigator.userAgent.search("Version/3.")<0)) 
	{
	alert ("Votre navigateur (Safari Version 2.--) n'est pas doté de fonctionnalités vous permettant de naviguer correctement dans MaisonEbene.com.\n\nUne version plus récente et mise à jour est disponible chez APPLE.");
	}
}

function wcookie() {
document.cookie="wwind"+"="+escape(wwn)
document.cookie="hwind"+"="+escape(hwn)
document.cookie="wscr"+"="+escape(screen.availWidth)
document.cookie="hscr"+"="+escape(screen.availHeight)
document.cookie="usag"+"="+escape(navigator.userAgent)
}


/*  ------------------------------------------------------------
var hwn
var wwn
var hscr
var wscr

function fheight(elem,marg){
if (navigator.appName == "Microsoft Internet Explorer") {
	hwn=window.document.body.offsetHeight;
	wwn=window.document.body.offsetWidth;
}
else	{
	hwn=window.innerHeight;
	wwn=window.innerWidth;
}
hscr=screen.availHeight;
wscr=screen.availWidth;
document.getElementById("vhelem").value=hwn;
document.getElementById("vwelem").value=wwn;
document.getElementById("vwscr").value=wscr;
document.getElementById("vhscr").value=hscr;
document.getElementById("bottom").style.top=hwn-30;
document.getElementById("france").style.top=hwn-30;

if (elem) {
	document.getElementById(elem).style.height=hwn-marg;
	}
}

*/
/*
function rszw()
{
	if ((wscr>930)||(hscr>parseInt(hwn+30)))
	{
		if (wwn<=950) 
		{
		alert ("Pour afficher confortablement ces pages \n nous devons redimensionner votre navigateur.");
		window.resizeTo(960,hscr);
		window.moveTo(50,0);
		}
	}
}

function prcs(){
	document.getElementById("titre").value="0";
	document.getElementById("desc").value="0";
	document.getElementById("chstr").value="";
	document.getElementById("titre").checked=false;
	document.getElementById("desc").checked=false;
}

function coverp(name,info) {
document.getElementById(name).style.visibility="hidden";
}

function seep(name,info) {
document.getElementById(name).style.visibility="visible";
document.all.infoprod.innerHTML= info
}
---------------------------------------------------------  */

var ww = null;
function popps(page,fenetre,largeur,hauteur,ratt,ratl,options)
{
var top = (screen.height-hauteur-17)/ratt;
var left = (screen.width-largeur-17)/ratl;
ww = window.open(page,fenetre,"top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
ww.focus();
}
function ferme()
{
if (ww) ww.close();
ww = null;
}


function loadswf() {
obfix();
document.getElementById("layswf").load("first_time.swf",900);
}


function cover(name) {
document.getElementById(name).style.visibility="hidden";
}
function see(name) {
document.getElementById(name).style.visibility="visible";
}
function seetable(name,visi) {
document.getElementById(name).style.display=visi;
}


function iframeloc(ifrm,loc,fld,prec)
{
if (loc=="diapo") loc="visite/preload_diapo.asp?fold="+fld+"&prec="+prec;
frames[ifrm].location.href = loc;
}

function redir(lien,param) {
document.location.href=lien+param;
}
