var Objfenetre;
/*function F_open (url,w,h){
	var top,left;
	

	top=(screen.height-10)/2;
		left=(screen.width-10)/2;
		 Objfenetre0 = window.open(url, "winTools", "width=50, height=50, top="+top+", left="+left+"");
		 Objfenetre0.close();

	//showHideDiv('greyopacity');showDiv('visite');

	//setTimeout("F_open0 ('"+url+"',"+w+","+h+");",1000);
}
function F_open0 (url,w,h){
	var top,left;
	
	top=(screen.height-h)/2;
	left=(screen.width-w)/2;
	Objfenetre = window.open(url, "winTools", "width="+w+", height="+h+", top="+top+", left="+left+"");
	Objfenetre.focus();
}
*/
function showHideDiv(nom)
{
	el = MM_findObj(nom);
	if (el.style.display == 'none') el.style.display='';
	else el.style.display='none';
}

function showDiv(nom)
{
	el = MM_findObj(nom);
	el.style.display='';
}
function hideDiv(nom)
{
	el = MM_findObj(nom);
	el.style.display='none';
}


var Objfenetre;



function F_open (url,w,h){
	var browserName=navigator.appName;
	top.document.getElementById("idframe").width=w;
	top.document.getElementById("idframe").height=h;
	if (browserName=='Netscape') MM_findObj('idframe').src=url;
	else MM_findObj('idframe').location.href=url;
	showHideDiv('greyopacity');
	showDiv('visite');

	/*if (Objfenetre!=null) {
		Objfenetre.close();
	}
	if (parent.parent && parent.parent.visioneuse) {
		parent.location.href=url;
	} else {
		if (url.indexOf("?")==-1) {
			url += "?pop=1";
		} else {
			url += "&pop=1";
		}
		Objfenetre = window.open(url, "WinMitik", "width="+w+", height="+h+", top=200, left=200, scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no");
		Objfenetre.focus();
	}*/
}