/* auteur: bruno */
/* Date de création: 07/09/2007 */
var screenw;   // screen width                  
var screenh;    //  screen height 
var picture = "image\/"; 
var email2 ="ora";
var email3 = "Sylvain";
var email1 = "@";
var email4 ="nge";
var email5 =".";
var email6 ="fr";
var email7 = ".Le";
var email8 = "-Cochennec";
//---------------------------------------------------------------------------
function adr_email()
{   
var toto = "mai";
var toto2 = "lto:"; 
 parent.location = toto + toto2 + email3 + email7 + email8 + email1 + email2 + email4 + email5 + email6 + "?subject=SHELLS";
}
//------------------------------------------------------------------------- 
function show() 
{ 
screenw = screen.availWidth; 
screenh = screen.availHeight; 
} 
//---------------------------------------------------------------------------------------------------------------------
function PopupImage(picture,lang) 
{
show();
wincar = "left=" + screenw/2 + ",screenx=" + "screeny=150,top=150"; 
win=open("",'image','toolbar=no,scrollbars=no,resizable=yes,height=200,width=200,' + wincar);
win.moveTo(screenw/2,150); 
var texte = "<html><head><meta http-equiv=\"Content-Type\" content=\"text\/html\; charset=iso-8859-15\">";
texte += "<\/head>";
texte += "<body onblur=\"top.window.close();\">";
texte += "<img src=\"" + picture + "\" BORDER=\"0\" NAME=\"monimage\"";
texte += " onLoad=\"window.resizeTo(document.monimage.width+80,document.monimage.height+90)\">";
	if ( lang == "fr" )
	{
texte += "<br><font size=\"-2\">pour fermer cette fenêtre cliquer n\'importe où en dehors</font>";  
	}
	else
	{
		if ( lang == "en" )
			{
			texte += "<br><font size=\"-2\">to close this window, clic anywhere outside</font>"; 
			}
		else
			{
			texte += "<br><font size=\"-2\">per chiudere questa finestra, cliccate ovunque all esterno</font>"; 
			}
	}
texte += "<\/body><\/html>";
win.document.open();
win.document.write(texte);
win.document.close();
win.focus(); 
} 
//-------------------------------------------------------------------------
function razCookie()
{ 
	cookieLang = "";
	document.cookie = "lang" + "=" + "" + "||";			
}

//-----------------------------------------
function initCookie(value)
{   
var expdat = new Date();
var oneweek = expdat.getTime() + ( 30 * 24 * 60 * 60 * 1000);
expdat.setTime(oneweek);
   	document.cookie = "lang=" + value + "||";
}
