$(document).ready(function(){

	$(".menu_image").mouseover(function(){
		var n=$(this).attr('src');
		if(n.substr(n.length-5,1)=='0'){
			$(this).attr('src',n.substr(0,n.length-5)+'1.gif');
		}
	});

	$(".menu_image").mouseout(function(){
		var n=$(this).attr('src');
		if(n.substr(n.length-5,1)=='1'){
			$(this).attr('src',n.substr(0,n.length-5)+'0.gif');
		}
	});

	$("#nl").click(function(){
		var pathname = window.location.pathname;
		window.location=pathname+"?language=nl";
	});
	$("#eng").click(function(){
		var pathname = window.location.pathname;
		window.location=pathname+"?language=en";
	});


	var h=$(window).height(); 
	if(h>$('#float_obj').height()){
		$('#float_obj').makeFloat({x:'current',y:'current',speed:'fast'});
	}

	$(function(){ 
		$(window).resize(function(){ 
			var h = $(window).height(); 
			var w = $(window).width(); 

			if(h>$('#float_obj').height()){
				$('#float_obj').stopFloat();
				$('#float_obj').restartFloat({x:'current',y:'current',speed:'fast'});
			}else{
				$('#float_obj').stopFloat();
			}
		}); 
	}); 


});
