// *****************************************************************
function CClientIs() {
	var agt=navigator.userAgent.toLowerCase();

    this.major = parseInt(navigator.appVersion);
    
	this.nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
	this.nav4up = (this.nav && (this.major >= 4));
	this.nav6 = (this.nav && (this.major == 5));
    this.nav6up = (this.nav && (this.major >= 5));
    
    this.ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    this.ie4    = (this.ie && (this.major == 4) && (agt.indexOf("msie 5")==-1) );
    this.ie4up  = (this.ie  && (this.major >= 4));
    this.ie5    = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    this.ie5up  = (this.ie  && !this.ie3 && !this.ie4);
    this.ie5_5  = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.5") !=-1));
    this.ie5_5up =(this.ie && !this.ie3 && !this.ie4 && !this.ie5);
    
    this.opera = (agt.indexOf("opera") != -1);
    this.opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);
    this.opera5up = (this.opera && !this.opera2 && !this.opera3 && !this.opera4);
    
    // ** PLATFORM **
    // ** checks only after Mac versions. All other platforms are treated as they where PCWin.
	this.mac    = (agt.indexOf("mac")!=-1);
    this.mac68k = (this.mac && ((agt.indexOf("68k")!=-1) || 
                               (agt.indexOf("68000")!=-1)));
    this.macppc = (this.mac && ((agt.indexOf("ppc")!=-1) || 
                                (agt.indexOf("powerpc")!=-1)));
                                
    
	this.flashtype = true;

	this.flashplugin = false;

	var mimetype = navigator.mimeTypes["application/x-shockwave-flash"];

	if (mimetype)

	{

	   var plugin = mimetype.enabledPlugin;

	   if (plugin) {this.flashplugin  = true;}

	}

	else this.flashtype = false;

    
}

var is;
var isIE3Mac = false;
// this section is designed specifically for IE3 Mac

if ((navigator.appVersion.indexOf("Mac")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1) && (parseInt(navigator.appVersion)==3))
       isIE3Mac = true;
else   is = new CClientIs(); 

if (!isIE3Mac) {
	//if ((is.ie) && (!is.mac)) document.write('<link rel="stylesheet" type="text/css" href="inc/style_PC_IE.css">')
	//else if ((is.nav) && (!is.mac)) document.write('<link rel="stylesheet" type="text/css" href="inc/style_PC_NS.css">')
	//else if ((is.ie) && (is.mac)) document.write('<link rel="stylesheet" type="text/css" href="inc/style_Mac_IE.css">')
	//else if ((is.nav) && (is.mac)) document.write('<link rel="stylesheet" type="text/css" href="inc/style_Mac_NS.css">')
	document.write('<link rel="stylesheet" type="text/css" href="inc/styles.css">')
}

//***********************************************************************************************************************

if (is.nav4up) {
	width = window.innerWidth
	height= window.innerHeight
	window.onResize = resizeFix
}
function resizeFix() {
	if (width != window.innerWidth || height != window.innerHeight)
	document.location.href = document.location.href
}