$(document).ready(function(){

 
if(navigator.platform == 'iPad' || navigator.platform == 'iPhone' || navigator.platform == 'iPod')
{
     $("#footer").css("position", "static");
};



$('#header span.filter_search').hover(function(e) {
	
$('<p class="tooltip">Vul hier de naam (voornaam en/of achternaam) of titel in van het project dat u zoekt.</p>')
	.appendTo('body')
	.css('top', (e.pageY + 20) + 'px')
	.css('left', (e.pageX + 20) + 'px')
	.fadeIn('slow');
	
}, function() {
	$('.tooltip').remove();

}).mousemove(function(e) {
	$('.tooltip')
		.css('top', (e.pageY + 3) + 'px')
		.css('left', (e.pageX + 3) + 'px');

});

$('#main_left span.filter_search').hover(function(e) {
	
$('<p class="tooltip2">Vul hier de naam (voornaam en/of achternaam) of titel in van het project dat u zoekt.<br />Opgelet! Niet alle velden van de zoekfunctie moeten ingevuld zijn. U kan ook enkel op land of scenario zoeken.</p>')
	.appendTo('body')
	.css('top', (e.pageY + 20) + 'px')
	.css('left', (e.pageX + 20) + 'px')
	.fadeIn('slow');
	
}, function() {
	$('.tooltip2').remove();

}).mousemove(function(e) {
	$('.tooltip2')
		.css('top', (e.pageY + 3) + 'px')
		.css('left', (e.pageX + 3) + 'px');

});


  $('.mod_navigation li ul').css({
    display: "none",
    left: "auto"
  });
  
  $('.mod_navigation li').hover(function() {
    $(this)
      .find('ul')
      .stop(true, true)
      .slideDown('fast');
  }, function() {
    $(this)
      .find('ul')
      .stop(true,true)
      .fadeOut('fast');
  });
  
  $('.organisatie_logo').css({opacity: 0.75});
  $('.organisatie_logo').hover(function() {
  	$(this).css({opacity: 1});
  	}, function() {
  	$(this).css({opacity: 0.75});
  });
  
  $('#photo img, #home_text, .nojs').css({display: "none"});
  
  
  $('#photo img').fadeIn(2000, function() {
  		$('#home_text').fadeIn(2000);
  	});
  	
  	
  
  
});
