$(document).ready(function(){
	$('.contact-icq .fake-anchor').click(function(){
		var currentDisplay = $(this).next().css('display');
		if(currentDisplay == "none") {
			$(this).next().fadeIn('normal')
		}
		else {
			$(this).next().fadeOut('normal')
		}
	});
	
	$('.topmenu li:first').addClass("first");
	$('.submenu li:first').css("padding-top", 10);
	$('.submenu li:first a').css("border-top", "none");
	$('.submenu li:last a').css("border-bottom", "none");
	
	$('.topmenu li').hover(function(){
			$(this).children('.submenu').fadeIn(300);
		},
		function(){
			$(this).children('.submenu').fadeOut(300, function(){
				$(this).hide();
			});
		}
	);
	
	$('.nav li:last').css("background", "none");
	
	$('table.selection tr:nth-child(even) td').css("background", "#fbfbfb");
	
	$('.button1, .button2, .button3, .button4').hover(function(){
		$(this).css("background-position", "left bottom");
	},
	function(){
		$(this).css("background-position", "left top");
	});
	
	
	
	// City results
	
	$('.city-name').click(function(){
		$(this).parent().next('.city-results').slideToggle();
		$(this).toggleClass("closed");
	});
	
	$('.city-delete-button').click(function(){
		$(this).parent().parent().fadeOut();
		$(this).parent().parent().next('.city-results').fadeOut();
	});
	
	$('.cg-close').click(function(){
		$(this).parent().fadeOut();
		$(this).parent().next('.clubgroup').fadeOut();
	});
	
	// Club description
	
	
	
	$('.delete-club').click(function(){
		$(this).parent('li').slideUp("fast");
	});
	
	// IE6 forms
	
	$("form.form input[type='text'], form.form input[type='password']").addClass("text");
	
});