function slideSwitch() {
var $active = $('#switchtest div.active');
if ( $active.length == 0 )
$active = $('#switchtest div:last');
var $next = $active.next().length ? $active.next()
: $('#switchtest div:first');
$active.addClass('last-active')
.animate({opacity : 0.0}, 1000);
$next.css({opacity: 0.0})
.addClass('active')
.animate({opacity: 1.0}, 1000, function() {
$active.removeClass('active last-active');
});
}
$(function(){
	/* BIG BUTTON ANIMATION */
	$('a.bigbutton').mouseenter(function(){
		$(this).stop(true, false).animate({ backgroundColor: "#98b73c", marginLeft: "7px", marginRight: "0px" }, 200)
	})
	$('a.bigbutton').mouseleave(function(){
			$(this).stop(true, true).animate({ backgroundColor: "#8aa43c", marginLeft: "0px", marginRight: "7px" }, 100, fix);
			function fix() {
				if ($('a.bigbutton').mouseleave) {
					$(this).animate({ backgroundColor: "#8aa43c" }, "fast")
				}
			}
	})
	/* MENU ROUNDED CORNERS */
	$('ul.dropdown ul li:first-child').addClass('li-first');
	$('ul.dropdown ul li:last-child').addClass('li-last');
	$('ul.dropdown ul ul li:first-child').addClass('li-first');
	$('ul.dropdown ul ul li:last-child').addClass('li-last');
	$('ul.dropdown ul').prev().addClass('a-level');
	$('ul.dropdown ul ul').prev().removeClass('a-level');
});

