$(document).ready(function()
{
	theZIndex = 5;
	$("#HD-ClientFeatures-Slider").css('display','none');
	$("#HD-ClientFeatures-Slider").css('opacity','0');
	$("#HD-ClientFeatures-Slider").css('marginTop','-21px');
	$("#HD-ClientFeatures-Slider").css('max-height',$("#HD-ClientFeatures-Slider").height());

	$("#HD-ClientFeatures").mouseenter(function()
	{
		$("#HD-ClientFeatures-Slider").stop();
		$("#HD-ClientFeatures-Slider").css('display','block');
		
		// Get the slider's height
		theHeight = $("#HD-ClientFeatures-Slider").css("max-height");
		$("#HD-ClientFeatures-Slider").css('height','1px');
		theZIndex++;
		$("#HD-ClientFeatures").css('zIndex',theZIndex);
		
		$("#HD-ClientFeatures-Slider").animate({"height": theHeight, "opacity": "1.0",'marginTop':'-1px'}, 500);
		
	}).mouseleave(function()
	{
		$("#HD-ClientFeatures-Slider").stop();
		$("#HD-ClientFeatures-Slider").animate({"height": "0px", "opacity": "0", "marginTop": "-21px"}, 500);
	});
	
	
	
	$("#HD-PortalFeatures-Slider").css('display','none');
	$("#HD-PortalFeatures-Slider").css('opacity','0');
	$("#HD-PortalFeatures-Slider").css('marginTop','-21px');
	$("#HD-PortalFeatures-Slider").css('max-height',$("#HD-PortalFeatures-Slider").height());

	$("#HD-PortalFeatures").mouseenter(function()
	{
		$("#HD-PortalFeatures-Slider").stop();
		$("#HD-PortalFeatures-Slider").css('display','block');
		
		// Get the slider's height
		theHeight = $("#HD-PortalFeatures-Slider").css("max-height");
		$("#HD-PortalFeatures-Slider").css('height','1px');
		theZIndex++;
		$("#HD-PortalFeatures").css('zIndex',theZIndex);
		
		$("#HD-PortalFeatures-Slider").animate({"height": theHeight, "opacity": "1.0",'marginTop':'-1px'}, 500);
		
	}).mouseleave(function()
	{
		$("#HD-PortalFeatures-Slider").stop();
		$("#HD-PortalFeatures-Slider").animate({"height": "0px", "opacity": "0", "marginTop": "-21px"}, 500);
	});
	
	
	
	
	$("#HD-Features-Slider").css('display','none');
	$("#HD-Features-Slider").css('opacity','0');
	$("#HD-Features-Slider").css('marginTop','-21px');
	$("#HD-Features-Slider").css('max-height',$("#HD-Features-Slider").height());

	$("#HD-Features1").mouseenter(function()
	{
		$("#HD-Features-Slider").stop();
		$("#HD-Features-Slider").css('display','block');
		
		// Get the slider's height
		theHeight = $("#HD-Features-Slider").css("max-height");
		$("#HD-Features-Slider").css('height','1px');
		theZIndex++;
		$("#HD-Features1").css('zIndex',theZIndex);
		
		$("#HD-Features-Slider").animate({"height": theHeight, "opacity": "1.0",'marginTop':'0px'}, 500);
		
	}).mouseleave(function()
	{
		$("#HD-Features-Slider").stop();
		$("#HD-Features-Slider").animate({"height": "0px", "opacity": "0", "marginTop": "-21px"}, 500);
	});

});
