function contact_slide(formid) {


	var item = "#"+formid;
	var container = item+"_border";
	
	if( $(container).height() < 10 ){
	
		if( item == "#contact_top" ){
		
			$(container).animate({ height: "560px"}, 1500, function(){ $(item).fadeIn("slow"); });
		}
		else{
		
			$(container).animate({ height: "560px"}, 1500, function(){ var offset = $(document).height(); $('html,body').animate({scrollTop: offset}, 1500, function(){ $(item).fadeIn("slow"); }); });
		}
		
	}
	else if( $(container).height() > 500 ){
	
		$(item).fadeOut("slow", function(){ $(container).animate({ height: "0px"}, 1500); });
	}
	

	/*
	if( $(item).css('display') == 'none' ){
	
		$(item).css('display','table').slideDown("slow");
	}
	else {
	
		$(item).css('display','none');
	}
	*/

}
