function myResizeTo(theW,theH,myW,myH,decal) {
	myH += 24;
	myW += 2;
	if (decal>0) {
		theW = myW;
		theH = myH;
		centerX = window.screen.width/2-theW/2;
		centerY = window.screen.height/2-theH/2;
		window.moveTo(centerX-3.9*(11.5-decal),centerY);
		window.resizeTo(theW,theH);
	} else {
		if ((theW-myW)>10 || (myW-theW)>10) {	
			theW += (myW-theW)*0.7;
			theH += (myH-theH)*0.8;
			centerX = window.screen.width/2-theW/2;
			centerY = window.screen.height/2-theH/2;
			window.moveTo(centerX,centerY);
			window.resizeTo(theW,theH);
			quakeID = setTimeout("myResizeTo("+theW+","+theH+","+myW+","+myH+","+decal+")", 83);
		} else {
			theW = myW;
			theH = myH;
			centerX = window.screen.width/2-theW/2;
			centerY = window.screen.height/2-theH/2;
			window.moveTo(centerX,centerY);
			window.resizeTo(theW,theH);
		}
	}
}
function sommaire() {
	myResizeTo(window.screen.width,window.screen.height,800,600,0);
}
function myWinClose() {
	window.close();
	popupClose();
}
function popupClose() {
	if (win && win.open && !win.closed) win.close();
}
function myWinOpen(myUrl) {
	//alert(myUrl)
	if(myUrl=="sommaire.html") {
		win = window.open(myUrl,'sommaire','scrollbars=yes,resizable=yes');
	} else {
		win = window.open(myUrl,'myWindow','scrollbars=yes,resizable=yes');
	}
}

function openLink(theURL) {
	alert(theURL)
	document.location="../rub/frameset.html?"+theURL;
}