jQuery(document).ready(function(){ 
	jQuery('ul.menu').supersubs({ 
		minWidth:    12,
		maxWidth:    27, 
		extraWidth:  1     
	}).superfish({ speed: 'normal', delay: 0, animation: {opacity:'show',height:'show'}});  
	
	jQuery('#featured').coinslider();
	
	Cufon.replace('ul#menu-navigation>li>a, .readmorediv, .posttitle h3, #right h2, #commentsarea h3, #relatedposts h3, #footer h2, .posttext h1, .posttext h2, .posttext h3, .posttext h4, .posttext h5, .posttext h6', {
	hover: true
	});
		
	jQuery('#right ul li>ul>li, #footer ul li>ul>li').hover(function() { //mouse in
		jQuery(this).stop().animate({ paddingLeft: '10px' }, 300);
	}, function() { //mouse out
	jQuery(this).stop().animate({ paddingLeft: 0 }, 300);
	});
	
	jQuery('.share img', jQuery('.post')).hover(function() { //mouse in
		jQuery(this).stop().animate({ paddingTop: '0px' }, 200);
	}, function() { //mouse out
		jQuery(this).stop().animate({ paddingTop: '3px' }, 200);
	});
	
	jQuery('a[hrefjQuery="top"]').click( function() {
		jQuery.scrollTo( jQuery('#toppages'), {speed:1500} );
	});
	
	var tabContainers = jQuery('div.tabs > div', jQuery('#right'));
	tabContainers.hide().filter(':first').show();	
	jQuery('div.tabs ul.tabNavigation a').click(function () {
		tabContainers.hide();
		tabContainers.filter(this.hash).fadeIn(500).show();
		jQuery('div.tabs ul.tabNavigation a').removeClass('selected');
		jQuery(this).addClass('selected');
		return false;
	}).filter(':first').click();
	
	// Twitter widget
	jQuery('#twitter_update_list').cycle({
        fx:     'scrollVert',
        speed:  'normal',
        timeout: 0,
        prev:    '#prev',
        next:    '#next'
    	});
	jQuery('#pagewrapper a[rel^="prettyPhoto"]').prettyPhoto();
}); 
