// Javascript général pour Villeray
//
	var domaine = "ioda";
	var suffixe = ".net";
	var separateur = "@";

	// Copyright (c) 2001 by Christopher S L Heng. All rights reserved.
	// $Id: common.js 2.2 2002/11/22 17:34:43 chris Exp $
	// The JavaScript code below can be obtained from http://www.thesitewizard.com/archive/framebreak.shtml
	function framebreaker()
	{	// shoot any frame if another website try to catch us
		if (top.location != location) {
			top.location.href = document.location.href ;
		}
	}

   function NewWindow(name,url){
	 var new_win = open(url, name,"left=25,top=25,status=yes,resizable=yes,scrollbars=yes,menubar=yes");
	 new_win.focus();
   }

   function OpenImage(imgname){
	 var new_win = open("openimage.php?img="+imgname, "picture" ,"left=25,top=25,width=1024,height=768");
	 new_win.focus();
   }

   function EcrisMoi(who,sujet){

	 switch (who) {
	 	case "eric":
	 		var dest = "eric.senecal"+separateur+domaine+suffixe;
	 		break;
	 	case "stephane":
	 		var dest = "stephane.tremblay"+separateur+domaine+suffixe;
	 		break;
	 	case "villeray":
	 		var dest = "villeray"+separateur+domaine+suffixe;
	 		break;
	 	case "bruno":
	 		var dest = "bruno"+separateur+domaine+suffixe;
	 		break;
	 }

	 // dest = who+separateur+domaine+suffixe;

	 var new_win = open("mailto:"+dest+"?subject="+sujet, "courier" ,"left=25,top=25,width=25,height=25");
	 new_win.focus();
	 new_win.close();

   }

   function GetAlbum(album){

	 switch (album) {
	 	case "DPGM":
	 		var dest = "files/MP3/Villeray - Déprogrammés.zip";
	 		break;
	 	case "JourNuit":
	 		var dest = "files/MP3/Villeray - Le jour ... et la nuit.zip";
	 		break;
	 }

	 // dest = who+separateur+domaine+suffixe;

	 var new_win = open(dest, "Album" ,"left=25,top=25,width=25,height=25");
	 new_win.focus();
	 new_win.close();

   }
//-->
