$(document).ready(function() {
    
	
	// preload images first
	(
	
		function($) {
  	var cache = [];
  	// Arguments are image paths relative to the current page.
  	$.preLoadImages = function() {
    var args_len = arguments.length;
    for (var i = args_len; i--;) {
      var cacheImage = document.createElement('img');
      cacheImage.src = arguments[i];
      cache.push(cacheImage);
    }
  	}
	})(jQuery)
	
	jQuery.preLoadImages("hbuttons/menuw.png", "hbuttons/menuf.png", "hbuttons/menui.png", "hbuttons/menub.png");
	
	$("a[rel='lightbox']").colorbox();
	
	$("#menu img").hover(function() {
		oud = $(this).attr("src");
		nieuw = "h" + oud;
		$(this).attr("src",nieuw);
		},function() {
		$(this).attr("src",oud);
		}
		);
	
	$("#menu input").hover(function() {
		oud = $(this).attr("src");
		nieuw = "h" + oud;
		$(this).attr("src",nieuw);
		},function() {
		$(this).attr("src",oud);
		}
		);
	
	/*
	$("#footercenter").hover(function() {
		$(this).animate({
			"margin-top" : "0px"}, 500);},function() {
			$(this).animate({
			"margin-top" : "50px"}, 500);
							   });
	*/
	
});
