/**** copyright Gillean Lazelle 2005 ****/

function show(element){
		document.getElementById(element).style.visibility = 'visible';		
}
	
function hide(element){
		document.getElementById(element).style.visibility = 'hidden';
}
	
function changeClass(element, newClass){
	document.getElementById(element).className= newClass;
}

function changebg(imgno){
	document.getElementById('ban').style.backgroundImage='url(images/banner'+ imgno + '.jpg)';

//alert(imgno);
	
}

function seasonchange(){
	
var thismnth=new Date();

var newmnth=thismnth.getMonth();

//alert(newmnth);

	if (newmnth==2 || newmnth==3 || newmnth==4)
	{
	//alert("spring")
	document.getElementById('ban').style.backgroundImage='url(images/banner1.jpg)';
	}
	else if (newmnth==5 || newmnth==6 || newmnth==7)
	{
	//alert("summer");
	document.getElementById('ban').style.backgroundImage='url(images/banner2.jpg)';
	}
	else if (newmnth==8 || newmnth==9 || newmnth==10)
	{
	document.getElementById('ban').style.backgroundImage='url(images/banner3.jpg)';
	}
	else if (newmnth==11 || newmnth==0 || newmnth==1)
	{
	document.getElementById('ban').style.backgroundImage='url(images/banner4.jpg)';
	}

}


/*function datelm(){
//var dateObj = new Date(document.lastModified);
var lmonth = new Date(document.lastModified).getMonth() + 1;
var xmonth = new String(lmonth);
	if (xmonth.length < 2){
	xmonth="0"+xmonth;	
	}	
var date = new Date(document.lastModified).getDate();
var ydate = new String(date);
	if (ydate.length < 2){
	ydate="0"+ydate;	
	}	
var fyear = new Date(document.lastModified).getYear();
document.write(ydate + "/" + xmonth + "/" + fyear);
}*/

function errorCheck() {	
	if (document.email_form.name.value==""){
		alert("Please fill in the 'your name' field");
		return false;
	}
	if (document.email_form.visitormail.value==""){
		alert("Please fill in the 'your email' field");
		return false;
	}	
	if (document.email_form.subject.value==""){
		alert("Please fill in the 'subject' field");
		return false;
	}
	if (document.email_form.notes.value==""){
		alert("Please type a message");
		return false;
	}		
	else {				
		document.email_form.submit();		
	}
}


/* scroller */


