$(document).ready(function () {
	/**
	 * Cufon
	 * Example: Cufon.replace('selector', {hover:true, fontFamily:'fontName'});
	 */
	
	if(Cufon){
		Cufon.replace('h1, #site-title, h2, h3, h4', {fontFamily:'swiss'});
		Cufon.replace('h1 a, #site-title a', {hover:true, fontFamily:'swiss'});
		Cufon.replace('#nav li a, #menu-topnavigation li a', {hover:true, fontFamily:'swiss'});
		Cufon.replace('#menu-nav li a', {hover:true, fontFamily:'swiss'});
	}

	$('#mep_0, .mejs-controls, .mejs-container').width(260);
	 $('audio').mediaelementplayer({audioWidth: 100, audioHeight: 100});

	// Animate menu items
	$('#menu-nav li a').hover( function () {
			//alert ('over');
			//$(this).append($('<span> ***</span>'));
			//$(this).stop().animate({'left': '45px'}, 100, 'easeOutQuart' /* the type of easing*/ );
			$(this).stop().animate({'left': '10px'}, 300); // move left
			
		}, function () {
			//alert ('out');
			//$(this).find("span:last").remove();
			//$(this).stop().animate({'left': 0}, 700, 'swing' /* the type of easing*/ );
			$(this).stop().animate({'left': '0'}, 300); // move back right in position
	});
	
	
	$('#clickme').click(function() {
		$('#book').animate({
			opacity: 0.25,
			left: '+=50',
			height: 'toggle'
			}, 5000, function() {
			// Animation complete.
		});
	});

});
