﻿// sanofi header

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);
if (this.isIE && this.versionMinor >= 4) {
    document.write("<style>")
    document.write("#sanofiLeft {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + window.root + "images/sanofiTop_left.png',sizingMethod='scale'); height:29px; position:relative; background-repeat:repeat-x; top:35px;}")
    document.write("#sanofiLogo {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + window.root + "images/sanofiTop.png',sizingMethod='scale'); width:1025px; 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;}")
    document.write("#bottomedge {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + window.root + "images/bottomedge.png',sizingMethod='scale'); height:32px; background-repeat:no-repeat; width:893px;}")
    document.write("</style>")
}

else {
    document.write("<style>")
    document.write("#sanofiLeft { background-image:url(" + window.root + "images/sanofiTop_left.png); height:29px; background-repeat:repeat-x; position:relative; background-repeat:repeat-x; top:35px;}")
    document.write("#sanofiLogo { background-image:url(" + window.root + "images/sanofiTop.png);background-repeat:no-repeat; width:1025px; 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("#bottomedge { background-image:url(" + window.root + "images/bottomedge.png); height:32px; background-repeat:no-repeat; width:893px;}")

    document.write("</style>")
}           
     
