mac=(navigator.appVersion.indexOf('Mac')!=-1)?true:false;
ie=(navigator.appName.charAt(0) == "M")?true:false;
ver=navigator.appVersion.charAt(0);

document.write("<STYLE TYPE='text/css'><!--")

now = new Date();
wMon = now.getMonth() + 1;
if (wMon == 1) {
	document.write("body { background:#9097AB }");
} else if (wMon == 2) {
	document.write("body { background:#314965 }");
} else if (wMon == 3) {
	document.write("body { background:#A6516E }");
} else if (wMon == 4) {
	document.write("body { background:#E9AB27 }");
} else if (wMon == 5) {
	document.write("body { background:#4A8B47 }");
} else if (wMon == 6) {
	document.write("body { background:#712096 }");
} else if (wMon == 7) {
	document.write("body { background:#207E96 }");
} else if (wMon == 8) {
	document.write("body { background:#C8343B }");
} else if (wMon == 9) {
	document.write("body { background:#88B93A }");
} else if (wMon == 10) {
	document.write("body { background:#44329C }");
} else if (wMon == 11) {
	document.write("body { background:#856624 }");
} else if (wMon == 12) {
	document.write("body { background:#A0A144 }");
} else {
	document.write("body { background:#CCCCCC }");
}

if(mac){
	//FOR MACINTOSH IE NS
	document.write(".e9{font-size:9px}")
	document.write(".e10{font-size:10px}")
	document.write(".e12{font-size:12px}")
	document.write(".e16{font-size:16px}")
	document.write(".e18{font-size:18px}")
	document.write(".j9{font-size:9px}")
	document.write(".j10{font-size:10px}")
	document.write(".j12{font-size:12px}")
	document.write(".j12m{font-size:12px; line-height:18px}")
	document.write(".j14{font-size:14px}")
	document.write(".j16{font-size:16px}")
	document.write(".j18{font-size:18px}")
	document.write("a { color:#333333; text-decoration: none}")
	document.write("a:hover { color:#333333; text-decoration: underline}")
}
else{
	if(ie){
		//FOR WINDOWS IE
		document.write(".e9{font-size:9px; line-height:11px}")
		document.write(".e10{font-size:10px; line-height:12px}")
		document.write(".e12{font-size:12px; line-height:15px}")
		document.write(".e16{font-size:16px; line-height:19px}")
		document.write(".e18{font-size:18px; line-height:22px}")
		document.write(".j9{font-size:10px; line-height:12px}")
		document.write(".j10{font-size:11px; line-height:12px}")
		document.write(".wn11{font-size:11px; line-height:12px; color:#FFFFFF}")
		document.write(".j12{font-size:12px; line-height:16px}")
		document.write(".j12m{font-size:12px; line-height:18px}")
		document.write(".j14{font-size:14px; line-height:17px; letter-spacing:1.5px}")
		document.write(".j16{font-size:16px; line-height:19px}")
		document.write(".j18{font-size:16px; line-height:22px}")
		document.write("a { color:#333333; text-decoration: none}")
		document.write("a:hover { color:#333333; text-decoration: underline}")
	}
	else{
		if(ver<5){
			//FOR WINDOWS NETSCAPE 4.x
			document.write(".e9{font-size:11px}")
			document.write(".e10{font-size:11px; line-height:11px}")
			document.write(".e12{font-size:14px}")
			document.write(".e16{font-size:18px}")
			document.write(".e18{font-size:19px}")
			document.write(".j9{font-size:10px; line-height:11px}")
			document.write(".j10{font-size:11px; line-height:12px}")
			document.write(".j12{font-size:14px; line-height:15px}")
			document.write(".j12m{font-size:14px; line-height:15px}")
			document.write(".j14{font-size:15px; line-height:18px; letter-spacing:1.5px}")
			document.write(".j16{font-size:16px; line-height:19px}")
			document.write(".j18{font-size:18px; line-height:20px}")
			document.write("a { color:#333333; text-decoration: none}")
			document.write("a:hover { color:#333333; text-decoration: underline}")
		} 
		else {
			//FOR WINDOWS NETSCAPE 6.x
			document.write(".e9{font-size:11px}")
			document.write(".e10{font-size:11px; line-height:11px}")
			document.write(".e12{font-size:14px}")
			document.write(".e16{font-size:18px}")
			document.write(".e18{font-size:19px}")
			document.write(".j9{font-size:10px; line-height:11px}")
			document.write(".j10{font-size:11px; line-height:12px}")
			document.write(".j12{font-size:12px; line-height:15px}")
			document.write(".j12m{font-size:12px; line-height:18px}")
			document.write(".j14{font-size:14px; line-height:17px;}")
			document.write(".j16{font-size:16px; line-height:19px}")
			document.write(".j18{font-size:18px; line-height:22px}")
			document.write("a { color:#333333; text-decoration: none}")
			document.write("a:hover { color:#333333; text-decoration: underline}")
		}
	}
}
document.write("--></STYLE>");


/* Functions that swaps images. */
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

/* Functions that handle preload. */
function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_nbGroup(event, grpName) { //v3.0
	var i,img,nbArr,args=MM_nbGroup.arguments;
	if (event == "init" && args.length > 2) {
		if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
			img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
			if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
			nbArr[nbArr.length] = img;
			for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
				if (!img.MM_up) img.MM_up = img.src;
				img.src = img.MM_dn = args[i+1];
				nbArr[nbArr.length] = img;
			}
		}
	} else if (event == "over") {
		document.MM_nbOver = nbArr = new Array();
		for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
			if (!img.MM_up) img.MM_up = img.src;
			img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
			nbArr[nbArr.length] = img;
		}
	} else if (event == "out" ) {
		for (i=0; i < document.MM_nbOver.length; i++) {
			img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up;
		}
	} else if (event == "down") {
		if ((nbArr = document[grpName]) != null)
		for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
		document[grpName] = nbArr = new Array();
		for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
			if (!img.MM_up) img.MM_up = img.src;
			img.src = img.MM_dn = args[i+1];
			nbArr[nbArr.length] = img;
		}
	}
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  if (selObj.options[selObj.selectedIndex].value) {
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  }
  if (restore) selObj.selectedIndex=0;
}
function ShowLayer(lName){
	if(document.getElementById) {			//IE5,6 N6
		document.getElementById(lName).style.visibility='visible';
	} else if(document.all) {		//IE4
		document.all(lName).style.visibility='visible';
	} else if(document.layers) {	//NN4
		document.layers[lName].visibility='show';
	}
}
function HideLayer(lName){
	if(document.getElementById) {			//IE5,6 N6
		document.getElementById(lName).style.visibility='hidden';
	} else if(document.all) {		//IE4
		document.all(lName).style.visibility='hidden';
	} else if(document.layers) {	//NN4
		document.layers[lName].visibility='hide';
	}
}

