$(document).ready(function() {
   
	$("#findenButton.smallbutton").css({visibility: "visible"});
	$("#findenButton2.smallbutton").css({visibility: "visible"});
	$("table.smallbutton").show();
	$("table.bigbutton_home").show();
	$("table.bigbutton_homepage").show();
	
	$("table.bigbutton").hover(function() {
		$(this).find("td").each(function() {
			$(this).attr("class", $(this).attr("class") + "-active");
		});
    }, function() {
		$(this).find("td").each(function() {
			var str = $(this).attr("class");
			$(this).attr("class", str.substring(0, str.length - 7));
		});
    });
	
	$("table.bigbutton_home").hover(function() {
		$(this).find("td").each(function() {
			$(this).attr("class", $(this).attr("class") + "-active");
		});
    }, function() {
		$(this).find("td").each(function() {
			var str = $(this).attr("class");
			$(this).attr("class", str.substring(0, str.length - 7));
		});
    });
	
	$("table.bigbutton_homepage").hover(function() {
		$(this).find("td").each(function() {
			$(this).attr("class", $(this).attr("class") + "-active");
		});
    }, function() {
		$(this).find("td").each(function() {
			var str = $(this).attr("class");
			$(this).attr("class", str.substring(0, str.length - 7));
		});
    });
	
	$("table.smallbutton").hover(function() { 
		$(this).find("td").each(function() {
			$(this).attr("class", $(this).attr("class") + "-active");
		});
    }, function() {
		$(this).find("td").each(function() {
			var str = $(this).attr("class");
			$(this).attr("class", str.substring(0, str.length - 7));
		});
    });	
});

