//iframe resize Function +++++++++++++++++++++++++++++++++++++++++++++++++++++
function reSize()
{
    var objBody	    =	ifrm.document.body;
    var objFrame	=	document.all["ifrm"];

    objFrame.style.height = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight)
    objFrame.style.width = '100%'
}

// iframe initialize Function
function frame_init()
{
    parent.reSize();
//    parent.document.location.href = parent.document.location.href + '#';
}

//iframe move Function
function gone(selectedurl){ 
	document.all["ifrm"].src = selectedurl;
} 
var IFRAM_INIT_VAR = true;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


function Deny(){
	alert("½Ã½ºÅÛ°ü¸®¸¦ À§ÇÑ ¸Þ´ºÀÔ´Ï´Ù.");
}
function MenuView(temp){
	if(temp.style.display == ""){ temp.style.display = "NONE";}
	else{ temp.style.display = "";}
}
function viewMenu(i,total)
{
	menuName = "Menu_" + i;
	for(n=0;n<total;n++)
	{
		t = n + 1;
		hideMenuName = "Menu_" + t;
		if(menuName == hideMenuName){
			document.all[hideMenuName].style.visibility = "";
		} else {
			document.all[hideMenuName].style.visibility = "hidden";
		}
	}
}
function hideMenu(total)
{
	for(n=0;n<total;n++)
	{
		t = n + 1;
		hideMenuName = "Menu_" + t;
		document.all[hideMenuName].style.visibility = "hidden";
	}
}
function onMouseAlert(i,mode)
{
	bgcheck = "bg[" + i + "]";
	bgmain = "bg_main[" + i + "]";
	if(mode == 1){
		document.all[bgcheck].style.backgroundColor = "#000000";
		document.all[bgmain].style.backgroundColor = "#FFFFFF";
	}else{
		document.all[bgcheck].style.backgroundColor = "";
		document.all[bgmain].style.backgroundColor = "";
	}
}
function checkAll()
{
	var f = document.list;
	len = f.totalNum.value;
	var i=0;
	var strcheck;
	for( i=0; i<len; i++) {
		strcheck = "check[" + i + "]";
		bgcheck = "bg[" + i + "]";
	    if(f.allcheck.checked == true){
			document.list[strcheck].checked = true;
			document.all[bgcheck].style.backgroundColor="#eeeebb";
	    }else{
			document.list[strcheck].checked = false;
			document.all[bgcheck].style.backgroundColor="";
		}
	}
}
function checkOne(t)
{
	var f = document.list;
	strcheck = "check[" + t + "]";
	bgcheck = "bg[" + t + "]";
	if(document.list[strcheck].checked == true){
		document.all[bgcheck].style.backgroundColor = "#eeeebb";
	}else{
		document.all[bgcheck].style.backgroundColor = "";
	}
}

function checkListValue(){
	var f = document.list;
	len = f.totalNum.value;
	var i = 0;
	var j = 0;
	var target = "";
	var returnValue = new Array();
	var strcheck;
	for( i=0; i<len; i++) {
		strcheck = "check[" + i + "]";
	    if(document.list[strcheck].checked == true){
			j++;
	    }
	}
	return j;
}
function listAlert(i,mode)
{
	var f = document.list;
	strcheck = "check[" + i + "]";
	bgcheck = "bg[" + i + "]";
	if(document.list[strcheck].checked == false){
		if(mode == 1){
			document.all[bgcheck].style.backgroundColor = "#eeeebb";
		}else{
			document.all[bgcheck].style.backgroundColor = "";
		}
	}
}

function Flash(id,url,w,h,t,bg)
{
	document.write("\
	<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width="+w+" height="+h+" id="+id+">\
	<param name='movie' value="+url+" />\
	<param name='wmode' value="+t+" />\
	<param name='bgcolor' value="+bg+" />\
	<param name='allowScriptAccess' value='sameDomain' />\
	<param name='quality' value='high' />\
	<param name='menu' value='false' />\
	<embed src="+url+" width="+w+" height="+h+" name="+id+" bgcolor="+bg+" swLiveConnect='true' allowScriptAccess='sameDomain' quality='high' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />\
	</object>\
	");
}
//intro.html ÇÃ·¡½Ã 
function swf(src, w, h)
{
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="high">';	
	html += '<embed src="'+src+'" menu="false" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'"  height="'+h+'"><\/embed>';
	html += '<\/object>';
	document.write(html);
}

//Common\html\owners_online\bataing.html
function owners_online()
{
	html = '';
	html += '<OBJECT ID="Control1" classid="clsid:BB08CBE5-CD9B-423F-ADFA-287E3CBBB16F"';
	html +='codebase="/Common/img/owners_online/hyundaimotor.cab#version=1,0,0,0" width="0" height="0" VIEWASTEXT>';
	document.write(html);
	
}
function ownersMain()
{
	html = '';
	html +='<OBJECT ID="Control1" classid="clsid:BB08CBE5-CD9B-423F-ADFA-287E3CBBB16F" codebase="/hyundaimotor.cab#version=1,0,0,0" width="0" height="0">'
	document.write(html);
}

function swfFile(src, w, h)
{
	html = '';
	html += '<object classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" id="player" type="application/x-oleobject" width="'+w+'" height="'+h+'" standby="Loading Microsoft Windows Media Player components...">';
	html += '<param name="FileName" value="'+src+'">';																		
	html += '<param name="DisplaySize" value="4">';
	html += '<param name="EnableFullScreenControls" value="0">';
	html += '<param name="ShowControls" value="1">';
	html += '<param name="ShowTracker" value="1">';
	html += '<param name="ShowAudioControls" value="1">';
	html += '<param name="ShowStatusBar" value="1">';
	html += '<param name="ShowDisplay" value="0">';
	html += '<param name="ShowCaptioning" value="0">';
	html += '<param name="ShowPositionControls" value="0">';
	html += '<param name="SetCurrentEntry" value="1">';
	html += '<param name="ClickToPlay" value="0">';
	html += '<param name="AutoSize" value="0">';
	html += '<param name="AutoStart" value="0">';
	html += '<param name="EnableContextMenu" value="0">';
	html += '<param name="volume" value="50%">';
	html += '<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" name="player" src="'+src+'">';
	html += '</object>';
	document.write(html);
}


function swfFile2(src, w, h)
{
	html = '';
	html += '<object classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" id="player" type="application/x-oleobject" width="'+w+'" height="'+h+'" standby="Loading Microsoft Windows Media Player components..." VIEWASTEXT>';
	html += '<param name="FileName" value="'+src+'">';
	html += '<param name="DisplaySize" value="4">';
	html += '<param name="EnableFullScreenControls" value="0">';
	html += '<param name="ShowControls" value="0">';
	html += '<param name="ShowTracker" value="1">';
	html += '<param name="ShowAudioControls" value="0">';
	html += '<param name="ShowStatusBar" value="0">';
	html += '<param name="ShowDisplay" value="0">';
	html += '<param name="ShowCaptioning" value="0">';
	html += '<param name="ShowPositionControls" value="0">';
	html += '<param name="SetCurrentEntry" value="1">';
	html += '<param name="ClickToPlay" value="0">';
	html += '<param name="AutoSize" value="0">';
	html += '<param name="AutoStart" value="1">';
	html += '<param name="EnableContextMenu" value="0">';
	html += '<param name="volume" value="50%">';
	html += '<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" name="player" src="'+src+'">';
	html += '</object>';
	document.write(html);
}

