// JavaScript Document




//::Taille de l'ecran par defaut
var screenWidth = 1024;
var screenHeight = 768;

//var windowWidth = 500;
//var windowHeight = 500;


//::Infos navigateur client
var ns4 = (document.layers) ? true : false;
var ie4 = (document.all) ? true : false;
var dom = (document.getElementById) ? true : false;

if (ie4 || dom)	{
	wmax = screen.width;
	hmax = screen.height;
} else if (ns4) {
	wmax = window.outerWidth;
	hmax = window.outerHeight;
} else {
	wmax = screenWidth;
	hmax = screenHeight;
}


function resizeWindow(w, h) {
	
	var posx = (wmax - w)/2;
	var posy = (hmax - h)/2;
	
	self.moveTo(posx, posy);
	self.resizeTo(w, h);
}

resizeWindow(650, 550);
