// functions that check the browser and give him the correct stylesheet => ns4 ;-(
//-- Browsercheck (c) Tweakers.net http://www.tweakers.net
function BrowserCheck() {
	var b = navigator.appName;
	if (b=="Netscape") this.b = "ns";
	else if (b=="Microsoft Internet Explorer") this.b = "ie";
	this.v = parseInt(navigator.appVersion);
	
	this.ns4 = (this.b=="ns" && this.v<=4);
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0);
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0);
	this.ie6 = (navigator.userAgent.indexOf('MSIE 6')>0);
	this.moz = (this.b=="ns" && this.v>=5);
}

//-- (c) cfdev.com
function getQueryVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (pair[0] == variable) {
      return pair[1];
    }
  } 
  return 0;
}

is = new BrowserCheck();

//-- Netscape 4 
if(is.ns4) {
	if(getQueryVariable("style") != "ns4")
	{
		document.location="?"+window.location.search.substring(1)+"&style=ns4";
	}
}