

var addx=14;
var addy=50;


var nav=(navigator.appName).toLowerCase();
if (nav !="microsoft internet explorer"){
var addx=11;
var addy=50;
};




function photo (filelink,nom)
{
article = window.open('photo.php?filelink=' + filelink + '&nom=' + nom,'article','menubar=no,location=no,toolbar=no,scrollbars=no,status=no,resizable=yes,width=100,height=100,left=300,top=200,titlebar=no,directories=no,personalbar=no,dependent=no');
}

function dopen () {details=window.open("","details","menubar=0,location=0,toolbar=0,scrollbars=1,status=0,resizable=1,width=550,height=400,screenX=100,screenY=100");
details.focus();
};


function page (filename)
{
html = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\r\n\r\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">\r\n<head>\r\n<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />\r\n<title>le grand mix - photo</title>\r\n<script type="text/javascript" Language="JavaScript" SRC="http://www.legrandmix.com/data/functions.js"></script>\r\n<style type="text/css">@import url(http://www.legrandmix.com/css/popup.css);</style>\r\n</head>\r\n<body onload="retaille(); window.focus();">\r\n<img src="' + filename + '"  name="imageTest" />\r\n</body>\r\n</html>\r\n';
article = window.open('','article','menubar=0,directories=0,location=0,toolbar=0,scrollbars=0,status=0,resizable=1,width=750,height=500,left=300,top=200');
article.focus();
article.document.open();
article.document.write(html);
article.document.close();
}




function retaille ()
{
var large=document.imageTest.width;
var haut=document.imageTest.height;
window.resizeTo(large + addx,haut + addy);
var largeur=screen.availWidth;
var hauteur=screen.availHeight;
var demiL=((largeur-large)/2); 
var demiH=((hauteur-haut)/2); 
window.moveTo(demiL,demiH); 
}





function showsendtofriend(subject) {
  var sbmf = document.getElementById(subject);

if (sbmf.style.display == "none") { 
sbmf.style.display = "block";
} else {
sbmf.style.display = "none";
}

}

function unlocksendbutton(subject) {
var usb = document.getElementById(subject);
usb.disabled = false;
}


function toggle(subject) {
var menu = document.getElementById(subject); 
if (menu.style.display != "none") { menu.style.display = "none"; } else { menu.style.display = "block"; }
}





sfHover = function() {
	var sfEls = document.getElementById("navigation").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);
