$(document).ready(function() {
	$('#apps').hover(function() {
		$('#apps-window').fadeIn(160, function() {
			$('#apps-window').show();
		});
	});

	$("#apps-window").hover(
	  function () {
		$("#apps-window").show();
	  },
	  function () {
		$("#apps-window").hide();
	  }
	);

	$("#featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);  
	$("#featured").hover(  
		function() {  
		$("#featured").tabs("rotate",0,true);  
		},  
		function() {  
		$("#featured").tabs("rotate",5000,true);  
		}  
	); 
	$(function() {
		$("#recolist").accessNews({
			speed : "normal",
			slideBy : 4
		});
	});
    $('#toolbox-fontsize').click(function(){
        var test = $('#app-description').hasClass('font-normal');
        var test2 = $('#app-description').hasClass('font-big');
        var test3 = $('#app-description').hasClass('font-bigger');
        if (test)
        {
            $('#app-description').removeClass('font-normal');
            $('#app-description').addClass('font-big');
        }
        else if(test2)
        {
            $('#app-description').addClass('font-bigger');
            $('#app-description').removeClass('font-big');
        }
        else 
        {
            $('#app-description').addClass('font-normal');
            $('#app-description').removeClass('font-bigger');            
        }
        
        return false;
    });
    // Category Index View - Jump To Subcategory
    $('#subcategory-jumpto').change(function(){
        var url = $(this).val();
        window.location.href = url;
        return true;
    });
    // Article Index View - Jump To Category
    $('#category-jumpto').change(function(){
        var url = $(this).val();
        window.location.href = url;
        return true;
    });
});
