// jquery stuff
$(document).ready(function(){

			
			
	$("#thumbs li span").mouseover(function(){
		$(this).animate( { "marginLeft":17 + "px" } ); 
	});
	$("#thumbs li span").mouseout(function(){
		$(this).animate( { "marginLeft":0 + "px" } );  
	});
	$("#contact").click(function(){ 
		$("#extra").animate( { "marginTop": 0 + "px" } );
		$("#head").animate( { "top": 120 + "px" } );
		//$("#header").animate( { "marginTop": -140 + "px" } );
		$("#wrap").animate( { "marginTop": 260 + "px" } );
	});
	$("#hide").click(function(){ 
		$("#extra").animate( { "marginTop": -120 + "px" } );
		$("#head").animate( { "top": 0 + "px" } );
		//$("#header").animate( { "marginTop": -140 + "px" } );
		$("#wrap").animate( { "marginTop": 140 + "px" } );
	});
		   
		   $(window).scroll(function(){
					var height = $('#uploadForm').height() - $(this).height()/2; 
					var scrollTop = $(this).scrollTop();
					if(scrollTop < height){
					$("#right_sub_upload").css( { "top":scrollTop + "px" } );
					}
					$("#right_sub").css( { "top":scrollTop + "px" } );

			});
		   $("#zone-bar li span").hover(function() {
		   		var hidden = $(this).parents("li").children("ul").is(":hidden");
			   	if (hidden) {
					$('#codetab-button').children("ul").hide();
					$("#zone-bar>ul>li>ul").hide();
					$("#zone-bar>ul").removeClass();
				   	$(this).parents("li").children("ul").show();
					$(this).parents("ul").addClass('sel');
				 } 
					
			   });
});
