﻿
// <![CDATA[
$(document).ready(function(){

var current = "howtoplay";

$('#playlink a').click(function () {
	
	if(current != null && current != "howtoplay") $("." + current).slideUp();
	
	$('.howtoplay').slideToggle('slow');
	
	current = "howtoplay";
	
});
$('#register a').click(function () {
	if(current != null && current != "registertoplay") $("." + current).slideUp();
	
	$('.registertoplay').slideToggle('slow');
	
	current = "registertoplay";
	
});
$('#create a').click(function () {
	if(current != null && current != "createaleague") $("." + current).slideUp();
	
	$('.createaleague').slideToggle('slow');
	
	current = "createaleague";
	
});
$('#hiscores a').click(function () {
	if(current != null && current != "hiscorestable") $("." + current).slideUp();
	
	$('.hiscorestable').slideToggle('slow');
	
	current = "hiscorestable";
});

$('#myleagues a').click(function () {
	if(current != null && current != "myleagues") $("." + current).slideUp();
	
	$('.myleagues').slideToggle('slow');
	
	current = "myleagues";
});

$('#joinleague a').click(function () {
	if(current != null && current != "joinaleague") $("." + current).slideUp();
	
	$('.joinaleague').slideToggle('slow');
	
	current = "joinaleague";
});

});

$(document).ready(function(){
    $('#flash').flash(
        { src: 'SURFER.swf',
          width: 400,
          height: 300 },
        { version: 6 }
    );
});


// ]]>
