// -------------------------------------------------------------------------
// Robby Sidharta
// Description:  style sheet
// Created (DD-MM-YY): 17-07-01
// Modified (DD-MM-YY): 
// Author: Robby Sidharta, encim@hotmail.com
// -------------------------------------------------------------------------
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);
	
	this.opera = (agt.indexOf("opera") != -1); 

    // *** PLATFORM *** 
    this.win = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) ); 
    this.mac = (agt.indexOf("mac")!=-1); 
    this.linux = (agt.indexOf("inux")!=-1); 
} 

var is = new Is(); 
// -------------------------------------------------------------------------
// HERE BEGINS THE CSS INFORMATION FOR MAC USERS WITH IE
// -------------------------------------------------------------------------
if ((is.ie4up) && (is.mac))
	{ AM_CSS = '<STYLE type="text/css">' +
'td {font-size: 9pt; font-style: normal; font-weight: normal; font-family: arial, helvetica, verdana;}'+
'.copyright {font-size: 8pt; font-style: normal; font-weight: normal; font-family: arial, helvetica, verdana; color: #FFFFFF}'+
'A {text-decoration: underline; cursor: hand;}' +
'A:link {text-decoration: underline; color: #343434;}' +
'A:hover {text-decoration: none; color: #0000CC;}' +
'A:active {text-decoration: none; color: #33FF00;}' +
'A:visited {text-decoration: underline; color: #343434;}' +
'A:visited:hover {text-decoration: none; color: #0000CC;}'+
	'</STYLE>';
		}
// -------------------------------------------------------------------------
// HERE BEGINS THE CSS INFORMATION FOR WINDOWS USERS WITH IE 4+
// AND NETSCAPE 6 & OPERA ON ALL PLATFORMS.
// -------------------------------------------------------------------------
else if (((is.ie4up) && (is.win)) || (is.nav5up) || (is.opera))
	{ AM_CSS = '<STYLE type="text/css">' +
'td {font-size: 8pt; font-style: normal; font-weight: normal; font-family: arial, helvetica, verdana;}'+
'.copyright {font-size: 8pt; font-style: normal; font-weight: normal; font-family:  arial, helvetica, verdana; color: #FFFFFF}'+
'A {text-decoration: underline; cursor: hand;}' +
'A:link {text-decoration: underline; color: #343434;}' +
'A:hover {text-decoration: none; color: #0000CC;}' +
'A:active {text-decoration: none; color: #33FF00;}' +
'A:visited {text-decoration: underline; color: #343434;}' +
'A:visited:hover {text-decoration: none; color: #0000CC;}'+
	'</STYLE>';
		}







// -------------------------------------------------------------------------
// HERE BEGINS THE CSS INFORMATION FOR MAC USERS WITH NETSCAPE
// -------------------------------------------------------------------------
else if ((is.nav4) && (is.mac))
	{ AM_CSS = '<STYLE type="text/css">' +
'td {font-size: 12px; font-style: normal; font-weight: normal; font-family: arial, helvetica, verdana;}'+
'.copyright {font-size: 11px; font-style: normal; font-weight: normal; font-family: arial, helvetica, verdana; color: #FFFFFF}'+
'A {text-decoration: underline; cursor: hand;}' +
'A:link {text-decoration: underline; color: #343434;}' +
'A:active {text-decoration: none; color: #33FF00;}' +
'A:visited {text-decoration: underline; color: #343434;}' +
	'</STYLE>';
		}
// -------------------------------------------------------------------------
// HERE BEGINS THE CSS INFORMATION FOR WINDOWS USERS WITH NETSCAPE
// -------------------------------------------------------------------------
else if ((is.nav4) && (is.win)) 
	{ AM_CSS = '<STYLE type="text/css">' +
'td {font-size: 12px; font-style: normal; font-weight: normal; font-family: arial, helvetica, verdana;}'+
'p {font-size: 12px; font-style: normal; font-weight: normal; font-family: arial, helvetica, verdana;}'+
'b {font-size: 12px; font-style: normal; font-weight: bold; font-family: arial, helvetica, verdana;}'+
'.copyright {font-size: 11px; font-style: normal; font-weight: normal; font-family: arial, helvetica, verdana; color: #FFFFFF}'+
'A {text-decoration: underline; cursor: hand;}' +
'A:link {text-decoration: underline; color: #343434;}' +
'A:active {text-decoration: none; color: #33FF00;}' +
'A:visited {text-decoration: underline; color: #343434;}' +
	'</STYLE>';
		}
// -------------------------------------------------------------------------
// HERE BEGINS THE CSS INFORMATION FOR LINUX USERS WITH NETSCAPE
// -------------------------------------------------------------------------
else if ((is.nav4) && (is.linux))
	{ AM_CSS = '<STYLE type="text/css">' +
'td {font-size: 12px; font-style: normal; font-weight: normal; font-family: arial, helvetica, verdana;}'+
'.copyright {font-size: 11px; font-style: normal; font-weight: normal; font-family: arial, helvetica, verdana; color: #FFFFFF}'+
'A {text-decoration: underline; cursor: hand;}' +
'A:link {text-decoration: underline; color: #343434;}' +
'A:active {text-decoration: none; color: #33FF00;}' +
'A:visited {text-decoration: underline; color: #343434;}' +
	'</STYLE>';
		}








// -------------------------------------------------------------------------
// HERE BEGINS THE CSS INFORMATION FOR ALL OTHER VISITORS
// -------------------------------------------------------------------------
else { AM_CSS = '<STYLE type="text/css">' +
'td {font-size: 12px; font-style: normal; font-weight: normal; font-family: arial, helvetica, verdana;}'+
'.copyright {font-size: 11px; font-style: normal; font-weight: normal; font-family: arial, helvetica, verdana; color: #FFFFFF}'+
'A {text-decoration: underline; cursor: hand;}' +
'A:link {text-decoration: underline; color: #343434;}' +
'A:active {text-decoration: none; color: #33FF00;}' +
'A:visited {text-decoration: underline; color: #343434;}' +
	'</STYLE>';
		}
// -------------------------------------------------------------------------
	document.write(AM_CSS)
// -------------------------------------------------------------------------
