(function($) {

	// jQuery searchValue 1.0
	$.fn.searchValue=function(){var a=$(this);var b=a.val();a.focus(function(){if(a.val()==b)a.val('')});a.blur(function(){if(a.val()=='')a.val(b)});return this};

})(jQuery);

$(function() {
	
	// Set up menu slide
	var background = $('#navigation .subnav'),
		backgroundHeight = 180,
		speed = 500;

	background.css('height', 0);
	
	$('#navigation > ul > li').menu({
		dropdown : '.subnavigatie',
		effect : 'slideDown',
		speed : speed,
		ignoreDummy : true,
		swapClass : 'active',
		onShow : function(button, dropdown) {
			background.show();
			background.animate({
				height : backgroundHeight
			}, speed);
		},
		onHide : function(button, dropdown) {
			background.hide();
			background.stop();
			background.css('height', 0);
		}
	});
	
	// Fix PNG images if the user client is IE 6 or lower
	if($.browser.msie) {
		if($.browser.version <= 6) {
			$('head').append('<script type="text/javascript" src="style/worksupport/js/jquery.pngfix.js" />');
			$('#left, #middle, #right, #main').pngfix();
		};
	};
	
	$('#search input[type=text]').searchValue();
	
});
