// awesome badass dock

function rollover_open (id) {
	
	// hide the old thing
	
	$(".block_pic").remove();
	
	$(".block_active_test_"+current_panel).animate(
          { 
            width: 137, 
            height: 220
          }	, 0
        );

	$(".block_pic_"+current_panel).animate(
	      { 
	        width: 410, 
	        height: 189
	      }	, 0
	    );
	
	$(".block_active_test_"+current_panel).addClass("reg_class");
	

	//show the new thing
	
	$(".block_active_test_"+id).html("<img src='/img_index/block_active"+id+".png' width='410px' height='189px 'class='block_pic_"+id+" block_pic'>");
	$(".block_active_test_"+id).removeClass("reg_class");
	$(".block_active_test_"+id).animate(
          { 
            width: 440, 
            height: 220
	      }	, 0
        );
	$(".block_pic_"+id).animate(
	      { 
	        width: 455, 
	        height: 210
	      }	, 20
	    );
	
	current_panel=id;
	
	if (id!=5) {
		 $(".right_overlap").show();	
	} else {
		$(".right_overlap").hide();
	};
	
	
}
