$j(function() {
    $j("ul.tabs li.list").hover(function() {
	
	if(   $j(this).hasClass("active-link") == false   ){
		$j("ul.tabs li").removeClass("active-link");
    	$j(this).addClass("active-link"); 
    	$j(".tab_container").show();
    	$j(".tab_content").slideUp(); 
    	var activeTab = $j(this).find("a").attr("title");
    	$j(activeTab).slideDown(); 
    	return false;
	}
    	
    }, function(){
	
	    $j(".tab_container").hover(function(){}
            ,function(){
                return false;
            });

    });
    
});

$j(function(){
   //$j(".postWrapper:has(img)").fadeTo("slow", 0.5);
   $j(".postWrapper").hover(function(){
       $j(this).find('img').fadeTo("fast", 0.5);
       },function(){
       $j(this).find('img').fadeTo("fast", 1);
   });
});


$j(function(){
    $j(".more-views .image-slider").jCarouselLite({
	circular: false,
        btnNext: ".more-views .next",
        btnPrev: ".more-views .prev",
        scroll:1,
        speed: 800,
        easing: "easeInOutCirc",
        visible:4
    });
    
    jQuery('#programloj').hover(function(){
        jQuery(this).stop().animate({'right':'0px'},500);
    },function(){
        jQuery(this).stop().animate({'right':'-400px'},500);
    });
    
    jQuery('#glass').hover(function(){
        jQuery(this).stop().animate({'left':'0px'},500);
    },function(){
        jQuery(this).stop().animate({'left':'-431px'},500);
    });
    
});

