

//This JavaScript accomplishes two tasks: sniffs for browsers/platform and writes style sheets 

//according to browser/platform. 

function Is () 

{   // convert all characters to lowercase to simplify testing 

var agt=navigator.userAgent.toLowerCase(); 

// *** BROWSER VERSION *** 

// Note: On IE5, these return 4, so use is.ie5up to detect IE5. 


this.major = parseInt(navigator.appVersion); 

this.minor = parseFloat(navigator.appVersion); 

this.nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) 

 && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) 

&& (agt.indexOf('webtv')==-1)); 

this.nav2 = (this.nav && (this.major == 2)); 

this.nav3 = (this.nav && (this.major == 3));  

this.nav4 = (this.nav && (this.major == 4)); 

this.nav4up = (this.nav && (this.major >= 4)); 

this.navonly      = (this.nav && ((agt.indexOf(";nav") != -1) || 

(agt.indexOf("; nav") != -1)) ); 

this.nav5 = (this.nav && (this.major == 5)); 

this.nav5up = (this.nav && (this.major >= 5)); 

this.ie   = (agt.indexOf("msie") != -1); 

this.ie3  = (this.ie && (this.major < 4)); 

this.ie4  = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")==-1) ); 

this.ie4up  = (this.ie  && (this.major >= 4)); 

this.ie5  = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")!=-1) ); 

this.ie5up  = (this.ie  && !this.ie3 && !this.ie4); 


// *** JAVASCRIPT VERSION CHECK *** 


if (this.nav2 || this.ie3) this.js = 1.0 

else if (this.nav3 || this.opera) this.js = 1.1 

else if ((this.nav4 && (this.minor <= 4.05)) || this.ie4) this.js = 1.2 

else if ((this.nav4 && (this.minor > 4.05)) || this.ie5) this.js = 1.3 

else if (this.nav5) this.js = 1.4 



// NOTE: In the future, update this code when newer versions of JS 

// are released. For now, we try to provide some upward compatibility 

// so that future versions of Nav and IE will show they are at 

// *least* JS 1.x capable. Always check for JS version compatibility 

// with > or >=. 

else if (this.nav && (this.major > 5)) this.js = 1.4 

else if (this.ie && (this.major > 5)) this.js = 1.3 



 // HACK: no idea for other browsers; always check for JS version with > or >= 



else this.js = 0.0; 



 // *** PLATFORM *** 



this.win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) ); 

this.mac    = (agt.indexOf("mac")!=-1); 

this.macppc = (this.mac && ((agt.indexOf("ppc")!=-1) || 

(agt.indexOf("powerpc")!=-1))); 

this.linux = (agt.indexOf("inux")!=-1); 

}



//Write the Style Sheet



var is; 

is = new Is();

if (is.nav && !(is.nav5)){
	document.write("<style type='text/css'><!--  body {background-color: #ffffff; margin-top: -.5cm; margin-left: -.5cm ;} p {font-family: Georgia, Times New Roman, Serif ; font-size: 12pt; line-height:17pt; color: #000000; margin-left:19px; margin-right:19px; margin-top:19px;} .smaller{font-family:Georgia, Times New Roman, Serif; font-size: 12px;  line-height:14px; color:#999999} .bodytext {font-family: Georgia, Times New Roman, Serif ; font-size: 12pt; color: #000000} .heading {font-family: Verdana, Helvetica, Arial, Sans-Serif; font-weight: bold; font-size: 18pt; margin-left:19px} .subheading {font-family: Georgia, Times New Roman, Serif; font-weight: bold; font-size: 14pt} .copyright {font-family: Georgia, Times New Roman, Serif; font-size: 10pt} ul{font-family: Georgia, Times New Roman, Serif ; font-size: 12pt; line-height:17pt;color: #000000} a:hover {color: #999999} blockquote{font-family: Georgia, Times New Roman, Serif ; font-size: 11pt; line-height:15pt;color: #000000} a:link { color : #006666; text-decoration : underline; } a: hover {color: #999999} --></style>");
} 

else if (is.nav && is.nav5){
	document.write("<style type='text/css'><!--  body {background-color: #ffffff; margin-top: 0pt; margin-left: 0pt ;} p {font-family: Georgia, Times New Roman, Serif ; font-size: 12pt; line-height:17pt; color: #000000; margin-left:19px; margin-right:19px; margin-top:19px;} .smallerer{font-family:Georgia, Times New Roman, Serif; font-size: 12px;  line-height:14px; color:#999999} .bodytext {font-family: Georgia, Times New Roman, Serif ; font-size: 12pt; color: #000000} .heading {font-family: Verdana, Helvetica, Arial, Sans-Serif; font-weight: bold; font-size: 18pt; margin-left:19px} .subheading {font-family: Georgia, Times New Roman, Serif; font-weight: bold; font-size: 14pt} .copyright {font-family: Georgia, Times New Roman, Serif; font-size: 10pt} ul{font-family: Georgia, Times New Roman, Serif ; font-size: 12pt; line-height:17pt;color: #000000} a:hover {color: #999999} blockquote{font-family: Georgia, Times New Roman, Serif ; font-size: 11pt; line-height:15pt;color: #000000} a:link { color : #006666; text-decoration : underline;} a:hover {color: #999999} --></style>");
} 


else if (is.ie){
	document.write("<style type='text/css'><!-- body {background-color: #ffffff; margin-top: 0pt; margin-left: 0pt;} p {font-family: Georgia, Times New Roman, Serif ; font-size: 12pt; line-height:17pt;color: #000000; margin-left:19px; margin-right:19px; margin-top:19px;}  a:hover {color: #999999} .smaller{font-family:Georgia, Times New Roman, Serif; font-size: 12px;  line-height:14px; color:#999999} .heading {font-family: Verdana, Helvetica, Arial, Sans-Serif; font-weight: bold; font-size: 18pt; margin-left:19px} .subheading {font-family: verdana; font-weight: bold; font-size: 14pt} .copyright {font-family: Georgia, Times New Roman, Serif; font-size: 10pt} ul{font-family: Georgia, Times New Roman, Serif ; font-size: 12pt; line-height:17pt;color: #000000} a:hover {color: #999999} blockquote{font-family: Georgia, Times New Roman, Serif; font-size: 11pt; line-height:15pt;color: #000000} a:link { color : #006666; text-decoration : underline;} a:hover {color: #999999} --></style>");
}


else if (is.linux && is.nav){
	document.write("<style type='text/css'><!-- body {background-color: #ffffff; margin-top: -.5cm; margin-left: -.5cm;} p {font-size: 12pt; font-family: Georgia, Times New Roman, Serif; color: #000000; line-height:17pt; margin-left:19px; margin-right:19px; margin-top:19px;} .smaller{font-family:Georgia, Times New Roman, Serif; font-size: 12px;  line-height:14px; color:#999999} .bodytext {font-size: 12pt; font-family: Georgia, Times New Roman, Serif; color: #000000} .heading {font-weight: bold; font-size: 18pt; font-family: Verdana, Helvetica, Arial, Sans-Serif; margin-left:19px} .subheading {font-weight: bold; font-size: 14pt; font-family: Georgia, Times New Roman, Serif} .copyright {font-size: 10pt; font-family: Georgia, Times New Roman, Serif}  ul{font-family: Georgia, Times New Roman, Serif; font-size: 11pt; line-height:15pt;color: #000000} a:hover {color: #999999} blockquote{font-family: Georgia, Times New Roman, Serif ; font-size: 11pt; line-height:15pt;color: #000000} a:link { color : #006666; text-decoration : underline;} a:hover {color: #999999} --></style>");
}




