
function changebg()
{
document.getElementById("home").style.className="td_off"
}





// Date & Time JS:
var dt;

window.onload=showTime();
function showTime(){
	var now=new Date();
	var months = new Array(13);
	months[0]  = "January";
	months[1]  = "February";
	months[2]  = "March";
	months[3]  = "April";
	months[4]  = "May";
	months[5]  = "June";
	months[6]  = "July";
	months[7]  = "August";
	months[8]  = "September";
	months[9]  = "October";
	months[10] = "November";
	months[11] = "December";
	
	var days=new Array(7);
	days[0]="Sunday";
	days[1]="Monday";
	days[2]="Tuesday";
	days[3]="Wednesday";
	days[4]="Thursday";
	days[5]="Fridayday";
	days[6]="Saturday";
	
	var day=days[now.getDay()];
	var month=months[now.getMonth()];
	var year=now.getYear();
	var dateString=day + ", "+ now.getDate() +" "+ month + " " + year
	
//	//time function
//	var today=new Date()
//	var h=today.getHours()
//	var m=today.getMinutes()
//	var s=today.getSeconds()
//	
//	// add a zero in front of numbers<10
//	m=checkTime(m)
//	s=checkTime(s)
//	t=setTimeout('showTime()',500)
	
return dateString //+" "+ h+":"+m; - we don't need the time #hind#
}
 
//function checkTime(i){
//	if (i<10){
//		i="0" + i
//	}
//	return i
//}

// mini-menu tabs JS
function animate(arr){
	var sess;
	var image1on;
	var image2on;
	var image3on;
	var image1off;
	var image2off;
	var image3off;
	image1on = "url(gif/g-2.jpg)";
	image2on = "url(gif/g-1.jpg)";
	image3on = "url(gif/g-3.jpg)";
	image1off = "url(gif/g-2a.jpg)";
	image2off = "url(gif/g-1a.jpg)";
	image3off = "url(gif/g-3a.jpg)";
	
	//1
	if (arr==1){
		document.getElementById("tab1").style.backgroundImage=image1on;
		document.getElementById("Htab1_pnl1").style.display = "inline";
	}else{
		document.getElementById("tab1").style.backgroundImage=image1off;
		document.getElementById("Htab1_pnl1").style.display = "none";
	}
	
	//2
	if (arr==2){
		document.getElementById("Htab1_pnl2").style.display = "inline";
		document.getElementById("tab2").style.backgroundImage=image2on;
	}else{
		document.getElementById("Htab1_pnl2").style.display = "none";
		document.getElementById("tab2").style.backgroundImage=image2off;
	}
	
	//3
	if (arr==3){
		document.getElementById("Htab1_pnl3").style.display = "inline";
		document.getElementById("tab3").style.backgroundImage=image3on;
	}else{
		document.getElementById("Htab1_pnl3").style.display = "none";
		document.getElementById("tab3").style.backgroundImage=image3off;
	}
	
//	 //4
//	 if (arr==4){
//		 document.getElementById("Htab1_pnl4").style.display = "inline";
//		 document.getElementById("img4").style.backgroundImage=imageon;
//		 //document.getElementById("img4").style.display = "inline";
//	}else{
//		document.getElementById("Htab1_pnl4").style.display = "none";
//		document.getElementById("img4").style.backgroundImage=imageoff;
//		//document.getElementById("img4").style.display = "inline";
//	}
}
