function blokjes(){
	//blokjes start
	$(".blokjesbtn").hover(function(){
		$(this).css({
			"background-image" : "url(images/gui/blok_over.png)"
		}).find(".blokjesbtn_title").css({
			"color" : "#e73032"
		});
		$(this).find("img").attr("src", $(this).find("img").attr("srcover"));
	},function(){
		$(this).css({
			"background-image" : "url(images/gui/blok_aan.png)"
		}).find(".blokjesbtn_title").css({
			"color" : "#000000"
		});
		$(this).find("img").attr("src", $(this).find("img").attr("srcdefault"));
	}).click(function(){
		window.location = $(this).find("img").attr('url');
	})
//blokjes einde
}

$(function(){
	//log suspects
	 
		

	$.ajax({
		  url: '/index/logsuspect/page/'+murl,
		  cache : false,
		  success: function(data) {
		  }
		});

				blokjes();

// kalender blok start
				$(".kalenderbtn").mouseover(function(){
					$(this).css({
						"color" : "#e73032"
					})
					$(this).parent().find('.kalendertxt:').css({
						"color" : "#e73032"
					});
				}).mouseout(function(){
					$(this).css({
						"color" : "#000000"
					});
					$(this).parent().find('.kalendertxt:').css({
						"color" : "#000000"
					});				
				}).click(function(){
					window.location = $(this).parent().find(".kalenderbtn").attr("url");
				});
				$(".kalendertxt").mouseover(function(){
					$(this).css({
						"color" : "#e73032"
					})
					$(this).parent().find('.kalenderbtn:').css({
						"color" : "#e73032"
					});
				}).mouseout(function(){
					$(this).css({
						"color" : "#000000"
					});
					$(this).parent().find('.kalenderbtn:').css({
						"color" : "#000000"
					});			
	
				}).click(function(){
					
					window.location = $(this).parent().find(".kalenderbtn").attr("url");
				});

// kalender blok einde

				$(".homelink").click(function(){
					window.location = $(this).attr('href');
				}).mouseover(function(){
					$(this).css({
						"background-image":"url(/images/widget/back_button_over.png)"
					});
				}).mouseout(function(){
					$(this).css({
						"background-image":"url(/images/widget/back_button.png)"
					});
				});
				
				
				$(".interestblock").click(function(){
					window.location = $(this).attr('href');
				}).mouseover(function(){
					$(this).css({
						"color":"#ff0000",
						"background-image":"url(/images/widget/intblock.png)",
					});
				}).mouseout(function(){
					$(this).css({
						"color":"#434343",
						"background-image":"none",
					});
				});
				
				$(".button").click(function(){
					window.location = $(this).attr('href');
				}).mouseover(function(){
					$(this).css({
						"background-color":"#16879e",
						"color":"#000000",
						"border" : "1px dotted #000000"
					});
				}).mouseout(function(){
					$(this).css({
						"background-color":"#ffffff",
						"color":"#434343",
						"border" : "1px dotted #a9a9a9"
					});
				});
				
				$(".buttonWidgetfancy").mouseover(function(){
					$(this).css({
						"background-color":"#16879e",
						"color":"#000000",
						"border" : "1px dotted #000000"
					});
				}).mouseout(function(){
					$(this).css({
						"background-color":"#ffffff",
						"color":"#434343",
						"border" : "1px dotted #a9a9a9"
					});
				});		
				
			
			})
