function slideSwitch() {
var $active = $('#top-right div.active');
if ( $active.length == 0 )
$active = $('#top-right div:last');
var $next = $active.next().length ? $active.next()
: $('#top-right div:first');
$active.addClass('last-active')
.animate({opacity : 0.0}, 2000);
$next.css({opacity: 0.0})
.addClass('active')
.animate({opacity: 1.0}, 2000, function() {
$active.removeClass('active last-active');
});
}
$(function() {
    $('#slideshow div').css({opacity: 0.0});
$('#slideshow div:first').css({opacity: 1.0});
setInterval( "slideSwitch()", 5000 );
});

jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};
$(document).ready(function(){

		$(".icon-twitter").hover(function() {
		$(this).prev("#twitter-hover").animate({opacity: "show", top: "-90"}, "fast");
	}, function() {
		$(this).prev("#twitter-hover").animate({opacity: "hide", top: "-110"}, "fast");
	});
		$(".members").click(function() {
		$("#login-wrap").animate({opacity: "show", top: "-90"}, "fast");
	});
		$(".#login-wrap img").click(function() {
		$("#login-wrap").animate({opacity: "hide", top: "-110"}, "fast");
	});



});
