// -------------------------------------------------
// ----- © andy meier, mindpilot digital design
// -------------------------------------------------

//alert(navigator.platform + " / " +navigator.appVersion)

var basepath = "http://www.mindpilot.ch"
//var basepath = "file:///Dateien%20iMac/MINDPilot/website%20-%20mindpilot%20neu/www.mindpilot.ch/httpdocs"

if(navigator.platform.indexOf('Mac',0)+1){

	// -- microsoft compatible browser
	
	if(navigator.appVersion.indexOf('MSIE',0)+1){
		//alert('mac msie')
		
		if(navigator.appVersion.indexOf('5',0)+1){
		//alert('new msie mac');
		document.write("<link rel=\"stylesheet\" href=\"" + basepath + "/css/mac_small.css\">")
		} 
		else { 
		// alert('old msie mac')
		document.write("<link rel=\"stylesheet\" href=\"" + basepath + "/css/mac.css\">")
		}
		
	}
	else {
	
		if(navigator.appVersion.indexOf('55',0)+1
		||navigator.appVersion.indexOf('6',0)+1
		||navigator.appVersion.indexOf('7',0)+1){
		//alert('mac netscape hoeher als 5')
		document.write("<link rel=\"stylesheet\" href=\"" + basepath + "/css/mac_small.css\">")
		}
	
	else {

	//alert('mac netscape vor 5.0')
	document.write("<link rel=\"stylesheet\" href=\"" + basepath + "/css/mac.css\">")
	}
}

} 

// --- its a windoze

else if(navigator.platform.indexOf('Win',0)+1) {

	if(navigator.appVersion.indexOf('MSIE',0)+1){

		if(navigator.appVersion.indexOf('NT',0)+1){
		//alert('win NT msie');
		document.write("<link rel=\"stylesheet\" href=\"" + basepath + "/css/win_98nt.css\">")
		} else {
		//alert('win 9X msie '+navigator.appVersion);
		document.write("<link rel=\"stylesheet\" href=\"" + basepath + "/css/win.css\">")
		}
	}
	else {
	//alert('oha netscape')

	if(navigator.appVersion.indexOf('NT',0)+1){
	//alert('oha win NT Netscape');
	document.write("<link rel=\"stylesheet\" href=\"" + basepath + "/css/win_moz_98nt.css\">")
	} else {
	document.write("<link rel=\"stylesheet\" href=\"" + basepath + "/css/win_moz.css\">")}
	}

}

else{
	//alert('other');
		document.write("<link rel=\"stylesheet\" href=\"" + basepath + "/css/other.css\">")
}