//version 0.6

function getBrowserVersion()
{
	var browser = getBrowserName();
	var version = 0;
	var s = 0;
	var e = 0;
	var appVer  = navigator.appVersion;
	if (browser == "Netscape")
	{
		s = appVer.indexOf(" ",0);
		version = eval(appVer.substring(0,s));
		if (version >= 5) version++;
	}
	if (browser == "Explorer")
	{
		appVer  = navigator.userAgent;
		s = appVer.indexOf("MSIE ",0) + 5;
		e = appVer.indexOf(";",s);
		version = eval(appVer.substring(s,e));
	}
	if (browser == "Dreampassport")
	{
		s = appVer.indexOf("/",0)+1;
		e = appVer.indexOf(")",s);
		version = eval(appVer.substring(s,e));
	}
	return version;
}


function getBrowserName()
{
    var aName  = navigator.appName.toUpperCase();
    var uName  = navigator.userAgent.toUpperCase();
    if (uName.indexOf("DREAMPASSPORT") >= 0)  return "Dreampassport";
    if (aName.indexOf("NETSCAPE") >= 0)       return "Netscape";
    if (aName.indexOf("MICROSOFT") >= 0)      return "Explorer";
    if (aName.indexOf("ICA") >= 0)            return "iCab";
    return "";
}


function makeStyleSheet()
{
var style = 0;
var styletype = 0;
var theAgent = navigator.userAgent;
browserName = navigator.appName;
if (theAgent.indexOf("Win") >= 0) styletype = ('winType')
if (theAgent.indexOf("Mac") >= 0) styletype = ('macType')
if (getBrowserVersion() >= 5 && browserName =="Microsoft Internet Explorer") styletype = ('ie5Type')

if (styletype == "winType" || styletype == "ie5Type") style = ('<STYLE TYPE="text/css"><!--SPAN { font-size: 10pt; line-height:16pt; } P { font-size: 10pt; } UL { font-size: 10pt; line-height:12pt; } OL { font-size: 10pt; line-height:12pt; } .LH24 { line-height:24pt; } .TT { font-size: 11pt; } .L2 { font-size: 8pt; line-height:12pt; } .L3 { font-size: 10pt; line-height:14pt; } .L4 { font-size: 12pt; line-height:16pt; } .MS { font-size: 10pt; } .S2 { font-size: 8pt; } .S3 { font-size: 10pt; } .S4 { font-size: 12pt; } .F3 { font-size: 9pt; font-family:Osaka; } A { color:#202F8F; } A:link { color:#202F8F; } A:active { color:#B0A0FF; } A:visited { color:#8F2F50; }--></STYLE>');

if (styletype == "macType") style = ('<STYLE TYPE="text/css"><!--SPAN { line-height:21pt; } UL { line-height:17pt; } OL { line-height:17pt; } .L2 { font-size: 10pt; line-height:17pt; } .L3 { font-size: 12pt; line-height:19pt; } .L4 { font-size: 14pt; line-height:21pt; } .MS { font-size: 12pt; } .S2 { font-size: 10pt; } .S3 { font-size: 12pt; } .S4 { font-size: 14pt; } .TT { font-size: 13pt; } .F3 { font-size: 11pt; font-family:Osaka; } A { color:#202F8F; } A:link { color:#202F8F; } A:active { color:#B0A0FF; } A:visited { color:#8F2F50; }--></STYLE>');
return style;
}
document.write(makeStyleSheet());

