/*$(document).ready(function(){
		setInterval( "ImageRotation()", 5000 );// Auto image rotation for Home Page.
});

	
	$(function() {
		// set opacity to nill on page load
		$("ul#menu a").append("<span style='margin-bottom:5px'></span>");

		
		$("ul#menu span").css("opacity","0");
		// on mouse over
		$("ul#menu span").hover(function () {
			// animate opacity to full
			$(this).stop().animate({
				opacity: 1
			}, 'fast');
		},
		// on mouse out
		function () {
			// animate opacity to nill
			$(this).stop().animate({
				opacity: 0
			}, 'normal');
		});
	});
	
	$(function() {
		// set opacity to nill on page load
		$("ul#menu_en a").append("<span></span>");

		
		$("ul#menu_en span").css("opacity","0");
		// on mouse over
		$("ul#menu_en span").hover(function () {
			// animate opacity to full
			$(this).stop().animate({
				opacity: 1
			}, 'fast');
		},
		// on mouse out
		function () {
			// animate opacity to nill
			$(this).stop().animate({
				opacity: 0
			}, 'normal');
		});
	});
	
$(document).ready(function(){
	
				//Caption Sliding (Partially Hidden to Visible)
				$('.boxgrid.caption').hover(function(){
					$(".cover", this).stop().animate({top:'100px'},{queue:false,duration:320});
				}, function() {
					$(".cover", this).stop().animate({top:'145px'},{queue:false,duration:320});
				});
			});


 
function ImageRotation()
	{
			
			var ActiveImage = $('DIV#ImageRotation IMG.active');
			var Next=$(ActiveImage).next().length;
			var $IMAGE =  ActiveImage.next().length ? $(ActiveImage).next() : $('DIV#ImageRotation IMG:first');
			
			
			$(ActiveImage).removeClass("active"); //Remove Class Active form Active Image
			$IMAGE.css({opacity: 0.0}) // to New Active Image. Change the Opacity  0 Add Active Class and Remove HideImage Class
			.removeClass("imghide")
			.addClass('active')
			.animate({opacity: 1.0}, 1000, function() {
			// During the Opacity Make the Movemake Slow									
					$(ActiveImage).removeClass("active").addClass("imghide");
			});
		
		// Stop Link To go anywhere.
		return false;
	
			
	}
*/

function checkForm() {
  Fullname = document.getElementById("Fullname").value;
  email = document.getElementById("email").value;
  Subject = document.getElementById("Subject").value;
  Comments = document.getElementById("Comments").value;
 
  if (Fullname == "") {
  hideAllErrors();
document.getElementById("FullnameError").style.display = "inline";
document.getElementById("Fullname").select();
document.getElementById("Fullname").focus();
  return false;
  } else if (email == "" || (email.indexOf(".") < 2) && (email.indexOf("@") <= 0)) {
hideAllErrors();
document.getElementById("emailError").style.display = "inline";
document.getElementById("email").select();
document.getElementById("email").focus();
  return false;
  } else if (Subject == "") {
hideAllErrors();
document.getElementById("subjectError").style.display = "inline";
document.getElementById("Subject").select();
document.getElementById("Subject").focus();
  return false;
  } else if (Comments == "") {
hideAllErrors();
document.getElementById("CommentsError").style.display = "inline";
document.getElementById("Comments").select();
document.getElementById("Comments").focus();
  return false;
  }
  return true;
  }
 
function hideAllErrors() {
document.getElementById("FullnameError").style.display = "none"
document.getElementById("emailError").style.display = "none"
document.getElementById("subjectError").style.display = "none"
document.getElementById("CommentsError").style.display = "none"
  }

function unhide(divID) {
  var item = document.getElementById(divID);
  if (item) {
    item.className=(item.className=='hidden')?'unhidden':'hidden';
  }
}

function hide(divID) {
  var item = document.getElementById(divID);
  if (item) {
    item.className=(item.className=='unhidden')?'hidden':'unhidden';
  }
}
