jQuery.fn.equalHeights = function() {
    return this.height(Math.max.apply(null,
        this.map(function() {
           return jQuery(this).height()
		   
		   // return jQuery(this).outerHeight(true)
        }).get()
    ));
};




$(document).ready(function() {			
	
	/* ALLGEMEIN */
	jQuery("a[href$=.pdf]").addClass('icon_pdf');
	jQuery("a[href$=.doc]").addClass('icon_doc');
	jQuery("a[href$=.ppt]").addClass('icon_ppt');
	jQuery("a[href$=.xls]").addClass('icon_xls');
	
	
	/* DROP DOWN*/
    jQuery("ul.dropdown li").hover(function(){
    
        jQuery(this).addClass("hover");
        jQuery('ul:first',this).css('visibility', 'visible');
    
    }, function(){
    
        jQuery(this).removeClass("hover");
        jQuery('ul:first',this).css('visibility', 'hidden');
    
    });
    
    jQuery("ul.dropdown li ul li:has(ul)").find("a:first").append(" &raquo; ");
	
	jQuery(".column_box").equalHeights();

});

jQuery('.column_box').equalHeights();

