

// Script improved by Hyperdog.se



var style = "";



function client_check() {

	// browser/OS check

	var b=navigator.appName;

	if ((b=="Opera") || (navigator.userAgent.indexOf("Opera")>0)){

		this.b = "opera";

	}

	else if (b=="Netscape"){

		this.b="ns";

	}

	else if (b=="Microsoft Internet Explorer"){

		this.b="ie";

	}

	if (!b){

		this.b="?";

	}

	this.version=navigator.appVersion;

	this.v=parseInt(this.version);

	if (document.createElement && document.appendChild && document.getElementsByTagName && (this.b!="ie") && (this.b!="opera")){

		this.b = "dom";

	}

	var ua=navigator.userAgent.toLowerCase();

	if (ua.indexOf("win")>-1){

		this.os="win";

	}

	else if (ua.indexOf("mac")>-1){

		this.os="mac";

	}

	else{

		this.os="other";

	}

	// Use this stylesheet

	style = "css/"+this.b+".css";



	// Check for flash

	this.flash = 0;

	if (this.b == "ie" && this.os == "win") {

		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');

		document.write('on error resume next \n');

		document.write('flash3 = false \n');

		document.write('flash4 = false \n');

		document.write('flash5 = false \n');

		document.write('flash6 = false \n');

		document.write('flash3 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');

		document.write('flash4 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');

		document.write('flash5 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');

		document.write('flash6 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');

		document.write('</SCR' + 'IPT\> \n');

		if (flash3) this.flash = 3;

		if (flash4) this.flash = 4;

		if (flash5) this.flash = 5;

		if (flash6) this.flash = 6;

	}

	else {

		if (navigator.plugins["Shockwave Flash"]) {

			var flashDescription = navigator.plugins["Shockwave Flash"].description;

			var flashver = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));

			this.flash = flashver;

		}

	}

}

// Run

check = new client_check();

print_css();



