
$(document).ready(function() {
	
	$("ul#topnav").superfish({delay:0,animation:{opacity:'show',height:'show'},speed:'fast'});
	$(".sliderContent div:first").css("display", "block");
	$(".page-title:first").css("display", "block");
	$(".siteBlock .siteFull:last").css({ 'padding-right' : '0', 'background' : 'none' });
	$("#topnav li:last a").css({ 'padding-right' : '0', 'background' : 'none' });
	
	$("#sliderMenu").tabs(".sliderContent .pane", {
		effect: 'fade',
		fadeOutSpeed: "slow",
	}).slideshow({		
		autoplay:   true,
		interval:   5000,
		clickable:  false
	});
	
	$(".blockLink").bind({
	  mouseenter: function(){
		$(this).animate({ 
		color: "#FFF",
		}, 300 );
	  },
	  mouseleave: function(){
		$(this).animate({ 
		color: "#333",
		}, 300 );
	  }
	});	
	
	$(".blockReadmore").bind({
	  mouseenter: function(){
		$(this).animate({ 
		color: "#FFF",
		}, 300 );
	  },
	  mouseleave: function(){
		$(this).animate({ 
		color: "#333",
		}, 300 );
	  }
	});	
	
	$("#sliderMenu li a").bind({
	  mouseenter: function(){
		$(this).animate({ 
		paddingLeft: 20,
		}, 300 );
	  },
	  mouseleave: function(){
		$(this).animate({ 
		paddingLeft: 10,
		}, 300 );
	  }
	});	
	
	$( "#popup" ).dialog({  
		width:      580,
		modal:      true,
		autoOpen:   true
	});
	
	$( "#login" ).dialog({  
		width:      400,
		modal:      true,
		autoOpen:   false
	});	
	
	$('.openLogin').click(function() {
		$('#login').dialog('open')
		return false;
	});
	
	$( "#members" ).dialog({  
		width:      400,
		modal:      true,
		autoOpen:   false
	});	
	
	$('.openMembers').click(function() {
		$('#members').dialog('open')
		return false;
	});	
	
	
});

