function bgTabMenuMain (curDiv,curState) {
	if (document.getElementById) {
		if (document.getElementById(curDiv).childNodes) {
			a = document.getElementById(curDiv)
			b = a.childNodes;
			b[0].className = (curState == 'h')? 'menuMainLinkHoverLeft' : 'menuMainLinkLeft';
			b[1].className = (curState == 'h')? 'menuMainLinkHoverCenter' : 'menuMainLinkCenter';
			b[2].className = (curState=='h')? 'menuMainLinkHoverRight' : 'menuMainLinkRight';
		}
	}
}

var ns, ie, mz, op, OP, boxModel, browser, MS, NS, DHTML, DOM;

function getClientBrowser (debug) {
	if (document.layers)						{ ns = 4; ie = 0; mz = 0; op = 0; boxModel = "CSS"; browser='ns'; MS=0; NS=1;} 
	if (document.all)							{ ns = 0; ie = 4; mz = 0; op = 0; boxModel = "IE"; browser='ie4'; MS=1; NS=0;}
	if (!document.layers && !document.all)		{ ns = 0; ie = 0; mz = 1; op = 0; boxModel = "CSS"; browser='mz'; MS=0; NS=0;}
	if (window.opera) 							{ ns = 0; ie = 0; mz = 0; op = 1; boxModel = "CSS"; browser='op'; MS=0; NS=0;}
	if (document.getElementById && ie)					{ ie = 5; boxModel = "IE"; browser='ie5'}
	if (window.opera) 										{ OP  = 1; boxModel = "CSS"; }
		else OP=0;
	if (document.getElementById) 							{ DHTML = 1; DOM = 1; }
	if (document.all && !window.opera)						{ DHTML = 1; }
	if (window.netscape && window.screen && !DOM && !OP)	{ DHTML = 1; }
	
	if (ie && document.compatMode){
		if (document.compatMode == "CSS1Compat") {
			boxModel = "CSS";
			ie = 6;
			browser='ie6';
		}
		else if (document.compatMode == "BackCompat") boxModel = "IE";
		else boxModel = "CSS";
	}
	if (ie) {
		statement = navigator.appVersion;
		search = 'MSIE 7';
		if (statement.indexOf(search)) {
			ie=7;
			browser='ie7';
		}
	}
	if (debug) {
		alert('browser='+browser+'\nboxModel='+boxModel+'\nDHTML='+DHTML+'\nDOM='+DOM+'\nMS='+MS+'\nNS='+NS+'\nOP='+OP);
	}
}
getClientBrowser();

var formFocusColor = '#fee';
var formBlurColor = '#f0f0f0';