$(document).ready(function() {
	$('a[rel*=external]').click( function() {
		this.target = "_blank";
	});
	
	$("div#newsletterContainer").hide(); //Hide all content
	$("a#newsletterLink").click( // When a top menu item is clicked...
		function () {
			$("div#newsletterContainer").slideToggle("normal").stop("false","true");
			return false;
		}
	);
	
	$(".close").click(
		function () {
			$(this).parent().fadeTo(400, 0, function () { // Links with the class "close" will close parent
				$(this).slideUp(600);
			});
			return false;
		}
	);
	
	/*$('#mycarousel').jcarousel({
		auto: 4,
        wrap: 'last',
		scroll: 4,
        initCallback: mycarousel_initCallback
    });*/
	
	$('#nav').droppy({speed: 400});
});

/*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();
    });
};*/

