jQuery(document).ready(function($){
	$(".ln-list li").click(function(){//makes entire area "ln-list li" clickable
    	window.location=$(this).find("a").attr("href");return false;
	});
	
	$(".brochure").click(function(){//makes entire area "brochure" clickable
    	window.location=$(this).find("a").attr("href");return false;
	});	
	$.metadata.setType("attr", "validate");

	
	$("#contactform").validate({
       
      /* errorPlacement: function(error, element) {
			if ( element.is(":radio") )
				
				error.appendTo( element.prev().prev().next() );
	
			else if ( element.is(":checkbox") )
				error.appendTo ( element.next() );
			else
				error.appendTo( element.parent() );
		}*/

    });
	
	$("#adduser").validate({//download Form
		});
		
		$("#loginform").validate({
		});

	
		/*$("#newsletterform").validate({
									  
		errorPlacement: function(error, element) {
		if ( element.is(":text") )
			//error.appendTo( element.next().next() );
			
			//error.insertAfter(element).next();
			
			error.insertAfter('.newsletterClearer');

			

		else if ( element.is(":checkbox") )
		error.insertAfter('.newsletterClearer');
		
	}

    

    });*/

	

$('.search-input').focus(function(){
if(this.value=='Search this Website')
{
this.value=' '
}
});

$('#email').focus(function(){
if(this.value=='Enter your Email Address')
{
this.value=' '
}
});



	 
	Cufon.replace('h1');
	Cufon.replace('h2');	
	Cufon.replace('h3');	
	Cufon.replace('h4');
			
		});