<!--
/* different path to the stylesheets */
/* set specials path in csspath. default path '../../' */
/* example: var csspath = '../' */

function Browser() {
	var b=navigator.appName
	if (b=="Netscape") this.b="ns"
	else if (b=="Microsoft Internet Explorer") this.b="ie"
	else if (b=="Opera") this.b="op"
	else this.b=b
	this.version=navigator.appVersion
	this.v=parseInt(this.version)
	this.op=(this.b=="op" && this.v>=4)
	this.ns=(this.b=="ns" && this.v>=4)
	this.ns4=(this.b=="ns" && this.v==4)
	this.ns6=(this.b=="ns" && this.v==5)
	this.ie=(this.b=="ie" && this.v>=3)
	this.ie4=(this.version.indexOf('MSIE 4')>0)
	this.ie5=(this.version.indexOf('MSIE 5')>0)
	this.ie6=(this.version.indexOf('MSIE 6')>0)	
	this.dom=((document.createRange&&(document.createRange().createContextualFragment))?true:false)
	this.min=(this.ns||this.ie)
	
	var ua=navigator.userAgent.toLowerCase()
	if (ua.indexOf("win")>-1) this.platform="win32"
	else if (ua.indexOf("mac")>-1) this.platform="mac"
	else if (ua.indexOf("linux")>-1) this.platform="linux"
	else this.platform = "other"
}

var bw=new Browser()
if(typeof csspath == 'undefined')
	var csspath = './blocks/'; 

// alert(csspath)
	
if (bw.ie){
	if (bw.platform=="win32") document.write("<link rel='STYLESHEET' type='text/css' href='"+csspath+"css/win_ie.css'>")
	else if (bw.platform=="mac") document.write("<link rel='STYLESHEET' type='text/css' href='"+csspath+"css/mac_ie.css'>")
	else if (bw.platform=="linux") document.write("<link rel='STYLESHEET' type='text/css' href='"+csspath+"css/linux_ie.css'>")
	else if (bw.platform=="other") document.write("<link rel='STYLESHEET' type='text/css' href='"+csspath+"css/other.css'>")	
}

else if (bw.ns){
	if(bw.ns4){
		if (bw.platform=="win32") document.write("<link rel='STYLESHEET' type='text/css' href='"+csspath+"css/win_ns4.css'>")
		else if (bw.platform=="mac") document.write("<link rel='STYLESHEET' type='text/css' href='"+csspath+"css/mac_ns4.css'>")
		else if (bw.platform=="linux") document.write("<link rel='STYLESHEET' type='text/css' href='"+csspath+"css/linux_ns4.css'>")
		else if (bw.platform=="other") document.write("<link rel='STYLESHEET' type='text/css' href='"+csspath+"css/other.css'>")
	}
	else if(bw.ns6){
		if (bw.platform=="win32") document.write("<link rel='STYLESHEET' type='text/css' href='"+csspath+"css/win_ns6.css'>")
		else if (bw.platform=="mac") document.write("<link rel='STYLESHEET' type='text/css' href='"+csspath+"css/mac_ns6.css'>")
		else if (bw.platform=="linux") document.write("<link rel='STYLESHEET' type='text/css' href='"+csspath+"css/linux_ns6.css'>")
		else if (bw.platform=="other") document.write("<link rel='STYLESHEET' type='text/css' href='"+csspath+"css/other.css'>")
	}
}

else if (bw.op){
		if (bw.platform=="win32") document.write("<link rel='STYLESHEET' type='text/css' href='"+csspath+"css/win_opera.css'>")
		else if (bw.platform=="linux") document.write("<link rel='STYLESHEET' type='text/css' href='"+csspath+"css/linux_opera.css'>")
		else if (bw.platform=="other") document.write("<link rel='STYLESHEET' type='text/css' href='"+csspath+"css/other.css'>")
}

else{
	document.write("<link rel='STYLESHEET' type='text/css' href='"+csspath+"css/other.css'>")
}
