// JavaScript Document


						   
$(document).ready(function() {
    Init();
});

function Init() {					   
						   
	$('body').addClass('hasJS');
	
	$("#megaMenu").megaMenu(
							{
            SubClass: ".sub",
            FadeOpacity: 0,
            MaxWidth: "",
            FadeSpeed: "fast",
            sensitivity: 2,
            interval: 10,
            timeout: 50
           
        }
	);
	
	
	
	
	
	// Accordion Panel	
	
	 $(".accordion").accordion({ HeaderSelector: "h2,h3", TeaserSelector: "div.info", BodySelector: "div.more", SpriteOpenText: "close &raquo;", SprintCloseText: "more &raquo;", ToggleSpeed: 500 });

	// Tab Switchers
    $(function() {
        var tabContainers = $('div.tabContainer > div');

        $('div.tabs ul.tabNavigation a').click(function() {
            tabContainers.hide().filter(this.hash).show();

            $('div.tabs ul.tabNavigation a').removeClass('selected');
            $(this).addClass('selected');

            return false;
        }).filter(':first').click();
    });

    $('#banner').children('script').remove();
    $('#banner').children('ul').remove();
    $('#banner').children('a').remove();
    $('#banner').children('input').remove();

    $("#banner").cycle({
        fx: 'fade',
        sync: 0,
        delay: -1000,
        cleartype: 1,
        cleartypeNoBg: true,
        speed: 2500,
        timeout: 7500,
        pagerAnchorBuilder: function(idx, slide) { return '<li><a href="#">' + (idx + 1) + '</a></li>'; },
        pager: '.rotatorPager'
    });
	

}




