$(document).ready(function() {
    $('.mainmenuitem').hover(
        function()
        {
            $(this).find('.submenu').show();
        },
        function()
        {
            $(this).find('.submenu').hide();
        }
    );
    $('.top_menu_item').hover(
        function()
        {
            $(this).find('.topthird_menu_items').show();
        },
        function()
        {
            $(this).find('.topthird_menu_items').hide();
        }
    );
    $('.left_menu_item').hover(
        function()
        {
            $(this).find('.submenu').show();
            $(this).addClass('open_submenu_now');
        },
        function()
        {
            $(this).find('.submenu').hide();
            $(this).removeClass('open_submenu_now');
        }
    );

/*    $('.left_column .triangle').click(function(){
        $(this).parent().toggleClass('open_submenu');
        return false;
    });
*/
    $('.with_thirdlevel').hover(
        function(){
            $(this).find('.topthird_menu_items').show();
            $(this).css({'z-index': 15}); //this line is fir ie7
        },
        function(){
            $(this).find('.topthird_menu_items').hide();
            $(this).css({'z-index': 10}); // for ie7
        }
    );
/*
    Cufon.replace('h1', { fontFamily: '' });
    Cufon.replace('h2', { fontFamily: '' });
*/

/*    Cufon.replace('.mainmenu span', { fontFamily: 'HeliosCondBlack'}); 
    Cufon.replace(".secondmenu span",{fontFamily: "HeliosCond", hover:true, hoverables: { span: true } });
    Cufon.replace(".thirdmenu span",{fontFamily: "HeliosCond", hover:true, hoverables: { span: true } });
    Cufon.replace(".left_menu a",{fontFamily: "HeliosCond", hover:true});
    Cufon.replace(".lang_link",{fontFamily: "HeliosCond", hover:true}); */

/*    $('.languages a').each(function(){
        if( $(this).hasClass('active') )
        {
            Cufon.replace(this,{fontFamily: "HeliosCondBlack", hover:true});
        }
        else
        {
            Cufon.replace(this,{fontFamily: "HeliosCond", hover:true});
        }
    });
*/
});
