/* Common ActiveX  */
function flashView(URL,SizeX,SizeY){

	document.write( '<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="'+SizeX+'" height="'+SizeY+'" id="genesis" align="middle">');
	document.write(	'<param name="movie" value="'+URL+'" />');
	document.write(	'<param name="quality" value="high" />');
	/*document.write( '<param name="bgcolor" value="#000000" />');*/
	document.write(	'<param name="allowScriptAccess" value="sameDomain" />');
	document.write(	'<param name="wmode" value="transparent"/>');
	document.write(	'<embed wmode="transparent" src="'+URL+'" quality="high" width="'+SizeX+'" height="'+SizeY+'" name="genesis" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}

/* MenuLink  */
var a=''; //1Depth
var b=''; //2Depth
var c=''; //3Depth

function goMenu(a,b,c)
{
	var gn_1_0_0 = "/gn_index.asp?mdef=1&menuA=1&menuB=1&qMenu=0";
	var gn_1_1_0 = "/gn_index.asp?mdef=1&menuA=1&menuB=1&qMenu=0";
	var gn_1_2_0 = "/gn_index.asp?mdef=1&menuA=1&menuB=2&qMenu=0";
	var gn_1_3_0 = "/gn_index.asp?mdef=1&menuA=1&menuB=3&qMenu=0";
	var gn_1_4_0 = "/gn_index.asp?mdef=1&menuA=1&menuB=4&qMenu=0";
	var gn_1_5_0 = "/gn_index.asp?mdef=1&menuA=1&menuB=5&qMenu=0";
	var gn_1_6_0 = "/gn_index.asp?mdef=1&menuA=1&menuB=6&qMenu=0";

	var gn_2_0_0 = "/gn_index.asp?mdef=1&menuA=2&menuB=0&qMenu=0"; //°¡°Ý
	var gn_3_0_0 = "/gn_index.asp?mdef=1&menuA=3&menuB=0&qMenu=0"; //Á¦¿ø

	var gn_4_0_0 = "/Estimation/BuyGuide.aspx?mdef=1&menuA=4&menuB=0&qMenu=0"; //ÆÇ¸ÅÁ¶°Ç
	//var gn_4_0_0 = "javascript:alert('½Ã½ºÅÛ Á¡°ËÀ¸·Î ÀÎÇØ ¼­ºñ½º¸¦ Àá½Ã Áß´ÜÇÏ¿À´Ï ¾çÇØ ¹Ù¶ø´Ï´Ù. ')"; //ÆÇ¸ÅÁ¶°Ç

	//var gn_5_0_0 = "https://www.hyundai.com:460/PurchaseInfo/Estimation/Estimain_Base.aspx"; //°ßÀû³»±â
	var s1 = "gn_"+ a + "_" + b + "_" + c;
	var contestWin = "";
	if(s1 == "gn_5_0_0"){contestWin=window.open("http://cybermall.hyundai.com/PurchaseInfo/Estimation/Estimation_WinPop.aspx?estimationType=NORMAL&codeValue=F11&codeName=Á¦³×½Ã½º&hdnIMAGEdefault=genesis.gif","E","");contestWin.focus();return;}
	//var gn_5_0_0 = "/Estimation/Estimation.aspx"; //°ßÀû³»±â
	//var gn_5_0_0 = "javascript:alert('½Ã½ºÅÛ Á¡°ËÀ¸·Î ÀÎÇØ ¼­ºñ½º¸¦ Àá½Ã Áß´ÜÇÏ¿À´Ï ¾çÇØ ¹Ù¶ø´Ï´Ù. ')"; //°ßÀû³»±â

	var str = eval("gn_"+ a + "_" + b + "_" + c);

	if(str != "#") location.href = str;
}

function priceDown()//°¡°Ý³»±â
{
	window.open("/launching/down/genesisprice20091102.pdf","pop1");
}
function  printDown()//ÀÎ¼âÇÏ±â
{
	window.open("/launching/html/gn_p_print.html","pop2","top=10,left=10,width=640,height=700,history=no,resizable=no,status=no,scrollbars=yes,menubar=no");
}

function eve1()//ÀÌº¥Æ®
{
	window.open("http://www.hyundai-motor.com/hmcevent/20081205_Genesis_PlacidoDomingo/event_start.asp","envent1","top=10,left=10,width=765,height=475,history=no,resizable=no,status=no,scrollbars=no,menubar=no");
}

function eve2()
{
	//window.open("http://www.hyundai-motor.com/hmcevent/20080918_GenesisGolfClinic_Result/main.asp","envent1","top=10,left=10,width=765,height=475,history=no,resizable=no,status=no,scrollbars=no,menubar=no");
}

function eve3()
{

}

function M_btn()
{
	window.open("http://www.blumembers.co.kr/oc/halm/OCFH_ALM_U_A_0131.jsp","mb","");
}

function wall_1_1024()
{ window.open("/launching/down/wall_1_1024.zip"); }
function wall_1_1280()
{ window.open("/launching/down/wall_1_1280.zip"); }

function wall_2_1024()
{ window.open("/launching/down/wall_2_1024.zip"); }
function wall_2_1280()
{ window.open("/launching/down/wall_2_1280.zip"); }

function wall_3_1024()
{ window.open("/launching/down/wall_3_1024.zip"); }
function wall_3_1280()
{ window.open("/launching/down/wall_3_1280.zip"); }

function wall_4_1024()
{ window.open("/launching/down/wall_4_1024.zip"); }
function wall_4_1280()
{ window.open("/launching/down/wall_4_1280.zip"); }

function wall_5_1024()
{ window.open("/launching/down/wall_5_1024.zip"); }
function wall_5_1280()
{ window.open("/launching/down/wall_5_1280.zip"); }

function wall_6_1024()
{ window.open("/launching/down/wall_6_1024.zip"); }
function wall_6_1280()
{ window.open("/launching/down/wall_6_1280.zip"); }

function wall_7_1024()
{ window.open("/launching/down/wall_7_1024.zip"); }
function wall_7_1280()
{ window.open("/launching/down/wall_7_1280.zip"); }

function wall_8_1024()
{ window.open("/launching/down/wall_8_1024.zip"); }
function wall_8_1280()
{ window.open("/launching/down/wall_8_1280.zip"); }

function screen_1()
{ window.open("/launching/down/screen_1.exe"); }
function screen_2()
{ window.open("/launching/down/screen_2.exe"); }


function down_21(){//È«º¸µ¿¿µ»ó1
	window.open("/zip_genesis.html");
	//window.open("/launching/down/Genesis.zip");
}
function down_22(){//È«º¸µ¿¿µ»ó2
	window.open("/zip_genesis.html");
}

//tv CF

function down_1(){
	window.open("/launching/down/cf.zip");
}

/*function down_1(){
	window.open("/zip_download1.html");
}*/
function down_3(){
	window.open("/launching/down/cf2_1.zip");
}
function down_4(){
	window.open("/launching/down/cf3.zip");
}
function down_5(){
	window.open("/launching/down/cf4.zip");
	//filefrm.document.location.href="/launching/down/cf4.zip";
}
function down_6(){
	window.open("/launching/down/cf5.zip");
}

//multi media system
function disDown()
	{
		window.open("/Binder.html");
		//window.open("/launching/down/Binder2.pdf");
	}
function blueDown_01()
	{ location.href="/launching/down/f1.zip"; }
function blueDown_02()
	{ location.href="/launching/down/cf2_2.zip"; }
function blueDown_03()
	{ location.href="/launching/down/f3.zip"; }

function dis_Down_01()
	{location.href="/launching/down/lg1.zip";}

function dis_Down_02()
	{location.href="/launching/down/so2.zip";}

function dis_Down_03()
	{location.href="/launching/down/nok.zip";}
	
function dis_Down_04()
	{location.href="/launching/down/SPH.zip";}
	
function dis_Down_05()
	{location.href="/launching/down/TD.zip";}

function dis_Down_06()
	{location.href="/launching/down/BL.zip";}
	
function dis_Down_07()
	{location.href="/launching/down/IM.zip";}

function dis_Down_08()
	{location.href="/launching/down/SCH.zip";}

function dis_Down_09()
	{location.href="/launching/down/IMu.zip";}

function pclose()
 {
  top.window.close();
 }

function q_Link_01(){
	location.href ="/gn_index.asp?mdef=1&menuA=0&menuB=0&qMenu=1";
}
function q_Link_02(){
	location.href ="/gn_index.asp?mdef=1&menuA=0&menuB=0&qMenu=2";
}
function q_Link_03(){
	location.href ="/gn_index.asp?mdef=1&menuA=0&menuB=0&qMenu=3";
}
function q_Link_04(){
	window.open('http://cybermall.hyundai.com/PurchaseInfo/Display/Search.aspx?carcode=F11');
}
function q_Link_05(){
	window.open('http://www.hyundai.com/PurchaseInfo/Demonstration/Search.aspx?carcode=F11');
}
function q_Link_06(){
	window.open('http://www.hyundai.com/PurchaseInfo/Councel/Councel_CarInfo.aspx');
}




function g_ecatalog(sMenu)
{
	//doRequestUsingGET(14,0);
	//document.form1.sMenu.value = 2;
	//document.form1.submit();
	location.href = "/genesis_index2.asp?sMenu=2";

}

/* main flash */
function g_01()
 	{
		sw = screen.width;
    sh = screen.height;
		w = sw - 10; // to center: use desired width
		h = sh - 70; // to center: use desired height
		cx = 0;
		cy = 0;

		var setPop = 'width='+w+','+'height='+h+',' + 'screenX=' +cx+','+'screenY='+cy+','+'left='+cx+','+'top='+cy+',toolbar=0,status=0,fullscreen=1,menubar=0,scrollbars=0,resizable=0';
		Pop=window.open("/main.html","g_01",setPop);
	}
function g_02()
	{
		sw = screen.width;
	  sh = screen.height;
		w = sw - 10; // to center: use desired width
		h = sh - 70; // to center: use desired height
		cx = 0;
		cy = 0;

		var setPop = 'width='+w+','+'height='+h+',' + 'screenX=' +cx+','+'screenY='+cy+','+'left='+cx+','+'top='+cy+',toolbar=0,status=0,fullscreen=1,menubar=0,scrollbars=0,resizable=0';
		Pop=window.open("http://coupe.the-genesis.co.kr/intro.aspx","g_02",setPop);
	}