// Generic browser checking code function checkBrowser(){ this.ver=navigator.appVersion this.dom=document.getElementById?1:0 this.mac=(navigator.appVersion.indexOf('Mac') != -1)?1:0 this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0; this.ie4=(document.all && !this.dom)?1:0; this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5); this.safari=(this.ver.indexOf("Safari/8")>-1)?1:0; return this; } function printPage() { window.print(); } function rolloverBG(cellId,bgc) { if (document.getElementById) document.getElementById(cellId).style.background = bgc; if (document.all) eval(cellId).style.background = bgc; } function rolloverBGImg(cellId,bgImg) { var bgImage = 'url(/us/diabetes/images/'+bgImg+')'; if (document.getElementById) document.getElementById(cellId).style.backgroundImage = bgImage; document.getElementById(cellId).style.cursor = 'pointer'; //if (document.all) eval(cellId).style.background = bgc; } function rolloverBGImgOver(cellId,bgImg) { var bgImage = 'url(/us/diabetes/images/'+bgImg+')'; if (document.getElementById) document.getElementById(cellId).style.backgroundImage = bgImage; document.getElementById(cellId).style.backgroundColor = '#f47224'; document.getElementById(cellId).style.cursor = 'pointer'; //if (document.all) eval(cellId).style.background = bgc; document.getElementById(cellId+"-tc").style.backgroundImage = 'url(/us/diabetes/images/BD-tabcurve-toporange.jpg)'; document.getElementById(cellId+"-bc").style.backgroundImage = 'url(/us/diabetes/images/BD-tabcurve-bottomorange.jpg)'; } function rolloverBGImgOff(cellId,bgImg) { var bgImage = 'url(/us/diabetes/images/'+bgImg+')'; if (document.getElementById) document.getElementById(cellId).style.backgroundImage = bgImage; document.getElementById(cellId).style.backgroundColor = '#1f4bac'; document.getElementById(cellId).style.cursor = 'pointer'; //if (document.all) eval(cellId).style.background = bgc; document.getElementById(cellId+"-tc").style.backgroundImage = 'url(/us/diabetes/images/BD-tabcurve-topblue.jpg)'; document.getElementById(cellId+"-bc").style.backgroundImage = 'url(/us/diabetes/images/BD-tabcurve-bottomblue.jpg)'; } var objBrowser=new checkBrowser();