var quotes=new Array()
	quotes[0]='<body id="home0">'
	quotes[1]='<body id="home1">'
	quotes[2]='<body id="home2">'
	quotes[3]='<body id="home3">'
	quotes[4]='<body id="home4">'
	quotes[5]='<body id="home5">'
	quotes[6]='<body id="home6">'
	quotes[7]='<body id="home7">'
	quotes[8]='<body id="home8">'
	quotes[9]='<body id="home9">'
	quotes[10]='<body id="home10">'
	quotes[11]='<body id="home4-1">'
var whichquote=Math.floor(Math.random()*(quotes.length))
document.write(quotes[whichquote])

$(document).ready(function() {
	//$("body").slideUp(1).fadeIn(1000);
	
	//$('.scroll-pane').jScrollPane();
	
	$("ul.sf-menu").superfish(); 
	
	
	
	
	$('#slideshow').cycle({
		fx: 'fade',
		speed: '500',
		timeout: 5000,
		prev:    '#prev',
		 next:    '#next',
		pager: '#bullets',
		pause: true,
		startingSlide: 0, // zero-based
		cleartype: 1,
		cleartype: !$.support.opacity,
		pagerAnchorBuilder: function(idx, slide) {
		 // return sel string for existing anchor
		return '#bullets li:eq(' + (idx) + ') a';
		}

	});

	$('#ads').cycle({
		fx: 'fade',
		speed: 0,
		random: 1,
		delay:  2000,
		timeout: 7000
	});
	
	$("label").inFieldLabels({ fadeDuration:50,fadeOpacity: 0.2 });

	// initialize scrollable 
	$("ul.tabs").tabs("div.panes > div.newsboxxer, div.panes > div.matchbox, div.panes > div.smallbox", {effect: 'fade', fadeInSpeed: 0} );
	
	getTwitter();
});

function getTwitter()
{
	var url = '/';
	url = url + '?blockid=60158';
	url = url + '&jsoncallback=?';

	var target = "#twitter";

	jQuery.getJSON( url,
		function(json)
		{
			if (json.isOK)
			{
				if (json.blockhtml != null)
				{
					if (json.blockhtml != '')
					{
						jQuery(target).replaceWith(json.blockhtml).show();
					}
				}
			}
		}
	);
}

