// JavaScript Document

function loadcontent_index(url)
{
	
	jQuery('#tab1-content').css("background","url(../images/loading.gif) no-repeat center center;");
	jQuery('#tab1-content').css("height","100px;");
	jQuery('#tab1-content').load(url,null,function(){
		jQuery('#tab1-content').css("background","");
		jQuery('#tab1-content').css("height","auto;");
		if(document.getElementById("tem_detail_basic"))
		{
			btn_basic();
		}
	});
}

function loadcontent_news_and_event(url)
{
	jQuery('#tab1-content').css("background","url(../images/loading.gif) no-repeat center center;");
	jQuery('#tab1-content').css("height","100px;");
	jQuery('#tab1-content').load(url,null,function(){
		jQuery('#tab1-content').css("background","");
		jQuery('#tab1-content').css("height","auto;");
		if(document.getElementById("tem_detail_basic"))
		{
			btn_basic_detail();
		}
	});
}

function change_link_news_and_event(obj)
{
	obj.href="javascript:loadcontent_news_and_event('"+obj.href+"');";
	obj.onmouseover=function (){};
}

function loadcontent_detail_basic(url)
{
	jQuery('#detail_basic').css("background","url(../images/loading.gif) no-repeat center center;");
	jQuery('#detail_basic').load(url,null,function(){
		jQuery('#detail_basic').css("background","#ececec");
	});
}