$(document).ready(function() {

    /*
    $("#aanmelden_va").validate({
	  rules: {
	    aanmelden_email: {
	      required: true,
	      email: true
	    }
	  }
	});
    */
    	
    // MENU-ROLLOVERS
	$('#menu li a').not('#menu .menu-current a').mouseover(function(){ 
		$(this).stop().animate({ 'color' : '#000000' }, 500);
		$(this).parent('li').stop().animate({ 'backgroundPosition' : '0px' }, 500);
		$('.menu-current').stop().animate({ 'backgroundPosition' : '-765px' }, 500);
		$('.menu-current').children('a').stop().animate({ 'color' : '#FFFFFF' }, 500);
	});
	$('#menu li a').not('#menu .menu-current a').mouseout(function(){ 
		$(this).parent('li').stop().animate({ 'backgroundPosition' : '-765px' }, 500);
		$(this).stop().animate({ 'color' : '#FFFFFF' }, 500);
		$('.menu-current').stop().animate({ 'backgroundPosition' : '0px' }, 500);
		$('.menu-current').children('a').stop().animate({ 'color' : '#000000' }, 500);
	});
	
	/*
	$('#aanmelden_email').focus(function(){ 
		if(this.value=='uw e-mailadres') {
			this.value='';
		}
	});
	$('#aanmelden_email').blur(function(){ 
		if(!$.trim(this.value).length) {
			this.value='uw e-mailadres';
		}
	});
	*/
	$("#categorie").change(function()
		{
   			 var selectedcategory = $(this).children(":selected").attr('value');
   			 
   			 if(selectedcategory == '-newcat-'){
				// alert('['+selectedcategory+']');
				$('#categorie_row').fadeIn('slow');
   			 }
   			 else {
				// alert('['+selectedcategory+']');
				$('#categorie_row').fadeOut('slow');
   			 }
		});
		
	/*
	$('#-newcat-').focus(function(){ 
		$('#categorie_row').fadeIn('slow');
		$('#categorie_row').animate('height');
	});
	$('#categorie option').not('#-newcat-').focus(function(){ 
		$('#categorie_row').fadeOut('fast');
	});
	*/

	$('#vacatureoverzicht tr:odd').not('#vacatureoverzichtfooter').css("background-color", "#e7e7e7")
	
});
