// JavaScript Document


var gameList = new Array();
// Jeu creo
//---------------a enlever pour mettre dans BD. A transmettre ces info lors du call de la function javascript
gameList[0]=new Array("http://www.pc.gc.ca/apprendre-learn/jeunes-youths/sec1/pa-bff/index_F.asp",810,760,"entete_logo_parc_canada.jpg","http://www.pc.gc.ca","Visitez le site de Parcs Canada","hits/jeux/externe/parc_canada/mission_rescape","hits/partenaires/parcs_canada");
gameList[1]=new Array("http://www.sayansi.ca",1050,600,"","","","hits/jeux/interne/sayansi","");
gameList[2]=new Array("http://www.scienceenjeu.ca/mars",1050,600,"","","","hits/jeux/interne/mars","");
gameList[3]=new Array("http://www.scienceenjeu.ca/debrouillards/demo/bin/index.html",960,750,"","","","hits/jeux/interne/demo_debs3","");
gameList[4]=new Array("http://www.2k40.com/verifyplugins.htm",780,660,"entete_logo_isci.jpg","http://www.centredessciencesdemontreal.com","Visitez le site du centre des sciences de Montr&eacute;al","hits/jeux/externe/isci/2k40","hits/partenaires/centre_isci");
gameList[5]=new Array("http://uneepaveraconte.net/francais/index.htm",780,540,"entete_logo_pointeacalliere.jpg","http://www.pacmusee.qc.ca/index.aspx","Visitez le site du Mus&eacute;e Pointe-&Agrave;-Calli&egrave;re","hits/jeux/externe/pointe_a_calliere/epave_raconte","hits/partenaires/pointe_a_calliere");
gameList[6]=new Array("http://www.science-en-jeu.ca/forestia/bin/forestia.php",1050,600,"","","","hits/jeux/interne/forestia","");
//Jeu Musée Armand-Frappier
gameList[7]=new Array("http://www.musee-afrappier.qc.ca/fr/index.php?gameid=1",764,569,"entete_logo_maf.jpg","http://www.musee-afrappier.qc.ca","Visitez le site du Mus&eacute;e Armand-Frappier","hits/jeux/externe/armand_frappier/bacterie_debutant","hits/partenaires/armand_frappier"); //Mise en ligne le 22 avril 2009
gameList[8]=new Array("http://www.musee-afrappier.qc.ca/fr/index.php?gameid=2",764,569,"entete_logo_maf.jpg","http://www.musee-afrappier.qc.ca","Visitez le site du Mus&eacute;e Armand-Frappier","hits/jeux/externe/armand_frappier/drfrappier_debutant","hits/partenaires/armand_frappier"); //Mise en ligne le 28 avril 2009
gameList[9]=new Array("http://www.musee-afrappier.qc.ca/fr/index.php?gameid=3",764,569,"entete_logo_maf.jpg","http://www.musee-afrappier.qc.ca","Visitez le site du Mus&eacute;e Armand-Frappier","hits/jeux/externe/armand_frappier/colonisateurs_debutant","hits/partenaires/armand_frappier"); //Mise en ligne le 6 mai 2009
gameList[10]=new Array("http://www.musee-afrappier.qc.ca/fr/index.php?gameid=7",763,568,"entete_logo_maf.jpg","http://www.musee-afrappier.qc.ca","Visitez le site du Mus&eacute;e Armand-Frappier","hits/jeux/externe/armand_frappier/sante_publique","hits/partenaires/armand_frappier"); //Mise en ligne le 12 mai 2009
gameList[11]=new Array("http://www.musee-afrappier.qc.ca/fr/index.php?gameid=8",769,569,"entete_logo_maf.jpg","http://www.musee-afrappier.qc.ca","Visitez le site du Mus&eacute;e Armand-Frappier","hits/jeux/externe/armand_frappier/rescousse","hits/partenaires/armand_frappier"); //Mise en ligne le 20 mai 2009

gameList[12]=new Array("http://www.musee-afrappier.qc.ca/fr/index.php?gameid=9",764,569,"entete_logo_maf.jpg","http://www.musee-afrappier.qc.ca","Visitez le site du Mus&eacute;e Armand-Frappier","hits/jeux/externe/armand_frappier/adn","hits/partenaires/armand_frappier"); //Jeu utilisé pour le démo (31 janvier 2009)
gameList[13]=new Array("http://www.musee-afrappier.qc.ca/fr/index.php?gameid=4 ",764,569,"entete_logo_maf.jpg","http://www.musee-afrappier.qc.ca","Visitez le site du Mus&eacute;e Armand-Frappier","hits/jeux/externe/armand_frappier/bacterie_intermediaire","hits/partenaires/armand_frappier"); //Mise en ligne le 22 avril 2009
gameList[14]=new Array("http://www.musee-afrappier.qc.ca/fr/index.php?gameid=5",764,569,"entete_logo_maf.jpg","http://www.musee-afrappier.qc.ca","Visitez le site du Mus&eacute;e Armand-Frappier","hits/jeux/externe/armand_frappier/drfrappier_intermediaire","hits/partenaires/armand_frappier"); //Mise en ligne le 28 avril 2009
gameList[15]=new Array("http://www.musee-afrappier.qc.ca/fr/index.php?gameid=6",769,569,"entete_logo_maf.jpg","http://www.musee-afrappier.qc.ca","Visitez le site du Mus&eacute;e Armand-Frappier","hits/jeux/externe/armand_frappier/colonisateurs_intermediaire","hits/partenaires/armand_frappier");  //Mise en ligne le 6 mai 2009

gameList[16]=new Array("http://www.lacompagniedesglaces.tv/jeu/jeu2.php",1024,706,"logo_entete_compagnie_glace.jpg","http://www.lacompagniedesglaces.tv","Visitez le site de La compagnie des glaces","hits/jeux/externe/trinome/compagnie_glaces","hits/partenaires/trinome/compagnie_glaces");
gameList[17]=new Array("http://tapisrouge.macarrieretechno.com/",800,600,"logo_entete_carriere_techno.jpg","http://www.macarrieretechno.com","Visitez le site de Ma carri&egrave;re techno","hits/jeux/externe/macarrieretechno/tapis_rouge","hits/partenaires/macarrieretechno"); //Mise en ligne le 21 mai 2009

gameList[20]=new Array("http://lachezprise.qc.ca/flash.html",700,425,"entete_logo_isci.jpg","http://www.centredessciencesdemontreal.com","Visitez le site du centre des sciences de Montr&eacute;al","hits/jeux/externe/isci/lachez_prise","hits/partenaires/centre_isci");
gameList[24]=new Array("http://www.pc.gc.ca/apprendre-learn/jeunes-youths/sec1/habille-dress/p1_F.asp",800,650,"entete_logo_parc_canada.jpg","http://www.pc.gc.ca","Visitez le site de Parcs Canada","hits/jeux/externe/parc_canada/habille_canada","hits/partenaires/parcs_canada");
gameList[25]=new Array("http://www.pc.gc.ca/apprendre-learn/jeunes-youths/sec1/eh-be/p1_F.asp",800,600,"entete_logo_parc_canada.jpg","http://www.pc.gc.ca","Visitez le site de Parcs Canada","hits/jeux/externe/parc_canada/exploratuer_herbe","hits/partenaires/parcs_canada");
gameList[26]=new Array("http://www.pc.gc.ca/apprendre-learn/jeunes-youths/sec1/fhc-wch/p1_F.asp?qs_1=0&qs_2=0&qs_3=0&qs_4=0&qs_5=0&no=1",800,600,"entete_logo_parc_canada.jpg","http://www.pc.gc.ca","Visitez le site de Parcs Canada","hits/jeux/externe/parc_canada/femmes_canada","hits/partenaires/parcs_canada");
gameList[27]=new Array("http://www.pc.gc.ca/apprendre-learn/jeunes-youths/sec1/on-bb/p1_F.asp",800,600,"entete_logo_parc_canada.jpg","http://www.pc.gc.ca","Visitez le site de Parcs Canada","hits/jeux/externe/parc_canada/ours_noir","hits/partenaires/parcs_canada");

gameList[28]=new Array("http://www.pc.gc.ca/apprendre-learn/jeunes-youths/sec1/Haliotide-Abalone/p1_F.asp",800,600,"entete_logo_parc_canada.jpg","http://www.pc.gc.ca","Visitez le site de Parcs Canada","hits/jeux/externe/parc_canada/sos_pie","hits/partenaires/parcs_canada");
gameList[29]=new Array("http://www.pc.gc.ca/apprendre-learn/jeunes-youths/sec1/lde-ew/p1_F.asp",800,700,"entete_logo_parc_canada.jpg","http://www.pc.gc.ca","Visitez le site de Parcs Canada","hits/jeux/externe/parc_canada/loup_est","hits/partenaires/parcs_canada");

gameList[30]=new Array("http://www.pc.gc.ca/apprendre-learn/jeunes-youths/sec1/tm-bt/p1_F.asp",800,600,"entete_logo_parc_canada.jpg","http://www.pc.gc.ca","Visitez le site de Parcs Canada","hits/jeux/externe/parc_canada/tortue_mouchetee","hits/partenaires/parcs_canada");

gameList[39]=new Array("http://nature.ca/sila/qz/qzmnpg_f.cfm",800,600,"entete_lgo_mcn.jpg","http://www.nature.ca/nature_f.cfm","Mus&eacute;e canadien de la nature","hits/jeux/externe/fqcp/mon_espece","hits/partenaires/fqcp");

gameList[41]=new Array("http://nature.ca/ukaliq/030act/010_gms_f.cfm",800,600,"entete_lgo_mcn.jpg","http://www.nature.ca/nature_f.cfm","Mus&eacute;e canadien de la nature","hits/jeux/externe/mcn/trouvez_lievre","hits/partenaires/mcn");

gameList[43]=new Array("http://www.fedecp.qc.ca/monespece.html",790,610,"entete_logo_fqcp.jpg","http://www.fedecp.qc.ca/","F&eacute;d&eacute;ration qu&eacute;b&eacute;coise des chasseurs et pecheurs","hits/jeux/externe/fqcp/mon_espece","hits/partenaires/fqcp");


/*
//Concours Génomia TEMPORAIRE  - Mise en ligne le 12 juin 2009
if(noref == "undefined") var noref = 0;
gameList[100]=new Array("http://www.science-en-jeu.ca/concourgenomia/index.php?noref=" + noref,800,600,"","","","hits/concours/genomia/eureka_2009","");
*/

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 + 175;
	
    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/entete_jeu.jpg);background-repeat:no-repeat;">');
	mywin.document.write('<div style="margin-top:0px;width:100%;height:83px;">');
	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 src="images/'+videoQSList[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" 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.ca/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 = 1050;
    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/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.ca/images/pixel.gif" width="104" height="82" border="0"/></a>');
	mywin.document.write('</div>');
	
	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 = 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 - 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/entete_jeu.jpg);background-repeat:no-repeat;">');
	mywin.document.write('<div style="margin-top:0px;width:600px;height:83px;text-align:left;" align="left">');
	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:right;margin-top:5px;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=420 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){
	if(absolutePath == null) var absolutePath = "";
	var heightWindow = 365 + 83;
    var width = 488;
    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;background-image:url('+absolutePath+'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="'+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>');
}




