


/*DETECTION DU TYPE DE NAVIGATEUR*/
function isRealBrowser() {
	// Mozilla, netscape, etc...
	if (document.implementation && document.implementation.createDocument){
		return true;
	}
	// IE....
	else {
		return false;
	}
}
/*FIN DETECTION DU TYPE DE NAVIGATEUR*/




/*POP UP*/
function hidePopUp(strId) {
	if ( document.layers ) {
		obj = document.layers.strId;
	}
	else {
		obj = document.getElementById(strId)
	}
	obj.style.visibility = 'hidden';
}

function showPopUp(strId) {
	if ( document.layers ) {
		obj = document.layers.strId;
	}
	else {
		obj = document.getElementById(strId)
	}
	obj.style.visibility = 'visible';
}

function PopUpSize(PageURL, strName, iwidth, iheight) {
	var strProperties;
	
	strProperties = 'width=' + iwidth + ',height=' + iheight;
	strProperties = strProperties + ',left=100,top=100,directories=0,hotkeys=1,location=0,menubar=0';
	strProperties = strProperties + ',resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0';
	return window.open(PageURL, strName, strProperties);
}
function OpenFlash(uri) {
	var pPage = PopUpSize(uri,'flash', 806, 625) 
}
function OpenWindow(uri, width, height) {
	var pPage = PopUpSize(uri,'popup', width, height) 
}
