var Window_CDSM = 0;
var Window_Mars = 0;
var Window_Accueil = 0;
var Window_MVC = 0;

function popupCDSM (argLangue) {
	var theURL = "";
	var theTarget = "_blank";
	
	switch(argLangue){
	case "en" : 
		theURL = 'http://www.centredessciencesdemontreal.com'; 
	break;
	default   : 
		theURL = 'http://www.centredessciencesdemontreal.com'; 
	break;
	}
		
	if(Window_CDSM == 0 || Window_CDSM.closed){
		Window_CDSM = open(theURL,theTarget, 'directories=yes,toolbar=yes,location=yes,menubar=yes,scrollbars=yes,resizable=yes,status=yes');
	}
	else{
		Window_CDSM.location = theURL;
		Window_CDSM.focus();
	}
	
}


function gotoVirtualMuseumofCanada (argLangue) {
	var theURL = "http://www.museevirtuel.ca";
	var theTarget = "_blank";	
	
	switch(argLangue){
	case "en" : 
		theURL = 'http://www.virtualmuseum.ca'; 
	break;
	default   : 
		theURL = 'http://www.museevirtuel.ca'; 
	break;
	}
	
	if(Window_MVC == 0 || Window_CDSM.closed){
		Window_MVC = open(theURL,theTarget, 'directories=yes,toolbar=yes,location=yes,menubar=yes,scrollbars=yes,resizable=yes,status=yes');
	}
	else{
		Window_MVC.location = theURL;
		Window_MVC.focus();
	}
	
}


function popupAccueil (argLangue) {
	var theURL = "";
	var theTarget = "_blank";
	
	switch(argLangue){
	case "en" : 
		theURL = './index_en.htm'; 
	break;
	default   : 
		theURL = './index.htm'; 
	break;
	}
		
	if(Window_Accueil == 0 || Window_Accueil.closed){
		Window_Accueil = open(theURL, theTarget, 'directories=yes,toolbar=yes,location=yes,menubar=yes,scrollbars=yes,resizable=yes,status=yes');
	}
	else{
		Window_Accueil.location = theURL;
		Window_Accueil.focus();
	}
}

function popupMars (argLangue) {
	var theURL = "";
	var theTarget = "_blank";
	
	switch(argLangue){
	case "en" : 
		theURL = 'http://www.centredessciencesdemontreal.com/en/jeunes/jeunes_jeux_mars.htm'; 
	break;
	default   : 
		theURL = 'http://www.centredessciencesdemontreal.com/fr/jeunes/jeunes_jeux_mars.htm'; 
	break;
	}
		
	if(Window_Mars == 0 || Window_Mars.closed){
		Window_Mars = open(theURL, theTarget, 'directories=yes,toolbar=yes,location=yes,menubar=yes,scrollbars=yes,resizable=yes,status=yes');
	}
	else{
		Window_Mars.location = theURL;
		Window_Mars.focus();
	}
}

