// JavaScript Document
//A CHANGER LORSQU'ON COPIE DE LA VERISON FRANCAISE: LE ID DU GOOGLE ANALYTICS DANS CHAQUE FONCTION OUVRANT UNE CONTENU

var gameWindow = 0;
/*

var animEdumediaList = new Array();
animEdumediaList[0]=new Array("edumedia/flotte-ou-coule.swf","entete_logo_edumedia.jpg","http://www.edumedia-sciences.com/fr/","Visiter le site d'eduMedia","hits/contenu/edumedia","hits/partenaires/edumedia");
*/



/*
function openGame(id){	
	//Ouverture d'un jeu dans un div
	dhtmlwindow.open("gamepage", "iframe", gameList[id][0], "", "width="+gameList[id][1]+",height="+gameList[id][2]+",resize=1,scrolling=1,center=1", "recal")
}
*/


/*Diffusion des vidéo du Québec Scientifique (code Chastenay)*/
var videoQSList = new Array(1);
videoQSList[0]=new Array("http://video.telequebec.tv/shadowbox/?fn=90&tc=18&src=6&sec=1&pathVideo=rtmp%3a%2f%2f207.162.84.52%2fvod1%2f_definst_%2fflv%3a1180.flv",512,329,"entete_logo_code_chastenay.jpg","http://lecodechastenay.telequebec.tv/quebecscientifique.aspx?id=90","hits/contenu/code_chastenay/video_qs","hits/partenaires/code_chastenay");
videoQSList[1]=new Array("http://video.telequebec.tv/shadowbox/?fn=92&tc=18&src=6&sec=1&pathVideo=rtmp%3a%2f%2f207.162.84.52%2fvod1%2f_definst_%2fflv%3a1213.flv",512,329,"entete_logo_code_chastenay.jpg","http://lecodechastenay.telequebec.tv/quebecscientifique.aspx?id=92","hits/contenu/code_chastenay/video_qs","hits/partenaires/code_chastenay");
videoQSList[2]=new Array("http://video.telequebec.tv/shadowbox/?fn=67&tc=18&src=6&sec=1&pathVideo=rtmp%3a%2f%2f207.162.84.52%2fvod1%2f_definst_%2fflv%3a979.flv",512,329,"entete_logo_code_chastenay.jpg","http://lecodechastenay.telequebec.tv/quebecscientifique.aspx?id=67","hits/contenu/code_chastenay/video_qs","hits/partenaires/code_chastenay");
videoQSList[3]=new Array("http://video.telequebec.tv/shadowbox/?fn=49&tc=18&src=6&sec=1&pathVideo=rtmp%3a%2f%2f207.162.84.52%2fvod1%2f_definst_%2fflv%3a812.flv",512,329,"entete_logo_code_chastenay.jpg","http://lecodechastenay.telequebec.tv/quebecscientifique.aspx?id=49","hits/contenu/code_chastenay/video_qs","hits/partenaires/code_chastenay");


var infoUQAMTV = new Array("entete_logo_uqam.jpg","Visitez le site UQAM.TV","hits/contenu/uqam/video","hits/partenaires/uqam");


/*Cette fonction élimine le popup blocker*/
var mywin;
function openGame(id) {
	var heightIFrame = gameList[id][2];
	
    var width = gameList[id][1];
    var height = gameList[id][2] + 83;
	
	//Vérifie la grandeur de l'écran de l'usager et réduit en conséquence la fenêtre de jeu.
	if(height > screen.availHeight){
		//Si la fenêtre est plus longue que l'écran du joueur
		//Réduit la fenêtre
		height = screen.availHeight -40;
		heightIFrame = height -83; //Réduction hauteur du iFrame
		var top = 0;
	}else{		
   		var top = parseInt((screen.availHeight/2) - (height/2));
	}
	
	if(width > screen.width){
		//Si la fenêtre est plus longue que l'écran du joueur
		//Réduit la fenêtre
		width = screen.width - 20;
		var left = 0;
	}else{		
   		var left = parseInt((screen.availWidth/2) - (width/2));
	}
	

    var windowFeatures = "width=" + width + ",height=" + height +
        ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=" + left + ",top=" + top +
        ",screenX=" + left + ",screenY=" + top;
    mywin = window.open('', id, windowFeatures);
	mywin.focus();
	mywin.document.write('<html>');
	mywin.document.write('<head>');
	mywin.document.write('<title>Science en jeu - Jeu</title>');
	mywin.document.write('</head>');
	mywin.document.write('<body style="margin: 0; padding: 0;background-color: #000000;background-image:url(images/entete_jeu.jpg);background-repeat:no-repeat;">');
	mywin.document.write('<div style="margin-top:0px;width:100%;height:83px;">');
	if(gameList[id][3]){
		mywin.document.write('<a href="'+gameList[id][4]+'" title="'+gameList[id][5]+'" alt="'+gameList[id][5]+'" target="_blank" onClick=javascript:pageTracker._trackPageview("'+ gameList[id][7] +'") ><img src="images/'+gameList[id][3]+'" border="0" style="float:right;margin-top:5px;margin-right:20px;"/></a>');
	}
	mywin.document.write('<a href="http://www.creo.ca" target="_blank"  title="Visitez le site de Creo inc, la science en jeu" alt="Visitez le site de Creo inc, la science en jeu" onClick=javascript:pageTracker._trackPageview("hits/creo") ><img src="images/pixel.gif" width="104" height="82" border="0"/></a>');
	mywin.document.write('</div>');
	mywin.document.write('<iframe id="iframegame" src="'+gameList[id][0]+'" width='+width+' height='+heightIFrame+' scrolling=auto frameborder=0></iframe>');
	mywin.document.write('<script type="text/javascript">var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));</script>');
	mywin.document.write('<script type="text/javascript">try { var pageTracker = _gat._getTracker("UA-8960669-1"); pageTracker._trackPageview("'+gameList[id][6]+'");} catch(err) {}</script>');
	mywin.document.write('</body>');
	mywin.document.write('</html>');
}

function update_name(value){
	document.getElementById('avatarName').innerHTML = value;
}


function openVideo(){
	/*Ouvre la pub sur YouTube */
	var d = document.getElementById("openOver");
	d.style.display = "block";	
}
/*function openAnimEdumedia(id){
	var heightWindow = 442 + 83;
    var width = 600;
    var height = heightWindow;
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width + ",height=" + height +
        ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=" + left + ",top=" + top +
        ",screenX=" + left + ",screenY=" + top;
    mywin = window.open('', "Jeu", windowFeatures);
	mywin.focus();
	mywin.document.write('<html>');
	mywin.document.write('<head>');
	mywin.document.write('<title>Science en jeu - Flotte ou coule ?</title>');
	mywin.document.write('<link rel="stylesheet" type="text/css" href="css/cmv.css">');
	mywin.document.write('</head>');
	mywin.document.write('<body style="margin: 0; padding: 0;background-color: #ffffff;background-image:url(images/entete_jeu.jpg);background-repeat:no-repeat;">')
	mywin.document.write('<div style="margin-top:0px;width:100%;height:83px;">');
	mywin.document.write('<a href="http://www.creo.ca" target="_blank"  title="Visitez le site de Creo inc, la science en jeu" alt="Visitez le site de Creo inc, la science en jeu" onClick=javascript:pageTracker._trackPageview("hits/creo") ><img src="images/pixel.gif" width="104" height="82" border="0" style="float:left;margin-top:5px;margin-left:0px;"/></a>');
	mywin.document.write('<a href="'+animEdumediaList[id][2]+'" title="'+animEdumediaList[id][3]+'" alt="'+animEdumediaList[id][3]+'" target="_blank" onClick=javascript:pageTracker._trackPageview("'+ animEdumediaList[id][5] +'") ><img src="images/'+animEdumediaList[id][1]+'" border="0" style="float:left;margin-top:5px;margin-left:360px;"/></a>');mywin.document.write('<div style="margin-top:0px;width:600px;text-align:center">');
	mywin.document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="550" height="442"> <param name="movie" value="'+animEdumediaList[id][0]+'"><param name="quality" value="high"><param name="wmode" value="opaque"><embed src="'+animEdumediaList[id][0]+'" align="left" wmode="opaque" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="442"></embed></object>');
	mywin.document.write('<script type="text/javascript">var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));</script>');
	mywin.document.write('<script type="text/javascript">try { var pageTracker = _gat._getTracker("UA-8960669-1"); pageTracker._trackPageview("'+animEdumediaList[id][4]+'");} catch(err) {}</script>');
	mywin.document.write('</div>');
	mywin.document.write('</body>');
	mywin.document.write('</html>');
}
*/
function openVideoQS(id) {
	
	var height = videoQSList[id][2];
	var heightWindow = height + 83;
	
    var width = videoQSList[id][1];
    var widthWindow = width + 285;
	
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + widthWindow + ",height=" + heightWindow +
        ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=" + left + ",top=" + top +
        ",screenX=" + left + ",screenY=" + top;
	
    mywin = window.open('', "Jeu", windowFeatures);
	mywin.focus();
	mywin.document.write('<html>');
	mywin.document.write('<head>');
	mywin.document.write('<title>Le Qu&eacute;bec scientifique</title>');
	mywin.document.write('</head>');
	mywin.document.write('<body style="margin: 0; padding: 0;background-color: #000000;background-image:url(images/middle_pop_url.png);background-repeat:repeat-x;">');
	mywin.document.write('<div style="margin-top:0px;width:100%;height:83px;">');
	mywin.document.write('<img style="margin-left:10px;margin-top:10px;margin-right:10px;float:left;" src="images/logo_sej_pop_video.png" alt="SCIENCE EN JEU" width="624px" height="57px"/>');
	if(videoQSList[id][3]){
		mywin.document.write('<a href="http://lecodechastenay.telequebec.tv/" title="Visiter le site Le code Chastenay" alt="Visiter le site Le code Chastenay" target="_blank" onClick=javascript:pageTracker._trackPageview("'+ videoQSList[id][6] +'") ><img width="122px" height="53px" src="images/'+videoQSList[id][3]+'" border="0" style="float:left;margin-top:15px;margin-right:20px;"/></a>');
	}
	mywin.document.write('<a href="http://www.creo.ca" target="_blank"  title="Visitez le site de Creo inc, la science en jeu" alt="Visitez le site de Creo inc, la science en jeu" onClick=javascript:pageTracker._trackPageview("hits/creo") ><img src="images/pixel.gif" width="104" height="82" border="0"/></a>');
	mywin.document.write('</div>');
	
	mywin.document.write('<iframe id="iframegame" class="float:right;" src="'+videoQSList[id][0]+'" width='+width+' height='+height+' scrolling=no frameborder=0></iframe>');

	mywin.document.write('<img src="images/logo_code_chastenay.jpg" width="175" height="329" border="0" usemap="#Map">');

	mywin.document.write('<map name="Map" id="Map"><area shape="rect" coords="17,5,146,73" href="http://www.telequebec.tv/" target="_blank" alt="Visiter le site web de T&eacute;l&eacute;-Qu&eacute;bec" title="Visiter le site web de T&eacute;l&eacute;-Qu&eacute;bec" onClick=javascript:pageTracker._trackPageview("hits/partenaires/tele_quebec") /><area shape="rect" coords="16,96,152,149" href="http://www.mdeie.gouv.qc.ca/" target="_blank" alt="Visiter le site du MDEIE" title="Visiter le site du MDEIE" onClick=javascript:pageTracker._trackPageview("hits/partenaires/mdeie")/><area shape="rect" coords="16,171,150,219" href="http://www.pixcom.com/index-flash.html" target="_blank" alt="Visiter le site de PIXCOM"  title="Visiter le site de PIXCOM"onClick=javascript:pageTracker._trackPageview("hits/partenaires/pixcom")/><area shape="rect" coords="16,233,150,256" href="'+videoQSList[id][4]+'" target="_blank" alt="En savoir plus sur le sujet" title="En savoir plus sur le sujet" /></map>');
	mywin.document.write('<script type="text/javascript">var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));</script>');
	mywin.document.write('<script type="text/javascript">try { var pageTracker = _gat._getTracker("UA-8960669-1"); pageTracker._trackPageview("'+videoQSList[id][5]+'");} catch(err) {}</script>');
	mywin.document.write('</body>');
	mywin.document.write('</html>');
}

function openVideoStandard(src, video, w, h ) {
	
	var height = h;
	var heightWindow = height + 83;
	
    var width = w;
    var widthWindow = width;
	
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + widthWindow + ",height=" + heightWindow +
        ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=" + left + ",top=" + top +
        ",screenX=" + left + ",screenY=" + top;
	
    mywin = window.open('', "Video", windowFeatures);
	mywin.focus();
	mywin.document.write('<html>');
	mywin.document.write('<head>');
	mywin.document.write('<title>Video</title>');
	mywin.document.write('</head>');
	mywin.document.write('<body style="margin: 0; padding: 0;background-color: #000000;background-image:url(images/entete_jeu.jpg);background-repeat:no-repeat;">');
	mywin.document.write('<div style="margin-top:0px;width:100%;height:83px;">');
	mywin.document.write('<a href="http://www.creo.ca" target="_blank"  title="Visitez le site de Creo inc, la science en jeu" alt="Visitez le site de Creo inc, la science en jeu" onClick=javascript:pageTracker._trackPageview("hits/creo") ><img src="http://www.scienceenjeu.com/images/pixel.gif" width="104" height="82" border="0"/></a>');
	mywin.document.write('</div>');
	
	mywin.document.write('<iframe id="iframegame" class="float:right;" src="'+src + "?video=" + video +'" width='+width+' height='+height+' scrolling=no frameborder=0></iframe>');

	mywin.document.write('<script type="text/javascript">var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));</script>');
	mywin.document.write('<script type="text/javascript">try { var pageTracker = _gat._getTracker("UA-8960669-1"); pageTracker._trackPageview("' + src + "?video=" + video + '");} catch(err) {}</script>');
	mywin.document.write('</body>');
	mywin.document.write('</html>');
}

function openURL(url ) {
	var height = screen.availHeight-83;
	var heightWindow = 2000 + 83;
	
    var width = Math.min(screen.availWidth,1200);
    var widthWindow = width;
	
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
	  var windowFeatures = "width=" + widthWindow + ",height=" + heightWindow +
        ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,left=" + left + ",top=" + top +
        ",screenX=" + left + ",screenY=" + top;
  mywin = window.open('', "ScienceenJeu", windowFeatures);
 	mywin.focus();
	mywin.document.write('<html>');
	mywin.document.write('<head>');
	mywin.document.write('<title>Science en Jeu</title>');
	mywin.document.write('</head>');
	mywin.document.write('<body style="margin: 0; padding: 0;background-color: #000000;background-image:url(images/header_popup.png);background-repeat:repeat-x;">');
	mywin.document.write('<div style="margin-top:0px;width:100%;height:83px;">');
	mywin.document.write('<a href="http://www.creo.ca" target="_blank"  title="Visitez le site de Creo inc, la science en jeu" alt="Visitez le site de Creo inc, la science en jeu" onClick=javascript:pageTracker._trackPageview("hits/creo") ><img style="margin-top:4px;margin-left:12px;" src="http://www.scienceenjeu.com/images/left_corner_pop_url_pdf.jpg" width="640" height="80" border="0"/></a>');
	mywin.document.write('</div>');
	if(url.search(".pdf") == (url.length-4) )
	{//le contenu est un pdf -> prevoir une largeur pour les menu du pdf
		width-=20;
		height-=100;
	}
	mywin.document.write('<iframe id="iframegame" class="float:right;" src="'+url+'" width='+width+' height='+height+' scrolling=no frameborder=0></iframe>');

	mywin.document.write('<script type="text/javascript">var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));</script>');
	mywin.document.write('<script type="text/javascript">try { var pageTracker = _gat._getTracker("UA-8960669-1"); pageTracker._trackPageview("' + url + '");} catch(err) {}</script>');
	mywin.document.write('</body>');
	mywin.document.write('</html>');
}

function openVideoUQAM(filenumber,pagelink){
	var heightWindow = 400 + 83;
    var width = 860;
    var height = heightWindow;
	var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width + ",height=" + height +
        ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=" + left + ",top=" + top +
        ",screenX=" + left + ",screenY=" + top;
    mywin = window.open('', "Jeu", windowFeatures);
	mywin.focus();
	mywin.document.write('<html>');
	mywin.document.write('<head>');
	mywin.document.write('<title>Science en jeu - UQAM-TV</title>');
	mywin.document.write('<link rel="stylesheet" type="text/css" href="css/cmv.css">');
	mywin.document.write('</head>');
	mywin.document.write('<body style="margin: 0; padding: 0;background-color: #000000;background-image:url(images/middle_pop_url.png);background-repeat:repeat-x;">');
	mywin.document.write('<div style="margin-top:0px;width:780px;height:83px;text-align:left;" align="left">');
	mywin.document.write('<img style="margin-left:10px;margin-top:10px;margin-right:10px;float:left;" src="images/logo_sej_pop_video.png" alt="SCIENCE EN JEU" width="624px" height="57px"/>');
	
	mywin.document.write('<a href="'+pagelink+'" title="'+infoUQAMTV[1]+'" alt="'+infoUQAMTV[1]+'" target="_blank" onClick=javascript:pageTracker._trackPageview("'+infoUQAMTV[3]+'") ><img src="images/'+infoUQAMTV[0]+'" border="0" style="float:left;margin-top:15px;margin-right:10px;"/></a>');
	mywin.document.write('<a href="http://www.creo.ca" target="_blank"  title="Visitez le site de Creo inc, la science en jeu" alt="Visitez le site de Creo inc, la science en jeu" onClick=javascript:pageTracker._trackPageview("hits/creo") ><img src="images/pixel.gif" width="104" height="82" border="0"/></a>');
	mywin.document.write('</div>');
	
mywin.document.write('<iframe align="left" style="padding-left:100px" id="iframegame" src="http://tv.uqam.ca/video/'+filenumber+'" width=689 height=400 scrolling=no frameborder=0></iframe>');
	mywin.document.write('<script type="text/javascript">var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));</script>');
	mywin.document.write('<script type="text/javascript">try { var pageTracker = _gat._getTracker("UA-8960669-1"); pageTracker._trackPageview("'+infoUQAMTV[2]+'");} catch(err) {}</script>');
	mywin.document.write('</body>');
	mywin.document.write('</html>');
}



function openContactForm(sujet, absolutePath){
	clearWindow(mywin)
	sujet = encodeURIComponent(sujet);
	if(absolutePath == null) var absolutePath = "";
	var heightWindow = 470 ;
    var width = 490;
    var height = heightWindow;
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width + ",height=" + height +
        ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=" + left + ",top=" + top +
        ",screenX=" + left + ",screenY=" + top;
    mywin = window.open('', "Contact", windowFeatures);
	mywin.focus();
	mywin.document.write('<html>');
	mywin.document.write('<head>');
	mywin.document.write('<title>Science en jeu - Formulaire de contact</title>');
	mywin.document.write('</head>');
	mywin.document.write('<body style="margin: 0; padding: 0;background-color: #000000;">')
//	mywin.document.write('<div style="margin-top:0px;width:100%;height:83px;">');
//	mywin.document.write('<a href="http://www.creo.ca" target="_blank"  title="Visitez le site de Creo inc, la science en jeu" alt="Visitez le site de Creo inc, la science en jeu" onClick=javascript:pageTracker._trackPageview("hits/creo") ><img src="'+absolutePath+'images/pixel.gif" width="104" height="82" border="0" style="float:left;margin-top:5px;margin-left:0px;"/></a>');	
	//mywin.document.write('</div>');
	mywin.document.write('<iframe id="iframegame" src="'+absolutePath+'contact.php?sujet='+sujet+'" width='+width+' height='+height+' scrolling=no frameborder=0></iframe>');
	mywin.document.write('</body>');
	mywin.document.write('</html>');
}

function openShareForm(absolutePath){
	clearWindow(mywin)
	if(absolutePath == null) var absolutePath = "";
    var height = 600;
	var heightWindow = height + 43;
    var width = 660;

    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width + ",height=" + heightWindow +
        ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=" + left + ",top=" + top +
        ",screenX=" + left + ",screenY=" + top;
    mywin = window.open('', "Contact", windowFeatures);
	mywin.focus();
	mywin.document.write('<html>');
	mywin.document.write('<head>');
	mywin.document.write('<title>Science en jeu - Passez le mot</title>');
	mywin.document.write('</head>');
	mywin.document.write('<body style="margin: 0; padding: 0;background-color: #000000;">')
	/*mywin.document.write('<div style="margin-top:0px;width:100%;height:83px;">');
	mywin.document.write('<a href="http://www.creo.ca" target="_blank"  title="Visitez le site de Creo inc, la science en jeu" alt="Visitez le site de Creo inc, la science en jeu" onClick=javascript:pageTracker._trackPageview("hits/creo") ><img src="'+absolutePath+'images/pixel.gif" width="104" height="82" border="0" style="float:left;margin-top:5px;margin-left:0px;"/></a>');	
	mywin.document.write('</div>');*/
	
	
	mywin.document.write('<iframe id="iframegame" src="'+absolutePath+'passezlemot.php" width='+width+' height='+height+' scrolling=no frameborder=0></iframe>');
	mywin.document.write('</body>');
	mywin.document.write('</html>');
}
var currentSection = 0;
function hidePageProfSection( noSection ) {
	if( currentSection != noSection ) {
		document.getElementById("ProfSection" + currentSection ).style.display = "none";
		
		document.getElementById("ProfSection" + noSection ).style.display = "block";
		
		currentSection = noSection;
	}

}
//clear la window de popup
function clearWindow(pWindow){

	if(mywin==null){
		//too bad
	}else{
	
		pWindow.close();
	}
}

/**Retourne la valeur du select selectId*/
function getSelectValue(selectId)
{
	/**On récupère l'élement html <select>*/
	var selectElmt = document.getElementById(selectId);
	/**
	selectElmt.options correspond au tableau des balises <option> du select
	selectElmt.selectedIndex correspond à l'index du tableau options qui est actuellement sélectionné
	*/
	return selectElmt.options[selectElmt.selectedIndex].value;
}





