//Default browsercheck, added to all scripts!
function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	//added
	this.ie4mac=this.ie4 && navigator.userAgent.indexOf("Mac")>-1
	this.ie5mac=this.ie5 && navigator.userAgent.indexOf("Mac")>-1
	this.ie55=(this.ver.indexOf("MSIE 5.5")>-1 && this.dom)?1:0; 
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5 || this.ie5mac)
	return this
}
bw=new checkBrowser()
//With nested layers for netscape, this function hides the layer if it's visible and visa versa
function showHide(div,nest){
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	if(obj.visibility=='visible' || obj.visibility=='show') obj.visibility='hidden'
	else obj.visibility='visible'
}
//Shows the div
function show(div,nest){
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	obj.visibility='visible'
}
//Hides the div
function hide(div,nest){
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	obj.visibility='hidden'
}

function pop (url) 
{       nompopup = window.open(url,'pop','scrollbars=no,menubar=no,status=yes,resizable=no,top=120,left=200,width=437,height=461');
}



function pict (titre,description,image,largeur,hauteur) {
	var largepop = parseInt(largeur)+20
	var hautpop = parseInt(hauteur)+130
	var string = ''
	+'<html>'
	+'<head>'
	+'<title>Bibliothèque Sainte Geneviève</title>'
	+'</head>'
	+'<body bgcolor="#FFFFFF" onBlur="window.close()" topmargin="10" leftmargin="10" marginwidth="10" marginheight="10">'
	+'<div align="center" style="color : #000000; font-family : verdana, Arial, Helvetica, sans-serif; font-size:11px">'
		+'<b>' +titre+ '</b><br>'
		+description+ '.<br>'
		+'<br>'
		+'<img src="../img/nordique/vis/' +image+ '.jpg" width="' +largeur+ '" height="' +hauteur+ '"><br>'
		+'<br>'
		+'&copy; - Cliché Bibliothèque Sainte-Geneviève/IRHT. Reproduction interdite.'
	+'</div>'
	+'</body>'
	+'</html>';
	
	var pop2 = window.open('','','scrollbars=no,menubar=no,status=no,resizable=no,top=50,left=200,width='+largepop+',height='+hautpop+'');
	pop2.document.write(string);
	pop2.document.close();
	pop2.focus();
}

function pop3 (url) 
{		var pop3 = window.open(url,'pop3','scrollbars=yes,menubar=no,status=yes,resizable=no,top=120,left=200,width=550,height=300');
		pop3.focus();
}

function pop4 (url,large,haut) 
{
		var pop4 = window.open(url,'pop4','scrollbars=yes,menubar=no,status=no,resizable=no,top=120,left=200,width='+large+',height='+haut+'');
		pop4.focus();
}

function pop5 (url,large,haut) 
{
		var pop5 = window.open(url,'pop5','scrollbars=yes,menubar=no,status=no,resizable=no,top=0,left=0,width='+large+',height='+haut+'');
		pop5.focus();
}
function planpopup (url) 
{		var planpopup = window.open(url,'planpopup','scrollbars=yes,menubar=no,status=yes,resizable=no,top=120,left=200,width=447,height=540');
		planpopup.focus();
}
/*
//		AJOUTé PAR JéRôme LE 21 JUILLET 2005
function clignotement()
{
    if (document.getElementById("MonElement").style.display=="block")
       document.getElementById("MonElement").style.display="none";
    else
       document.getElementById("MonElement").style.display="block";
}
// mise en place de l appel régulier de la fonction clignotement toutes les 0.5 secondes
setInterval("clignotement()", 500); 
//		AJOUTé PAR JéRôme LE 21 JUILLET 2005
*/