/* ***** BEGIN LICENSE BLOCK *****
 * This file is part of INDUXIA's work.
 * Copyright (c) 2007 INDUXIA and contributors. All rights
 * reserved.
 *
 * INDUXIA is a multimedia production company which provides highly 
 * interactive, design driven and functional solutions.
 *
 * ***** END LICENSE BLOCK *****
 *
 * Contributor(s):
 *  Guillaume Vialet
 */

if (document.images) {
	
	english = new Image();
	english.src = "img/lang.english_over.gif";
	
	french = new Image();
	french.src = "img/lang.french_over.gif";
	
	iconeFichier = new Image();
	iconeFichier.src = "img/li.fichier_over.gif";
	
	iconeImage = new Image();
	iconeImage.src = "img/li.images_over.gif";
		
	fleche1_black_over = new Image();
	fleche1_black_over.src = "img/fleche1_black_over.png";
	
	fleche2_black_over = new Image();
	fleche2_black_over.src = "img/fleche2_black_over.png";
	
}

function noSpam(user,domain) {
	locationstring = "mailto:" + user + "@" + domain;
	window.location = locationstring;
}

function openPopup(type,url) {
	if (!window.open) alert('Merci de bien vouloir autoriser les fenêtres popup pour ce site');
	else {
		if (type == 1) { // 1 = vidéos pro
			var largeur = 416;//360
			var hauteur = 386;//330
			var top=(screen.height-hauteur)/2;
			var left=(screen.width-largeur)/2;
			window.open(url,'popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width='+largeur+',height='+hauteur+',left='+left+',top='+top+'');
		}
		if (type == 2) { // 1 = diaporama et lecture Mpeg3
			var largeur = 647;//429
			var hauteur = 780;//398 - 342
			var top=(screen.height-hauteur)/2;
			var left=(screen.width-largeur)/2;
			window.open(url,'diaporama','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width='+largeur+',height='+hauteur+',left='+left+',top='+top+'');
		}
		else { void(0);	}
	}
}
