function list(listName, num) 
{
	var list_s = document.getElementById(listName);

	if (list_s.style.display != 'none')
	{
		commentHide(listName, num);
	}
	else
	{
		commentShow(listName, num);				
	}		
}

function commentShow(listName, num) 
{
	var list_s = document.getElementById(listName);
	var faq_s = document.getElementById('faq_'+num);

	list_s.style.display = 'block';
	faq_s.style.background = '#f7f7f7';
	document.getElementById("img" + num).src = '../../images/faq/faq_up_ico.gif';
}

function commentHide(listName, num) 
{
	var list_s = document.getElementById(listName);
	var faq_s = document.getElementById('faq_'+num);

	list_s.style.display = 'none';
	faq_s.style.background = '#ffffff';
	document.getElementById("img" + num).src = '../../images/faq/faq_down_ico.gif';
}

function menu_on()
{
	
	var obj_head = document.getElementById("head");
	//alert("on");

	obj_head.style.zindex = "100";
}

function menu_off()
{
	var obj_head = document.getElementById("head");
	//alert("off");

	obj_head.style.zindex = "-1";
}

function businessTap(listName) 
{
	var main = thisMovie("leftMenu");    

	for( var i = 0; i < 4; i++)
	{
		if( listName == i)
		{
			document.getElementById("tap_"+i).style.display = 'block';
		}
		else
		{
			document.getElementById("tap_"+i).style.display = 'none';
		}

	}

	main.sendToNavi(listName);
}

function showRoomPage()
{
	var tempLeft = (screen.width/2) - ((1280+38)/2);
	var tempTop = (screen.height/2) - ((765+198)/2);

	window.open('/showRoom/demo.jsp','popup','width=1250px, height=680px,left='+tempLeft+'px, top='+tempTop+'px, toolbar=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no');

}

function company()
{
	window.open('/main.jsp','_blank')
}

function contactPage()
{
	location.href="/main.jsp";
}

function sitemapPage()
{
	location.href="/siteMap/siteMap.jsp";
}

function englishPage()
{
	location.href="/en";
}

function companyPage()
{
	location.href="/main.jsp";
}

function productContactBtn()
{
	location.href="#";
}

function productSitemapBtn()
{
	location.href="#";
}

function productEnglishBtn()
{
	location.href="/en/showRoom/index.jsp";
}


function product()
{
	/*
	var tempLeft = (screen.width/2) - ((1250+38)/2);
	var tempTop = (screen.height/2) - ((680+198)/2);

	window.open('/showRoom','popup','width=1250px, height=680px,left='+tempLeft+'px, top='+tempTop+'px, toolbar=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no');

	*/
	window.open('/showRoom','popup','width='+screen.width+'px, height='+screen.height+'px,left=0px, top=0px, toolbar=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no');
}

function thisMovie(moveName)
{
    if (navigator.appName.indexOf("Microsoft") != -1)
	{
        return window[moveName];
	}
    else
	{
        return document[moveName];
	}
}

