// patch CSS

if(navigator.userAgent.indexOf('MSIE 6')>=0 || navigator.userAgent.indexOf('MSIE 5')>=0)
	
	{

		css = "#zoneContenu { height: 1px } #contenuPage {  }  #calqueZoom { background: #000; filter:alpha(opacity=50)  } #texte img.illustration {margin-right:-1px;margin-bottom:11px;}p.legende { margin-top: -20px !important; margin-bottom: 5px !important} p.legende.larg { margin-top: -28px !important;  } p.haut_de_page {height: 20px; padding-top: 9px} #bkmrk { display: inline !important } .pIll { border-top: 1px solid #fff }";

		document.write('<style type="text/css">'+css+'</style>')

	}


if(navigator.userAgent.indexOf('Safari')>=0)
	
	{

		css = "";

		document.write('<style type="text/css">'+css+'</style>')

	}


function prnt(){

	//window.open(top.frames['ifram'].location.href,'prnt','')
	window.print()

}


function envoi(nav, langue){

	if(navigator.userAgent.indexOf('MSIE')<0){
		sX = window.screenX;
		sY = window.screenY;
	}
	else {
		sX = window.screenLeft;
		sY = window.screenTop;
	}
	
	wW = 300;
	wH = 300;
	
	lX = (screen.width / 2) - (wW / 2);
	lY = (screen.height / 2) - (wH / 2);
	
	url = 'http://www.cnsad.fr/sendmail' + '.php?nav=' + nav ;

	send = window.open(url,'sendMail','width='+wW+', height='+wH+', resizable=yes, scrollbar=no, toolbar=no, location=no, directories=no, status=no, menubar=no, copyhistory=no, left='+lX+', top='+lY)
	
	send.focus()

}






function addToFavorites() 
	{ 
	
	
	if (top.frames.length > 0) {

		url = top.frames['ifram'].location.href; 
		
		}
		
	else {
	
		url = window.location.href; 
	
	}
		
		title = window.document.title; 


	if (window.sidebar) 
		
	{ // Mozilla Firefox Bookmark
	
		window.sidebar.addPanel(title, url,"");
	
	} 
	
	else if( window.external ) 
		
	{ // IE Favorite
	
		window.external.AddFavorite( url, title); 
		
	}
	
	else if(window.opera && window.print) 
		
	{ // Opera Hotlist
	
		return true; 
		
	}

	 else 
			
		{ 
			
			alert("Sorry! Your browser doesn't support this function.\rL'adresse de la page est: "+url); 


		} 
		
		
	}


function ClearError() {
//window.status = "There is a javascript error on this page.  Please e-mail the website owner of this page and inform him of this.";
return true;
}

window.onerror = ClearError;