function montre_ssmenu(id) {
	var d = document.getElementById(id);
		for (var i = 1; i<=nb_principale; i++) {
			if (document.getElementById('sous_menu'+i)) {
				document.getElementById('sous_menu'+i).style.display='none';
			}

		}

	if (d) {
		d.style.display='block';
	}
}



function montre_note(id) {
	var d = document.getElementById(id);

	if (d) {
		d.style.display='block';
	}
}

function cache_note(id) {
	var d = document.getElementById(id);

	if (d) {
		d.style.display='none';
	}
}

function cache_ssmenu() {
	//var d = document.getElementById(id);
	if (document.getElementById) {
		for (var i=1; i<=nb_principale; i++) {
			if (document.getElementById('sous_menu'+i)) {
				document.getElementById('sous_menu'+i).style.display='none';
			}
		}

	} else if (document.all) {
		for (var i = 1; i<=nb_principale; i++) {
			//document.all['sous_menu'+i].style.display="none";

		}

	} else if (document.layers) {
		for (var i = 1; i<=nb_principale; i++) {
			//document.layers['sous_menu'+i].display="none";

		}
	}
}

function antiSpamMailto(user,domain,subject,linktext) {
   document.write('<a  href=\"mailto:' + user + '@' + domain + '?subject=' + subject + '\">' + linktext + '</a>');
 }


// fonction pour géoconfluences
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function plein_ecran() {
	window.moveTo(0,0);
	if (document.all) { // IE
		window.resizeTo(screen.availWidth,screen.availHeight);
	} else { // NETSCAPE
		window.outerHeight = screen.availHeight;
		window.outerWidth = screen.availWidth;
	}
	window.focus();
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}





/* fin du javascript diaporama geoconfluences */


function addEngineBIU()
{
if ((typeof window.sidebar == "object") && (typeof
window.sidebar.addSearchEngine == "function"))
{
window.sidebar.addSearchEngine(
"http://biu.ens-lsh.fr/html/biu/BIU-LSH.src",
"http://biu.ens-lsh.fr/html/biu/BIU-LSH.png",
"BIU-LSH", "Catalogue BIU LSH Lyon" );
}
else
{
alert("Netscape 6 or Mozilla is needed to install a search plugin");
}
}


function iFrameHeight() {
	var h = 0;
	if ( !document.all ) {
		//h = document.getElementById('ligne').contentDocument.height;
		h = document.getElementById('pascal').iframe.height;
//document.getElementById('simClient').style.height = h + 20 + 'px';
	} else if( document.all ) {
		h = document.frames('simClient').document.body.scrollHeight;
//document.all.simClient.style.height = h + 20 + 'px';
	}
	//document.write('test js ' + h);
	return h
}


/*survolMenu = function() {
		var sfEls = document.getElementById("menu_lyon").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+="sfhover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp("survolMenu\\b"), "");
			}
		}
		}
		if (window.attachEvent) window.attachEvent("onload", survolMenu);
*/



function getSize(param){
		var doc_width = 0
		var doc_height = 0;
    var ns4up = (document.layers) ? 1 : 0;
    var ie4up = (document.all) ? 1 : 0;
    var nn6up = (document.getElementById) ? 1 : 0;

    if (ie4up) {
            doc_width = document.body.clientWidth;
            doc_height = document.body.clientHeight;
    } else if (nn6up || ns4up) {
            doc_width = self.innerWidth;
            doc_height = self.innerHeight;
    }

    if (param == "width") {
    	return doc_width;
    } else if (param == "height"){
    	return doc_height;
    }
}

