/*FONCTION IMAGE SURVOLEE*/
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_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_findObj(n, d) { //v4.0
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 && document.getElementById) x=document.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];}
}

/*FONCTION POUR DEFILEMENT CALQUE*/
function verif()
{
this.a=navigator.appVersion
this.b=document.getElementById?1:0
this.ie5=(this.a.indexOf("MSIE 5")>-1 && this.b)?1:0;
this.ie4=(document.all && !this.b)?1:0;
this.ns5=(this.b && parseInt(this.a) >= 5) ?1:0;
this.ns4=(document.c && !this.b)?1:0;
this.d=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
return this
}
d=new verif()

var boucle
var temps
var tdef=50

function fab(e,f)
{
f=(!f) ? '':'document.'+f+'.'
this.i=d.b?document.getElementById(e):d.ie4?document.all[e]:d.ns4?eval(f+'document.'+e):0;
this.g=d.b?document.getElementById(e).style:d.ie4?document.all[e].style:d.ns4?eval(f+'document.'+e):0;
this.asch=d.ns4?this.g.document.h:this.i.offsetHeight
this.ch=d.ns4?this.g.m.h:this.i.offsetHeight
this.ht=mh;this.bs=mbs;
this.zone=zone; this.x; this.y;
this.e = e + "Object"
eval(this.e + "=this")
return this
}

function fab2(e,f2)
{
f2=(!f2) ? '':'document.'+f2+'.'
this.i=d.b?document.getElementById(e):d.ie4?document.all[e]:d.ns4?eval(f2+'document.'+e):0;
this.g=d.b?document.getElementById(e).style:d.ie4?document.all[e].style:d.ns4?eval(f2+'document.'+e):0;
this.asch=d.ns4?this.g.document.h:this.i.offsetHeight
this.ch=d.ns4?this.g.m.h:this.i.offsetHeight
this.ht=mh2;this.bs=bas;
this.zone=zone; this.x; this.y;
this.e = e + "Object"
eval(this.e + "=this")
return this
}

function bas(mv)
{
var n=(easc.asch-ecal.ch)/mv
var v=eb.ch/n
if(this.y<eb.ch-this.ch)
{
this.zone(0,this.y+v)
if(boucle) setTimeout(this.e+".bs("+mv+")",tdef)
}
}

function mh2(mv)
{
var n=(easc.asch-ecal.ch)/mv
var v=eb.ch/n
if(this.y>0)
{
this.zone(0,this.y+v)
if(boucle) setTimeout(this.e+".ht("+mv+")",tdef)
}
}

function zone(x,y)
{
this.x=x;this.y=y
this.g.left=this.x
this.g.top=this.y
}

function mbs(mv)
{
if(this.y>-this.asch+ecal.ch)
{
this.zone(0,this.y-mv)
if(boucle) setTimeout(this.e+".bs("+mv+")",tdef)
}
}

function mh(mv)
{
if(this.y<0)
{
this.zone(0,this.y-mv)
if(boucle) setTimeout(this.e+".ht("+mv+")",tdef)
}
}

function asc(tdef)
{
if(t)
{
boucle=true;
if(tdef>0)
{
ebar.bs(tdef)
easc.bs(tdef)
}
else
{
ebar.ht(tdef)
easc.ht(tdef)
}
}
}

function fin()
{
boucle=false
if(temps) clearTimeout(temps)
}
var t;

function debuter()
{
eb=new fab2('scrb')
ebar=new fab2('scr','scrb')
ebar.zone(0,0)
eb.g.vu='v'
ecal=new fab('calque')
easc=new fab('calquebis','calque')
easc.zone(0,0)
ecal.g.vu='v'
t=true;
}

/*FONCTION AJOUTER SITE AUX FAVORIS*/
function ajout()
{
urls="http://www.suzannegiraud.com/"
noms="le site officiel de Suzanne Giraud compositeur/composer"
// internet explorer windows
if(window.external)
{
window.external.AddFavorite(urls,noms)
}
// internet explorer mac
if (document.all && (navigator.userAgent.indexOf('Win') < 0))
{
alert ("COMMAND + B pour ajouter aux favoris (to bookmark) " + noms + " !")
}
// netscape 6.x
if (window.sidebar)
{
window.sidebar.addPanel(noms,urls,"")
}
// netscape 4.x
if (document.layers)
{
alert ("CTRL + D pour ajouter aux favoris (to bookmark) " + noms + " !")
}
// opéra
if (navigator.userAgent.indexOf('Opera') != -1)
{
alert ("CTRL + T pour ajouter aux favoris (to bookmark) " + noms + " !")
}
}

/*FONCTION POPUP*/
function popup(page)
{
window.open(page,'popup','top=0,left=0,width=350,height=200,toolbar=false,scrollbars=0,menubar=0');
}

/*FONCTION SELECT AUTOMATIQUE*/
function nb01()
{
valuenb01(document.forms.selectauto01.id_bio.value);
}
function valuenb01(id01)
{
window.location.href="biographie_contenu.php?num="+id01
}
//
function nb02()
{
valuenb02(document.forms.selectauto02.id_catalmenu.value);
}
function valuenb02(id02)
{
window.location.href="catalogue_contenu.php?num="+id02
}
//
function nb03()
{
valuenb03(document.forms.selectauto03.id_notice.value);
}
function valuenb03(id03)
{
window.location.href="notice_contenu.php?num="+id03
}
//
function nb04()
{
valuenb04(document.forms.selectauto04.id_projet.value);
}
function valuenb04(id04)
{
window.location.href="projet.php?num="+id04
}
//
function nb10()
{
valuenb10(document.forms.selectauto10.id_disco.value);
}
function valuenb10(id10)
{
window.location.href="discographie.php?num="+id10
}
//
function nb11()
{
valuenb11(document.forms.selectauto11.id_presse.value);
}
function valuenb11(id11)
{
window.location.href="presse.php?num="+id11
}
//
function nb12()
{
valuenb12(document.forms.selectauto12.id_lien.value);
}
function valuenb12(id12)
{
window.location.href="lien.php?num="+id12
}
//
function nb13()
{
valuenb13(document.forms.selectauto13.id_musique.value);
}
function valuenb13(id13)
{
window.location.href="musique.php?num="+id13
}
//
function nb14()
{
valuenb14(document.forms.selectauto14.id_actu.value);
}
function valuenb14(id14)
{
window.location.href="index.php?num="+id14
}
//
function nb15()
{
valuenb15(document.forms.selectauto15.id_actua.value);
}
function valuenb15(id15)
{
window.location.href="index.php?num="+id15
}
//
function nb16()
{
valuenb16(document.forms.selectauto16.id_bioa.value);
}
function valuenb16(id16)
{
window.location.href="biography_contenu.php?num="+id16
}
//
function nb17()
{
valuenb17(document.forms.selectauto17.id_catalmenua.value);
}
function valuenb17(id17)
{
window.location.href="catalogue_contenu.php?num="+id17
}
//
function nb18()
{
valuenb18(document.forms.selectauto18.id_discoa.value);
}
function valuenb18(id18)
{
window.location.href="discography.php?num="+id18
}
//
function nb19()
{
valuenb19(document.forms.selectauto19.id_noticea.value);
}
function valuenb19(id19)
{
window.location.href="note_contenu.php?num="+id19
}
//
function nb20()
{
valuenb20(document.forms.selectauto20.id_projeta.value);
}
function valuenb20(id20)
{
window.location.href="project.php?num="+id20
}
//
function nb21()
{
valuenb21(document.forms.selectauto21.id_pressea.value);
}
function valuenb21(id21)
{
window.location.href="press.php?num="+id21
}
//
function nb22()
{
valuenb22(document.forms.selectauto22.id_lien.value);
}
function valuenb22(id22)
{
window.location.href="link.php?num="+id22
}