// Script pour les images survolees
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
// fin images survolees


// Script pour les popup des photos
<!-- Web URL:  http://fineline.xs.mw -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function popup(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=800,left=192,top=144');");
}
// End -->
// fin popup des photos

// Script pour l'affichage des photos
   function displayPic(sPicURL) { 
     window.open( "popup.html?"+sPicURL, "",  
     "resizable=1,HEIGHT=200,WIDTH=200"); 
   } 
// fin affichage des photos 

// lien caché
var tabl = new Array();

function init() 
{
        document.onkeydown = keyDown;
}

function keyDown(event) 
{
        var K;
        
        if (navigator.appName == 'Microsoft Internet Explorer')
		K = window.event.keyCode;
        else
                K = event.which;
                
        tabl.push(K);
        
        var t = tabl.join();
        
        switch (t)
        {               
               	//admin
               	case "65,68,77,73,78" : window.location = 'admin/';
		break;
               	//news						
		case "78,69,87,83" : window.location = 'actualites-news-guns-n-roses/actu.htm';
		break;
		//profils
		case "80,82,79,70,73,76,83" : window.location = 'biographie-guns-n-roses/groupe-profils-bio.htm';
		break;
		//photos
		case "80,72,79,84,79,83" : window.location = 'galerie-photos-guns-n-roses/groupe-photographies.htm';
		break;
		//tour		
		case "84,79,85,82" : window.location = 'tournee-dates-guns-n-roses/actu-concerts.htm';
		break;
		//appetite
		case "65,80,80,69,84,73,84,69" : window.location = 'chansons-album-guns-n-roses/discographie-appetite-for-destruction-1.htm';
		break;
		//lies
		case "76,73,69,83" : window.location = 'chansons-album-guns-n-roses/discographie-gn-r-lies-2.htm';
		break;
		//illusion
		case "73,76,76,85,83,73,79,78" : window.location = 'chansons-album-guns-n-roses/discographie-use-your-illusion-i-3.htm';
		break;
		//spaghetti
		case "83,80,65,71,72,69,84,84,73" : window.location = 'chansons-album-guns-n-roses/discographie-the-spaghetti-incident-5.htm';
		break;
		//chinese
		case "67,72,73,78,69,83,69" : window.location = 'chansons-album-guns-n-roses/discographie-chinese-democracy-8.htm';
		break;
               	//axl
               	case "65,88,76" : window.location = 'biographie-guns-n-roses/groupe-profils-bio-w-axl-rose-3.htm';
		break;
		//tommy
               	case "84,79,77,77,89" : window.location = 'biographie-guns-n-roses/groupe-profils-bio-tommy-stinson-11.htm';
		break;
		//robin
               	case "82,79,66,73,78" : window.location = 'biographie-guns-n-roses/groupe-profils-bio-robin-finck-14.htm';
		break;
		//dizzy
               	case "68,73,90,90,89" : window.location = 'biographie-guns-n-roses/groupe-profils-bio-dizzy-reed-17.htm';
		break;
		//brain
               	case "66,82,65,73,78" : window.location = 'biographie-guns-n-roses/groupe-profils-bio-brain-13.htm';
		break;
		//chris
               	case "67,72,82,73,83" : window.location = 'biographie-guns-n-roses/groupe-profils-bio-chris-pittman-16.htm';
		break;
		//richard
               	case "82,73,67,72,65,82,68" : window.location = 'biographie-guns-n-roses/groupe-profils-bio-richard-fortus-12.htm';
		break;
		//slash
               	case "83,76,65,83,72" : window.location = 'biographie-guns-n-roses/groupe-profils-bio-slash-4.htm';
		break;
		//duff
               	case "68,85,70,70" : window.location = 'biographie-guns-n-roses/groupe-profils-bio-duff-rose-mckagan-6.htm';
		break;
		//izzy
               	case "73,90,90,89" : window.location = 'biographie-guns-n-roses/groupe-profils-bio-izzy-stradlin-7.htm';
		break;	
        }
}



// Script pour le hover des table
var highlightbehavior="TR"

var ns6=document.getElementById&&!document.all
var ie=document.all

function changeto(e,highlightcolor){
source=ie? event.srcElement : e.target
if (source.tagName=="TABLE")
return
while(source.tagName!=highlightbehavior && source.tagName!="HTML")
source=ns6? source.parentNode : source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function contains_ns6(master, slave) { //check if slave is contained by master
while (slave.parentNode)
if ((slave = slave.parentNode) == master)
return true;
return false;
}

function changeback(e,originalcolor){
if (ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")||source.tagName=="TABLE")
return
else if (ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore"))
return
if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
source.style.backgroundColor=originalcolor
}
// fin hover des table

// Script pour le hover des TD
var highlightbehaviortd="TD"

var ns6=document.getElementById&&!document.all
var ie=document.all

function changetotd(e,highlightcolor){
source=ie? event.srcElement : e.target
if (source.tagName=="TABLE")
return
while(source.tagName!=highlightbehaviortd && source.tagName!="HTML")
source=ns6? source.parentNode : source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function contains_ns6(master, slave) { //check if slave is contained by master
while (slave.parentNode)
if ((slave = slave.parentNode) == master)
return true;
return false;
}

function changebacktd(e,originalcolor){
if (ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")||source.tagName=="TABLE")
return
else if (ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore"))
return
if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
source.style.backgroundColor=originalcolor
}
// fin hover des TD

//Script popup images Kevin
PositionX = 150;
PositionY = 100;
defaultWidth  = 500;
defaultHeight = 500;
var AutoClose = true;

// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=150,left='+PositionX+',top='+PositionY;

function popimg(imageURL,imageTitle)
{
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=250-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">');
writeln('<a href="#" onClick="javascript:window.close()" title="Cliquez pour fermer"><img name="George" src='+imageURL+' style="display:block" border="0"></a></body></html>');
close();		
}}
// fin script popup photos Kevin

//Script Flo pour les news
function go(champ)
{
var min;
 var strlen;
 
 strlen = champ.value.length
 min = 3;
 
  if(strlen < min)
  {
   alert('Pour faire une recherche, entrez un mot de plus de 2 caractères');
  }
  else
  {
   document.form.submit();
  }
}
//fin script Flo pour les news


//Script pour l'arborescence
function expand(n)
{	
	var node = n;
		
	while ( node.nodeName != "UL" )
		node = node.nextSibling;
		
	if ( node.style.display == 'block' ) 
	{
		node.style.display = 'none';
		n.src = 'img/plus.gif';
	} 
	else 
	{
		node.style.display = 'block';
		n.src = 'img/moins.gif';
	}
}
//fin script pour l'arborescence


//Script Save As
function saveFile (fname)
{
	document.execCommand('SaveAs',null,fname)
}
//fin script Save As
