function Browser() {

  var ua, s, i;

  this.isIE    = false;  // Internet Explorer
  this.isOP    = false;  // Opera
  this.isNS    = false;  // Netscape
  this.version = null;

  ua = navigator.userAgent;

  s = "Opera";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isOP = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  s = "Netscape6/";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  // Treat any other "Gecko" browser as Netscape 6.1.

  s = "Gecko";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = 6.1;
    return;
  }

  s = "MSIE";
  if ((i = ua.indexOf(s))) {
    this.isIE = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }
}

var vbrowser = new Browser();

// [begin] Popup
function MM_openBrWindow(u,h,f) {var w = window.open(u,h,f); w.focus();}
function tp(u) {MM_openBrWindow(u,'tp','resizable=yes,scrollbars=yes,width=510,height=400,top=220,left=150');return false;}
function lp(u) {MM_openBrWindow(u,'livecenter','resizable=no,scrollbars=yes,status=0,width=746,height=806,top=0,left=80');return false;}
function rss(u) {MM_openBrWindow(u,'rss','resizable=yes,location=yes,scrollbars=yes,width=728,height=700,top=220,left=150');return false;}
function lpswf(u) {MM_openBrWindow(u,'livecenter','resizable=no,scrollbars=yes,status=0,width=746,height=806,top=0,left=80');}
function mcp(u) {MM_openBrWindow(u,'mediacenter','resizable=yes,scrollbars=yes,width=880,height=750,top=0,left=80');return false;}
function mcpswf(u) {MM_openBrWindow(u,'mediacenter','resizable=no,scrollbars=yes,width=880,height=750,top=0,left=80');}
// [end]

// [begin] Ticker
// [end] Ticker

// [begin] RealMedia OpenAdStream
function OAS_NORMAL(pos)
{ 
	document.write('<a href="' + OAS_url + 'click_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + OAS_query + '" target=new>');
	document.write('<img src="' + OAS_url + 'adstream_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + OAS_query + '" border=0></a>');
}

function OAS_AD(pos)
{
	if (OAS_version >= 11)
	{
		OAS_RICH(pos);
	}
	else
	{
		OAS_NORMAL(pos);
	}
}
// [end] RealMedia OpenAdStream


//functions used by Hubservices and derevatives
function swap(img,chemin)
{
  eval("document."+img+".src='"+chemin+"'");
}
	
function meShowHide(meName, etat, img, n, i)
{

document.getElementById(meName).style.visibility=etat;

if(etat == 'visible')
		{
		swap(img, i);
		}
if(etat == 'hidden'){swap(img, n);}

}

function meShowHide(meName, etat, img, n, i)
{
	document.getElementById(meName).style.visibility=etat;
	if(etat == 'visible')
	{
		swap(img, i);
	}
	if(etat == 'hidden')
	{
		swap(img, n);
	}
}
			
function PrintHomePage(url,text) {
	if ((document.all)&&(document.getElementById)) { // teste si IE5 et +
		document.write("<a href=\"javascript:\" onclick=\"javascript:this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'"+url+"\')\">"+text+"</a>");
	}
}



//End functions used by Hubservices and derevatives