$(document).ready(function() {
	$('#video').hide();
	$("#video-hide-show").click(function(){
		if ($('#video').is(':hidden')) {
			$('#video-hide-show').text('X Click Here to Hide');
			$('#video').slideDown('slow');
			$('.video_play').show();	
		} else {
			$('#video').slideUp('slow');
			$('#video-hide-show').text('X Click Here to Show');
			$('.video_play').hide();	
			$('#player').slideUp('slow');
		}
	});
	
	$('.video_play').click(function(){
		$(this).hide();
		 flashembed("player", "http://www.jumpout.co.uk/wp-content/themes/joof/elements/video/final_video.swf", { 
    			// "config" parameter is a complex JSON object, not just a simple value 
    			config: { 
        			clip:  { 
            			autoPlay: false, 
            			autoBuffering: true, 
            			url: 'http://www.jumpout.co.uk/wp-content/themes/joof/elements/video/final_video.swf' 
        				} 
    				} 
				});
		$('#player').show();
	})
	
			
	$(".grey-roll a").hover(function() {
		$(this).stop().animate({backgroundColor: '#fabd49'}, 400);
	},function() {
		$(this).stop().animate({backgroundColor: '#e8e8e8'}, 400);
	})
	
			
			
	$("#sign-in-container a").click(function(){
		$('#sign-in-container').slideUp('fast');
		$('#sign-up-container').slideDown('fast');
	});
		
		
	$(".login").click(
		function() {
			$('#sign-in-container, .left-col h1').stop().animate({backgroundColor: '#18bee1'}, 400);
		});
		
	$(".moreish").click(
		function(){
			$('.moreish').hide('fast');
			$('.hidden').slideDown('slow');
		})
		
	$(".search-input").click(function(){
    	// Select input field contents
    	this.select();
	});

	// script inside the domReady method is executed after page is scriptable 
	flashembed.domReady(function() { 
 
    // get flash container and assign click handler for it 
    document.getElementById("video-hide-show").onclick = function() { 
 
        // when being clicked -> load flash inside "this". 
         
    } 
}); 


 }); ///END