function hideln()
{
	document.getElementById("lncompany").style.display = "none";
	document.getElementById("lnproducts").style.display = "none";
	document.getElementById("lnsupport").style.display = "none";
}

function setln(str)
{
	hideln();
	document.getElementById("ln" + str).style.display = "block";
}

function show(str)
{
	document.getElementById(str).style.display = "block";
}

function hide(str)
{
	document.getElementById(str).style.display = "none";
}

function showflash(loc, width, height, version)
{
	str = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+version+"' width='"+width+"' height='"+height+"'>";
	str += "<param name='allowScriptAccess' value='always'>";
	str += "<param name='wmode' value='transparent'>";
	str += "<param name='movie' value='"+loc+"'>";
	str += "<param name='quality' value='high'>";
	str += "<embed src='"+loc+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"' wmode='transparent'></embed>";
	str += "</object>";
	document.write(str);
}


function quickMenu(str)
{
	this.top  = 231;              // default top 위치;
	this.left = 855;              // default left 위치;
	this.ele  = document.getElementById(str);  //액션 element

	this.footlimit = 300;           //하단에서 300까지 limit
	this.timer = null;

	this.yHeight = parseInt(document.documentElement.scrollHeight); //문서높이
	this.ele.limit = this.yHeight- this.footlimit;
	// element  position, left, top value setup
	this.ele.style.position = "absolute";
	this.ele.style.top    = this.top+"px";
	this.ele.style.left   = this.left+"px";
	this.moveY = this.top;


	quickMenu.prototype.pos = function()
	{
		this.ele.style.top=this.moveY+"px";
	}
	
	quickMenu.prototype.move = function()
	{
		this.end = document.documentElement.scrollTop+this.top; /*스크룰바+위치값*/
		this.moveY +=   Math.floor((this.end - this.moveY ) / 10 );
		
		if(this.moveY>this.ele.limit)
		{
			this.moveY = this.ele.limit;
		}
		this.pos();// 위치값 입력
		this.timer = setTimeout(this.name+".move()",10);
	}
	
	quickMenu.prototype.start = function()
	{
		this.start = parseInt (this.ele.style.top);
		this.timer = setTimeout(this.name+".move()",10);
	}
}

function showmovie(str)
{
	var version = "8,0,0,0";
	var width = "400";
	var height = "300";
	var loc = str;
	call = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+version+"' width='"+width+"' height='"+height+"'>";
	call += "<param name='allowScriptAccess' value='always'>";
	call += "<param name='wmode' value='transparent'>";
	call += "<param name='movie' value='"+loc+"'>";
	call += "<param name='quality' value='high'>";
	call += "<embed src='"+loc+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"' wmode='transparent'></embed>";
	call += "</object>";
	document.getElementById("movielayer").innerHTML = call;
}

function showsite(str, link)
{
	//document.getElementById("movielayer").style.display = "none";
	document.getElementById("imagelayer").style.display = "block";
	document.getElementById("imagecontainer").innerHTML = "<a href='"+link+"' target='_blank'><img src='"+str+"'></a>";
	//window.location = str + "?rel=lightbox";
}

function showimage(str, link)
{
//	document.getElementById("movielayer").style.display = "none";
	document.getElementById("imagelayer").style.display = "block";
	document.getElementById("imagecontainer").innerHTML = "<a href='"+link+"' rel='lightbox'><img src='"+str+"'></a>";
	//window.location = str + "?rel=lightbox";
}

