jQuery.fn.show_gray_bg = function(){
	var x = $("body").width();
	var y = $("body").height();
	$("#gray_bg").show();
	$("#gray_bg").width(x);
	$("#gray_bg").height(y);
	$("#gray_bg").css({opacity:0});
	$("#gray_bg").animate({opacity:0.5},"slow");
}
jQuery.fn.hide_all = function(){
	$(".gray_div").fadeOut('slow');
}
$(function(){
	$(".gray_con").click(function(){
		$(".gray_div").fadeOut('slow');
		return false;
	});
});
jQuery.fn.show_freebox = function(){
	var x = $("body").width();
	var y = $("body").height();
	var window_top = document.documentElement.scrollTop;
	var new_left = (x-340)/2;
	var new_top = window_top+100;
	$(this).css({left:new_left,top:new_top});
	$(this).fadeIn('slow');
}
