/* ------------------------- */
/* ORC                       */
/* ------------------------- */
/* Scripts divers            */
/* ------------------------- */








function image(){
	var img = document.getElementById("survol");
	img.style.visibility = "hidden";
	var cadre = document.getElementById("photos");
	cadre.onmouseout = function(){
		img.style.visibility = "hidden";
	}
	cadre.onmouseover = function(){
		img.style.visibility = "visible";
	}
}

function fullScreen(theURL) {
window.open(theURL, '', 'fullscreen=yes, scrollbars=auto');
}


function plein(Adresse) {
window.open(Adresse, '', 'fullscreen=yes,scrollbars=auto');
}

function pleinbis(Adresse) {
window.open(theURL, '', 'fullscreen=yes,scrollbars=auto');
}


top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}


/* --------------------------- */
/* mail recommander confrere */
/* --------------------------------------------------------------------------------- */
function mailpage()
{
mail_str = "mailto:?subject=Regarde cette page " + document.title;
mail_str += "&body=Sur le site : http://perso.wanadoo.fr/nea.bernard/, ce document peut t'intéresser : " + document.title;
mail_str += " est disponible ŕ l'adresse: " + location.href; 
location.href = mail_str;
}


/* --------------------------- */
/* pOPuP */
/* --------------------------------------------------------------------------------- */


var newWindow = null;

function closeWin(){
	if (newWindow != null){
		if(!newWindow.closed)
			newWindow.close();
	}
}

function popUpWin(url, type, strWidth, strHeight){
	
	closeWin();
	
	if (type == "fullScreen"){
		strWidth = screen.availWidth - 10;
		strHeight = screen.availHeight - 160;
	}
	
	var tools="";
	if (type == "standard" || type == "fullScreen") tools = "resizable,toolbar=yes,location=yes,scrollbars=yes,menubar=yes,width="+strWidth+",height="+strHeight+",top=0,left=0";
	if (type == "console") tools = "resizable,toolbar=no,location=no,scrollbars=no,width="+strWidth+",height="+strHeight+",left=0,top=0";
	newWindow = window.open(url, 'newWin', tools);
	newWindow.focus();
}




/* --------------------------- */
/* recherche */
/* --------------------------------------------------------------------------------- */
function init() {
	hoverProduits();
}

function gotoURL(location) {
	document.location=location;
}

function hoverProduits() {
	var divs = document.getElementsByTagName("div");
	for(var q = 0; q < divs.length; q++) {
		if(divs[q].className == "produits un") {divs[q].onmouseover = function() {this.className = "produitsH unH";}; divs[q].onmouseout = function() {this.className = "produits un";};}
		if(divs[q].className == "produits deux") {divs[q].onmouseover = function() {this.className = "produitsH deuxH";}; divs[q].onmouseout = function() {this.className = "produits deux";};}
		if(divs[q].className == "produits trois") {divs[q].onmouseover = function() {this.className = "produitsH troisH";}; divs[q].onmouseout = function() {this.className = "produits trois";};}
		if(divs[q].className == "produits quatre") {divs[q].onmouseover = function() {this.className = "produitsH quatreH";}; divs[q].onmouseout = function() {this.className = "produits quatre";};}
		if(divs[q].className == "produits cinq") {divs[q].onmouseover = function() {this.className = "produitsH cinqH";}; divs[q].onmouseout = function() {this.className = "produits cinq";};}
	}
}

window.onload = init;






