$(document).ready(function(){

	$.get("http://www.acsense.nl/resources/images/marketing_hover.png");
	$.get("http://www.acsense.nl/resources/images/software_hover.png");
		$.get("http://www.acsense.nl/resources/images/sales_hover.png");
	
	
	$("#marketing").hover(
 		 function () {
    		
			$(this).css("backgroundImage","url(resources/images/marketing_hover.png)");
			$("#marketing").css("opacity",0.5);
	  }, 
		  function () {
		
			$(this).css("backgroundImage","url(resources/images/marketing.png)");
			$("#marketing").css("opacity",1.0);
	  }
	);
	
	$("#software").hover(
 		 function () {
    		
			$(this).css("backgroundImage","url(resources/images/software_hover.png)");
			$("#software").css("opacity",0.5);
	  }, 
		  function () {
		
			$(this).css("backgroundImage","url(resources/images/software.png)");
			$("#software").css("opacity",1.0);
	  }
	);
	
	$("#sales").hover(
 		 function () {
    		
			$(this).css("backgroundImage","url(resources/images/sales_hover.png)");
			$("#sales").css("opacity",0.5);
	  }, 
		  function () {
		
			$(this).css("backgroundImage","url(resources/images/sales.png)");
			$("#sales").css("opacity",1.0);
	  }
	);
	
	
	$("#software").click(function(){
		window.location.href='software';
	});
	
	$("#marketing").click(function(){
		window.location.href='marketing';
	});
	
	$("#sales").click(function(){
		window.location.href='sales';
	});
		
	
});