$(document).ready(function() {
	//menu navigation hovering
	$("ul#mainNav li a").hover(function() {
		$(this).stop().css({
			backgroundColor: "#101318",
			color: "cc5630"
		}).animate({
			backgroundColor: "#222830",
			color: "white"
		}, 300);
	},
	function() {
		$(this).stop().animate({
			backgroundColor: "#101318",
			color: "#cc5630"
		}, 200);
	});

	//flickr hovering
	$("#picrow.flickr img").hover(function() {
		$(this).stop().css({
			backgroundColor: "#101318"
		}).animate({
			backgroundColor: "white"
		}, 300);
	},
	function() {
		$(this).stop().animate({
			backgroundColor: "#101318"
		}, 200);
	});
	
	//sidebar hovering
	$("#sidebar").hover(function() {
		$(this).stop().css({
			color: "#5f6874"
		}).animate({
			color: "white"
		}, 300);
	},
	function() {
		$(this).stop().animate({
			color: "#5f6874"
		}, 200);
	});
	$("#sidebar").hover(function() {
		$("#subscribe_button").stop().css({
			backgroundPosition: "50% 0%"
		}).animate({
			backgroundPosition: "50% 100%"
		}, 300);
	},
	function() {
		$("#subscribe_button").stop().animate({
			backgroundPosition: "50% 0%"
		}, 200);
	});

	
	
	// Get Tweets
	getTwitters('twitter_update_list', {
		id: 'cspiegl',
		count: 3,
		enableLinks: true,
		ignoreReplies: false,
		template: '%text%',
		timeout: 8000,
		onTimeout: function () {
			this.innerHTML = 'Twitter is being slow... this area will only load if Twitter is being a good boy.';
		},
		onTimeoutCancel: true
	}); 
});