/* Window */

function centerWindowOnScreen() {
	if (navigator.appName=="Microsoft Internet Explorer") {
		ty = document.body.clientHeight; tx = document.body.clientWidth;}
	else {
		ty = window.innerHeight; tx = window.innerWidth;}
	x = screen.availWidth/2 - tx/2
	y = screen.availHeight/2 - ty/2
	self.moveTo(x,y);
}

function new_browser(src, name, w, h) { //v1.0
	size=", width="+w+", height="+h
	var browser = window.open(src, name, "scrollbars=yes, resizable=yes, toolbar=no, titlebar=no, status=yes, menubar=no, location=no, directories=no" + size)
}

function new_window(src, name, w, h) { //v1.0
	size=", width="+w+", height="+h
	var browser = window.open(src, name, "scrollbars=no, resizable=no, toolbar=no, titlebar=no, status=no, menubar=no, location=no, directories=no" + size)
}

function zoomMe(o) {
	var win = window.open('zoom.asp?image=' + o, 'zoom', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,titlebar=no,width='+ 640 +',height='+ 480);
}

function openPage(id) {
	//new_window('fiches.asp?IDPAGE=' + id, '', 720, 500)
}

function openFiche(id) {
	new_window('fiches.asp?IDPAGE=' + id, '', 720, 500)
}

function openCarto(id) {
	new_window('Sx_carto.asp?pointID=' + id, '', 720, 500)
}

function hideHello() { document.getElementById('intro').style.display = "none"; }
function showHello(msg) { document.write('<div class="bl_corner" id="intro"><div class="br_corner"><div class="tl_corner"><div class="tr_corner clearfix">' + msg +'</div></div></div></div>'); setTimeout(hideHello, 5000); }