// 한 Lock

function goURL(url)
{
	location.href(url);
}

function goPhoto(photo)
{
	document.getElementById('photo_main').src = photo;
}

function goRequest()
{
	document.getElementById('request_head').style.display = prodDisplay;
	document.getElementById('contact').style.display = "block";
}

function videoCleanUp()
{
    if (navigator.appName.indexOf("Microsoft") != -1) 
    {
		var objects = document.getElementsByTagName("OBJECT");
		for (var i=0; i < objects.length; i++) 
		{
			for (var x in objects[i])
			{
				if (typeof objects[i][x] == 'function')
				{
					objects[i][x] = null;
				}
			}
		}
	}
}

function createWindow(cUrl,cName,cFeatures) {
var xWin = window.open(cUrl,cName,cFeatures)
}

function getID(id)
{
	return document.getElementById(id);
}
function prodShow(id)
{
	var prodDisplay = "none";
	if (id == "all")
		prodDisplay = "block";

	getID('overview').style.display = prodDisplay;
	getID('features').style.display = prodDisplay;
	getID('preview').style.display = prodDisplay;
	getID('spec').style.display = prodDisplay;
	getID('overview2').style.display = prodDisplay;
	
	getID('pm_overview').className = null;
	getID('pm_features').className = null;
	getID('pm_preview').className = null;
	getID('pm_spec').className = null;
	//getID('pm_all').className = null;
	getID('pm_overview2').className = null;
	
	if (id != "all")
		getID(id).style.display = "block";
	getID('pm_'+id).className = "active";
}


function getID_c3(id)
{
	return document.getElementById(id);
}

function prodShow_c3(id)
{
	var prodDisplay = "none";
	if (id == "all")
		prodDisplay = "block";

	getID_c3('m1').style.display = prodDisplay;
	getID_c3('m2').style.display = prodDisplay;
	getID_c3('m3').style.display = prodDisplay;
	getID_c3('m4').style.display = prodDisplay;
	getID_c3('m5').style.display = prodDisplay;
	
	getID_c3('pm_m1').className = null;
	getID_c3('pm_m2').className = null;
	getID_c3('pm_m3').className = null;
	getID_c3('pm_m4').className = null;
	getID_c3('pm_m5').className = null;
	
	if (id != "all")
		getID_c3(id).style.display = "block";
	getID_c3('pm_'+id).className = "active";
}

function getID2(id)
{
	return document.getElementById(id);
}
function prodShow2(id)
{
	var prodDisplay = "none";
	if (id == "all")
		prodDisplay = "block";

	getID2('features2').style.display = prodDisplay;
	getID2('preview2').style.display = prodDisplay;
	getID2('spec2').style.display = prodDisplay;
	
	getID2('pm_features2').className = null;
	getID2('pm_preview2').className = null;
	getID2('pm_spec2').className = null;
	getID2('pm_all2').className = null;
	
	if (id != "all2")
		getID2(id).style.display = "block";
	getID2('pm_'+id).className = "active";
}





