$(document).ready(function(){
	// Main navigation
	$("ul.sf-menu").superfish({
	   delay: 100,
	   speed: 'fast',
	   disableHI: true,
	   autoArrows: false,
	   dropShadows: false
	}); 
 	
	//Lightbox
	$("a[rel^='prettyPhoto']").prettyPhoto({
	   padding: 40,
	   showTitle: false,
	   theme: 'light_square'
   });

	// div clickable
	$(".news-item").click(function() {
		window.location = $(this).find("h1:first a:first").attr("href");
	});
		
	$(".news-item-padding").click(function() {
		window.location = $(this).find("h1:first a:first").attr("href");
	});

	$(".employee-item").click(function() {
		window.location = $(this).find("h1:first a:first").attr("href");
	});
		
	$(".employee-item-padding").click(function() {
		window.location = $(this).find("h1:first a:first").attr("href");
	});

	$(".zoek-overzicht").click(function() {
		window.location = $(this).find("h1:first a:first").attr("href");
	});
	
	$("#block-news").click(function() {
		window.location = $(this).find("a:first").attr("href");
	});
	
	$("#block-news").hover(function(){
			$("#block-news p strong").css("text-decoration", "underline"); 
			$("#spotlightArrow").attr("src", "img/arrow_right_red.gif");
		}, function(){
			$("#block-news p strong").css("text-decoration", "none"); 
			$("#spotlightArrow").attr("src", "img/arrow_right.gif");
	});
	
	
	$(".toepassing-overzicht").click(function() {
		window.location = $(this).find("h1:first a:first").attr("href");
	});

	$(".toepassing-overzicht-padding").click(function() {
		window.location = $(this).find("h1:first a:first").attr("href");
	});	
	
	$(".toepassing-overzicht").hover(function(){
			$(this).addClass("hoverItem");
		}, function(){
			$(this).removeClass("hoverItem");
	});
	$(".toepassing-overzicht-padding").hover(function(){
			$(this).addClass("hoverItem");
		}, function(){
			$(this).removeClass("hoverItem");
	});
	$(".zoek-overzicht").hover(function(){
			$(this).addClass("hoverItem");
		}, function(){
			$(this).removeClass("hoverItem");
	});	
	$(".news-item").hover(function(){
			$(this).addClass("hoverItem");
		}, function(){
			$(this).removeClass("hoverItem");
	});	
	$(".news-item-padding").hover(function(){
			$(this).addClass("hoverItem");
		}, function(){
			$(this).removeClass("hoverItem");
	});	
	$(".employee-item").hover(function(){
			$(this).addClass("hoverItem");
			$(".color_photo", this).show();
			$(".blue_photo", this).hide();
		}, function(){
			$(this).removeClass("hoverItem");
			$(".blue_photo", this).show();
			$(".color_photo", this).hide();			
	});	
	$(".employee-item-padding").hover(function(){
			$(this).addClass("hoverItem");
		}, function(){
			$(this).removeClass("hoverItem");
	});	
	
	$("a[href*=.pdf]").attr("target","_blank");
	$("a[href*=.doc]").attr("target","_blank");
});

