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);
}
/*So sanh height cua 2 the div tgp_body_content & tgp_right*/
function EqualHeight(elements) { 
    //Xác định chiều cao của cột cao nhất 
    tallest = 0; 
    elements.each(function() { 
        elementHeight = jQuery(this).height(); 
        if(elementHeight > tallest) { 
            tallest = elementHeight; 
        } 
    }); 
    //Chỉnh chiều cao cho tất cả các cột 
    //theo chiều cao của cột cao nhất 
    elements.height(tallest); 
} 

function SkipError()
{
	return true;
}


//Áp đặt chiều cao cho các cột khi trang 
$(function(){

	Cufon.replace('.tgp_copyright .div_2 .slogan ul li, .title_b , p.title a,#slider2  li .content_slide .div_content h1.ten a', { fontFamily: 'HP-Hai Au', hover: {color: '-linear-gradient(#005646, #005646)'}});
	Cufon.replace('p.tv,p.en', { fontFamily: 'HP-Hai Au', hover: {color: '-linear-gradient(#9BA94D, #9BA94D)'}});
	Cufon.replace('.tgp_container .header_menu ul#nav li ul.menu li a.sub ', {fontFamily:'HP-Hai Au',hover: {color: '-linear-gradient(#9BA94D, #9BA94D)'}});
		Cufon.replace('.tgp_container .header_menu ul#nav li a.top ', {fontFamily:'HP-Hai Au',hover: {color: '-linear-gradient(#005646, #005646)'}});
});
//đã được load hoàn tất. 
jQuery(window).load(function(){  
	

	$(document).ready(function(){

		//$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
		//tin tuc nha khoa
		$.featureList(
				$("#tabs li a"),
				$("#output li"), {
					start_item	:	1
				}
			);

		//menu
		$("#nav li").hover(function(){
			$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400); 
			},function(){ 
			$(this).find('ul:first').css({visibility: "hidden"}); 
        }); 
		
		//slide the manh
		$(".slider").jCarouselLite({
			btnNext: ".next",
			btnPrev: ".prev",
			auto: true,
			speed: 300, // Toc do chay hinh
			auto: 5000,// Thoi gian chay hinh
			visible: 1
		});
		//slide
		$("#slider2").easySlider({ 
			auto: true,
			continuous: true,
			numeric: true

		});
	});
});



