<!--
/*
28/12 ajout du print fr_ 8/1/04 chgt openprintpopup
document.write('<link rel="stylesheet" href="bullp.css" media="print">');
document.write('<link rel="stylesheet" href="bull.css" >');*/
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.bull.com/css/bullcss.css" >');}		
	else
	{
		if (version == 5)
		{document.write('<link rel="stylesheet" href="http://www.bull.com/css/bullcss.css" >');}
		else
		/*{document.write('<link rel="stylesheet" href="http://www.bull.com/css/bullcss.css" >');}*/
		{document.write('<link rel="stylesheet" href="http://www.bull.com/css/bullcss.css" media="print">');}	
	}	
}
else
{ 
	document.write('<link rel="stylesheet" href="http://www.bull.com/css/bullcssff.css" >');
	document.write('<link rel="stylesheet" href="http://www.bull.com/css/bullcssff.css" media="print">');	
}	


// Set up cookies for backtracking
  var now = new Date();
  now.setTime(now.getTime() + 90 * 24 * 60 * 60 * 1000);  // CAD d'ici trois mois
  var cameto = getCookie("cameto");
  var camefrom = getCookie("camefrom");
  //var firstcame = getCookie("firstcame");
  //var firstref = getCookie("firstref");
  if (!cameto) {    // CAD on sort ici si cookies déjà posés pour cette session
    camefrom = ((!document.referrer)||(document.referrer=="")) ? "none" : document.referrer ;
    cameto = location.href;
    setCookie("camefrom", camefrom, null, "/",".bull.com") ;
    setCookie("cameto",   cameto,   null, "/",".bull.com") ;
    //if (!firstcame) {  // Les cookies rémanents mémorisent la première visite
    //  setCookie("firstcame", cameto, now, "/",".bull.com");
    //} else {  // Extend for 3 months
    //  setCookie("firstcame", firstcame, now, "/",".bull.com") ;
    //}
    //if (!firstref) {
    //  setCookie("firstref", camefrom, now, "/",".bull.com");
    //} else {  // Extend for 3 months
    //  setCookie("firstref", firstref, now, "/",".bull.com") ;
    //}
  }


function setCookie(name, value, expires, path, domain, secure){
  var curCookie=name + "=" + escape(value) +
  ((expires) ? "; expires=" + expires.toGMTString() : "") +
  ((path)    ? "; path="    + path : "")                  +
  ((domain)  ? "; domain="  + domain : "")                +
  ((secure)  ? "; secure" : "");
  document.cookie=curCookie;
}
function getCookie(name){
  var dc=document.cookie;
  var prefix=name + "=";
  var begin=dc.indexOf("; " + prefix);
  if (begin==-1){
    begin=dc.indexOf(prefix);
    if (begin !=0) return null;
  } else begin +=2;
  var end=document.cookie.indexOf(";", begin);
  if (end==-1) end=dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}
function deleteCookie(name, path, domain){
  if (getCookie(name)){
    document.cookie=name + "=" +
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    "; expires=Thu, 01-Jan-70 00:00:01 GMT";
  }
}

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('#CCE821', idlink);
		//bcolor('#F0F4FC', idlink);
		//bcolor('red','td_'+'menu1');
		break;
	}
  }
}

function scanmenu_direct()
{
  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('#D2D2D2', idlink);
		//bcolor('#F0F4FC', idlink);
		//bcolor('red','td_'+'menu1');
		break;
	}
  }
}

function fr_print()
{
/*domain=document.domain;*/
domain="http://www.bull.com/fr";
len=domain.length;
path1=document.URL;
/*alert(path1);*/
path="../" + path1.substring(len+1,path1.length);
/*alert(path);*/
var popurl="http://www.bull.com/fr/js/print1.php?toprint=" + path;
/*var popurl="http://www.bull.com/cm/print1.php?toprint=" + path;*/
/*var popurl="print1.php?toprint=/fr/antenne-emploi/maquette/bull.com-bluegreen/partners-print.html" ;*/
/*alert (popurl);*/
/*winpops=window.open(popurl,"","width=100,height=50,");*/
winpops=window.open(popurl,"","location=yes,status=yes,menubar=yes,width=100,height=50,resizable=yes,scrollbars=yes");
}


function openprintpopup()
{
/*domain=document.domain;*/
domain="http://www.bull.com";
len=domain.length;
path=document.URL;
/*path="../" + path1.substring(len+1,path1.length);*/
/*alert(path);*/
var popurl="http://www.bull.com/js/print1.php?toprint=" + path;
/*alert (popurl);*/
/*winpops=window.open(popurl,"","width=100,height=50,");*/
winpops=window.open(popurl,"","location=yes,status=yes,menubar=yes,width=100,height=50,resizable=yes,scrollbars=yes");
}


function chiliprint()
{
window.print();
}

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();}


/* for Instranet : document.opener.URL unknown object when coming from a different domain */

function popsend(urlopener)
{
url="http://www.bull.com/ami.php?opener="+urlopener;
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 popsend_fr(urlopener)
{
url="http://www.bull.com/fr/ami.php?opener="+urlopener;
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();
}

//-->

