/**
* Fonctions pour le site atelierduverbe.fr
**/

function maxiFenetre() {
	if(navigator.appVersion.charAt(0) >=4) { 
		window.moveTo (0,0);
		window.resizeTo (screen.availWidth,screen.availHeight);
	 }
}

function MM_openBrWindowCentree(theURL,winName,features) {
	largeur = features.match(/width\=(\d+)/)[1];
	hauteur = features.match(/height\=(\d+)/)[1];
	
  	posX = (screen.availWidth - largeur) / 2;
	posY = (screen.availHeight - hauteur) / 2;
	features +=',left=' + posX + ',top=' + posY + ',screenX=' + posX + ',screenY=' + posY;
	
	window.open(theURL,winName,features);
}

function fullpop(urlCible, nomFenetre) {
	if (navigator.appVersion.indexOf("Mac")!=-1){
		if (!window.screen){
				big=open(urlCible,nomFenetre,"width=1024","height=768");
		}else{
				big=open(urlCible,nomFenetre,"width="+(screen.width - 10)+",height="+(screen.height - 10)+",screenX=0,screenY=0");
		}
	}else{
		if (!window.screen){
				big=open(urlCible,nomFenetre,"width=1024","height=768");
		}else{
				if (navigator.appName.indexOf("Netscape")!=-1) {
						big=open(urlCible,nomFenetre,"width="+(screen.width - 10)+",height="+(screen.height - 10)+",screenX=0,screenY=0");
				}else{
						big=open(urlCible,nomFenetre,"fullscreen=1");
				}
		}
	}
}

function openPopup(Vpage,Vwidth,Vheight) {
 if(typeof(popup)=='object') popup.close();
 Vleft = (screen.width-Vwidth)/2;
 Vtop = (screen.height-Vheight)/2;
 Vhref = 'popup\\'+Vpage+'.htm';
 popup = window.open(Vhref,'','scrollbars=1,status=no,toolbar=no,directories=no,menubar=no,location=no,resizable=no,height='+Vheight+',width='+Vwidth+',top='+Vtop+',left='+Vleft);
}

//-->

