// PrettyPhoto (lightbox)
jQuery(document).ready(function($){
	$("a[rel^='prettyPhoto']").prettyPhoto();
});

// Sub-featured thumbnail hover effect
jQuery(document).ready(function () {
	jQuery('.imagehover .play').mouseover(function() {
		jQuery(this).stop().fadeTo(300, 1);
	});
	jQuery('.imagehover .play').mouseout(function() {
		jQuery(this).stop().fadeTo(400, 0.2);
	});
});

jQuery(document).ready(function () {
								 

// Innerfade setup
	jQuery('#twitter_update_list').innerfade({
		animationtype: 'fade', 
		speed: 'slow', 
		timeout: 5500, 
		type: 'sequence', 
		containerheight: '42px' 
	});
		

	//http://malsup.com/jquery/corner/
      jQuery('#twitter').corner();
      jQuery('.readmore').corner("5px");

			// initialise plugins
		jQuery(function(){
			jQuery('ul.sf-menu').superfish();
		});
		
		
	 //Lazy Loader
	 $placeholder = '';
  if (navigator.platform == "iPad") return;
  jQuery("#content img").lazyload({
    effect:"fadeIn",
	threshold : 400,
    placeholder: "wp-content/themes/Nowadays-Interiors/images/grey.gif"
  });		
		

	//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:800});
				}, function() {
					jQuery(".cover", this).stop().animate({top:'0px'},{queue:false,duration:800});
				});
				
				
				jQuery('.archive-imagehover').hover(function(){
					jQuery(".archive-cover", this).stop().animate({top:'100px'},{queue:false,duration:500});
				}, function() {
					jQuery(".archive-cover", this).stop().animate({top:'0px'},{queue:false,duration:500});
				});


});

