var findMaxHeight = function(index) {
	var maxHeight = 0;
	var $infoboxes = $(this).children(".infobox");
	var $imageboxes = $(this).children(".imagebox");

	$infoboxes.each( function(index) {
		var h = $(this).height();
		if (h > maxHeight) {
			maxHeight = h;
		}
	});
	
	$imageboxes.each( function(index) {
		var h = $(this).height();
		h = h - 40;
		if (h > maxHeight) {
			maxHeight = h;
		}
	});

	$infoboxes.each( function(index) {
		$(this).height(maxHeight);
	});

	$imageboxes.each( function(index) {
		$(this).height(maxHeight);
	});


}

/**
 * jQuery replacement for the suckerfish javascript to get menus working in IE6
 * http://greatwebguy.com/programming/dom/suckerfish-dhtml-dropdown-menu-with-jquery/
 */
$(function() {  
    if ($.browser.msie && parseInt($.browser.version)< 7) {  
        $("#menu li").hover(  
            function() {  
                $(this).addClass("sf");  
            },  
            function() {  
        $(this).removeClass("sf");  
            });  
    }  
});


(function($) {

   $.fn.imagehover = function() {
 
 	 var showHoverImage = function() {
       var imgURL = $(this).attr("href");
       var HTML = "<div class='hoverimage'>";
       HTML += "<img src=\"" + imgURL +  "\" width=\"300\" />";
       HTML += "</div>";
       $(this).append(HTML);
 	 };

 	 var hideHoverImage = function() {
       $(".hoverimage").remove();
 	 };
 
     this.each(function() {
       $(this).hover( showHoverImage, hideHoverImage );
     });
 
     return this;
 
   };
 
 })(jQuery);
