jQuery(document).ready(function(){
    /* cufon scripts*/
//    Cufon.replace('.menu li a',{hover:true});
//    Cufon.replace('.head p');
//    Cufon.replace('.right .downs .text p.kon');
//    Cufon.replace('.left .text .left li');


//      $('#nav').droppy({speed: 100});
//    $('.nav').droppy({trigger: 'click'});
        

    /**/

//    jQuery('.menu li').mouseenter(
//        function(){
//            jQuery(this).css({'background':'#000'});
//            jQuery('.menu li a').css({'color':'#fff'});
//        },
//        function(){
//            jQuery(this).css({'background':'none'});
//            jQuery(this).parent().find('a').css({'color':'#000'});
//        }
//    );

    jQuery('.menu li').mouseover(function(){
        jQuery(this).css('background','#000');
        var obj = jQuery(this).find('a');
        Cufon.replace(obj,{hover:true,color:'#fff'});
    }).mouseout(function(){
        jQuery('.menu li').css('background','none');
        var obj = jQuery(this).find('a');
        Cufon.replace(obj,{hover:true,color:'#000'});       
    });

//    jQuery('.menu li').hover

    jQuery('.menu li').hover(function(){
        jQuery(this).find('a').toggleClass('active');
        jQuery(this).toggleClass('active');
//        jQuery(this).parent().find('ul#sub').slideDown();
//        jQuery(this).parent().find('ul#sub li').show();
    },function(){
        jQuery(this).find('a').removeClass('active');
        jQuery(this).removeClass('active');
//        jQuery(this).parent().find('ul#sub').slideUp();
    });

    jQuery('.img').hover(function(){
            jQuery(this).find('.show').fadeIn('fast');
        },function(){
            jQuery('.show').fadeOut('fast');
    });

    jQuery('.bg-image').hover(function(){
            jQuery(this).find('.shows').fadeIn('fast');
        },function(){
            jQuery('.shows').fadeOut('fast');
    });

    jQuery('ul#public li').hover(function(){
            jQuery(this).find('.shows1').fadeIn('fast');
        },function(){
            jQuery('.shows1').fadeOut('fast');
    });

    jQuery('ul#tor li').hover(function(){
            jQuery(this).find('.shows2').fadeIn('fast');
        },function(){
            jQuery('.shows2').fadeOut('fast');
    });

    jQuery('#refer li:odd').css({'background':'url("./img/li_odd2.png")'});

    jQuery('#refer li').hover(function(){
        jQuery(this).css({'background':'url("./img/li_active2.png")'})
    },function(){
        jQuery(this).css({'background':'url("./img/li_bg.png")'});
        jQuery('#refer li:odd').css({'background':'url("./img/li_odd2.png")'});
    });

    jQuery('ul#pic li').css({'display':'none'});
    
    jQuery('ul#rea li').hover(function(){
        ces = jQuery(this).attr('class');
//        alert(ces);
        jQuery('ul#reas li.'+ces).html('<img src="./img/li_submenu.png" alt="cursors" />');
        jQuery('ul#pic li.'+ces).css({'display':'block'});
    },function(){
        ces = jQuery(this).attr('class');
//        alert(ces);
        jQuery('ul#reas li.'+ces).html('&nbsp;');
        jQuery('ul#pic li.'+ces).css({'display':'none'});
    });

    jQuery('li.pub').hover(function(){
        jQuery(this).find('ul.sub').slideToggle('fast');
    });



    

});
