<!--
/*
28/12 ajout du print fr_ 
8/1/04 chgt openprintpopup
*/
window.onerror=NoError;
NS4 = (document.layers); 
IE = (document.all);
NS6= document.getElementById && !document.all;

if (navigator.appName == "Microsoft Internet Explorer")
	// distinguer : IE <=4, 5, 6, Mac
{	version=navigator.appVersion.charAt(navigator.appVersion.indexOf("MSIE")+5);
	if (version <= 4)
	{document.write('<link rel="stylesheet" href="http://www.institutbull.com.fr/css/institutv4.css" >');}		
	else
	{
		if (version == 5)
		{document.write('<link rel="stylesheet" href="http://www.institutbull.com.fr/css/institutv5.css" >');}
		else
		/*{document.write('<link rel="stylesheet" href="http://www.institutbull.com.fr/css/institut.css" >');}*/
		{document.write('<link rel="stylesheet" href="http://www.institutbull.com.fr/css/bullp.css" media="print">');}	
	}	
}
else
{ 
	if (navigator.appName == "Netscape")
	// distinguer : Netsc 4 et < , Netsc 6+
	{
		if (navigator.appVersion.substring(0,1) <= 4)
		{document.write('<link rel="stylesheet" href="http://www.institutbull.com.fr/css/institutv4.css" >');}
		else
		{document.write('<link rel="stylesheet" href="http://www.institutbull.com.fr/css/institutv6.css" >');}			
	}
	else
	/*{document.write('<link rel="stylesheet" href="http://www.institutbull.com.fr/css/institut.css" >');}*/
	{document.write('<link rel="stylesheet" href="http://www.bull.com/css/bullp.css" media="print">');}	
}	

function NoError()
	{
	return true;
	}

function GoUrl(s)
{       var d = s.options[s.selectedIndex].value;
	if (d!="")
          window.open(d);
        s.selectedIndex=0;
}

function GoUrl_pop(s)
{       var d = s.options[s.selectedIndex].value;
	if (d!="")
	{
		largeur=650;
		hauteur=430;
		var left=(screen.width-largeur)/2;
		var top=(screen.height-hauteur)/2;
       
        s.selectedIndex=0;
		nwin=window.open(d,"info","top="+top+",left="+left+",width="+largeur+",height="+hauteur+",resizable=yes,scrollbars=auto");
		nwin.focus();
	}
}

/* gère chgt de couleur contextuel menu : ne marche pas avec Netscape 4, 6 */

function bcolor(bcol,d_name)
{
 if (document.all)
 { 
 var thestyle= eval ('document.all.'+d_name+'.style');
 thestyle.backgroundColor=bcol;
 }
 else if (document.getElementById)
	document.getElementById(d_name).style.backgroundColor=bcol;
 //else if (document.layers)
	//document.layers[d_name].bgColor = '#FF0000';
}

function scanmenu()
{
  for(var i = 0; i < document.links.length; i++)
  {
	if(document.links[i] == document.URL )
	{
		//alert (document.links[i]);
		//alert (document.links[i].id);
		idlink = 'td_'+ document.links[i].id;
		//alert (idlink);
		bcolor('#F0F4FC', idlink);
		//bcolor('red','td_'+'menu1');
		break;
	}
  }
}

function fr_print()
{
domain="http://www.institutbull.com.fr";
len=domain.length;
path1=document.URL;
path="../" + path1.substring(len+1,path1.length);
var popurl="http://www.bull.com/fr/js/print1.php?toprint=" + path;
winpops=window.open(popurl,"","location=yes,status=yes,menubar=yes,width=100,height=50,resizable=yes,scrollbars=yes");
}


function openprintpopup()
{
path=document.URL;
var popurl="http://www.institutbull.com.fr/cm_institut.js/print1.php?toprint=" + path;
winpops=window.open(popurl,"","location=yes,status=yes,menubar=yes,width=100,height=50,resizable=yes,scrollbars=yes");
}




function GoUrl_open(s)
{       var d = s.options[s.selectedIndex].value;
	if (d!="")
        
        s.selectedIndex=0;
		top.location=d;
}

function popupsend()
{
url="http://www.bull.com/ami.html"
largeur=400;
hauteur=330;
var left=(screen.width-largeur)/2;
var top=(screen.height-hauteur)/2;
nwin=window.open(url,"ami","top="+top+",left="+left+",width="+largeur+",height="+hauteur+",scrollbars=auto");

nwin.focus();}


function popupsend_fr()
{
url="http://www.bull.com/fr/ami.html"
largeur=400;
hauteur=330;
var left=(screen.width-largeur)/2;
var top=(screen.height-hauteur)/2;
nwin=window.open(url,"ami","top="+top+",left="+left+",width="+largeur+",height="+hauteur+",scrollbars=auto");
nwin.focus();}


/* old */
function nw(url)
{
nwin=window.open(url,"Newwindow","toolbar=yes,copyhistory=yes,location=yes,directories=yes,status=yes,menubar=yes,width=760,height=350,resizable=yes,scrollbars=yes");
focus();
}

//-->
