/**
 * Created by JetBrains PhpStorm.
 * User: Brewing
 * Date: 10.06.11
 * Time: 14:01
 * To change this template use File | Settings | File Templates.
 */
jQuery(document).ready(function() {
//das ist für die Anzeigen Auswahl

    jQuery('.activePPP').text(jQuery('.selectLanguage').text());

    var subMenuHeightStand = jQuery('.selectedPage').height();
    var subMenuHeight = jQuery('.submenu').height() + subMenuHeightStand;
    
    jQuery("div.selectedPage").bind({
        mouseenter: function() {
            jQuery(this).addClass("openMenu");
            jQuery(this).css('height', '128px').css('z-index', '20000');
        },
        mouseleave: function() {
            jQuery(this).removeClass("openMenu");
            jQuery(this).css('height', subMenuHeightStand + 'px').css('z-index', '10000');
        }
    });
    
    jQuery("div.submenu a").bind({
        click: function() {
            jQuery('.activePPP').text(jQuery(this).text());
        }
    });

}); 
