// LAUNCH WINDOW
function launch_window(url, nom_fenetre, parametres){
	
	// internet explorer windows
	if(window.external){
		window.open(url, nom_fenetre, parametres);
		larg = screen.availWidth/2;
		haut = screen.availWidtht/2;
		wlarg = window.innerWidth/2;
		whaut = window.innerHeight/2;
		window.focus();
		window.moveTo((larg - wlarg ),(haut - whaut));

	}
	
	// netscape 6.x - firefox
	else if (window.sidebar){
		window.open(url, nom_fenetre, parametres);
		larg = screen.width/2;
		haut = screen.height/2;
		wlarg = pop.innerWidth/2;
		whaut = pop.innerHeight/2;
		window.moveTo((larg - wlarg),(haut - whaut));
	} else {
		window.open(url, nom_fenetre, parametres);
		larg = screen.width/2;
		haut = screen.height/2;
		wlarg = pop.innerWidth/2;
		whaut = pop.innerHeight/2;
		window.moveTo((larg - wlarg),(haut - whaut));
	}
	
}

// FULLSCREEN WINDOW
function fullscreen_window(url, nom_fenetre, parametres){
	big = window.open(url, nom_fenetre, parametres);
	big.resizeTo(screen.availWidth,screen.availHeight);
	big.moveTo(0,0);
}

// TO WEB FULLSCREEN
function to_web_fullscreen(){	
	window.resizeTo(screen.availWidth,screen.availHeight);
	window.moveTo(0,0);
	window.resizeTo(screen.availWidth,screen.availHeight);
	window.moveTo(0,0);
}

// CLOSE WINDOW
function close_window(){
	window.opener=self;
	window.close();
}

// TO 800x600
function to_800x600(){
	larg = screen.availWidth/2;
	haut = screen.availHeight/2;
	window.resizeTo(800,600);
	window.moveTo((larg-400),(haut-300));
}

// TO 1024x768
function to_1024x768(){
	larg = screen.availWidth/2;
	haut = screen.availHeight/2;
	window.resizeTo(1024,768);
	window.moveTo((larg-512),(haut-384));
}

// VB APPLY
function vb(){
	document.write('<script language="VBScript">');
	document.write('Sub flashMovie_FSCommand(ByVal command, ByVal args)');
	document.write('call flashMovie_DoFSCommand(command, args)');
	document.write('end sub');
	document.write('}');
}