//-------------- 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 ('<param name="allowScriptAccess" value="always">');    document.write('<!-- Hixie method -->');    document.write('<!--[if !IE]> <-->');    document.write('<object pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"  type="application/x-shockwave-flash" data="'+ furl +'" width="'+ fwidth +'" height="' + fheight +'"+allowScriptAccess="always" ');    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 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";		}	}}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.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 + 9 ) + "px";	}	this.SubDivBox.style.height = ( this.ImageHeight + this.TextBoxHeight + 15 ) + "px";	this.GoodlsArrange();//	this.GoodsSetTime = setTimeout(this.ScrollName + "._nextFrame()",5000);}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()",5000);	} 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()",5000);	} 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 = "";    } else    {        showLayer(tgtEl);    }}//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'}",3000);		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;",3000);}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';		}	}}function popup(obj){    var url = obj.url;    var name = obj.name || "popup";    var w = obj.width || 450;    var h = obj.height || 650;      var position = obj.position;    var scroll = obj.scroll;    var tlOpt = 'top=0, left=0';    if(position == "center"){        var top = screen.height/2 - h/2 - 100;        var left = screen.width/2 - w/2;        if(top<0) top=0;        if(left<0) left=0;        tlOpt = ',top='+top +',left='+left;    }    sOpt = (scroll == "scroll") ? ",scrollbars=yes" :  ""; // 창스크롤        h += 25;    winOptions = tlOpt+',width='+w +',height='+h +sOpt +', resizable=yes';    // top, left, width, height, location, menubar, resizable, scrollbar, status    return window.open(url,name,winOptions);;}