/* 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="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>');
}
function flashView2(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="genesis2" align="middle">');
	document.write(	'<param name="movie" value="'+URL+'" />');
	document.write(	'<param name="quality" value="high" />');
	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>');
}

function goMain(){
	location.href="/Main.aspx";
}

/* MenuLink  */
var a=''; //1Depth
var b=''; //2Depth

function cpURL(a,b)
{
//style
	var cp_1_0 = "/Main.aspx?eof=1&numA=1&numB=0";
	var cp_1_1 = "/Main.aspx?eof=1&numA=1&numB=1";
	var cp_1_2 = "/Main.aspx?eof=1&numA=1&numB=2";
	var cp_1_3 = "/Main.aspx?eof=1&numA=1&numB=3";
	var cp_1_4 = "/Main.aspx?eof=1&numA=1&numB=4";
//speed
	var cp_2_0 = "/Main.aspx?eof=1&numA=2&numB=0";
	var cp_2_1 = "/Main.aspx?eof=1&numA=2&numB=1";
//space
	var cp_3_0 = "/Main.aspx?eof=1&numA=3&numB=0";
	var cp_3_1 = "/Main.aspx?eof=1&numA=3&numB=1";
	var cp_3_2 = "/Main.aspx?eof=1&numA=3&numB=2";

	var str = eval("cp_"+ a + "_" + b);

	if(str != "#") location.href = str;
}


function qURL(qMenu){
	if(qMenu=='1'){
		location.href = "/Main.aspx?eof=1&numA=0&numB=0&qMenu=1";
	}
	if(qMenu=='2'){
		location.href = "/Main.aspx?eof=1&numA=0&numB=0&qMenu=2";
	}
	if(qMenu=='3'){
		window.open("http://cybermall.hyundai.com/PurchaseInfo/p3.aspx","","");

	}
	if(qMenu=='4'){
		window.open("http://cybermall.hyundai.com/PurchaseInfo/Estimation/Estimation_WinPop.aspx?estimationType=NORMAL&codeValue=F31&codeName=Á¦³×½Ã½ºÄíÆä&hdnIMAGEdefault=genesis_coupe.gif","","");
	}
	if(qMenu=='5'){
		location.href="/Main.aspx?eof=1&numA=0&numB=0&qMenu=5";
	}
	if(qMenu=='6'){
		doRequestUsingGET('Event','Main');
		alert("ÁøÇàÁßÀÎ ÀÌº¥Æ®°¡ ¾ø½À´Ï´Ù.");
		//window.open("http://www.hyundai.com/Events/Event_DetailType6.aspx?EventIDX=97","event","");
	}
	if(qMenu=='7'){
		location.href="/Main.aspx?eof=1&numA=0&numB=0&qMenu=7";
	}
}

function cp_print(){
	window.open("/pricePrint.html","","width=637,height=700,scrollbars=yes");
}
function cp_down(){
	window.open("/launching/down/price_200907.pdf","","");
}

function M_btn(){
	window.open("http://www.blumembers.co.kr/oc/halm/OCFH_ALM_U_0151.jsp","mb","");
}

/* ¿ùÆäÀÌÆÛ */
function w_1_1(){
	doRequestUsingGET('Gallery','Wallpaper1');
	fdown.document.location.href='/Swf/down/wall_01_1024x768.zip';
}
function w_1_2(){
	doRequestUsingGET('Gallery','Wallpaper1');
	fdown.document.location.href='/Swf/down/wall_01_1280x1024.zip';
}
function w_2_1(){
	doRequestUsingGET('Gallery','Wallpaper2');
	fdown.document.location.href='/Swf/down/wall_02_1024x768.zip';
}
function w_2_2(){
	doRequestUsingGET('Gallery','Wallpaper2');
	fdown.document.location.href='/Swf/down/wall_02_1280x1024.zip';
}
function w_3_1(){
	doRequestUsingGET('Gallery','Wallpaper3');
	fdown.document.location.href='/Swf/down/wall_03_1024x768.zip';
}
function w_3_2(){
	doRequestUsingGET('Gallery','Wallpaper3');
	fdown.document.location.href='/Swf/down/wall_03_1280x1024.zip';
}
function w_4_1(){
	doRequestUsingGET('Gallery','Wallpaper4');
	fdown.document.location.href='/Swf/down/wall_04_1024x768.zip';
}
function w_4_2(){
	doRequestUsingGET('Gallery','Wallpaper4');
	fdown.document.location.href='/Swf/down/wall_04_1280x1024.zip';
}
function w_5_1(){
	doRequestUsingGET('Gallery','Wallpaper5');
	fdown.document.location.href='/Swf/down/wall_05_1024x768.zip';
}
function w_5_2(){
	doRequestUsingGET('Gallery','Wallpaper5');
	fdown.document.location.href='/Swf/down/wall_05_1280x1024.zip';
}
function w_6_1(){
	doRequestUsingGET('Gallery','Wallpaper6');
	fdown.document.location.href='/Swf/down/wall_06_1024x768.zip';
}
function w_6_2(){
	doRequestUsingGET('Gallery','Wallpaper6');
	fdown.document.location.href='/Swf/down/wall_06_1280x1024.zip';
}

/* ½ºÅ©¸° ¼¼ÀÌ¹ö */
function screen_1(){
	doRequestUsingGET('Gallery','ScreenSaver1');
	fdown.document.location.href='/Swf/down/Genesis_coupe_01.zip';
}
function screen_2(){
	doRequestUsingGET('Gallery','ScreenSaver2');
	fdown.document.location.href='/Swf/down/Genesis_coupe_02.zip';
}