//<<<<<<<<< Scripts © 2007 Charles Houghton-Webb >>>>>>>>>
var newwin=''; docstr="document.";PicArray=new Array();theimg="";newWindow='';
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
function muswin(themus,thepic){
if (newwin && newwin.open && !newwin.closed) newwin.close();
var nme=(themus.split(".",2))[0];
newwin=window.open("","Extrait","width=220,height=260,dependent=yes,menubar=no,location=no,resizable=no,scrollbars=no,alwaysRaised=yes");
var text="<html><head><title>Extract</title><style type='text/css'><!--.thisBodyText {font-size: 12px;font-family: Arial, Helvetica, sans-serif;color: #FFFFFF;}--></style></head><body  class='thisBodyText' bgcolor='000000'>";
newwin.document.write(text);
bodystr0='<p align="center"><img src="images/' + thepic + '" alt="Image" width="120" height="120" /></p>';
bodystr1='<embed src="audio/' + themus + '" autostart=true loop=false kioskmode="true" volume=100 width="180" height="44"></embed>';
bodystr2='<p align="center">' + nme + '<a href="javascript:;" style="text-decoration:none; color:#FF0000" onMouseOver="this.style.color=\'#FFFF00\'" onMouseOut="this.style.color=\'#FF0000\'" onClick="window.close()"><br /><b>Cliquez ici pour fermer</b></a></p>';
closestr='</body></html>';
newwin.document.write(bodystr0);
newwin.document.write(bodystr1);
newwin.document.write(bodystr2);
newwin.document.write(closestr);
}

//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
function smsg(n) {
status=n;
document.retval=true;
}
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
function plpics(){
var ln=arguments.length-1;j=0;SplitString="";suff="";pth=arguments[0];pth0="";pth1="";
for(i=0;i<ln;i++){
	j=2*i;
	SplitString = arguments[i+1].split(".",2);
	suff=SplitString[1];
	if(suff!=null){suff="."+suff;}else{suff="";}
	pth0=pth + SplitString[0] + "0" + suff;
	pth1=pth + SplitString[0] + "1" + suff;
	PicArray[j]=new Image();
	PicArray[j].src=pth0;
	PicArray[j+1]=new Image();
	PicArray[j+1].src=pth1;
}
}
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
function groll(nme,pic,n){
i=(pic-1)*2+n;
theimg=String(nme);
eval(docstr+nme).src=PicArray[i].src;
}
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
function floater() {
if (document.all) {
document.all.moon.style.pixelTop = document.body.scrollTop + 50;
}
else if (document.layers) {
document.moon.top = window.pageYOffset + 50;
}
else if (document.getElementById) {
document.getElementById('moon').style.top = window.pageYOffset + 50 + 'px';
   }
}
if (document.all)
window.onscroll = floater;
else
setInterval ('floater()', 100);
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
function init() {
if (document.all) {
document.all.moon.style.pixelLeft = document.body.clientWidth - document.all.moon.offsetWidth;
document.all.moon.style.visibility = 'visible';
}
else if (document.layers) {
document.moon.left = window.innerWidth - document.moon.clip.width - 15;
document.moon.visibility = 'show';
}
else if (document.getElementById) {
document.getElementById('moon').style.left = (window.innerWidth - 85) + 'px';
document.getElementById('moon').style.visibility = 'visible';

pic0=new Image(50,50);
pic1=new Image(50,50);
pic0.src="commun/moon0.png";
pic1.src="commun/moon1.png";
   }
}
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
function Partition(num) {
      alert("Afficher la partition N° " + num);
}
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
function quickwin(addr,winName,w,h){
if (!newWindow || newWindow.closed) {
	var paramStr = "top=0,left=0,width=" + w + ",height=" + h + ",menubar=yes,scrollbars=yes,resizable=yes,location=yes,toolbar=yes" 
newWindow=window.open(addr,winName,paramStr);}
newWindow.focus();
}