/* VanDoClean (c) Rens van Dongen, 2009 <vandoclean@mosymuis.nl> */

// gewoonte geworden
if ( window != top )
{
	top.location.href = location.href;
}

// the allmighty initiator, please beware of its p0werzz
$(document).ready(function()
{
	// form styles
	$('input, select, textarea').hover(function()
	{
		$(this).addClass('inputHover');
	},
	function()
	{
		$(this).removeClass('inputHover');

	});

	// header PNG
	if ( $.browser.msie )
	{
		if ( parseInt($.browser.version) <= 6 )
		{
			$('#header img').attr('src', $('#header img').attr('src').replace('24', '128')); // plaatjes fixen
		}
	}
	
	// menu
	$("#navList ul ").css({display: "none"}); // Opera Fix
	$("#navList li").hover(function()
	{
		$(this).find('ul:first').css({visibility: "visible",display: "none"}).fadeIn(400);
	},function()
	{
		$(this).find('ul:first').css({visibility: "hidden"});
	});
	
	// popups
	$("a.fancybox").fancybox();
	
	// backend
	$("#content tbody tr").hover(function()
	{
		$(this).addClass('hover');
	}, function()
	{
		$(this).removeClass('hover');
	});
	$("td.blocklink a").css('display', 'block');
});

