$(document).ready(function(){
	$("#content_header1").fadeTo("fast", 0);
	$("#content_header2").fadeTo("fast", 0);
	$("#content_header3").fadeTo("fast", 0);
	
	$("#live_menu_topic_1_id").hover(function(){
		$("#content_text_header1").fadeTo("slow", 1.0);
		$("#content_header1").fadeTo("slow", 0.7);
		$("#live_menu_img_1").fadeTo("slow", 1.0);
		},function(){
			$("#content_header1").fadeTo("slow", 0);
			$("#live_menu_img_1").fadeTo("slow", 0);
			$("#content_text_header1").fadeTo("slow", 0);
		});

	$("#live_menu_topic_2_id").hover(function(){
		$("#content_text_header2").fadeTo("slow", 1.0);
		$("#content_header2").fadeTo("slow", 0.7);
		$("#live_menu_img_2").fadeTo("slow", 1.0);		
		},function(){
			$("#content_header2").fadeTo("slow", 0);
			$("#live_menu_img_2").fadeTo("slow", 0);
			$("#content_text_header2").fadeTo("slow", 0);
		});			
	
	$("#live_menu_topic_3_id").hover(function(){
		$("#content_text_header3").fadeTo("slow", 1.0);
		$("#content_header3").fadeTo("slow", 0.7);
		$("#live_menu_img_3").fadeTo("slow", 1.0);
		},function(){
			$("#content_header3").fadeTo("slow", 0);
			$("#live_menu_img_3").fadeTo("slow", 0);
			$("#content_text_header3").fadeTo("slow", 0);
		});
		
		
	});
    
function lookup(inputString) {
   if(inputString.length == 0) {
      $('#suggestions').fadeOut(); // Hide the suggestions box
      
   } else {
        if(inputString == '' || inputString == 'Zoeken') {
            $('#suggestions').fadeOut(); // Hide the suggestions box
        } else {
          $.post("php/rpc.php", {queryString: ""+inputString+""}, function(data) { // Do an AJAX call
             $('#suggestions').fadeIn(); // Show the suggestions box
             $('#suggestions').html(data); // Fill the suggestions box
          });
      }
   }
}
function combinatiePage(valueString) {

    getPage(valueString);
    txtName.value = ''; 
    $('#suggestions').fadeOut();
       
}
function legen() {
    txtName.value = '';
}

$('#whatsnew').click(function(){
	$('#whatsnewcontent').slideToggle('slow')
});
