$(function(){
	
	if ($.browser.msie && $.browser.version < 7)
		$('img[src$=.png]').pngfix();

	$('img[data-hover],input[data-hover]').imghover();
	

	 $('#mainnavigation ul li:not(.active) a')
		.css( {backgroundPosition: "0 0"} )
		.mouseover(function(){
			$(this).stop().animate(
				{backgroundPosition:"(0 -170px)"}, 
				{duration:500})
			})
		.mouseout(function(){
			$(this).stop().animate(
				{backgroundPosition:"(0 0)"}, 
				{duration:500})
			})
			
	$('a.bttn, input.bttn')
		.css( {backgroundPosition: "0 0"} )
		.mouseover(function(){
			$(this).stop().animate(
				{backgroundPosition:"(0 -70px)"},
				{duration:500})
			})
		.mouseout(function(){
			$(this).stop().animate(
				{backgroundPosition:"(0 0)"},
				{duration:500})
			})
			
			
	$("#contactform").validate({
		rules: {
			name: "required",
			company: "required",
			email: {
				required: true,
				email: true
			},
			subject: "required",
			message: "required"
		},
		messages: {
			name: "Please enter your first- and lastname",
			company: "Please enter your company's name",
			email: "Please enter a valid email address",
			subject: "Please enter a subject",
			message: "Please enter your message"
		}
	});

});
