﻿function openWallpaper(lang, type, WID, SID)
{

    var wallIDPath = "/commun/wallpapers/wallpaper_" + type + "_" + WID + "_" + SID + ".jpg";
    newWallpaper=window.open('','Wallpaper','height=650,width=500');
    var wallpaper = newWallpaper.document;

    if(lang=='en'){
	    wallpaper.write('<html><head><title>Wallpaper</title>');
	    wallpaper.write('<link href="/commun/css/global.css" rel="stylesheet" type="text/css" media="screen" />');
	    wallpaper.write('</head><body id="full_pop"><p class="align_padd_logo"><img src="/commun/images/revxp_logo_qt.gif" /></p><p class="photoPop"><IMG SRC="');
	    wallpaper.write(wallIDPath);
	    wallpaper.write('" width=400 height=300 /></p>');
	    wallpaper.write('<p class="align_padd_instructions"><img src="/en/images/wallpaper_download.gif" /></p><p id="pop_gauche">PC: <br /> - Explorer : Right-click on the image and select \"Set as background\"<br />- Firefox : Right-click the image and select \"Set as wallpaper...\"</p><p id="pop_droite">Mac:<br />- Control+click to download the image on your desktop.<br />- Hold Control and click on your desktop, select \"Change Desktop Background\".<br />- Select the wallpaper picture.</p>');
	    wallpaper.write('<br class="claireTout" /><p id="close"><a href="javascript:self.close()"><img src="/en/images/BTN_CLOSE.gif" /></a></p>');
	    wallpaper.write('</body></html>');
	    wallpaper.close();
	    newWallpaper.focus();
	    
	}else {
	    wallpaper.write('<html><head><title>Fond d\'écran</title>');
	    wallpaper.write('<link href="/commun/css/global.css" rel="stylesheet" type="text/css" media="screen" />');
	    wallpaper.write('</head><body id="full_pop"><p class="align_padd_logo"><img src="/commun/images/revxp_logo_qt.gif" /></p><p class="photoPop"><IMG SRC="');
	    wallpaper.write(wallIDPath);
	    wallpaper.write('" width=400 height=300 /></p>');
	    wallpaper.write('<p class="align_padd_instructions"><img src="/fr/images/ins_pp.gif" /></p><p id="pop_gauche">PC: <br /> - Explorer : Cliquez avec le bouton de droite sur l’image et sélectionnez \"Définir en tant qu’arrière-plan\"<br />- Firefox : Cliquez avec le bouton de droite sur l’image et \"Définir en tant que papier peint du Bureau \"</p><p id="pop_droite">Mac:<br />- Appuyer sur Control+Clic pour télécharger l’image sur votre Bureau.<br />- Retourner sur votre Bureau, appuyer simultanément sur Control+Clic et sélectionnez  \"Modifier l’arrière-plan du bureau\".<br />- Sélectionnez le fond d’écran de votre choix.</p>');
	    wallpaper.write('<br class="claireTout" /><p id="close"><a href="javascript:self.close()"><img src="/fr/images/BTN_CLOSE_fr.gif" /></a></p>');
	    wallpaper.write('</body></html>');
	    wallpaper.close();
	    newWallpaper.focus();
	}
}

function openQTVR(lang){
	newwindow=window.open('','QTVR','height=690,width=500');
	var tmp = newwindow.document;
	
if(lang=='en'){
	tmp.write('<html><head><title>QTVR</title>');
	tmp.write('<link href="/commun/css/global.css" rel="stylesheet" type="text/css" media="screen" />');
	tmp.write('</head><body id="full_pop"><p class="align_padd_logo"><img src="/commun/images/revxp_logo_qt.gif" /></p><p class="photoPop"><embed src="/commun/videos/400x300qtvr.mov" Pluginspage="http://www.apple.com/quicktime/" width="400" height="316" CONTROLLER="false" LOOP="false" AUTOPLAY="true" name="QTVR"></embed></p>');
	tmp.write('<p class="align_padd_instructions"><img src="/en/images/qtvr_download_instructions.gif" /></p><p id="pop_gauche">Click the download button below and select the location where you wish to save the file. Once the file has completed downloading to your computer, you can simply locate it and open it (double-click). <br /><br />If you are unable to view the .mov file that has been downloaded to your computer or receive an error message, then you will need to download the latest free QUICKTIME player by clicking the Download Quicktime button below.</p><p id="pop_droite">After the you have installed the latest free QUICKTIME Player (WINDOWS/PC computers must Reboot after installation), open the .mov file you have previously downloaded and the movie will begin playing automatically.</p>');
	tmp.write('<br class="claireTout" /><p id="close" ><br /><a href="javascript:self.close()"><img src="/en/images/BTN_CLOSE.gif" /></a></p>');
	tmp.write('</body></html>');
	tmp.close();
	}else if(lang=='fr'){
	tmp.write('<html><head><title>QTVR</title>');
	tmp.write('<link href="/commun/css/global.css" rel="stylesheet" type="text/css" media="screen" />');
	tmp.write('</head><body id="full_pop"><p class="align_padd_logo"><img src="/commun/images/revxp_logo_qt.gif" /></p><p class="photoPop"><embed src="/commun/videos/400x300qtvr.mov" Pluginspage="http://www.apple.com/quicktime/" width="400" height="316" CONTROLLER="false" LOOP="false" AUTOPLAY="true" name="QTVR"></embed></p>');
	tmp.write('<p class="align_padd_instructions"><img src="/fr/images/ins_qt.gif" /></p><p id="pop_gauche">Cliquez sur le bouton « Télécharger » ici-bas et sélectionnez l’endroit où vous voulez enregistrer le fichier. Une fois le fichier téléchargé sur votre ordinateur, vous pouvez l’ouvrir simplement en double cliquant sur le fichier.<br /><br />Si le fichier .mov sauvegardé sur votre ordinateur ne s’ouvre pas ou si vous obtenez un message d’erreur, vous devrez alors télécharger la dernière version du plugiciel Quicktime, en cliquant sur le bouton \"Télécharger Quicktime\" ici-bas.</p><p id="pop_droite">Une fois le plugiciel installé (les ordinateurs WINDOWS/PC devront être redémarrés), ré-ouvrir le fichier .mov préalablement sauvegardé et celui-ci jouera automatiquement.</p>');
	tmp.write('<br class="claireTout" /><p id="close" ><br /><a href="#"><img src="/fr/images/btn_download_qt_fr.jpg" /></a><a href="javascript:self.close()"><img src="/fr/images/BTN_CLOSE_fr.gif" /></a></p>');
	tmp.write('</body></html>');
	tmp.close();
	}
}

function openSBuildup(lang){
	newwindow=window.open('','QTVR','height=690,width=500');
	var tmp = newwindow.document;
	
	if(lang=='en'){
	    tmp.write('<html><head><title>QTVR</title>');
	    tmp.write('<link href="/commun/css/global.css" rel="stylesheet" type="text/css" media="screen" />');
	    tmp.write('</head><body id="full_pop"><p class="align_padd_logo"><img src="/commun/images/revxp_logo_qt.gif" /></p><p class="photoPop"><embed src="/commun/videos/skidoo_sled_buildup.mov" Pluginspage="http://www.apple.com/quicktime/" width="400" height="316" CONTROLLER="false" LOOP="false" AUTOPLAY="true" name="QTVR"></embed></p>');
	    tmp.write('<p class="align_padd_instructions"><img src="/en/images/quicktime_download.gif" /></p><p id="pop_gauche">Click the download button below and select the location where you wish to save the file. Once the file has completed downloading to your computer, you can simply locate it and open it (double-click). <br /><br />If you are unable to view the .mov file that has been downloaded to your computer or receive an error message, then you will need to download the latest free QUICKTIME player by clicking the Download Quicktime button below.</p><p id="pop_droite">After the you have installed the latest free QUICKTIME Player (WINDOWS/PC computers must Reboot after installation), open the .mov file you have previously downloaded and the movie will begin playing automatically.</p>');
	    tmp.write('<br class="claireTout" /><p id="close"><br /><a href="javascript:self.close()"><img src="/en/images/BTN_CLOSE.gif" /></a></p>');
	    tmp.write('</body></html>');
	    tmp.close();
	}else if(lang=='fr'){
	    tmp.write('<html><head><title>QTVR</title>');
	    tmp.write('<link href="/commun/css/global.css" rel="stylesheet" type="text/css" media="screen" />');
	    tmp.write('</head><body id="full_pop"><p class="align_padd_logo"><img src="/commun/images/revxp_logo_qt.gif" /></p><p class="photoPop"><embed src="/commun/videos/400x300qtvr.mov" Pluginspage="http://www.apple.com/quicktime/" width="400" height="316" CONTROLLER="false" LOOP="false" AUTOPLAY="true" name="QTVR"></embed></p>');
	    tmp.write('<p class="align_padd_instructions"><img src="/fr/images/ins_qtvr.gif" /></p><p id="pop_gauche">Cliquez sur le bouton « Télécharger » ici-bas et sélectionnez l’endroit où vous voulez enregistrer le fichier. Une fois le fichier téléchargé sur votre ordinateur, vous pouvez l’ouvrir simplement en double cliquant sur le fichier.<br /><br />Si le fichier .mov sauvegardé sur votre ordinateur ne s’ouvre pas ou si vous obtenez un message d’erreur, vous devrez alors télécharger la dernière version du plugiciel Quicktime, en cliquant sur le bouton \"Télécharger Quicktime\" ici-bas.</p><p id="pop_droite">Une fois le plugiciel installé (les ordinateurs WINDOWS/PC devront être redémarrés), ré-ouvrir le fichier .mov préalablement sauvegardé et celui-ci jouera automatiquement.</p>');
	    tmp.write('<br class="claireTout" /><p id="close" ><br /><a href="javascript:self.close()"><img src="/fr/images/BTN_CLOSE_fr.gif" /></a></p>');
	    tmp.write('</body></html>');
	    tmp.close();
	    }
}