$(document).ready(function() {

    $("a[rel='e-oferta']").colorbox({maxWidth:"90%"});
    $("a[rel='clube-furacao']").colorbox({maxWidth:"90%"});
    $("a[rel='oferta-local']").colorbox({maxWidth:"90%"});
    $("a[rel='ipirangashop-cc']").colorbox({maxWidth:"90%"});
    $("a[rel='braseg-cc']").colorbox({maxWidth:"90%"});
    $("a[rel='oferta-x']").colorbox({maxWidth:"90%"});
    $("a[rel='various-web']").colorbox({maxWidth:"90%"});
    $("a[rel='various-print']").colorbox({maxWidth:"90%"});

    $('ul#nav li').hover(function(){
        $(this).find('span').animate({
            top:'182px'
        },{
            queue:false,
            duration:500
        });
    }, function(){
        $(this).find('span').animate({
            top:'0px'
        },{
            queue:false,
            duration:500
        });
    });
});


//Cad o tempo pra fazer a funo dinmica?

function showPage01() {
    /*$('#page'+id).slideToggle('fast');*/
    $('#page01').fadeIn("slow");
    $(this).toggleClass('show');
    $('#page02').fadeOut("slow");
    $('#page03').fadeOut("slow");
    $('#page04').fadeOut("slow");
    $('#page05').fadeOut("slow");
}
function showPage02() {
    $('#page02').fadeIn("slow");
    $(this).toggleClass('show');
    $('#page01').fadeOut("slow");
    $('#page03').fadeOut("slow");
    $('#page04').fadeOut("slow");
    $('#page05').fadeOut("slow");
}
function showPage03() {
    $('#page03').fadeIn("slow");
    $(this).toggleClass('show');
    $('#page01').fadeOut("slow");
    $('#page02').fadeOut("slow");
    $('#page04').fadeOut("slow");
    $('#page05').fadeOut("slow");
}
function showPage04() {
    $('#page04').fadeIn("slow");
    $(this).toggleClass('show');
    $('#page01').fadeOut("slow");
    $('#page02').fadeOut("slow");
    $('#page03').fadeOut("slow");
    $('#page05').fadeOut("slow");
}
function showPage05() {
    $('#page05').fadeIn("slow");
    $(this).toggleClass('show');
    $('#page01').fadeOut("slow");
    $('#page02').fadeOut("slow");
    $('#page03').fadeOut("slow");
    $('#page04').fadeOut("slow");
}
