/*  tabs */
function tabChanger(el) 
{ 
     if ( activeTab != el )  
          return;
 
     $("#tab-menu > ul > li > a").removeClass(); 
     $("#tab-content > div").addClass("tab-hide"); 
 
     var tab = el.replace(/link/, "teaser"); 
     if ( $(tab) ) 
     { 
          $(el).addClass("current-tab"); 
          $(tab).removeClass("tab-hide"); 
     } 
} 

$(document).ready(function() {	

	$(".article").hover(
		function() {
		
			$(".article").removeClass('article-hover');
			$(".article").children(".article-header").removeClass('article-header-background');
			$(".article").children(".article-footer").removeClass('article-footer-background');	
		
			$(this).addClass('article-hover');
			$(this).children(".article-header").addClass('article-header-background');
			$(this).children(".article-footer").addClass('article-footer-background');
		}
	);
	
	if ($('#first_post'))
	{
		$('#first_post').addClass('article-hover');
		$('#first_post').children(".article-header").addClass('article-header-background');
		$('#first_post').children(".article-footer").addClass('article-footer-background');
	}  
	
	$(".download-rows:odd").css("background-color", "#ffffff");
	$(".download-rows:even").css("background-color", "#f3f3f3");
  
$("#tab-menu a").mouseover(function() 
     { 
          activeTab = '#'+this.id; 
          window.setTimeout("tabChanger('#"+this.id+"');", 200)           
     }); 
      
     $("#tab-menu a").mouseout(function() 
     { 
          activeTab = ''; 
     });  


	$("#linko a.group").fancybox({ 
								 'imageScale': false,
								 'hideOnContentClick': false,
								 'centerOnScroll': false,
								 'zoomSpeedIn': 300, 
								 'zoomSpeedOut': 300, 
								 'frameWidth': 1024,
								 'frameHeight': 576
								 }); 

	$('#linko a').click(function() {
		$('#standard').hide(); 
		return false;
	});
});



