jQuery(document).ready(function(){
						   
// Sign in panel toggle
	jQuery("#signin_show").click(function(){
		jQuery("#signin_panel").slideToggle({duration: 800, easing: 'easeOutSine'});
	},
	function(){
		jQuery(this).find("span").stop().animate({right:'-70px'},{ queue: false, duration: 150, easing: 'easeInBack'});
	});
	// Video thumbnails Watch Now effect
	jQuery('.video_thumbnail').hover(function(){
		jQuery(this).find("span").stop().animate({right:'0px'},{ queue: false, duration: 300, easing: 'easeOutSine'});
	},
	function(){
		jQuery(this).find("span").stop().animate({right:'-70px'},{ queue: false, duration: 150, easing: 'easeInBack'});
	});
	// Thumbnail pictures in Browse album pages
	jQuery('.pictures_entry a').hover(function(){
		jQuery(this).find("img").stop().animate({opacity:'0.25'},{ queue: false, duration: 600, easing: 'easeOutSine'});
	},
	function(){
		jQuery(this).find("img").stop().animate({opacity:'1'},{ queue: false, duration: 400, easing: 'easeOutSine'});
	});


// Menu navigation Dropmenu
	jQuery('.sub_menu').css("display","none");
	// Find and add class to the Li parent of Ul sub_menu
	jQuery(".sub_menu").parent('li').addClass("drop");
	jQuery(".drop").hover(function(){
			jQuery(this).find('.sub_menu').slideDown(100);
	},function(){
			jQuery(this).find('.sub_menu').slideUp(100);
	});
		jQuery(".sub_menu a").hover(function(){
		jQuery(this).find('span').stop().animate({marginLeft:'10px'},{queue:false, duration:125, easing: 'easeInCubic'})
	},function(){
		jQuery(this).find('span').stop().animate({marginLeft:'0px'},{queue:false, duration:250, easing: 'easeOutSine'})
	});


// Animate the lists...
		jQuery("#sidebar li a").wrapInner("<span></span>");
		jQuery("#sidebar li a").hover(function(){
		jQuery(this).find('span').stop().animate({marginLeft:'10px'},{queue:false, duration:125, easing: 'easeInCubic'})
		},function(){
			jQuery(this).find('span').stop().animate({marginLeft:'0px'},{queue:false, duration:250, easing: 'easeOutSine'})
		});

// Share network
	// Display the sharing menu
	jQuery('.sharing ul').css("opacity", "0");
	jQuery('.sharing').hover(function(){
	jQuery('.sharing ul').css("display","block");
		jQuery(this).find("ul").stop().animate({opacity:'1'},{ queue: false, duration: 300});
	},
	function(){
		jQuery(this).find("ul").stop().animate({opacity:'0'},{ queue: false, duration: 90});
		jQuery('.sharing ul').delay(300).css("display","none");
	});
	// Display the names of the networks
	jQuery('.sharing ul span').css("opacity", "0");
	jQuery('.sharing li').hover(function(){
		jQuery(this).find("span").stop().animate({opacity:'1'},{ queue: false, duration: 150});
	},
	function(){
		jQuery(this).find("span").stop().animate({opacity:'0'},{ queue: false, duration: 150});
	});



// Captcha system
jQuery("#errorcaptcha").css({opacity: "0"});
jQuery("#check").keyup(function () {
		var rep = jQuery(this).val();
		var n1 = document.getElementById('num1').innerHTML;
		var n2 = document.getElementById('num2').innerHTML;
		var n3 = parseInt(n1) + parseInt(n2);
      		if( n3 == rep ){
			jQuery("#submitter").prepend('<input type="submit" name="contact_submit" id="contact_submit" value="Send Message" class="cufon" />').animate({opacity: "1"},{duration:350});
			jQuery("#errorcaptcha").text(" ").animate({opacity: "0"},{duration:150});
		}
		else {
			jQuery("#errorcaptcha").text("Not good!").animate({opacity: "1"},{duration:350});
			jQuery("#submitter").prepend('').animate({opacity: "0"},{duration:150}).empty();
		}
    });



 });
