modules = new Object();

modules.initialize			= true;
modules.imgrollover 		= true;
modules.divinit				= true;
modules.divmove				= true;

function csDetect() {
    var agent   = navigator.userAgent.toLowerCase();
    this.major  = parseInt(navigator.appVersion);
    this.minor  = parseFloat(navigator.appVersion);

    this.ns     = ((agent.indexOf('mozilla')	!= -1) &&
                  (agent.indexOf('spoofer')		== -1) &&
                  (agent.indexOf('compatible')	== -1) &&
                  (agent.indexOf('opera')		== -1) &&
                  (agent.indexOf('webtv')		== -1));
    this.ns2    = (this.ns && (this.major		==  2));
    this.ns3    = (this.ns && (this.major		==  3));
    this.ns4    = (this.ns && (this.major		==  4));
    this.ns6    = (this.ns && (this.major		>=  5));

    this.ie     = ((agent.indexOf("msie")		!= -1) &&
                  (agent.indexOf("opera")		== -1));
    this.ie3    = (this.ie && (this.major		<   4));
    this.ie4    = (this.ie && (this.major		==  4) &&
                  (agent.indexOf("msie 5.0")	== -1) &&
                  (agent.indexOf("msie 5.5")	== -1));
	this.ie45	= (this.ie && (this.major		==  4) &&
				  (agent.indexOf('msie 4.5')	>   0));
    this.ie5    = (this.ie && (this.major		==  5) &&
                  (agent.indexOf("msie 5.0")	!= -1));
    this.ie55   = (this.ie && (this.major		==  5) &&
                  (agent.indexOf("msie 5.5")	!= -1));
    this.ie6   = (this.ie && (this.major		==  6) &&
                  (agent.indexOf("msie6")	!= -1));
    this.ieX    = (this.ie && !this.ie3 && !this.ie4 && !this.ie5 && !this.ie55);

    this.op     = (agent.indexOf('opera')		!= -1);
    this.op5    = ((this.op && this.major		==  4) &&
                  (agent.indexOf("msie 5.0")	!= -1));

    this.mac = navigator.appVersion.indexOf('Mac') != -1;
    this.win = agent.indexOf('win') != -1;
	this.min = (this.ns||this.ie);

	this.class5 = (this.ie6|this.ns6||this.ie5||this.ie55||this.op5);
	this.class4 = (this.ie45||(this.ie4 && !this.mac)||(this.ns4 && (this.minor >= 4.09)));
	this.class3 = (this.ie3||this.ns3||this.ie3||(this.ie4 && this.mac)||(this.ns4 && (this.minor >= 4) && (this.minor <= 4.09)));
	this.class2 = (this.ie2||this.ns2);
	this.class0 = !(this.class2||this.class3||this.class4||this.class5)
}
csB = new csDetect()

for (module in modules) {
	currentModule = eval("modules." + module);
	if (currentModule) {
		document.write ("<script language='javascript' src='scripts/csinc_" + module + ".js'></script>");
	}
}

