function rollover(obj, color) {
    if(!obj) 
		return false;
    
    obj.style.backgroundColor = color;
}

// flashWrite(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î[, º¯¼ö][,¹è°æ»ö][,À©µµ¿ì¸ðµå])
function flashWrite(url,w,h,vars,bg,win,id){
	var id=url.split("/")[url.split("/").length-1].split(".")[0]; //id´Â ÆÄÀÏ¸íÀ¸·Î ¼³Á¤
	if(vars==null) vars='';
	if(bg==null) bg='#FFFFFF';
	if(win==null) win='transparent';


	// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
	var flashStr= "	<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'";
		flashStr+="			codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'";
		flashStr+="			width='"+w+"'";
		flashStr+="			height='"+h+"'";
		flashStr+="			id='"+id+"'";
		flashStr+="			align='middle'>";

		flashStr+="		<param name='allowScriptAccess' value='always' />";
		flashStr+="		<param name='movie' value='"+url+"' />";
		flashStr+="		<param name='FlashVars' value='"+vars+"' />";
		flashStr+="		<param name='wmode' value='"+win+"' />";
		flashStr+="		<param name='menu' value='false' />";
		flashStr+="		<param name='quality' value='high' />";
		flashStr+="		<param name='bgcolor' value='"+bg+"' />";
	
	
		flashStr+="		<embed src='"+url+"'";
		flashStr+="		       flashVars='"+vars+"'";
		flashStr+="		       wmode='"+win+"'";
		flashStr+="		       menu='false'";
		flashStr+="		       quality='high'";
		flashStr+="		       bgcolor='"+bg+"'";
		flashStr+="		       width='"+w+"'";
		flashStr+="		       height='"+h+"'";
		flashStr+="		       name='"+id+"'";
		flashStr+="		       align='middle'";
		flashStr+="		       allowScriptAccess='always'";
		flashStr+="			   swLiveConnect='true'";
		flashStr+="		       type='application/x-shockwave-flash'";
		flashStr+="		       pluginspage='http://www.macromedia.com/go/getflashplayer' />";
		flashStr+=" </object>";

	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	document.write(flashStr);
}

function flashlink(idx)
{
	//======================================================================================
	//³×ºñ°ÔÀÌ¼Ç ¸µÅ©

	if(idx=='1')
	{
		//home
		location.href = '/index.asp';
	}
	if(idx=='2')
	{
		//sitemap
		location.href = '/company/company_sitemap.html';
	}
	if(idx=='3')
	{
		//contact us
		location.href = 'mailto:contact@ligensoft.com';
	}
	
	//Ä«Å×°í¸® 1 - ÄÄÆÛ´Ï==============================================================

	if(idx=='11')
	{
		//overview
		location.href = '/company/company_overview.html';
	}
	if(idx=='12')
	{
		//history 
		location.href = '/company/company_history.html';
	}
	if(idx=='13')
	{
		//partner 
		location.href = '/company/company_partner.html';
	}
	if(idx=='14')
	{
		//contact 
		location.href = '/company/company_contact.html';
	}
	//=================================Ä«Å×°í¸® 1 - ÄÄÆÛ´Ï ³¡==================
	
	//Ä«Å×°í¸® 2 - ¼­ºñ½º==============================================================

	if(idx=='21')
	{
		//gun & drill
		location.href = '/service/service_gun.html';
	}
	if(idx=='22')
	{
		//RC PROJECT 
		location.href = '/service/service_rc.html';
	}
	
	//=================================Ä«Å×°í¸® 2 - ¼­ºñ½º ³¡ ================

	//=================================Ä«Å×°í¸® 3 - PR======================

	if(idx=='31')
	{
		//news
		location.href = '/board/list.asp';
	}
	if(idx=='32')
	{
		//our story
		location.href = '/pr/our_story.html';
	}
	//=================================PR ³¡=================================

	//=================================Ä«Å×°í¸® 4 - ¸®Å©·çÆ®=========================
	if(idx=='41')
	{
		//ligeners
		location.href = '/recruit/recruit_ligeners.html';
	}
	
	if(idx=='42')
	{
		//career
		location.href = '/recruit/rlist.asp';
	}
	if(idx=='43')
	{
		//merit
		location.href = '/recruit/Recruit_merit.html';
	}
}

function GoNews(idx)
{
	location.href="/board/view.asp?idx=" + idx;
}