// JavaScript Document
//alert(screen.availHeight);
function Clickheretoprint(title)
{ 
    var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
    disp_setting+="scrollbars=yes,width=650, height=600, left=100, top=25"; 
    
    var d = new Date();

    var docprint=window.open("","",disp_setting); 
    docprint.document.open(); 
    docprint.document.write('<html><head><title>' + title + '</title>'); 
    
    if(document.getElementById('centre-home'))
    {  
    	docprint.document.write('<link rel="stylesheet" href="/cs/Germany/css/global.css" /></head><body onLoad="self.print()" topmargin="0" leftmargin="0" rightmargin="0"><img src="/cs/Germany/img/natixis-ga.gif" border="0" alt="banner"/><table style="margin:0 4 0 4;"><tr><td>' + document.getElementById('centre-home').innerHTML + '</td></tr><tr><td>'); 
    }else{    	
    	docprint.document.write('<link rel="stylesheet" href="/cs/Germany/css/global.css" /></head><body onLoad="self.print()" topmargin="0" leftmargin="0" rightmargin="0"><img src="/cs/Germany/img/natixis-ga.gif" border="0" alt="banner"/><table style="margin:0 4 0 4;"><tr><td>' + document.getElementById('centre-large').innerHTML + '</td></tr><tr><td>');
    }
    docprint.document.write('</td></tr></table></body></html>');
    docprint.document.close(); 
    docprint.focus(); 
}

function CreateBookmarkLink() 
{ 
// Blogger - Replace with <$BlogItemTitle$>   
// MovableType - Replace with <$MTEntryTitle$> url = "Webpage URL";  
// Blogger - Replace with <$BlogItemPermalinkURL$>   
// MovableType - Replace with <$MTEntryPermalink$>  
// WordPress - <?php bloginfo('url'); ?>	
	if (window.sidebar) { 
// Mozilla Firefox Bookmark		
	window.sidebar.addPanel(document.title, location.href,"");	
	} else if( window.external ) { 
// IE Favorite		
	window.external.AddFavorite( location.href, document.title); }	
	else if(window.opera && window.print) { 
// Opera Hotlist		
	return true; } 
}

function montre(id, rubrique) {
	var a = document.getElementById('smenu'+id);
	var b = document.getElementById('menu'+id);
	//alert (rubrique);
		for (var i = 1; i<=7; i++) {
			if (document.getElementById('smenu'+i)) {
				document.getElementById('smenu'+i).style.display='none';
				if(i!=rubrique) {document.getElementById('menu'+i).className='';}
			}
		}
	if (a) {
		a.style.display = 'block';
		b.className = 'active';
	}
}
function popup(page) {
	// ouvre une fenetre sans barre d'etat, ni d'ascenceur
	w = 670;
	h	= 600;
	var top=(screen.height-h)/2;
	var left=(screen.width-w)/2;
	myPopup = window.open(page,'popup','top='+top+', left='+left+', width='+w+', height='+h+', scrollbars=yes');	
	myPopup.focus();
}

function popUpDoc(page) {
	// ouvre une fenetre sans barre d'etat, ni d'ascenceur
	w = 600;
	h	= 600;
	var top=(screen.height-h)/2;
	var left=(screen.width-w)/2;
	myPopup = window.open(page,'popup','top='+top+', left='+left+', width='+w+', height='+h+', scrollbars=yes,resizable=1');	
	myPopup.focus();
}
// ouverture pop-up
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function open_link(obj)
{
		
		 var index = obj.selectedIndex;                
		 if( index > 0 ) {            
		 		 window.open(obj.options[index].value);
		 }
}
