$(document).ready(function() 
	{
		
		var selectmenu=document.getElementById("language")
		selectmenu.onchange=function()
			{
				var chosenoption=this.options[this.selectedIndex] 
		
				if (chosenoption.value!="nothing")
					{location.replace(chosenoption.value)}
			}
		
		// cufon styles
		Cufon.replace('h2');
		Cufon.replace('#navigation h3');
		Cufon.replace('.anythingSliderNews h3');	
		Cufon.replace('.title h2', { fontFamily: 'eurostile extended'});
		Cufon.replace('.contentBoxHead h2', { fontFamily: 'eurostileBold' });
		Cufon.replace('#producten h2.title', { fontFamily: 'eurostileBold' });
	
		// sidebar hoogte instellen voor achtergrond
	//	var height = $('#container').css('height');
	//	$("#sideNavigation").height(height);
		
		// hele div is link 
		$(".contentBox").click(function(){window.location=$(this).find("a").attr("href");return false;});
		
		// headers aanpassen
		$(".contentBoxHead").css("opacity", 1.0);
		
		// hoverbox voor bio
		$("#bio").hover( 
			function() 
				{
					$("#bio .contentBoxHead").css("opacity", 0.6);
				},
			function() 
				{
					$("#bio .contentBoxHead").css("opacity", 1.0);
				});

		// hoverbox voor hydro
		$("#hydro").hover( 
			function() 
				{
					$("#hydro .contentBoxHead").css("opacity", 0.6);
				},
			function() {
					$("#hydro .contentBoxHead").css("opacity", 1.0);
				});

		// hoverbox voor coco
		$("#coco").hover( 
			function() 
				{
					$("#coco .contentBoxHead").css("opacity", 0.6);
				},
				function() {
					$("#coco .contentBoxHead").css("opacity", 1.0);
				});

 var lang = $("#imagebox").attr("class");

		$("#imageboxVoeding").hover(
      		function () 
      			{
					$("#imageboxVoeding").attr("src", "http://www.cellmax.nl/images/imagebox/"+lang+"/imagebox_voeding_hover.png");
  				}, 
      		function ()
      			{
        			$("#imageboxVoeding").attr("src", "http://www.cellmax.nl/images/imagebox/"+lang+"/imagebox_voeding.png");
      			});


		$("#imageboxSubstraat").hover(
      		function () 
      			{
					$("#imageboxSubstraat").attr("src", "http://www.cellmax.nl/images/imagebox/"+lang+"/imagebox_substraat_hover.png");
  				}, 
      		function () 
      			{
        			$("#imageboxSubstraat").attr("src", "http://www.cellmax.nl/images/imagebox/"+lang+"/imagebox_substraat.png");
      			});

		$("#imageboxToevoeging").hover(
      		function ()
      			{
					$("#imageboxToevoeging").attr("src", "http://www.cellmax.nl/images/imagebox/"+lang+"/imagebox_toevoeging_hover.png");
  				}, 
      		function () 
      			{
        			$("#imageboxToevoeging").attr("src", "http://www.cellmax.nl/images/imagebox/"+lang+"/imagebox_toevoeging.png");
      			});
      			

      
     }); // document ready
     

