//-------------- Megazone SAT --------------// Flash publishing with Cross Browsingfunction swfprint(furl,fwidth,fheight,transoption)	{	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ fwidth +'" height="' + fheight +'" align="middle">');	document.write('<param name="movie" value="'+ furl +'"/>');	if (transoption == "t")	{		document.write('<param name="wmode" value="transparent"/>');	} else if	(transoption == "o")	{		document.write('<param name="wmode" value="opaque"/>');	}	document.write('<!-- Hixie method -->');	document.write('<!--[if !IE]> <-->');	document.write('<object type="application/x-shockwave-flash" data="'+ furl +'" width="'+ fwidth +'" height="' + fheight +'"');	if (transoption == "t")	{		document.write(' wmode="transparent"');	} else if	(transoption == "o")	{		document.write(' wmode="opaque"');	}	document.write('></object>');	document.write('<!--> <![endif]-->');	document.write('</object>');}function swfprint1(furl,fwidth,fheight,transoption)  {    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ fwidth +'" height="' + fheight +'" align="middle">');    if (DOMAIN.indexOf("168.154") > 0 ) {        document.write('<param name="movie" value="'+ furl +'?DOMAIN=http://168.154.64.171:9300&GOURL=/travel/trv/exTrv.continent.List.do?trvBoardId=6"/>');    } else {        document.write('<param name="movie" value="'+ furl +'?DOMAIN=http://www.enclean.com&GOURL=/travel/trv/exTrv.continent.List.do?trvBoardId=6"/>');    }    if (transoption == "t") {        document.write('<param name="wmode" value="transparent"/>');    } else if   (transoption == "o")    {        document.write('<param name="wmode" value="opaque"/>');    }    document.write('<!-- Hixie method -->');    document.write('<!--[if !IE]> <-->');    document.write('<object type="application/x-shockwave-flash" data="'+ furl +'" width="'+ fwidth +'" height="' + fheight +'"');    if (transoption == "t") {        document.write(' wmode="transparent"');    } else if   (transoption == "o")    {        document.write(' wmode="opaque"');    }    document.write('></object>');    document.write('<!--> <![endif]-->');    document.write('</object>');}// Flash publishing with Cross Browsingfunction swfprint2(furl,fwidth,fheight,transoption)  {    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ fwidth +'" height="' + fheight +'" align="middle">');    if (DOMAIN.indexOf("168.154") > 0 ) {        document.write('<param name="movie" value="'+ furl +'?xmlURL=http://168.154.64.171:9300/img/Flash/travel/ForeignHome.xml"/>');    }    else{        document.write('<param name="movie" value="'+ furl +'?xmlURL=http://www.enclean.com/img/Flash/travel/ForeignHome.xml"/>');    }    //document.write('<param name="xmlURL" value="/img/Flash/travel/test.xml"/>'); //해외자동차여행홈 플래쉬 변수    //  document.write('<param name="DOMAIN" value="http://www.enclean.com"/>');    if (transoption == "t") {        document.write('<param name="wmode" value="transparent"/>');    } else if   (transoption == "o")    {        document.write('<param name="wmode" value="opaque"/>');    }    document.write('<!-- Hixie method -->');    document.write('<!--[if !IE]> <-->');    document.write('<object type="application/x-shockwave-flash" data="'+ furl +'" width="'+ fwidth +'" height="' + fheight +'"');    if (transoption == "t") {        document.write(' wmode="transparent"');    } else if   (transoption == "o")    {        document.write(' wmode="opaque"');    }    document.write('></object>');    document.write('<!--> <![endif]-->');    document.write('</object>');}//imageOverfunction imageOver(objImg) {	objImg.src = objImg.src.replace("off.gif", "on.gif");}function imageOut(objImg) {	objImg.src = objImg.src.replace("on.gif", "off.gif");}// Embeded function image Overfunction menuOver() {	this.src = this.src.replace("_off.gif", "_on.gif");}function menuOut() {	this.src = this.src.replace("_on.gif", "_off.gif");}// Tabbed menufunction initTabMenu(menuElId) {	var tabMenu = document.getElementById(menuElId).getElementsByTagName("a");	if(tabMenu.length > 0){		for(i=0; i<tabMenu.length; i++) {			thismenu = tabMenu.item(i);			thismenu.menuContainer = document.getElementById(menuElId);			thismenu.targetEl = document.getElementById(tabMenu.item(i).href.split("#")[1]);			thismenu.targetEl.style.display = "none";			if(thismenu.getElementsByTagName("img").length>0)	{				thismenu.getElementsByTagName("img").item(0).onmouseover = menuOver;				thismenu.getElementsByTagName("img").item(0).onmouseout = menuOut;			}			thismenu.onclick = tabMenuClick;		}		initmenu = tabMenu.item(0);		initmenu.menuContainer = document.getElementById(menuElId);		initmenu.targetEl = document.getElementById(initmenu.href.split("#")[1]);		initmenu.targetEl.style.display = "block";		initmenu.className = "activate";		if(initmenu.getElementsByTagName("img").length>0)	{			initmenu.getElementsByTagName("img").item(0).onmouseover();			initmenu.getElementsByTagName("img").item(0).onmouseover = null;			initmenu.getElementsByTagName("img").item(0).onmouseout = null;		}		initmenu.menuContainer.current = initmenu;	}}function tabMenuClick() {	currentmenu = this.menuContainer.current;	if (currentmenu != this) {		currentmenu.targetEl.style.display = "none";		currentmenu.className = null;		if(currentmenu.getElementsByTagName("img").length>0)	{			currentmenu.getElementsByTagName("img").item(0).onmouseover = menuOver;			currentmenu.getElementsByTagName("img").item(0).onmouseout = menuOut;			currentmenu.getElementsByTagName("img").item(0).onmouseout();		}		this.targetEl.style.display = "block";		this.className = "activate";		if(this.getElementsByTagName("img").length>0)	{			this.getElementsByTagName("img").item(0).onmouseover = null;			this.getElementsByTagName("img").item(0).onmouseout = null;		}		this.menuContainer.current = this;	}	return false;}function initTabMenuClick(tabContainerID) {	var tabContainer = document.getElementById(tabContainerID);	var tabAnchor = tabContainer.getElementsByTagName("a");	var i = 0;	for(i=0; i<tabAnchor.length; i++) {		if (tabAnchor.item(i).className == "tab")			thismenu = tabAnchor.item(i);		else			continue;		thismenu.container = tabContainer;		thismenu.targetEl = document.getElementById(tabAnchor.item(i).href.split("#")[1]);		thismenu.targetEl.style.display = "none";		thismenu.imgEl = thismenu.getElementsByTagName("img").item(0);		thismenu.onclick = function tabMenuClick() {			currentmenu = this.container.current;			if (currentmenu == this)				return false;			if (currentmenu) {				currentmenu.targetEl.style.display = "none";				if (currentmenu.imgEl) {					currentmenu.imgEl.src = currentmenu.imgEl.src.replace("_on.gif", "_off.gif");				} else {					currentmenu.className = currentmenu.className.replace(" on", "off");				}			}			this.targetEl.style.display = "";			if (this.imgEl) {				this.imgEl.src = this.imgEl.src.replace("_off.gif", "_on.gif");			} else {				this.className += " on";			}			this.container.current = this;			return false;		};		if (!thismenu.container.first)			thismenu.container.first = thismenu;	}	if (tabContainer.first)		tabContainer.first.onclick();}function initLayerMenuClick(tabContainerID) { var tabContainer = document.getElementById(tabContainerID); var tabAnchor = tabContainer.getElementsByTagName("a"); var i = 0; for(i=0; i<tabAnchor.length; i++) {  if (tabAnchor.item(i).className == "tab")   thismenu = tabAnchor.item(i);  else   continue;  thismenu.container = tabContainer;  thismenu.targetEl = document.getElementById(tabAnchor.item(i).href.split("#")[1]);  thismenu.targetEl.style.display = "none";  thismenu.targetEl.style.visibility = "hidden"; // 2008-10-07 최규남 수정  thismenu.imgEl = thismenu.getElementsByTagName("img").item(0);  thismenu.onclick = function tabMenuClick() {   currentmenu = this.container.current;   /* 2008-10-07 최규남 수정   if (currentmenu == this)    return false;   */   if (currentmenu) {    currentmenu.targetEl.style.display = "none";    currentmenu.targetEl.style.visibility = "hidden"; // 2008-10-07 최규남 수정    if (currentmenu.imgEl) {     currentmenu.imgEl.src = currentmenu.imgEl.src.replace("_on.gif", "_off.gif");    } else {     currentmenu.className = currentmenu.className.replace(" on", "off");    }   }   this.targetEl.style.display = "";   this.targetEl.style.visibility = "visible"; // 2008-10-07 최규남 수정   if (this.imgEl) {    this.imgEl.src = this.imgEl.src.replace("_off.gif", "_on.gif");   } else {    this.className += " on";   }   this.container.current = this;   return false;  }; }}function initRadioMenu(radioElId) { //미완	var radioMenu = document.getElementById(radioElId).getElementsByTagName("input");	if(radioMenu.length > 0){		for(i=0; i<radioMenu.length; i++) {			thismenu = radioMenu.item(i);			thismenu.menuContainer = document.getElementById(radioElId);			thismenu.targetEl = document.getElementById(radioMenu.item(i).getAttribute("value"));			thismenu.targetEl.style.display = "none";			thismenu.onclick = radioMenuClick;		}		initmenu = radioMenu.item(0);		initmenu.menuContainer = document.getElementById(radioElId);		initmenu.targetEl = document.getElementById(initmenu.getAttribute("value"));		initmenu.checked = true;		initmenu.targetEl.style.display = "block";		initmenu.menuContainer.current = initmenu;	}}function radioMenuClick() {	currentmenu = this.menuContainer.current;	if (currentmenu != this) {		currentmenu.targetEl.style.display = "none";		currentmenu.checked = false;		this.checked = true;		this.targetEl.style.display = "block";		this.menuContainer.current = this;	}	return false;}// Layer Show-Hidefunction showLayer(tgtEl)    {    document.getElementById(tgtEl).style.display = "block";    }function hideLayer(tgtEl)    {    document.getElementById(tgtEl).style.display = "none";    }/*function viewExtLink() {	target = this.href;	linkEl = document.getElementById(target.split("#")[1]);	if (linkEl.style.display == "block") {		linkEl.style.display = "none";	} else {		linkEl.style.display = "block";	}	return false;}*/// Iframe Resizefunction calcHeight(){  //find the height of the internal page  var the_height=    document.getElementById('the_iframe').contentWindow.      document.body.scrollHeight;  //change the height of the iframe  document.getElementById('the_iframe').height=      the_height;}// Select Linksfunction selectLinks(tgtEl)    {	var tgtList = document.getElementById(tgtEl);	if(tgtList.style.display)    {		hideLayer(tgtEl);		tgtList.style.display = "";	} else {		showLayer(tgtEl);	}}//Popupfunction wopen(url,name,w,h,s) {    if(s==1)    {        sOp = ",scrollbars=yes";    } else  if(s==0)   {        sOp = "";    }    winOptions = getCenterOption(w, parseInt(h, 10)) + ',width='+w+',height='+h+sOp;    window.open(url, name, winOptions);}//Popup Closefunction wclose()     {    window.close();}//Popup Printfunction wprint()     {    window.print();}// 가로,세로 사이즈에 맞는 센터지점의 속성값을 반환한다.function getCenterOption(winwidth, winheight) {    var winx = Math.ceil((screen.availWidth - winwidth) / 2);    var winy = Math.ceil((screen.availHeight - winheight) / 2);    return "left=" + winx + ",top=" + winy;}//pngfunction setPng24(obj) {    obj.width=obj.height=1;    obj.className=obj.className.replace(/\bpng24\b/i,'');    obj.style.filter =    "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"    obj.src='';    return '';}/* 20071212 Image Over Text - Do Kumho */function hj_view(obj) {	var bimgs = new Array();	var btext = new Array();	var blinka = new Array();	var picbox = document.getElementById(obj);	var picboxli = picbox.getElementsByTagName("li");	var picboxlitotal = picboxli.length;	for( var i=0; i<picboxlitotal; i++ ) {		bimgs[i] = picboxli.item(i).getElementsByTagName("a")[0].getElementsByTagName("img")[0].src;		btext[i] = picboxli.item(i).getElementsByTagName("a")[0].getElementsByTagName("img")[0].alt;		blinka[i] = picboxli.item(i).getElementsByTagName("a")[0].href;		if ( i == 0 ) {			picboxli.item(i).getElementsByTagName("a")[0].className = "over";		} else {			picboxli.item(i).getElementsByTagName("a")[0].className = null;			picboxli.item(i).getElementsByTagName("a")[0].getElementsByTagName("img")[0].style.filter='Alpha(opacity=50)';		}	}	var newli = document.createElement("li");	newli.className = "pic_big";	picbox.appendChild(newli);	var newlink = document.createElement("a");	newlink.href = blinka[0];	newli.appendChild(newlink);	var newPic = document.createElement("img");	newPic.src = bimgs[0];	newPic.alt = btext[0];	newlink.appendChild(newPic);}function hj_over(obj,num) {	var picbox = document.getElementById(obj);	var picboxli = picbox.getElementsByTagName("li");	var picboxlitotal = picboxli.length - 1;	for( var i=0; i<picboxlitotal; i++ ) {		if ( i == num ) {			picboxli.item(i).getElementsByTagName("a")[0].className = "over";			picboxli.item(i).getElementsByTagName("a")[0].getElementsByTagName("img")[0].style.filter='Alpha(opacity=100)';			picboxli.item(3).getElementsByTagName("img")[0].src = picboxli.item(i).getElementsByTagName("a")[0].getElementsByTagName("img")[0].src;			picboxli.item(3).getElementsByTagName("img")[0].alt = picboxli.item(i).getElementsByTagName("a")[0].getElementsByTagName("img")[0].alt;		} else {			picboxli.item(i).getElementsByTagName("a")[0].className = null;			picboxli.item(i).getElementsByTagName("a")[0].getElementsByTagName("img")[0].style.filter='Alpha(opacity=50)';		}	}}function board_view(obj,num,total) {	for ( var i=0; i<total; i++ ) {		var objtr = document.getElementById(obj+i);		if ( i == num ) {			objtr.className = "valueblockon";		} else {			objtr.className = "valueblockoff";		}	}}/*2008-02-14  dokumho */function ImagesScroll() {	this.GoodsSetTime = null;	this.Speed = 2;}ImagesScroll.prototype.GoodsSetting = function() {	this.DivBox = document.getElementById(this.DivName);	this.DivBox.style.width = this.DivWidth + "px";	this.LiBox_Left = new Array();							// 각 상품의 위치값을 저장하는 배열	this.Last_Left = new Array();							// 각 상품의 위치값을 저장하는 배열	this.MovieWidth = this.ImageWidth+4+this.ImageSpace;	this.tabletd = this.DivBox.getElementsByTagName("table")[0].getElementsByTagName("tr")[0];	this.tabletd.getElementsByTagName("td")[0].style.width = this.BtnWidth + "px";	this.tabletd.getElementsByTagName("td")[2].style.width = this.BtnWidth + "px";	this.tabletd.getElementsByTagName("td")[1].style.width = ( this.DivWidth - this.BtnWidth * 2 ) + "px";	this.tabletd.getElementsByTagName("td")[0].getElementsByTagName("a")[0].href = "javascript:" + this.ScrollName + "._prevBtn();";	this.tabletd.getElementsByTagName("td")[2].getElementsByTagName("a")[0].href = "javascript:" + this.ScrollName + "._nextBtn();";	this.tabletd.getElementsByTagName("td")[2].style.textAlign = "right";	this.SubDivBox = this.tabletd.getElementsByTagName("td")[1].getElementsByTagName("div")[0];	this.SubDivBox.style.width = ( this.DivWidth - this.BtnWidth * 2 - 12 ) + "px";	this.CopyUl = this.SubDivBox.getElementsByTagName("ul")[0]	this.CopyLi = this.SubDivBox.getElementsByTagName("ul")[0].getElementsByTagName("li")	this.CopyLiLength = this.CopyLi.length;	if ( this.CopyLiLength < 12 ) {		for ( var i=0; i<this.CopyLiLength*2; i++ ) {			this.objNewli = this.CopyLi.item(i).cloneNode(true);			this.CopyUl.appendChild(this.objNewli)		}	}	this.PicBox = this.SubDivBox.getElementsByTagName("ul")[0].getElementsByTagName("li");	for ( var i=0; i < this.PicBox.length; i++) {		this.PicBox.item(i).style.width = ( this.ImageWidth + 4 ) + "px";		if ( this.Text == 1 ) {			this.TextBoxHeight =  this.TextLine * 14 + 30;			this.PicBox.item(i).getElementsByTagName("div")[1].style.height = this.TextBoxHeight + "px";		} else {			this.TextBoxHeight = 0;		}		this.PicBox.item(i).style.height = ( this.ImageHeight + this.TextBoxHeight + 12 ) + "px";	}	this.SubDivBox.style.height = ( this.ImageHeight + this.TextBoxHeight + 12 ) + "px";	this.GoodlsArrange();//	this.GoodsSetTime = setTimeout(this.ScrollName + "._nextFrame()",1000);}ImagesScroll.prototype.GoodlsArrange = function() {	this.Default_left = -4*this.MovieWidth;	for ( var i=0; i < this.PicBox.length; i++ ) {		this.LiBox_Left[i] = this.Default_left + ( i * this.MovieWidth );		this.PicBox.item(i).style.left = this.LiBox_Left[i] + "px";	}	this.Last_Left = this.LiBox_Left[this.PicBox.length-1];}ImagesScroll.prototype._nextFrame = function() {	for ( var i=0; i<this.PicBox.length; i++ ) {		this.LiBox_Left[i] = this.LiBox_Left[i] - this.Speed;		if ( this.LiBox_Left[i] == ( this.Default_left - this.MovieWidth ) ) {			this.LiBox_Left[i] = ( ( this.PicBox.length - 1 ) * this.MovieWidth ) + this.Default_left;			this.PicBox[i].style.left = this.LiBox_Left[i] + "px"		} else {			this.PicBox[i].style.left = this.LiBox_Left[i]+"px";		}	}	if ( Math.abs(this.LiBox_Left[0] % ( this.MovieWidth * this.LiBox_HiddenNum )) <= 1 ) {//		this.GoodsSetTime = setTimeout(this.ScrollName + "._nextFrame()",1000);	} else {		this.GoodsSetTime = setTimeout(this.ScrollName + "._nextFrame()",10);	}}ImagesScroll.prototype._prevFrame = function() {	for ( var i=0; i<this.PicBox.length; i++ ) {		this.LiBox_Left[i] = this.LiBox_Left[i] + this.Speed;		if ( this.LiBox_Left[i] == this.Last_Left + this.MovieWidth ) {			this.LiBox_Left[i] = this.Default_left;			this.PicBox[i].style.left = this.LiBox_Left[i] + "px"		} else {			this.PicBox[i].style.left = this.LiBox_Left[i]+"px";		}	}	if ( Math.abs(this.LiBox_Left[0] % ( this.MovieWidth * this.LiBox_HiddenNum )) <= 1 ) {//		this.GoodsSetTime = setTimeout(this.ScrollName + "._nextFrame()",1000);	} else {		this.GoodsSetTime = setTimeout(this.ScrollName + "._prevFrame()",10);	}}ImagesScroll.prototype._nextBtn = function() {	clearTimeout(this.GoodsSetTime);	this.GoodsSetTime = setTimeout(this.ScrollName + "._nextFrame()",10);}ImagesScroll.prototype._prevBtn = function() {	clearTimeout(this.GoodsSetTime);	this.GoodsSetTime = setTimeout(this.ScrollName + "._prevFrame()",10);}// Select Linksfunction selectLinks(tgtEl)    {    var tgtList = document.getElementById(tgtEl);    if(tgtList.style.display)    {        hideLayer(tgtEl);        tgtList.style.display = "";		if ( tgtEl == "pricecomparedetailbox") {			document.getElementById("pricecomparedetailbtn").className = "pricecomparedetailopen";		}    } else    {        showLayer(tgtEl);		if ( tgtEl == "pricecomparedetailbox") {			document.getElementById("pricecomparedetailbtn").className = "pricecomparedetailclose";		}    }}//image popupfunction popimage(imagesrc,winwidth,winheight){    var look='width='+winwidth+',height='+winheight+','        popwin=window.open("","",look)        popwin.document.open()        popwin.document.write('<title>Image Window</title><body topmargin=0 leftmargin=0><img style=cursor:pointer; onclick="self.close()" src="'+imagesrc+'"></body>')        popwin.document.close()}// Sub navigationvar tempLayer = null;function toggleMenu(firdp,secdp){	var topMenu = "m" + firdp;	var midMenu = topMenu + "s" + secdp;//	var totalMenu = document.getElementById(topMenu).parentNode.getElementsByTagName('ul').length;	var totalMenu = document.getElementById(topMenu).parentNode.childNodes.length;	var tmpNodeList = document.getElementById(topMenu).parentNode.childNodes;	var count = 0;/*	for(i=0;i<totalMenu;i++){		if((tmpNodeList.item(i).attributes.getNamedItem("id").nodeValue).charAt(0)=="m"){			count++;		}	}*///	if(firdp > 0)	{		for(i=0;i<totalMenu;i++)	{			var currentMenu = "m" + i;			var objFirMenu = document.getElementById(currentMenu);			if(topMenu == currentMenu)	{				if(objFirMenu.className.indexOf("firstmenu") >=0){					objFirMenu.className = "firstmenu activated";				}else if(objFirMenu.className.indexOf("lastmenu") >=0){					objFirMenu.className = "lastmenu activated";				}else{					objFirMenu.className = "activated";				}				if(objFirMenu.getElementsByTagName('ul')[0] != null)					objFirMenu.getElementsByTagName('ul')[0].style.display = "block";			}else if(objFirMenu){				if(objFirMenu.className.indexOf("firstmenu") >=0){					objFirMenu.className = "firstmenu";				}else if(objFirMenu.className.indexOf("lastmenu") >=0){					objFirMenu.className = "lastmenu";				}else{					objFirMenu.className = null;				}				if(objFirMenu.getElementsByTagName('ul')[0] != null)					objFirMenu.getElementsByTagName('ul')[0].style.display = "none";			}			subToggleMenu(topMenu,midMenu);		}		disappear = setTimeout("if (tempLayer!=null){tempLayer.style.display='none'}",999999000);		return;}var ismouseover = false;var toggleobj = null;function test(e)	{	if(typeof(disappear)!="undefined" || disappear!=null)	{		clearTimeout(disappear);		ismouseover = true;	}}function clearSubmenu(e)	{	if(!ismouseover) return;	disappear = setTimeout("tempLayer.style.display='none';ismouseover=false;",999999000);}var issettoggle = false;function subToggleMenu(topMenu,midMenu) {	if(document.getElementById(topMenu).getElementsByTagName("ul")[0] != null){		var objUls = document.getElementById(topMenu).getElementsByTagName("ul")[0].getElementsByTagName("ul");		var objCurrentLi = document.getElementById(midMenu);		issettoggle = false;		for(var i=0;i<objUls.length;i++){			if(objUls[i].parentNode==objCurrentLi){				if(issettoggle) continue;				objUls[i].style.display="block";				if(objUls[i].parentNode.className.indexOf("firstmenu") >=0){					objUls[i].parentNode.className = "firstmenu activated";				}else if(objUls[i].parentNode.className.indexOf("lastmenu") >=0){					objUls[i].parentNode.className = "lastmenu activated";				}else{					objUls[i].parentNode.className = "activated";				}				tempLayer = objUls[i];				tempLayer.onmouseover = test;				tempLayer.onmouseout = clearSubmenu;				issettoggle = true;			}else{				objUls[i].style.display="none";				if(objUls[i].parentNode.className.indexOf("firstmenu") >=0){					objUls[i].parentNode.className = "firstmenu";				}else if(objUls[i].parentNode.className.indexOf("lastmenu") >=0){					objUls[i].parentNode.className = "lastmenu";				}else{					objUls[i].parentNode.className = null;				}				objUls[i].onmouseover = function(){};				objUls[i].onmouseout = function(){};			}		}	}}/*motor sports > photoen. need script start -----------------------------------------------------------------------------*//* Image Menu on/off */function imgOn(imgEl){	imgEl.src = imgEl.src.replace("_off.gif", "_on.gif");}function imgOut(imgEl){	imgEl.src = imgEl.src.replace("_on.gif", "_off.gif");}var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)var enableanchorlink=0 //Enable or disable the anchor link when clicked on? (1=e, 0=d)var hidemenu_onclick=1 //hide menu when user clicks within menu? (1=yes, 0=no)var ie5=document.allvar ns6=document.getElementById&&!document.allfunction getposOffset(what, offsettype){    var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;    var parentEl=what.offsetParent;    while (parentEl!=null){        totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;        parentEl=parentEl.offsetParent;    }    return totaloffset;}function showhide(obj, e, visible, hidden){    if (ie5||ns6)        dropmenuobj.style.left=dropmenuobj.style.top=-500    if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")        obj.visibility=visible    else if (e.type=="click")        obj.visibility=hidden}function iecompattest(){    return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body}function clearbrowseredge(obj, whichedge){    var edgeoffset=0    if (whichedge=="rightedge"){    var windowedge=ie5 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15        dropmenuobj.contentmeasure=dropmenuobj.offsetWidth    if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)        edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth    }    else{    var windowedge=ie5 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18        dropmenuobj.contentmeasure=dropmenuobj.offsetHeight    if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)        edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight    }    return edgeoffset}function dropdownmenu(obj, e, dropmenuID){    if (window.event) event.cancelBubble=true    else if (e.stopPropagation) e.stopPropagation()    if (typeof dropmenuobj!="undefined") //hide previous menu        dropmenuobj.style.visibility="hidden"        clearhidemenu()    if (ie5||ns6){        obj.onmouseout=delayhidemenu        dropmenuobj=document.getElementById(dropmenuID)    if (hidemenu_onclick) dropmenuobj.onclick=function(){dropmenuobj.style.visibility='hidden'}        dropmenuobj.onmouseover=clearhidemenu        dropmenuobj.onmouseout=ie5? function(){ dynamichide(event)} : function(event){ dynamichide(event)}        showhide(dropmenuobj.style, e, "visible", "hidden")        dropmenuobj.x=getposOffset(obj, "left")        dropmenuobj.y=getposOffset(obj, "top")        dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"        dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"    }    return clickreturnvalue()}function clickreturnvalue(){    if ((ie5||ns6) && !enableanchorlink) return false    else return true}function contains_ns6(a, b) {    while (b.parentNode)    if ((b = b.parentNode) == a)    return true;    return false;}function dynamichide(e){    if (ie5&&!dropmenuobj.contains(e.toElement))        delayhidemenu()    else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))    delayhidemenu()}function delayhidemenu(){    delayhide=setTimeout("dropmenuobj.style.visibility='hidden'",disappeardelay)}function clearhidemenu(){    if (typeof delayhide!="undefined")        clearTimeout(delayhide)}/*motor sports photoen end -----------------------------------------------------------------------------*//* photo gallery */function showPic(whichpic) {  if (!document.getElementById("placeholder")) return true;  var source = whichpic.getAttribute("href");  var placeholder = document.getElementById("placeholder");  placeholder.setAttribute("src",source);  if (!document.getElementById("description")) return false;  if (whichpic.getAttribute("title")) {    var text = whichpic.getAttribute("title");  } else {    var text = "";  }  var description = document.getElementById("description");  if (description.firstChild.nodeType == 3) {    description.firstChild.nodeValue = text;  }  return false;}function prepareGallery() {  if (!document.getElementsByTagName) return false;  if (!document.getElementById) return false;  if (!document.getElementById("example_3_content")) return false;  var gallery = document.getElementById("example_3_content");  var links = gallery.getElementsByTagName("a");  for ( var i=0; i < links.length; i++) {    links[i].onclick = function() {      return showPic(this);	}    links[i].onkeypress = links[i].onclick;  }}function addLoadEvent(func) {  var oldonload = window.onload;  if (typeof window.onload != 'function') {    window.onload = func;  } else {    window.onload = function() {      oldonload();      func();    }  }}addLoadEvent(prepareGallery);//ucc tabfunction tabSwap(sw) {	for (i = 1; i < 4; i++) {		if (sw == i) {			document.getElementById('tab01_0'+i+'contents').style.display='';		} else {			document.getElementById('tab01_0'+i+'contents').style.display='none';			document.getElementById('tab01_0'+i+'contents').style.display='none';		}	}}/* 2008/02/26 Dokumho 수정작업 */try {document.execCommand('BackgroundImageCache', false, true);} catch(e) {}function code_change(code) {	for ( var i=0; i<menuCode.length; i++ ) {		if ( code == menuCode[i][0] ) {			return menuCode[i][1];		}	}}// 2008/03/11 썸네일 갤러리 수정본 도금호// 2008/03/21 섬네일 임시로 작동 막음 이윤한function get_image_size(id) {    img = document.documentElement.getElementsByTagName("body")[0].appendChild(document.createElement('img'))    img.src = id.href;    var w = img.offsetWidth;    var h = img.offsetHeight;    document.documentElement.getElementsByTagName("body")[0].removeChild(img);    return {width:w,height:h};}function image_close() {	document.documentElement.getElementsByTagName("body")[0].removeChild(document.getElementById("ThumbnailScroll_Big"));	document.documentElement.getElementsByTagName("body")[0].removeChild(document.getElementById("ThumbnailScroll_Link"));}function how_size(img) {	WindowWidth = (window.innerWidth) ? window.innerWidth : (document.documentElement && document.documentElement.clientWidth) ? document.documentElement.clientWidth : document.body.clientWidth;	WindowHeight = (window.innerHeight) ? window.innerHeight : (document.documentElement && document.documentElement.clientHeight) ? document.documentElement.clientHeight : document.body.clientHeight;    var size = get_image_size(img);	ImgLeft = Math.round(( WindowWidth - size.width ) / 2);	ImgTop = Math.round(( WindowHeight - size.height ) / 2);	if ( document.getElementById("ThumbnailScroll_Big") != null ) {		document.documentElement.getElementsByTagName("body")[0].removeChild(document.getElementById("ThumbnailScroll_Big"));	}	var spinline = document.createElement('a');	spinline.href = "javascript:image_close();";	spinline.id = "ThumbnailScroll_Big";	document.documentElement.getElementsByTagName("body")[0].appendChild(spinline);	var spin = document.createElement('img');	spin.src = img.href;	spin.style.position = "absolute";	spin.style.border = "7px solid #000000"	spin.style.top = ImgTop + document.documentElement.scrollTop + "px";	spin.style.left = ImgLeft + "px";	spinline.appendChild(spin);	var spinlink = document.createElement('a');	spinlink.href = "javascript:image_close();";	spinlink.id = "ThumbnailScroll_Link";	document.documentElement.getElementsByTagName("body")[0].appendChild(spinlink);	var closelink = document.createElement('img');	closelink.src = "/img/img/cmt/motor/layer_close_1.gif";	closelink.style.position = "absolute";	closelink.style.top = ImgTop + document.documentElement.scrollTop + 14 + "px";	closelink.style.left = ImgLeft + size.width - 49 + "px";	spinlink.appendChild(closelink);}// 2008/03/21 섬네일 새창 띄우기 이윤한/*function how_size (url) {	name = '';	thisUrl = url.getAttribute('href');	if (!thisUrl) {		return false;	} else {		window.open(thisUrl,name,'scrollbars=yes, resizable=yes');	}}*/function ThumbnailScroll() {	this.GoodsSetTime = null;	this.Speed = 5;}ThumbnailScroll.prototype.GoodsSetting = function() {	this.LiBox_Left = new Array();	this.ThumbnailAllBox = document.getElementById(this.DivName)	this.ThumbnailUl = this.ThumbnailAllBox.getElementsByTagName("div")[0].getElementsByTagName("ul")[0];	this.ThumbnailBox = this.ThumbnailUl.getElementsByTagName("li");	this.ThumbnailNum = this.ThumbnailBox.length;	if ( this.ThumbnailNum > this.ImageScreenNum ) {		this.Default_left = - (  this.ImageScreenNum * this.ImageWidth );		for ( var i=0; i<this.ThumbnailNum*(this.ImageScreenNum - 1); i++ ) {			this.objNewli = this.ThumbnailBox.item(i).cloneNode(true);			this.ThumbnailUl.appendChild(this.objNewli)		}		this.ThumbnailNum = this.ThumbnailBox.length;		document.getElementById(this.PrevBtn).href = "javascript:" + this.ScrollName + "._prevBtn();";		document.getElementById(this.NextBtn).href = "javascript:" + this.ScrollName + "._nextBtn();";	} else {		this.Default_left = 0;	}	for ( var i=0; i < this.ThumbnailNum; i++ ) {		this.LiBox_Left[i] = this.Default_left + ( i * this.ImageWidth );		this.ThumbnailBox.item(i).style.left = this.LiBox_Left[i] + "px";	}	this.Last_Left = this.LiBox_Left[this.ThumbnailNum-1];}ThumbnailScroll.prototype._nextFrame = function() {	for ( var i=0; i<this.ThumbnailNum; i++ ) {		this.LiBox_Left[i] = this.LiBox_Left[i] - this.Speed;		if ( this.LiBox_Left[i] == ( this.Default_left - this.ImageWidth ) ) {			this.LiBox_Left[i] = this.Last_Left;		}		this.ThumbnailBox[i].style.left = this.LiBox_Left[i] + "px"	}	if ( Math.abs(this.LiBox_Left[0] % ( this.ImageWidth * this.ImageScreenNum )) <= 1 ) {	} else {		this.GoodsSetTime = setTimeout(this.ScrollName + "._nextFrame()",10);	}}ThumbnailScroll.prototype._prevFrame = function() {	for ( var i=0; i<this.ThumbnailNum; i++ ) {		this.LiBox_Left[i] = this.LiBox_Left[i] + this.Speed;		if ( this.LiBox_Left[i] == this.Last_Left + this.ImageWidth ) {			this.LiBox_Left[i] = this.Default_left;		}		this.ThumbnailBox[i].style.left = this.LiBox_Left[i] + "px"	}	if ( Math.abs(this.LiBox_Left[0] % ( this.ImageWidth * this.ImageScreenNum )) <= 1 ) {	} else {		this.GoodsSetTime = setTimeout(this.ScrollName + "._prevFrame()",10);	}}ThumbnailScroll.prototype._nextBtn = function() {	this.GoodsSetTime = setTimeout(this.ScrollName + "._nextFrame()",0);}ThumbnailScroll.prototype._prevBtn = function() {	this.GoodsSetTime = setTimeout(this.ScrollName + "._prevFrame()",0);}// left navigation bar - Image overfunction lnbOver(containderID) {	var lnbwrap = document.getElementById(containderID);	var lnbMenu = lnbwrap.getElementsByTagName("IMG");	for (i=0; i<lnbMenu.length; i++) {		if (lnbMenu[i].src.indexOf("_on.gif") != -1 ) {			continue;		}		lnbMenu[i].onmouseover = function() {			this.src = this.src.replace (".gif","_on.gif");		}		lnbMenu[i].onmouseout = function() {			this.src = this.src.replace ("_on.gif",".gif");		}	}}// context menu// 사용자 설정 부분Layer_popup_close=1;  //메뉴 닫는 방법 1(클릭으로 닫음 )또는 2(마우스 아웃으로 닫음 )var satuas; //마우스가 팝업창 위에 놓여 있는지를 알기 위한 전역변수 선언function popup_Layer(event,popup_name) {    //팝업레이어 생성     var main,_tmpx,_tmpy,_marginx,_marginy;     main = document.getElementById(popup_name);     if(Layer_popup_close==2){        satuas=1;//클릭으로 인한 닫힘 방지를 위해     }     main.style.display = '';//팝업 생성     _tmpx = event.clientX+parseInt(main.offsetWidth);     _tmpy = event.clientY+parseInt(main.offsetHeight);     _marginx = document.body.clientWidth - _tmpx;     _marginy = document.body.clientHeight - _tmpy;     // 좌우 위치 지정     if(_marginx < 0){//우측;        main.style.left = event.clientX + document.documentElement.scrollLeft + _marginx-2+"px";     }     else{        main.style.left = event.clientX + document.documentElement.scrollLeft-5+"px";     }     //높이 지정     if(_marginy < 0){//아래부분;        main.style.top = event.clientY + document.documentElement.scrollTop + _marginy-5+"px";     }     else{        main.style.top = event.clientY + document.documentElement.scrollTop-5+"px";     }}function mouse_anchor(type){ //마우스의 위치에 따른 팝업의 닫음을 결정    if(type=="1"){       satuas="1";    }    if(type=="0"){       satuas="0";    }}function Layer_popup_Off() { //팝업 닫음  if(satuas=="0"){     document.getElementById("dealer_info").style.display = "none";   }   if(Layer_popup_close==2){      satuas=null;   }}function mouseout_close() {    window.setTimeout('Layer_popup_Off()',850);}if(Layer_popup_close==1){   document.onmousedown = Layer_popup_Off;//클릭으로 닫기}if(Layer_popup_close==2){   document.onmouseover=mouseout_close;//레이어 벋어나면 닫기}// bbs_content_layer// 사용자 설정 부분Layer_popup_close2=1;  //메뉴 닫는 방법 1(클릭으로 닫음 )또는 2(마우스 아웃으로 닫음 )var satuas2; //마우스가 팝업창 위에 놓여 있는지를 알기 위한 전역변수 선언function popup_Layer2(event,popup_name) {    //팝업레이어 생성     var main,_tmpx,_tmpy,_marginx,_marginy;     main = document.getElementById(popup_name);     if(Layer_popup_close2==2){        satuas2=1;//클릭으로 인한 닫힘 방지를 위해     }     main.style.display = '';//팝업 생성     _tmpx = event.clientX+parseInt(main.offsetWidth);     _tmpy = event.clientY+parseInt(main.offsetHeight);     _marginx = document.body.clientWidth - _tmpx;     _marginy = document.body.clientHeight - _tmpy;     // 좌우 위치 지정     if(_marginx < 0){//우측;        main.style.left = event.clientX + document.documentElement.scrollLeft + _marginx-2+"px";     }     else{        main.style.left = event.clientX + document.documentElement.scrollLeft-5+"px";     }     //높이 지정     if(_marginy < 0){//아래부분;        main.style.top = event.clientY + document.documentElement.scrollTop + _marginy-5+"px";     }     else{        main.style.top = event.clientY + document.documentElement.scrollTop-5+"px";     }      // IE6 select box fixed	  if (!document.getElementById("after_note_save")) return false;	var ifsave = document.getElementById("after_note_save");	var aNote = document.getElementById("after_note");	var srcWidth = aNote.offsetWidth;	var srcHeight = aNote.offsetHeight;	var srcTop = aNote.offsetTop;	var srcLeft = aNote.offsetLeft;	ifsave.style.display = "block";	ifsave.style.width = srcWidth;	ifsave.style.height = srcHeight;	ifsave.style.top = srcTop;	ifsave.style.left = srcLeft;}function mouse_anchor2(type){ //마우스의 위치에 따른 팝업의 닫음을 결정    if(type=="1"){       satuas2="1";    }    if(type=="0"){       satuas2="0";    }}function Layer_popup_Off2() { //팝업 닫음  if(satuas2=="0"){     document.getElementById("after_note").style.display = "none";   }   if(Layer_popup_close2==2){      satuas2=null;   }}function mouseout_close2() {    window.setTimeout('Layer_popup_Off()',850);}if(Layer_popup_close2==1){   document.onmousedown = Layer_popup_Off;//클릭으로 닫기}if(Layer_popup_close2==2){   document.onmouseover=mouseout_close;//레이어 벋어나면 닫기}function Layer_pop_close2() {	if (!document.getElementById("after_note")) return false;	document.getElementById('after_note').style.display = 'none';	if (!document.getElementById("after_note_save")) return false;	document.getElementById('after_note_save').style.display = 'none';	return false;}// 스크롤바에 따라다니는 레이어 스크립트function initMoving(target, position, topLimit, btmLimit) {	if (!target)		return false;	var obj = target;	obj.initTop = position;	obj.topLimit = topLimit;	obj.bottomLimit = document.documentElement.scrollHeight - btmLimit;	obj.style.position = "absolute";	obj.top = obj.initTop;	obj.left = obj.initLeft;	if (typeof(window.pageYOffset) == "number") {		obj.getTop = function() {			return window.pageYOffset;		}	} else if (typeof(document.documentElement.scrollTop) == "number") {		obj.getTop = function() {			return document.documentElement.scrollTop;		}	} else {		obj.getTop = function() {			return 0;		}	}	if (self.innerHeight) {		obj.getHeight = function() {			return self.innerHeight;		}	} else if(document.documentElement.clientHeight) {		obj.getHeight = function() {			return document.documentElement.clientHeight;		}	} else {		obj.getHeight = function() {			return 500;		}	}	obj.move = setInterval(function() {		if (obj.initTop > 0) {			pos = obj.getTop() + obj.initTop;		} else {			pos = obj.getTop() + obj.getHeight() + obj.initTop;			//pos = obj.getTop() + obj.getHeight() / 2 - 15;		}		if (pos > obj.bottomLimit)			pos = obj.bottomLimit;		if (pos < obj.topLimit)			pos = obj.topLimit;		interval = obj.top - pos;		obj.top = obj.top - interval / 3;		obj.style.top = obj.top + "px";	}, 30)}// 신차딜러 검색function dealS_category() {	var dsCat = document.getElementById("dealer_catecory");	var dsKey = document.getElementById("dealer_keyword");	dsCat.style.display = "";	dsKey.style.display = "none";}function dealS_keyword() {	var dsCat = document.getElementById("dealer_catecory");	var dsKey = document.getElementById("dealer_keyword");	dsCat.style.display = "none";	dsKey.style.display = "";}// 신차딜러 게시판 검색영역의 셀렉트 박스 정렬function dealerSearchAlign (id) {	var Sfield = document.getElementById("dealer_searchbox");	var srcF = Sfield.getElementsByTagName("fieldset");	var srcFirst = srcF[0].getElementsByTagName("select");	var tar = 0;	tar = srcFirst[0].offsetWidth + srcFirst[1].offsetWidth + srcFirst[2].offsetWidth;	if (tar < 300) {		srcF[0].style.paddingRight = 300 - tar + 12 + "px";	}}// id값이 있는 플래쉬 삽입function swfprint_id(furl,fwidth,fheight,transoption,fid)    {	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ fwidth +'" height="' + fheight +'" align="middle" id="'+fid+'">');	document.write('<param name="movie" value="'+ furl +'"/>');	if (transoption == "t")    {		document.write('<param name="wmode" value="transparent"/>');	} else if    (transoption == "o")    {		document.write('<param name="wmode" value="opaque"/>');	}	document.write('<!-- Hixie method -->');	document.write('<!--[if !IE]> <-->');	document.write('<object type="application/x-shockwave-flash" data="'+ furl +'" width="'+ fwidth +'" height="' + fheight +'"');	if (transoption == "t")    {		document.write(' wmode="transparent"');	} else if    (transoption == "o")    {		document.write(' wmode="opaque"');	}	document.write(' name="'+fid+'"');	document.write('></object>');	document.write('<!--> <![endif]-->');	document.write('</object>');}//// Tab Contentfunction initTabMenuDrama(tabContainerID) {	var tabContainer = document.getElementById(tabContainerID);	var tabAnchor = tabContainer.getElementsByTagName("a");	var i = 0;	for(i=0; i<tabAnchor.length; i++) {		if (tabAnchor.item(i).className == "tab")			thismenu = tabAnchor.item(i);		else			continue;		thismenu.container = tabContainer;		thismenu.targetEl = document.getElementById(tabAnchor.item(i).href.split("#")[1]);		thismenu.targetEl.style.display = "none";		thismenu.imgEl = thismenu.getElementsByTagName("img").item(0);		thismenu.onmouseover = function tabMenuClick() {			currentmenu = this.container.current;			if (currentmenu == this)				return false;			if (currentmenu) {				currentmenu.targetEl.style.display = "none";				if (currentmenu.imgEl) {					currentmenu.imgEl.src = currentmenu.imgEl.src.replace("_on.gif", ".gif");				} else {					currentmenu.className = currentmenu.className.replace(" on", "");				}			}			this.targetEl.style.display = "";			if (this.imgEl) {				this.imgEl.src = this.imgEl.src.replace(".gif", "_on.gif");			} else {				this.className += " on";			}			this.container.current = this;			return false;		};		if (!thismenu.container.first)			thismenu.container.first = thismenu;	}	if (tabContainer.first)		tabContainer.first.onmouseover();}// [06/11] 엔몰관련function initTabMenuOver(tabContainerID) {	var tabContainer = document.getElementById(tabContainerID);	var tabAnchor = tabContainer.getElementsByTagName("a");	var i = 0;	for(i=0; i<tabAnchor.length; i++) {		if (tabAnchor.item(i).className == "tab")			thismenu = tabAnchor.item(i);		else			continue;		thismenu.container = tabContainer;		thismenu.targetEl = document.getElementById(tabAnchor.item(i).href.split("#")[1]);		thismenu.targetEl.style.display = "none";		thismenu.imgEl = thismenu.getElementsByTagName("img").item(0);		 thismenu.onclick = function () {			return false;		}		thismenu.onmouseover = function tabMenuClick() {			currentmenu = this.container.current;			if (currentmenu == this)				return false;			if (currentmenu) {				currentmenu.targetEl.style.display = "none";				if (currentmenu.imgEl) {					currentmenu.imgEl.src = currentmenu.imgEl.src.replace("_on.gif", "_off.gif");				} else {					currentmenu.className = currentmenu.className.replace(" on", "off");				}			}			this.targetEl.style.display = "";			if (this.imgEl) {				this.imgEl.src = this.imgEl.src.replace("_off.gif", "_on.gif");			} else {				this.className += " on";			}			this.container.current = this;			return false;		};		if (!thismenu.container.first)			thismenu.container.first = thismenu;	}	if (tabContainer.first)		tabContainer.first.onmouseover();}// [07/11] 엔몰관련function initTabMenuOver2(tabContainerID,active) {	var tabContainer = document.getElementById(tabContainerID);	var tabAnchor = tabContainer.getElementsByTagName("a");	var i = 0;	for(i=0; i<tabAnchor.length; i++) {		if (tabAnchor.item(i).className == "tab")			thismenu = tabAnchor.item(i);		else			continue;		thismenu.container = tabContainer;		thismenu.targetEl = document.getElementById(tabAnchor.item(i).href.split("#")[1]);		thismenu.targetEl.style.display = "none";		thismenu.imgEl = thismenu.getElementsByTagName("img").item(0);		thismenu.onclick = function () {			return false;		}		thismenu.onmouseover = function tabMenuClick() {			currentmenu = this.container.current;			if (currentmenu == this)				return false;			if (currentmenu) {				currentmenu.targetEl.style.display = "none";				if (currentmenu.imgEl) {					currentmenu.imgEl.src = currentmenu.imgEl.src.replace("_on.gif", "_off.gif");				} else {					currentmenu.className = currentmenu.className.replace(" on", "off");				}			}			this.targetEl.style.display = "";			if (this.imgEl) {				this.imgEl.src = this.imgEl.src.replace("_off.gif", "_on.gif");			} else {				this.className += " on";			}			this.container.current = this;			return false;		};		if (!thismenu.container[active])			thismenu.container.first = thismenu;	}	if (tabContainer.first)		tabContainer.first.onmouseover();}function EnPointOver(containerID) {	var lnbwrap = document.getElementById(containerID);	var lnbMenu = lnbwrap.getElementsByTagName("IMG");	for (i=0; i<lnbMenu.length; i++) {		if (lnbMenu[i].src.indexOf("_on.gif") != -1 ) {			continue;		}		lnbMenu[i].onmouseover = function() {			this.src = this.src.replace ("_off.gif","_on.gif");		}		lnbMenu[i].onmouseout = function() {			this.src = this.src.replace ("_on.gif","_off.gif");		}	}}// motor sports main tabfunction initTabMenuMotor(tabContainerID) {	var tabContainer = document.getElementById(tabContainerID);	var tabAnchor = tabContainer.getElementsByTagName("a");	var i = 0;	for(i=0; i<tabAnchor.length; i++) {		if (tabAnchor.item(i).className.indexOf("tab") != -1)			thismenu = tabAnchor.item(i);		else			continue;		thismenu.container = tabContainer;		thismenu.targetEl = document.getElementById(tabAnchor.item(i).href.split("#")[1]);		thismenu.targetEl.style.display = "none";		thismenu.imgEl = thismenu.getElementsByTagName("img").item(0);		thismenu.onmouseover = function tabMenuClick() {			currentmenu = this.container.current;			if (currentmenu == this)				return false;			if (currentmenu) {				currentmenu.targetEl.style.display = "none";				if (currentmenu.imgEl) {					currentmenu.imgEl.src = currentmenu.imgEl.src.replace("_on.gif", "_off.gif");				} else {					currentmenu.className = currentmenu.className.replace(" on", "off");				}			}			this.targetEl.style.display = "";			if (this.imgEl) {				this.imgEl.src = this.imgEl.src.replace("_off.gif", "_on.gif");			} else {				this.className += " on";			}			this.container.current = this;			return false;		};		if (!thismenu.container.first)			thismenu.container.first = thismenu;	}	if (tabContainer.first)		tabContainer.first.onmouseover();}// 클릭시 섹션변환function section(obj) {	var giftobj = document.getElementById(obj);	var crrent = giftobj.getElementsByTagName('ul')[0];	var leftDiv = crrent.parentNode;	console.log(leftDiv);	var links = crrent.getElementsByTagName('a');	giftDiv[0].style.display ='block';	for (var i=0; i<links.length; i++) {			links[i].onmouseover = function () {				var crrtID = this.parentNode.getAttribute('id');				var crrtDiv = document.getElementById(crrtID);				for (var i=0; i<giftDiv.length; i++) {					giftDiv[i].style.display = 'none';				}				crrtDiv.style.display = 'block';				return false;			}	}}/* 보험인덱스 서브메뉴 */startList = function() {	if (document.getElementById&&document.getElementById("fgallery_list")) {		navRoot = document.getElementById("fgallery_list");		navLinks = navRoot.getElementsByTagName("a");		for (i=0; i<navLinks.length; i++) {				navLinks[i].onmouseover = function() {					this.className+="over";				}				navLinks[i].onmouseout = function() {					this.className=this.className.replace("over", "");				}		}	}}addLoadEvent(startList);function Dropdown_Show(val) {	var obj = val.parentNode.getElementsByTagName("dl").item(0);	if ( !obj.style.display || obj.style.display == "none" ) {		obj.style.display = "block";	} else {		obj.style.display = "none";	}}function makefaqstyle(objid){	// FAQ 스타일 만들기	// http://www.psyonline.kr	this.titletype='text';	this.titleonclass='on';	this.titleonimagename='';	this.closeothers=true;	this.autoopen=1;	var obj=document.getElementById(objid);	var titles=new Array(),contents=new Array();	this.initialize=function(){		var nodeno=0,childs=obj.childNodes;		for(var i=0,max=childs.length; i<max; i++){			if(childs[i].nodeType==1){				if((nodeno%2)==0){					childs[i].myno=nodeno/2;					mousesetting(childs[i]);					childs[i].onclick=function(){						eval(objid).action(this.myno);						return false;					}					childs[i].style.cursor='pointer';					titles.push(childs[i]);					this.setclassoff(childs[i]);				}else{					childs[i].style.display='none';					contents.push(childs[i]);				}				nodeno++;			}		}		if(this.autoopen) this.action(this.autoopen-1);	}	this.setclasson=function(target){		var classes,exist=false;		if(this.titletype=='image'){			var titleimg=target.getElementsByTagName('img')[0];			var titleimgexp=titleimg.src.substring(titleimg.src.lastIndexOf('.'));			titleimg.src=(titleimg.src.indexOf(this.titleonimagename+titleimgexp)==-1)? titleimg.src.replace(titleimgexp,this.titleonimagename+titleimgexp) : titleimg.src;		}		classes=target.className.split(' ');		for(var j=0; j<classes.length; j++) if(classes[j]==this.titleonclass) exist=true;		if(!exist) target.className=target.className+' '+this.titleonclass;	}	this.setclassoff=function(target){		if(this.titletype=='image'){			var titleimg=target.getElementsByTagName('img')[0];			var titleimgexp=titleimg.src.substring(titleimg.src.lastIndexOf('.'));			titleimg.src=titleimg.src.replace(this.titleonimagename+titleimgexp,titleimgexp);		}		if(target.className.indexOf(this.titleonclass)!=-1){			if(target.className.indexOf(' ')==-1) target.className=target.className.replace(this.titleonclass,'');			else{				classes=target.className.split(' ');				for(var j=0; j<classes.length; j++) if(classes[j]==this.titleonclass) classes[j]='';				target.className=classes.join(' ');			}		}	}	var mousesetting=function(target,remove){		if(remove){			target.onmouseover=null;			target.onmouseout=null;		}else{			target.onmouseover=function(){				eval(objid).setclasson(this);			}			target.onmouseout=function(){				eval(objid).setclassoff(this);			}		}	}	this.action=function(no){		for(var i=0,max=titles.length; i<max; i++){			if(i==no){				mousesetting(titles[i],true);				this.setclasson(titles[i]);				if(contents[i].style.display=='none') contents[i].style.display='';				else{					this.setclassoff(titles[i]);					contents[i].style.display='none';				}			}else{				if(this.closeothers){					this.setclassoff(titles[i]);					contents[i].style.display='none';				}			}			if(contents[i].style.display=='none') mousesetting(titles[i]);		}	}}addLoadEvent(makefaqstyle);