$(document).ready(function(){


    // menu
    $(".menu li").hover(
        function(){
            var $sub = $("ul", this);
            if( $sub.length > 0 ) {
                $sub.slideDown();
            }
        },
        function(){
            var $sub = $("ul", this);
            if( $sub.length > 0 ) {
                $sub.slideUp();
            }
        }
    );


    $('img[align=right]').css("padding-left", "10px");
    $('img[align=left]').css("padding-right", "10px");

    if($.browser.msie && $.browser.version=="6.0") {
        // figure out later...
    } else {
        $('.wrapReady').slickWrap();
    }


    if( $(".tabs_head").length > 0 ) {
    
        $(".tabs_head a:first-child").addClass("active");
        
        $(".tabs_head a").click(function(){
        
            var $thisA = $(this);
            var $parent = $thisA.closest("div");
            var target = $thisA.attr("href");
            
            $("a", $parent).removeClass("active");
            $thisA.addClass("active");
            
            $(".tabs_container div").hide();
            $(target).show();
        
            return false;
        
        });
        
    }



});
