function checktmtable()
{
	tm_table.each(function(pair){
		var lvl2c = $$('table.header_menu div#'+pair.key+' div.lvl2c');
		if (lvl2c.length!=0)
		{
			if (pair.value=='1' && lvl2c[0].getAttribute('animating')=='0' && lvl2c[0].style.display=='none')
			{
				lvl2c[0].setAttribute('animating','1');
				Effect.SlideDown(lvl2c[0],{duration:0.4,afterFinish:function(effect){effect.element.setAttribute('animating','0')}});
			}
			else if (pair.value=='0' && lvl2c[0].getAttribute('animating')=='0' && lvl2c[0].style.display!='none')
			{
				lvl2c[0].setAttribute('animating','1');
				Effect.SlideUp(lvl2c[0],{duration:0.7,afterFinish:function(effect){effect.element.setAttribute('animating','0')}});
	
			}
		}
	});
	setTimeout(checktmtable,100);
}
function configtmtable(tm_table)
{
	tm_table.each(function(pair){
		var lvl2c = $$('table.header_menu div#'+pair.key+' div.lvl2c');
		if (lvl2c.length!=0) { lvl2c[0].setAttribute('animating','0'); }
		$(pair.key).observe('mouseover', function(event) {tm_table.set(pair.key,'1')});
		$(pair.key).observe('mouseout', function(event) {tm_table.set(pair.key,'0')});
	});
}
function validateTmpSearch2(obj){if (validateTmpSearch(obj)){obj.submit();}}
function validateTmpSearch(obj){if (obj.search_keyword.value == '') { alert (lbl_SEARCH_ALERT);obj.search_keyword.focus();return false; } return true;}
function validateTmpSearchClick(){$('tmp_search_from').search_keyword.value = '';}
mailValidator = /^[a-zA-Z0-9._-]+\@([a-zA-Z0-9_-]+\.){1,}[\w]{1,4}$/;
function Set_Cookie( name, value, expires, path, domain, secure )
{
var today = new Date();
today.setTime( today.getTime() );
if ( expires )
{
expires = expires * 1000 * 60 * 60 * 24;
}
var expires_date = new Date( today.getTime() + (expires) );
document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +
( ( path ) ? ";path=" + path : "" ) +
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
}
function Get_Cookie( check_name ) {
var a_all_cookies = document.cookie.split( ';' );
var a_temp_cookie = '';
var cookie_name = '';
var cookie_value = '';
var b_cookie_found = false;
for ( i = 0; i < a_all_cookies.length; i++ )
{
	a_temp_cookie = a_all_cookies[i].split( '=' );
	cookie_name = a_temp_cookie[0].replace(/^\s+|\s+$/g, '');
	if ( cookie_name == check_name )
	{
		b_cookie_found = true;
		if ( a_temp_cookie.length > 1 )
		{
			cookie_value = unescape( a_temp_cookie[1].replace(/^\s+|\s+$/g, '') );
		}
		return cookie_value;
		break;
	}
	a_temp_cookie = null;
	cookie_name = '';
}
if ( !b_cookie_found )
{
return null;
}
}

