	
	// override rules
	var agt=navigator.userAgent.toLowerCase();
	var is_netscape6  = (agt.indexOf('netscape6')!=-1);	
	if (navigator.appName == "Netscape") {
	   var bVer = navigator.userAgent.substring(8);
	   var pos = bVer.indexOf(' ');
	   var bVer = bVer.substring(0, pos);
	}
	if (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 5) {
	   var pos = navigator.userAgent.lastIndexOf('/');
	   var bVer = navigator.userAgent.substring(pos + 1);
	}
	var is_netscape7 = (parseFloat(bVer) < 8);
	var is_netscape70 = (agt.indexOf('netscape/7.0')!=-1);
	var is_netscape71 = (agt.indexOf('netscape/7.1')!=-1);
	var is_netscape72 = (agt.indexOf('netscape/7.2')!=-1);
	var is_aol7  = (agt.indexOf('aol/7')!=-1);
	var is_macie5  = (agt.indexOf('msie 5.23')!=-1);
	var is_moz = ((agt.indexOf('mozilla/5')!=-1) && (agt.indexOf('spoofer')==-1) &&
                    (agt.indexOf('compatible')==-1) && (agt.indexOf('opera')==-1)  &&
                    (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1)     &&
                    ((navigator.vendor=="")||(navigator.vendor=="Mozilla")||(navigator.vendor=="Debian")));
	
	
	var css_file = "http://welcome.hp-ww.com/country/my/en/styles/hpweb_welcomeOV2_cssp.css";

	if (is_netscape72 || is_netscape71 || is_netscape70 || is_netscape6) {
	   css_file = "http://welcome.hp-ww.com/country/my/en/styles/hpweb_welcomeOV2_cssp_ns71.css";
	}
	if (is_macie5) {
	   css_file = "http://welcome.hp-ww.com/country/my/en/styles/hpweb_welcomeOV2_cssp_macie5.css";
	}
	
	document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + css_file + "\">");
	
	if (is_aol7) {
	   var aol7style = '';
	   aol7style += '<style type="text/css">\n';
	   aol7style += '#hhoContent { position:relative; PADDING: 6px 10px 0 15px; color:#fff; background-color:#4FAF00; height: 8.5em; width: 715px; }\n';
	   aol7style += '#smbContent { position:absolute; top:233px; PADDING: 6px 10px 0 15px; color:#fff; background-color:#003366; height: 8.5em;  visibility: hidden; width: 715px;}\n';
	   aol7style += '#lebContent { position:absolute; top:233px; PADDING: 6px 10px 0 15px; color:#fff; background-color:#990000; height: 8.5em;  visibility: hidden; width: 715px;}\n';
	   aol7style += '#gheContent { position:absolute; top:233px; PADDING: 6px 10px 0 15px; color:#fff; background-color:#336666; height: 8.5em;  visibility: hidden; width: 715px; }\n';
	   aol7style += '#gaContent { position:absolute; top:233px; PADDING: 6px 10px 0 15px; color:#fff; background-color:#EB5F01; height: 8.5em;  visibility: hidden; width: 715px; }\n';
	   aol7style += '#menu1 { POSITION: absolute; VISIBILITY: hidden; color: #fff; BACKGROUND-COLOR: #666666; PADDING: 8px; z-index: 10; width: 120px; right: 580px; bottom: 2em; text-align:left; margin-bottom:0px;}\n';
	   aol7style += '</style>\n';
	   document.write(aol7style);
	}
	
	if ((is_netscape7 && is_mac) || is_linux || is_moz) {
	   var ns7macstyle = '';
	   ns7macstyle += '<style type="text/css">\n';
	   ns7macstyle += '#menu1 { bottom: 20px; }\n';
	   ns7macstyle += '</style>\n';
	   document.write(ns7macstyle);
	}
	
	if (is_netscape70) {
	   var ns70style = '';
	   ns70style += '<style type="text/css">\n';
	   ns70style += '#menu1 { bottom: 2em; }\n';
	   ns70style += '</style>\n';
	   document.write(ns70style);
	}
	if (is_netscape72) {
	   var ns72style = '';
	   ns72style += '<style type="text/css">\n';
	   ns72style += '#menu1 { POSITION: absolute; VISIBILITY: hidden; color: #fff; BACKGROUND-COLOR: #666666; PADDING: 8px; z-index: 10; width: 120px; right: 0px; bottom: 2em; text-align:left; margin-bottom:0px; }\n';
	   ns72style += '</style>\n';
	   document.write(ns72style);
	}
