//browsercheck

var browserType = navigator.appName
var browserOS = navigator.platform
//IE for Windows
if(browserType.indexOf("Microsoft")!=-1 && browserOS.indexOf("Win32")!=-1){
browserType = "IE"
browserOS = "Windows"
//alert("IE for Windows")
document.writeln("<link rel='stylesheet' href='css/ie.css'>")
}
//Netscape for Windows
else if(browserType.indexOf("Netscape")!=-1 && browserOS.indexOf("Win32")!=-1){
browserType = "NS"
browserOS = "Windows"
//alert("Netscape for Windows")
document.writeln("<link rel='stylesheet' href='css/ns.css'>")
}
//anything else
else {
browserType = "unknown"
document.writeln("<link rel='stylesheet' href='css/ie.css'>")
}

function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0
	this.ie4=(document.all && !this.dom)?1:0
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0
	this.ns4=(document.layers && !this.dom)?1:0
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}
bw=new checkBrowser()

//Display Date Function
//year function
function getFullYear(d) {
	var y = d.getYear()
	if (y < 1000) y+=1900
	return y
}

	today=new Date();
	day=today.getDate();
	//year=today.getYear();
	year=getFullYear(today)
	month=today.getMonth()+1;

	//get month
	if (month==1) { monthname=("January") }
	else if (month==2) { monthname=("February") }
	else if (month==3) { monthname=("March") }
	else if (month==4) { monthname=("April") }
	else if (month==5) { monthname=("May") }
	else if (month==6) { monthname=("June") }
	else if (month==7) { monthname=("July") }
	else if (month==8) { monthname=("August") }
	else if (month==9) { monthname=("September") }
	else if (month==10) { monthname=("October") }
	else if (month==11) { monthname=("November") }
	else { monthname=("December") }
	//get day
	if (month==1) Mill=365-(day);
	else if (month==2) Mill=365-(day+31);
	else if (month==3) Mill=365-(day+59);
	else if (month==4) Mill=365-(day+90);
	else if (month==5) Mill=365-(day+120);
	else if (month==6) Mill=365-(day+151);
	else if (month==7) Mill=365-(day+181);
	else if (month==8) Mill=365-(day+212);
	else if (month==9) Mill=365-(day+243);
	else if (month==10) Mill=365-(day+273);
	else if (month==11) Mill=365-(day+304);
	else Mill=31-day;
	//get year
	//if (year<100) year="19" + year;


