$(document).ready(function() {
	var active = "0";
	for (var i=1; i<=3; i++) {
		$("#slide" + i).fadeOut("slow");
	}
	$(".dropdown").each(function() {
		$(this).parent().eq(0).hoverIntent({
			timeout: 100, over: function() {
					 var current = $(".dropdown:eq(0)", this); 
					 current.slideDown(75); }, 
			out: function() {
				var current = $(".dropdown:eq(0)", this);
				current.fadeOut(200);
			}});
	});



	$(".switch-button").click(function() {
		var sender = $(this).attr("id").charAt(6);
		if (sender != active) {
			$("#slide" + active).fadeOut("slow");
			$("#slide" + sender).fadeIn("slow");
			active = sender;
		}
	});

	$(".dropdown li").mouseenter(function() {
		$(this).css("background-color", "#ff9900");
	});
	
	$(".dropdown li").mouseleave(function() {
		$(this).css("background-color", "#ffffff");
	});

	$(function() {
		$('a[@rel*=lightbox]').lightBox();
	});
});

