HM_DOM = (document.getElementById) ? true : false; 

//variable below works oonly in HTML document
//HM_NS4 = (document.layers) ? true : false;

HM_NS4 = (navigator.appName=="Netscape" && parseInt(navigator.appVersion)==4) ? true : false;
HM_IE = (document.all) ? true : false;
HM_IE4 = HM_IE && !HM_DOM; 
HM_Mac = (navigator.appVersion.indexOf("Mac") != -1);
APP =(navigator.appVersion.indexOf('Mac')>-1) ? 'mac': 'pc';
HM_IE4M = HM_IE4 && HM_Mac;

HM_IsMenu = (HM_DOM || HM_NS4 || (HM_IE4 && !HM_IE4M));
HM_BrowserString = HM_NS4 ? "NS4" : HM_DOM ? "DOM" : "IE4"; 

IE4W = HM_IE4 && APP == 'pc';
IE5W = HM_DOM && HM_IE && APP == 'pc';
IE5M = HM_DOM && HM_IE && APP == 'mac';

NS4M = HM_NS4 && APP == 'mac';
NS4W = HM_NS4 && APP == 'pc';
NS6 = HM_DOM && (navigator.vendor == ("Netscape6") || navigator.product == ("Gecko"));

if (IE4W) {Font_HM = 8;}
if (HM_IE4M) {Font_HM = 10;}
if (IE5W) {Font_HM = 7;}
if (IE5M) {Font_HM = 10;}
if (NS4M) {Font_HM = 10;}
if (NS4W) {Font_HM = 7;}
if (NS6) {Font_HM = 7;}

Damn6 = (NS6) ? "6" : "";
CSS_BrowserPlatform = APP; 
CSS_BrowserApp = (NS6 || HM_NS4) ? "ns" : "ie"; 

document.write('<LINK REL="stylesheet" HREF="css/' + 'sex_' + CSS_BrowserPlatform + '_' + CSS_BrowserApp + Damn6 + '.css" TYPE="text/css">');
