﻿// JScript File
var ua = navigator.userAgent.toLowerCase(); 
	this.ua= ua;
	this.isIE        = ( (ua.indexOf("msie") != -1) && (ua.indexOf("opera") == -1) && (ua.indexOf("webtv") == -1) ); 
	this.versionMinor = parseFloat(navigator.appVersion); 
	document.write ("<style>")
	document.write ("#sanofiLink {cursor: pointer; width:180px; height:35px; z-index:100; position:absolute; right:35px; top:0px}")
	document.write ("#sanofiLinkHolder {width:771px; margin-left:auto; margin-right:auto; position:relative; top:-54px}")
	if (this.isIE && this.versionMinor >= 4) {
		document.write ("#sanofiLeft {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+window.root+"images/sanofiTop_left.png',sizingMethod='scale'); height:29px; position:relative; top:35px  }") 
		document.write ("#sanofiLogo {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+window.root+"images/sanofiTop.png',sizingMethod='scale'); width:771px; height:59px; position:relative; top:35px;}") 
		document.write ("#sanofiRight {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+window.root+"images/sanofiTop_right.png',sizingMethod='scale'); height:29px; position:relative; top:35px  }")
	}	
	else{
		document.write ("#sanofiLeft { background-image:url("+window.root+"images/sanofiTop_left.png); height:29px; background-repeat:repeat-x; position:relative; top:35px}") 
		document.write ("#sanofiLogo { background-image:url("+window.root+"images/sanofiTop.png);background-repeat:no-repeat; width:771px; height:59px; position:relative; top:35px; margin-left:auto; margin-right:auto}") 
		document.write ("#sanofiRight { background-image:url("+window.root+"images/sanofiTop_right.png); height:29px; background-repeat:repeat-x; position:relative; top:35px}") 
	}	
	document.write ("</style>")