// JavaScript Document // Ouvre popup video centré // Utilisée IIGGM et PPR également // La fonction a été dupliquée dans les fichiers .js externes respectifs // À quand une migration de la fonction dans le fichier script "générique", afin que tous les sites y aient accès ??? function openVideoPopup (url) { var xDispo = screen.availWidth; var yDispo = screen.availHeight; //alert (xDispo); //alert (yDispo); ppupLeftPos = Math.round((xDispo / 2) - 150); ppupTopPos = Math.round((yDispo / 2) - 200); //alert (ppupLeftPos); //alert (ppupTopPos); newVideoPopup=window.open(url,'name','height=300,width=270,left='+ppupLeftPos+',top='+ppupTopPos+',resizable=no,scrollbars=no,toolbar=no,status=yes'); } function activateFlash_pp_anim(clip_name,lang) { var langue=''; if(lang=='') { langue = "fr"; } else { langue = lang; } document.getElementById("anim_flashdiv").innerHTML=""; var anim_array = document.getElementById("choix_anim").getElementsByTagName("a"); for (i=0;iTellement de raisons d\'habiter Montreal'); generator89.document.write('\ \ \ '); generator89.document.write(''); generator89.document.write('
\

Vous ne disposez pas d’une version de Flash suffisamment récente pour visualiser cette vidéo. Vous pouvez télécharger la dernière version de Flash ici. Il est également possible que JavaScript ne soit pas activé.

\ \
'); generator89.document.write(''); generator89.document.write(''); generator89.document.close(); } function call_popup_animation_ov (anim_id) { var newWindow33 = window.open('','name','scrollbars=yes,height=300,width=700'); body = '\ \ \ \ \ \ \ '; body += '
\

Vous ne disposez pas d’une version de Flash suffisamment récente pour visualiser cette vidéo. Vous pouvez télécharger la dernière version de Flash ici. Il est également possible que JavaScript ne soit pas activé.

\ \
\ \ '; body += ''; newWindow33.document.write(body); newWindow33.document.close(); } function call_popup_animation_nt (anim_id) { var newWindow33 = window.open('','name','scrollbars=yes,height=300,width=700'); body = '\ \ \ \ \ \ \ \ '; body += '
\ \
\ \ '; body += ''; newWindow33.document.write(body); newWindow33.document.close(); } function url_param_manip(name) { name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( window.location.href ); if( results == null ) return ""; else return results[1]; } function open_anim_popup(short_video_name,lang) { var xDispo = screen.availWidth; var yDispo = screen.availHeight; ppupLeftPos = Math.round((xDispo / 2) - 350); ppupTopPos = Math.round((yDispo / 2) - 150); var filePath = '/pls/portal/url/page/habiter_v2_fr/videos_popup/anim_popup'; if(lang=="en"){ filePath = '/pls/portal/url/page/habiter_v2_en/videos_popup/anim_popup'; } newVideoPopup=window.open(filePath+'?video_name='+short_video_name,'anim_center','height=300,width=700,left='+ppupLeftPos+',top='+ppupTopPos+',resizable=no,scrollbars=no,toolbar=no,status=yes'); } function carte_popup(lang) { var xDispo = screen.availWidth; var yDispo = screen.availHeight; ppupLeftPos = Math.round((xDispo / 2) - 200); ppupTopPos = Math.round((yDispo / 2) - 175); var filePath = '/pls/portal/url/page/habiter_v2_fr/rep_utilitaires/carte_arr'; if(lang=="en"){ filePath = '/pls/portal/url/page/habiter_v2_en/rep_utilitaires/carte_arr'; } cartePopup=window.open(filePath,'carte_arr','height=350,width=400,left='+ppupLeftPos+',top='+ppupTopPos+',resizable=no,scrollbars=no,toolbar=no,status=yes'); }