var panels = new Object();

document.write("<style>.noscript { display: none }</style>");

$(function()
{
    $("#nav0").menu();

    if($(".popup").length > 0)
    {
        $(".popup").overlay({
            target: '#gallery',
            expose: '#f1f1f1' 
        }).gallery({
            speed: 800
        });
    }

    $(".state-default").mouseover(function() {
        $(this).addClass("state-hover");
    }).mouseout(function() {
        $(this).removeClass("state-hover");
    }); 

    $("#nav0 .state-default").mouseover(function() {
        $(this).addClass("state-active");
    }).mouseout(function() {
        $(this).removeClass("state-active");
    }); 
    
    $("a img").parent().css("border", "none");
    
});


function activateAccordion(bannerID)
{
	$("#accordion" + bannerID).tabs("#accordion" + bannerID + " div.pane", {
		tabs: 'h2', 
		effect: 'slide'
	});
}

function activateBanner(bannerID, myInterval)
{
    $("#banner" + bannerID + "Frame").html($("#banner" + bannerID + "Content").html());
    $("#banner" + bannerID + "Content").html("");
    
	$("#banner" + bannerID + " .tabs").tabs("#banner" + bannerID + " .images > div", {
		effect: 'fade',
		fadeOutSpeed: "slow",
		rotate: true
	}).slideshow({autoplay: true, interval: myInterval});

}

