/**** copyright Gillean Lazelle 2011 ****/

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 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 */


