$(document).ready(function(){	
	// Image galleries
	$(".imagetabs > ul").tabs({ fx: { opacity: 'toggle', duration: 100 } });	
	
	// Blog category select
	$("#category-select").change(function(){ 
        catUrl = $("#category-select").val(); 
 		window.location=catUrl;
    });
    
    // Blog month select
	$("#month-select").change(function(){ 
        datUrl = $("#month-select").val(); 
 		window.location=datUrl;
    });
    
    // Navbar highlighting
    var activeClass = $("body").attr("id");
    if ( activeClass ) {
    	$('.' + activeClass).addClass("active");
    }
    
    $("tr").each(function(){
		$(this).children(':first').addClass("cell-1");
		$(this).children(':eq(1)').addClass("cell-2");
		$(this).children(':eq(2)').addClass("cell-3");
	});
	
	$("#chatframe").click(function(){
		pageTracker._trackEvent('Chat', 'Click');
	});
});