// JavaScript Document
//fonction pour la detection du navigateur
//afin de permettre de mettre le format png pour les navigateur autres que internet explorer
function navigateur ()
{
 var navigateur;
 //détection du navigateur
 navigateur = "inconnu";
 if (navigator.appName.Indexof("Netscape") != -1)
 {
  navigateur = "Netscape Navigator";
 }
 if (navigator.appName.Indexof("Microsoft") != -1)
 {
  navigateur = "Microsoft Internet Explorer";
 }
 //attribution de l'image
 if (navigateur == "inconnu" || navigateur == "Microsoft Internet Explorer")
 {
  extension = ".gif";
 }
 else
 {
  extension = ".png";
 }
}

//function d'affichage des images dans une pop-up
function afficheMaxi(chemin,titre)
{
 i1 = new Image;
 i1.src = chemin;
 if ((titre=='') || (titre==undefined))
 {
  titre="Image";
 }
 html = '<HTML><HEAD><TITLE>'+titre+'</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><CENTER><IMG SRC="'+chemin+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+32)"></CENTER><script type="text/javascript">	<!--doc = document; d = new Date(); res = screen.width+"x"+screen.height; c = screen.colorDepth;src = \'http://stats.leviathan666.com/phpmyvisites.php?url=\'+escape(doc.location.pathname+doc.location.search);src += \'&site=1&res=\'+res;src += \'&siteh=\'+doc.location.hostname+\'&c=\'+c+\'&h=\'+d.getHours()+\'&m=\'+d.getMinutes()+\'&s=\'+d.getSeconds();doc.writeln(\'<img src="\'+src+\'&ref=\'+escape(doc.referrer)+\'" alt="L&eacute;athan666" style="border:0" />\');//--></script><noscript><img src="http://stats.leviathan666.com/phpmyvisites.php?nojs=1" alt="L&eacute;athan666" style="border:0" /></noscript></BODY></HTML>';
 popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1');
 popupImage.document.open();
 popupImage.document.write(html);
 popupImage.document.close()
}

//fonction pour afficher l'animation sur le 11 septembre
function afficheMaxi2()
{
 html = '<html><head><title>Hommage aux victimes du World Trade Center</title></head><body onload="window.resizeTo(450,350)" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0"><center><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="400" height="289"><param name="movie" value="images/heroes.swf"><param name="quality" value="high"><embed src="images/heroes.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="400" height="289"></embed></object></center><script type="text/javascript">	<!--doc = document; d = new Date(); res = screen.width+"x"+screen.height; c = screen.colorDepth;src = \'http://stats.leviathan666.com/phpmyvisites.php?url=\'+escape(doc.location.pathname+doc.location.search);src += \'&site=1&res=\'+res;src += \'&siteh=\'+doc.location.hostname+\'&c=\'+c+\'&h=\'+d.getHours()+\'&m=\'+d.getMinutes()+\'&s=\'+d.getSeconds();doc.writeln(\'<img src="\'+src+\'&ref=\'+escape(doc.referrer)+\'" alt="L&eacute;athan666" style="border:0" />\');//--></script><noscript><img src="http://stats.leviathan666.com/phpmyvisites.php?nojs=1" alt="L&eacute;athan666" style="border:0" /></noscript></body></html>';
 popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0');
 popupImage.document.open();
 popupImage.document.write(html);
 popupImage.document.close()
}

//*********************************************************
// page d'acceuil
//*********************************************************
var content=new Array()
content[0]='<br /><span class="titre">L&eacute;viathan</span>'
content[1]='<br /><span class="titre">Images</span><br />'
content[2]='<br /><span class="titre">Logiciels</span><br />'
content[3]='<br /><span class="titre">11/09/2001</span><br />'
content[4]='<br /><span class="titre">Armes</span><br />'

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
appear()
setTimeout("window.onresize=regenerate",450)
}
}

function prechargement() {
  var imagenames = prechargement.arguments;
  document.imageArray = new Array(imagenames.length);
  for(var i=0; i<imagenames.length; i++)
  {
    document.imageArray[i] = new Image;
    document.imageArray[i].src = imagenames[i];
  }
}

function changeImages() {
	d = document;
	if (d.images) {
		var img;
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			img = null;
			if (d.layers) {img = findElement(changeImages.arguments[i],0);}
			else {img = d.images[changeImages.arguments[i]];}
			if (img) {img.src = changeImages.arguments[i+1];}
		}
	}
}

function changetext(whichcontent){

if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById("descriptions"):document.all.descriptions
cross_el.innerHTML='<font face="Verdana"><small>'+whichcontent+'<font></small>'
}
else if (document.layers){
document.d1.document.d2.document.write('<font face="Verdana"><small>'+whichcontent+'</small></font>')
document.d1.document.d2.document.close()
}

}

function barremessage(msgStr) { 
  status=msgStr;
  document.MM_returnValue = true;
}

function appear(){
document.d1.visibility='show'
}

function voir_menu(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('choix_cat'+i)) {document.getElementById('choix_cat'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}