/*PhongTX - AJAX INIT*/
function $$$(id) {
	return document.getElementById(id);
}
function khoitao_ajax()
{
	var x;
	try 
	{
		x	=	new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch(e)
	{
    	try 
		{
			x	=	new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(f) { x	=	null; }
  	}
	if	((!x)&&(typeof XMLHttpRequest!="undefined"))
	{
		x=new XMLHttpRequest();
  	}
	return  x;
}
function	Forward(url)
{
	window.location.href = url;
}
function	_postback()
{
	return void(1);
}
/*PhongTX - Top menu hover and Home slide hover*/
$(function() {
	var options = {};
	
	$("#top_menu_1").hover(
		function(){ $("#top_menu_1 ul").show(); },
		function(){ $("#top_menu_1 ul").hide(); }
	);
	$("#top_menu_2").hover(
		function(){ $("#top_menu_2 ul").show(); },
		function(){ $("#top_menu_2 ul").hide(); }
	);
	$("#top_menu_3").hover(
		function(){ $("#top_menu_3 ul").show(); },
		function(){ $("#top_menu_3 ul").hide(); }
	);
	$("#top_menu_6").hover(
		function(){ $("#top_menu_6 ul").show(); }, // 'blind',options,250
		function(){ $("#top_menu_6 ul").hide(); }
	);
	
	$("#slwi_1").hover( 
		function(){$("#slwi_1 .menu").stop().animate({height: 120}, 300);},
		function(){$("#slwi_1 .menu").stop().animate({height: 0}, 600);}
	);
	$("#slwi_2").hover( 
		function(){$("#slwi_2 .menu").stop().animate({height: 120}, 300);},
		function(){$("#slwi_2 .menu").stop().animate({height: 0}, 600);}
	);
	$("#slwi_3").hover( 
		function(){$("#slwi_3 .menu").stop().animate({height: 120}, 300);},
		function(){$("#slwi_3 .menu").stop().animate({height: 0}, 600);}
	);
	$("#slwi_4").hover( 
		function(){$("#slwi_4 .menu").stop().animate({height: 120}, 300);},
		function(){$("#slwi_4 .menu").stop().animate({height: 0}, 600);}
	);
	/*
	$("#slwi_5").hover( 
		function(){$("#slwi_5 .menu").stop().animate({height: 120}, 300);},
		function(){$("#slwi_5 .menu").stop().animate({height: 0}, 600);}
	);
	$("#slwi_6").hover( 
		function(){$("#slwi_6 .menu").stop().animate({height: 120}, 300);},
		function(){$("#slwi_6 .menu").stop().animate({height: 0}, 600);}
	);
	*/
});
