// fonction pop-up parfaite !!

var newWin = null;
function closeWin(){
	if (newWin != null){
		if(!newWin.closed)
			newWin.close();
	}
}

function popUp(strURL,strType,strHeight,strWidth) {
closeWin();

var strOptions="";
if (strType=="centre") strOptions="menubar,height="+strHeight+",width="+strWidth+",top=500,left=500";
if (strType=="fixed") strOptions="scrollbars,height="+strHeight+",width="+strWidth;
if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth+",top=100,left=800";

//var topE=(screen.height-hauteur)/2;
//var leftE=(screen.width-hauteur)/2;

newWin = window.open(strURL, 'newWin', strOptions);
newWin.focus();
}

// (appel) <a href="ma_fenetre.htm" onclick="popUp(this.href,'console',400,200);return false;">Lien vers une nouvelle fenêtre</a>

//fonction ouvrir pop-up (basique)
	
	
	function ouvrirpopup(){
	window.open('diaporama.htm','diaporama','width=500,height=300');
	}	
		
	//function ouvrir3(){
	//window.open('http://www.parc-floral-la-source.com/index.html','parc ','width=750,height=400');
	//}	
	
	
//fonction fermer pop-up
	
	
	function fermerpopup(){
	window.close();
	}
	
	
//fonction popupcentree (basique)
	
			
	function popupcentree(page,largeur,hauteur,options)
	{
	var top=(screen.height-hauteur)/2;
	var left=(screen.width-hauteur)/2;
	window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
	}
	
	
//fonction popUp (parfaite centrée)

var newWin = null;
function closeWin(){
	if (newWin != null){
		if(!newWin.closed)
			newWin.close();
		}
}

function popUp(page,largeur,hauteur,options) {
closeWin();


var top=(screen.height-hauteur)/2;
var left=(screen.width-hauteur)/2;

newWin = window.open(page,'newWin',"top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}

//fonction popUp1 (parfaite en haut à gauche)

var newWin = null;
function closeWin(){
	if (newWin != null){
		if(!newWin.closed)
			newWin.close();
		}
}

function popUp1(page,largeur,hauteur,options) {
closeWin();


var top=(screen.height-hauteur)/6;
var left=(screen.width-hauteur)/6;

newWin = window.open(page,'newWin',"top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);

}		

//fonction popUp2 (parfaite en haut à dte)

var newWin = null;
function closeWin(){
	if (newWin != null){
		if(!newWin.closed)
			newWin.close();
		}
}

function popUp2(page,largeur,hauteur,options) {
closeWin();


var top=(screen.height-hauteur)/6;
var left=(screen.width-largeur)/1.1;

newWin = window.open(page,'newWin',"top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);

}	

//fonction popUp3 

function popUp3(page,largeur,hauteur,options) {

var top=(screen.height-hauteur)/1.3;
var left=(screen.width-hauteur)/20;

window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);

}	

//Fonction popUp Flash (à paramétrer sans rentrer dans le .fla ...)
	
function popUpFlash() {

var URL = "http://www.luxingparis.com/Luxing.Paris.Jukebox.php";
//var topWin = (screen.height-175)/1.3;
//var leftWin = (screen.width-410)/20;

//alert('topWin = '+topWin+' et leftWin = '+leftWin);

window.open(URL,"Luxing.Paris.Jukebox","height=170,width=410,status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=no,fullscreen=no,top=650,left=50");
}

// fonction popUpconfig (placement libre dans l'écran (à voir avec pop up parfaite...))

function popUpconfig(theURL,winName,features){
  var config=window.open(theURL,winName,features);
	  config.focus();
      config.moveTo(100,100);  //Changer les valeurs de _W.moveTo(400,150) (largeur,hauteur)
}


//fonction fermer pop-up	
	
function fermerpopup(){
	window.close();
}

/*
//Tests onclick

function teste_moi() {
	alert('hello');
}

function Info()
{
     window.alert("Nos produits sont en general non perimes");
}
*/
