var isIE;
var isNS;
var ver;
var path;

function spacer(width, height){
	if (isNS && ver < 5) {
		document.write('<img src="' + path + 'images/dot.gif" width="' + width + '" height="' + height + '" border="0">');
	}
}

function cssWriter(){
	var agent = navigator.userAgent.toLowerCase();
	isIE = agent.indexOf("msie")!=-1;
	isNS = navigator.appName.indexOf("Netscape")!=1;
	var isMac = agent.indexOf("mac")>0;
	var isWin = agent.indexOf("win")>0;
	ver = parseFloat(navigator.appVersion);
	if(isIE && isWin) {document.write('<link rel=\"stylesheet\" type=\"text/css\" href=\"' + path + 'include/style_win_ie.css\" />');return;}
	if(isIE && isMac) {document.write('<link rel=\"stylesheet\" type=\"text/css\" href=\"' + path + 'include/style_mac_ie.css\" />');return;}
	if(isNS && isWin) {document.write('<link rel=\"stylesheet\" type=\"text/css\" href=\"' + path + 'include/style_win_ns.css\" />');return;}
	if(isNS && isMac) {document.write('<link rel=\"stylesheet\" type=\"text/css\" href=\"' + path + 'include/style_mac_ns.css\" />');return;}
	if(!isWin && !isMac) document.write('<link rel=\"stylesheet\" type=\"text/css\" href=\"' + path + 'include/style_others.css\" />');
}

cssWriter();
