jQuery(document).ready(function () {
								 
// Sub-featured thumbnail hover effect
		jQuery('#main_page_content a  img, #post a  img').mouseover(function() {
		jQuery(this).stop().fadeTo(400, 0.7);
	});
	    jQuery('#main_page_content a  img, #post a  img').mouseout(function() {
		jQuery(this).stop().fadeTo(300, 1);
	});

// Innerfade setup

		
    //Used Cycle instedd of Generic Innerfade
    //twitter Fade 	
    jQuery('#twitter_update_list').cycle({
        speed:       2000,
        timeout:     8000
    });	
	
    jQuery('#ul-feed-me').cycle({
        speed:       2000,
        timeout:     6000
    });

	//http://malsup.com/jquery/corner/
      jQuery('.readmore, .nav-border, #video-feed, #about-us, #feed-me, #screen, #main_page_content').corner("5px");

			// initialise plugins
		jQuery(function(){
			jQuery('ul.sf-menu').superfish();
		});
		
		
		// Ul li BG Animation
		jQuery('#sidebar li a')
	.css( {backgroundPosition: "0 0"} )
	.mouseover(function(){
		jQuery(this).stop().animate({backgroundPosition:"(0px -350px)"}, {duration:100})
		})
	.mouseout(function(){
		jQuery(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:1000})
		})

	//Add a clas to Submit Button (Help with IE6&7
	// http://groups.google.com/group/jquery-en/browse_thread/thread/14f5ea2060df4014
    //jQuery('form').find(':input:not(:submit)').addClass('test'); 
	  jQuery('input[type="submit"]').addClass("submit");
	  
			//http://buildinternet.com/2009/03/sliding-boxes-and-captions-with-jquery/	
				//Partial Sliding (Only show some of background)
				
				jQuery('.imagehover').hover(function(){
					jQuery(".cover", this).stop().animate({top:'100px'},{queue:false,duration:500});
				}, function() {
					jQuery(".cover", this).stop().animate({top:'0px'},{queue:false,duration:500});
				});
				
//					jQuery('imagehover').click(function() {
//                    jQuery('.cover').click().animate({top:'100px'},{queue:false,duration:500}); ;
//                      });

				jQuery('.imagehover').click(function(){
					jQuery(".cover", this).addClass("hidden");

				});
				
				

//Start Serial Scroll

//jQuery('#sections').toggle(function(){ 
//  jQuery('#sections').trigger('stop.serialScroll'); 
//}, function() {});

jQuery(function( $ ){
	
	var $nav = $('#navigation li a ');	
	
	$('#screen').serialScroll({
target:'#sections',
items:'li', // Selector to the items ( relative to the matched elements, '#sections' in this case )
//interval: 5000, 
lock: false,
duration:700,
force:true, // Force a scroll to the element specified by 'start' (some browsers don't reset on refreshes)
navigation:$nav,
		
onBefore:function(e,el,$p,$i,pos){
$nav.removeClass('selected');
$nav.eq(pos).addClass('selected');
}
		
		}); //end serial scroll init
	
			
	}	
)





});

//////////////////////////////////////////////////////////////////////////////


