$(document).ready(function() {
	// LOGIN
	$(".topMenuAction").click( function() {
		if ($("#openCloseIdentifier").is(":hidden")) {
			$("#slider").animate({ 
				marginTop: "-130px"
				}, 500 );
			$("#topMenuImage").html('<img src="_Pics/open.png">');
			$("#openCloseIdentifier").show();
		} else {
			$("#slider").animate({ 
				marginTop: "0px"
				}, 500 );
			$("#topMenuImage").html('<img src="_Pics/close.png">');
			$("#openCloseIdentifier").hide();
		}
	});
	
	
	// FEATURE LIST
	$('#tabs li a').featureList({
		output: '#output li',
		start_item: 0,
		transition_interval: 10000
	});
	
	
	
	// SLIDER
	$('#mycarousel').jcarousel({
        auto: 5,
        wrap: 'circular',
		scroll: 1,
		animation: 1000,
		buttonNextHTML: '<a></a>',
        buttonPrevHTML: '<a></a>',
        initCallback: mycarousel_initCallback
    });
	
	
	
	// FOOTER LINKS
	$('.listLinks').easyListSplitter({ colNumber: 4 });
	
});


// SLIDER PAUSE ON HOVER
function mycarousel_initCallback(carousel){
    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

