// JavaScript Document

//** Banner Expanding by Height and Push Page Content **//
function expand_push_by_height (div_id, h)
{
	jQuery('#' + div_id).animate({height: h}, 600);
}

//** Banner Expanding by Height and Over Page Content **//
function expand_over_by_height (div_id, h) 
{	
	var _cls = jQuery('#' + div_id).attr("class");
	if (_cls != "bn_expanded")
	{
		jQuery('#' + div_id).css("clip", "rect(auto auto auto auto)");
		jQuery('#' + div_id).attr("class", "bn_expanded");
	} else {
		jQuery('#' + div_id).css("clip", "rect(0px " + jQuery('#' + div_id).width() + "px " + (jQuery('#' + div_id).height() - h) + "px 0px)");
		jQuery('#' + div_id).attr("class", "");																												   
	}
}

//** Banner Expanding by Height and Width and Over Page Content **//
function expand_over_both_side (div_id, w, h) 
{	
	var _cls = jQuery('#' + div_id).attr("class");
	if (_cls != "bn_expanded")
	{
		jQuery('#' + div_id).css("clip", "rect(auto auto auto auto)");
		jQuery('#' + div_id).attr("class", "bn_expanded");
	} else {
		jQuery('#' + div_id).css("clip", "rect(0px " + jQuery('#' + div_id).width() + "px " + h + "px " + (jQuery('#' + div_id).width() - parseInt(w)) + "px)");
		jQuery('#' + div_id).removeAttr("class");																										   
	}
}