/* 
 * Create HTML5 elements for IE's sake
 * Reference: http://ejohn.org/blog/html5-shiv/
 * Reference: http://remysharp.com/2009/01/07/html5-enabling-script/
 */

document.createElement("article");
document.createElement("footer");
document.createElement("header");
document.createElement("hgroup");
document.createElement("nav");
document.createElement("aside");
document.createElement("section");


// Tabs
$(function(){
	$('#tabs').tabs();

    $("#aba-programas-links ul li a").each(function(){
	$(this).hover(function(){
		$(this).animate({width: "300px"}, {queue:false, duration:450});
      },function() {
		  $(this).animate({width: "90px"}, {queue:false, duration:450});
	  });
    });

});

// Aba canais topo	
function ShowHide(){
	$("#aba-programas").animate({"height": "toggle"}, { duration: 500 });
};

// Lista de Canais/Programas home
$(function () {
    $("#foo3").carouFredSel({
        circular: true,
        direction: 'up',
        items: 4,
        scroll: 1,
        next: '#next',
        prev: '#prev',
        auto: {
            duration: 1000, // the duration of the animation (1 sec)
            pauseDuration: 2000, // the time inbetween animations (10 sec)
            pauseOnHover: true
        }
    });
});

