function OpenMenu( num ) {

	num = parseInt(num,10) ;

    if (num==1) location.href = '/index.html';             						//¸ÞÀÎ È¨
	if (num==2) location.href = 'mailto:sales@iset-dtv.co.kr';           //¸ÞÀÏ
	if (num==3) location.href = '/sitemap.html';           						//»çÀÌÆ®¸Ê
	if (num==4) location.href = '/admin/';           						//°ü¸®ÀÚÆäÀÌÁö
	if (num==5) location.href = 'http://www.i-set.co.kr';           						//ÇÑ±Û»çÀÌÆ®
	if (num==6) location.href = '/login.html';           						//login
	if (num==7) location.href = 'http://cn.i-set.co.kr';           						//Áß¹®»çÀÌÆ®

//company

    if (num==101) location.href = '/company/sub01.html';						//about
	if (num==102) location.href = '/company/sub02.html';						//CEOgreeting
	if (num==103) location.href = '/company/sub03.html';						//our vision
	if (num==104) location.href = '/company/sub04.html';						//business
	if (num==105) location.href = '/company/sub05_2011.html';						//history
	if (num==1051) location.href = '/company/sub05_2009.html';						//history
	if (num==1052) location.href = '/company/sub05_2008.html';						//history
	if (num==1053) location.href = '/company/sub05_2007.html';						//history
	if (num==1054) location.href = '/company/sub05_2006.html';						//history
	if (num==1055) location.href = '/company/sub05_2005.html';						//history
	if (num==1056) location.href = '/company/sub05_2010.html';						//history
	if (num==1057) location.href = '/company/sub05_2011.html';						//history
	if (num==106) location.href = '/company/sub06.html';						//Konzession
	if (num==107) location.href = '/company/sub07.html';						//Contact us

//product

    if (num==201) location.href = '/product/sub01.html';						// tti
    if (num==202) location.href = '/product/sub02.html';						// PAD
    if (num==203) location.href = '/product/sub03.html';						// ADAS(EWS)
    if (num==204) location.href = '/product/sub04.html';						// EPG
    if (num==205) location.href = '/product/sub05.html';						// DPS
    if (num==2051) location.href = '/product/sub05.html#dps2';						// DPS(news)
    if (num==206) location.href = '/product/sub06.html';						// LiveCoupon Service
    if (num==207) location.href = '/product/sub07.html';						// Consulting Service

//pressroom

    if (num==301) location.href = '/press/?cInfo=2';									//press release
    if (num==302) location.href = '/press/?cInfo=3';									//cyberpr
    if (num==303) location.href = '/press/?cInfo=4';									//notice

//support

    //if (num==401) location.href = '/support/sub01.html';							//faq
    if (num==401) location.href = '/support/?cInfo=5&ftyp=dataCategory&fbox=1';							//download
	if (num==4021) location.href = '/support/?cInfo=5&ftyp=dataCategory&fbox=2';
	if (num==4022) location.href = '/support/?cInfo=5&ftyp=dataCategory&fbox=3';

//partners

    if (num==501) location.href = '/partners/sub01.html';						//partners


	//if (num==501) window.open('http://www.e-mg.co.kr','','');
}

function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

var old='';

function menu(name)
{
submenu=eval("submenu_"+name+".style");
		if(old!=submenu)
	{
		if(old!='')
		{
			old.display='none';
		}
		submenu.display='block';
		old=submenu;
	}
	else
	{
		submenu.display='none';
		old='';
	}
}

// flashWrite(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð, ¹è°æ»ö, º¯¼ö, À©µµ¿ì¸ðµå)
function flashWrite(url,w,h,id,bg,vars,win){

	// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
	var flashStr=
	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
	"<param name='allowScriptAccess' value='always' />"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='FlashVars' value='"+vars+"' />"+
	"<param name='wmode' value='"+win+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
	"<param name='bgcolor' value='"+bg+"' />"+
	"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";

	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	document.write(flashStr);

}

