// JavaScript Document
$(document).ready(function() {
		
			$curtainopen = true;
		
			$(".rope").click(function(){
				$(this).blur();
				if ($curtainopen == true){ 
					$(this).stop().animate({top: '0px' }, {queue:true, duration:350, easing:'easeOutBounce'}); 
					$(".leftcurtain").stop().animate({width:'60px'}, 2000 );
					$(".rightcurtain").stop().animate({width:'60px'},2000 );
					$curtainopen = false;
				}else{
					$(this).stop().animate({top: '-40px' }, {queue:true, duration:350, easing:'easeOutBounce'}); 
					$(".leftcurtain").stop().animate({width:'50%'}, 2000 );
					$(".rightcurtain").stop().animate({width:'51%'}, 2000 );
					$curtainopen = true;
				}
				return true;
			});
			
		});