
/* ¸µÅ©Á¡¼±»èÁ¦ */ <!--
function bluring(){ 
if (event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 
//--> /* ¼îÇÏÀÌµå ·¹ÀÌ¾î */ <!--
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}


//--> /* ·Ñ¿À¹ö ÀÌ¹ÌÁö */ <!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//--> /* ÀÌ¹ÌÁö */ <!--
	function ma(){
		document.all.ma.style.display="inline";
		document.all.mb.style.display="none";
		document.all.mc.style.display="none";
		document.all.md.style.display="none";
		document.all.me.style.display="none";
		document.all.mf.style.display="none";
		document.all.mg.style.display="none";
		document.all.mh.style.display="none";

		document.all.TabMenu01.src = "http://www.happycodi.com/image/shop/navi_b01_01.gif";
		document.all.TabMenu02.src = "http://www.happycodi.com/image/shop/navi_b02_02.gif";
		document.all.TabMenu03.src = "http://www.happycodi.com/image/shop/navi_b03_02.gif";
		document.all.TabMenu04.src = "http://www.happycodi.com/image/shop/navi_b04_02.gif";
		document.all.TabMenu05.src = "http://www.happycodi.com/image/shop/navi_b05_02.gif";
		document.all.TabMenu06.src = "http://www.happycodi.com/image/shop/navi_b06_02.gif";
		document.all.TabMenu07.src = "http://www.happycodi.com/image/shop/navi_b07_02.gif";
		document.all.TabMenu08.src = "http://www.happycodi.com/image/shop/navi_b08_02.gif";
}
	
	function mb(){
		document.all.ma.style.display="none";
		document.all.mb.style.display="inline";
		document.all.mc.style.display="none";
		document.all.md.style.display="none";
		document.all.me.style.display="none";
		document.all.mf.style.display="none";
		document.all.mg.style.display="none";
		document.all.mh.style.display="none";
		
		document.all.TabMenu01.src = "http://www.happycodi.com/image/shop/navi_b01_02.gif";
		document.all.TabMenu02.src = "http://www.happycodi.com/image/shop/navi_b02_01.gif";
		document.all.TabMenu03.src = "http://www.happycodi.com/image/shop/navi_b03_02.gif";
		document.all.TabMenu04.src = "http://www.happycodi.com/image/shop/navi_b04_02.gif";
		document.all.TabMenu05.src = "http://www.happycodi.com/image/shop/navi_b05_02.gif";
		document.all.TabMenu06.src = "http://www.happycodi.com/image/shop/navi_b06_02.gif";
		document.all.TabMenu07.src = "http://www.happycodi.com/image/shop/navi_b07_02.gif";
		document.all.TabMenu08.src = "http://www.happycodi.com/image/shop/navi_b08_02.gif";
}
	
function mc(){
		document.all.ma.style.display="none";
		document.all.mb.style.display="none";
		document.all.mc.style.display="inline";
		document.all.md.style.display="none";
		document.all.me.style.display="none";
		document.all.mf.style.display="none";
		document.all.mg.style.display="none";
		document.all.mh.style.display="none";
		
		document.all.TabMenu01.src = "http://www.happycodi.com/image/shop/navi_b01_02.gif";
		document.all.TabMenu02.src = "http://www.happycodi.com/image/shop/navi_b02_02.gif";
		document.all.TabMenu03.src = "http://www.happycodi.com/image/shop/navi_b03_01.gif";
		document.all.TabMenu04.src = "http://www.happycodi.com/image/shop/navi_b04_02.gif";
		document.all.TabMenu05.src = "http://www.happycodi.com/image/shop/navi_b05_02.gif";
		document.all.TabMenu06.src = "http://www.happycodi.com/image/shop/navi_b06_02.gif";
		document.all.TabMenu07.src = "http://www.happycodi.com/image/shop/navi_b07_02.gif";
		document.all.TabMenu08.src = "http://www.happycodi.com/image/shop/navi_b08_02.gif";
}

	function md(){
		document.all.ma.style.display="none";
		document.all.mb.style.display="none";
		document.all.mc.style.display="none";
		document.all.md.style.display="inline";
		document.all.me.style.display="none";
		document.all.mf.style.display="none";
		document.all.mg.style.display="none";
		document.all.mh.style.display="none";
		
		document.all.TabMenu01.src = "http://www.happycodi.com/image/shop/navi_b01_02.gif";
		document.all.TabMenu02.src = "http://www.happycodi.com/image/shop/navi_b02_02.gif";
		document.all.TabMenu03.src = "http://www.happycodi.com/image/shop/navi_b03_02.gif";
		document.all.TabMenu04.src = "http://www.happycodi.com/image/shop/navi_b04_01.gif";
		document.all.TabMenu05.src = "http://www.happycodi.com/image/shop/navi_b05_02.gif";
		document.all.TabMenu06.src = "http://www.happycodi.com/image/shop/navi_b06_02.gif";
		document.all.TabMenu07.src = "http://www.happycodi.com/image/shop/navi_b07_02.gif";
		document.all.TabMenu08.src = "http://www.happycodi.com/image/shop/navi_b08_02.gif";
}
	
function me(){
		document.all.ma.style.display="none";
		document.all.mb.style.display="none";
		document.all.mc.style.display="none";
		document.all.md.style.display="none";
		document.all.me.style.display="inline";
		document.all.mf.style.display="none";
		document.all.mg.style.display="none";
		document.all.mh.style.display="none";
		
		document.all.TabMenu01.src = "http://www.happycodi.com/image/shop/navi_b01_02.gif";
		document.all.TabMenu02.src = "http://www.happycodi.com/image/shop/navi_b02_02.gif";
		document.all.TabMenu03.src = "http://www.happycodi.com/image/shop/navi_b03_02.gif";
		document.all.TabMenu04.src = "http://www.happycodi.com/image/shop/navi_b04_02.gif";
		document.all.TabMenu05.src = "http://www.happycodi.com/image/shop/navi_b05_01.gif";
		document.all.TabMenu06.src = "http://www.happycodi.com/image/shop/navi_b06_02.gif";
		document.all.TabMenu07.src = "http://www.happycodi.com/image/shop/navi_b07_02.gif";
		document.all.TabMenu08.src = "http://www.happycodi.com/image/shop/navi_b08_02.gif";
}

function mf(){
		document.all.ma.style.display="none";
		document.all.mb.style.display="none";
		document.all.mc.style.display="none";
		document.all.md.style.display="none";
		document.all.me.style.display="none";
		document.all.mf.style.display="inline";
		document.all.mg.style.display="none";
		document.all.mh.style.display="none";
		
		document.all.TabMenu01.src = "http://www.happycodi.com/image/shop/navi_b01_02.gif";
		document.all.TabMenu02.src = "http://www.happycodi.com/image/shop/navi_b02_02.gif";
		document.all.TabMenu03.src = "http://www.happycodi.com/image/shop/navi_b03_02.gif";
		document.all.TabMenu04.src = "http://www.happycodi.com/image/shop/navi_b04_02.gif";
		document.all.TabMenu05.src = "http://www.happycodi.com/image/shop/navi_b05_02.gif";
		document.all.TabMenu06.src = "http://www.happycodi.com/image/shop/navi_b06_01.gif";
		document.all.TabMenu07.src = "http://www.happycodi.com/image/shop/navi_b07_02.gif";
		document.all.TabMenu08.src = "http://www.happycodi.com/image/shop/navi_b08_02.gif";
}

function mg(){
		document.all.ma.style.display="none";
		document.all.mb.style.display="none";
		document.all.mc.style.display="none";
		document.all.md.style.display="none";
		document.all.me.style.display="none";
		document.all.mf.style.display="none";
		document.all.mg.style.display="inline";
		document.all.mh.style.display="none";
		
		document.all.TabMenu01.src = "http://www.happycodi.com/image/shop/navi_b01_02.gif";
		document.all.TabMenu02.src = "http://www.happycodi.com/image/shop/navi_b02_02.gif";
		document.all.TabMenu03.src = "http://www.happycodi.com/image/shop/navi_b03_02.gif";
		document.all.TabMenu04.src = "http://www.happycodi.com/image/shop/navi_b04_02.gif";
		document.all.TabMenu05.src = "http://www.happycodi.com/image/shop/navi_b05_02.gif";
		document.all.TabMenu06.src = "http://www.happycodi.com/image/shop/navi_b06_02.gif";
		document.all.TabMenu07.src = "http://www.happycodi.com/image/shop/navi_b07_01.gif";
		document.all.TabMenu08.src = "http://www.happycodi.com/image/shop/navi_b08_02.gif";
}

function mh(){
		document.all.ma.style.display="none";
		document.all.mb.style.display="none";
		document.all.mc.style.display="none";
		document.all.md.style.display="none";
		document.all.me.style.display="none";
		document.all.mf.style.display="none";
		document.all.mg.style.display="none";
		document.all.mh.style.display="inline";
		
		document.all.TabMenu01.src = "http://www.happycodi.com/image/shop/navi_b01_02.gif";
		document.all.TabMenu02.src = "http://www.happycodi.com/image/shop/navi_b02_02.gif";
		document.all.TabMenu03.src = "http://www.happycodi.com/image/shop/navi_b03_02.gif";
		document.all.TabMenu04.src = "http://www.happycodi.com/image/shop/navi_b04_02.gif";
		document.all.TabMenu05.src = "http://www.happycodi.com/image/shop/navi_b05_02.gif";
		document.all.TabMenu06.src = "http://www.happycodi.com/image/shop/navi_b06_02.gif";
		document.all.TabMenu07.src = "http://www.happycodi.com/image/shop/navi_b07_02.gif";
		document.all.TabMenu08.src = "http://www.happycodi.com/image/shop/navi_b08_01.gif";
}

//--> /*µ¿¿±Ãß°¡ _ÄÚµðÀÚ¼¼È÷º¸±â°ü·Ã*/ <!--

function co01(){
		document.all.co01.style.display="inline";
		document.all.co02.style.display="none";
		
		document.all.TabMenu0001.src = "http://www.happycodi.com/image/view/right_btn_04_01.gif";
		document.all.TabMenu0002.src = "http://www.happycodi.com/image/view/right_btn_05_02.gif";
}

function co02(){
		document.all.co01.style.display="none";
		document.all.co02.style.display="inline";
		
		document.all.TabMenu0001.src = "http://www.happycodi.com/image/view/right_btn_04_02.gif";
		document.all.TabMenu0002.src = "http://www.happycodi.com/image/view/right_btn_05_01.gif";
}

  function codi_frm_change(frame_no,value){
	if(frame_no=="1"){
	  codi_frm.location.href="iframe01.php?idx="+value;
	  document.all.TabMenu0001.src = "http://www.happycodi.com/image/view/right_btn_04_01.gif";
	  document.all.TabMenu0002.src = "http://www.happycodi.com/image/view/right_btn_05_02_0.gif";
	  document.all.TabMenu0003.background = "http://www.happycodi.com/image/view/right_btn_04_bg.gif";
	}else{
	  codi_frm.location.href="iframe02.php?idx="+value;
	  document.all.TabMenu0001.src = "http://www.happycodi.com/image/view/right_btn_04_02.gif";
	  document.all.TabMenu0002.src = "http://www.happycodi.com/image/view/right_btn_05_01_0.gif";
	  document.all.TabMenu0003.background = "http://www.happycodi.com/image/view/right_btn_05_bg.gif";
	}
  }
//--> /*µ¿¿±Ãß°¡ _ÄÚµðÀÚ¼¼È÷º¸±â°ü·Ã */ <!--

//--> /*µ¿¿±Ãß°¡ _ÀÎ±âÄÚµð°ü·Ã*/ <!--

function codiaa(){
		document.all.codiaa.style.display="inline";
		document.all.codibb.style.display="none";
		document.all.codicc.style.display="none";
		
		document.all.TabMenu011.src = "../image/coditop100/in_img_btn_001.gif";
		document.all.TabMenu012.src = "../image/coditop100/in_img_btn_002-2.gif";
		document.all.TabMenu013.src = "../image/coditop100/in_img_btn_003-2.gif";
}

function codibb(){
		document.all.codiaa.style.display="none";
		document.all.codibb.style.display="inline";
		document.all.codicc.style.display="none";
		
		document.all.TabMenu011.src = "../image/coditop100/in_img_btn_001-2.gif";
		document.all.TabMenu012.src = "../image/coditop100/in_img_btn_002.gif";
		document.all.TabMenu013.src = "../image/coditop100/in_img_btn_003-2.gif";
}

function codicc(){
		document.all.codiaa.style.display="none";
		document.all.codibb.style.display="none";
		document.all.codicc.style.display="inline";
		
		document.all.TabMenu011.src = "../image/coditop100/in_img_btn_001-2.gif";
		document.all.TabMenu012.src = "../image/coditop100/in_img_btn_002-2.gif";
		document.all.TabMenu013.src = "../image/coditop100/in_img_btn_003.gif";
}

//--> /*µ¿¿±Ãß°¡ _ÀÎ±âÄÚµð°ü·Ã³¡ */ <!--

/* indexÀÇ ÀÌ¹ÌÁö ½ºÅ©·Ñ ½ÃÀÛ */
  function IMG_Scroll() {
	this.version = "0.2";
	this.name = "NvScroll";
	this.item = new Array();
	this.itemcount = 0;
	this.currentspeed = 0;
	this.scrollspeed = 50;
	this.pausedelay = 1000;
	this.pausemouseover = false;
	this.stop = false;
	this.type = 1;
	this.height = 100;
	this.width = 100;
	this.stopHeight=0;
	this.i=0;
	this.add = function () {
	  var text = arguments[0];
	  this.item[this.itemcount] = text;
		//alert(this.item[this.itemcount]);
	  this.itemcount ++;
	};

	this.add2 = function () {
	  var url = arguments[0];
	  var title = arguments[1];
	  this.item[this.itemcount] = "<a href=" + url + ">" + title + "</a>";
	  this.itemcount = this.itemcount + 1;
	};

	this.reset_item = function () {
	  this.item = new Array();
	  this.itemcount = 0;
	};

	this.start = function (layer_name) {
	  if ( this.itemcount == 1 ) {
		this.add(this.item[0]);
	  }
	  if (layer_name != null) {
		document.getElementById(layer_name).innerHTML = this.str_ret();
	  } else {
		this.display();
	  }
	  this.currentspeed = this.scrollspeed;
	  if ( this.type == 1 || this.type == 2 ) {
		this.stop = true;
		setTimeout(this.name+'.scroll()',this.currentspeed);
		window.setTimeout(this.name+".stop = false", this.pausedelay);
	  } else if ( this.type == 3 ) {
		this.stop = true;
		setTimeout(this.name+'.rolling()',this.currentspeed);
		window.setTimeout(this.name+".stop = false", this.pausedelay);
	  }
	};

	this.display = function () {
	  document.write('<div id="'+this.name+'" style="height:'+this.height+'; width:'+this.width+'; position:relative; overflow:hidden; " OnMouseOver="'+this.name+'.onmouseover(); " OnMouseOut="'+this.name+'.onmouseout(); ">');
	  for(var i = 0; i < this.itemcount; i++) {
		if ( this.type == 1 ) {
		  document.write('<div id="'+this.name+'item'+i+'"style="left:0px; width:'+this.width+'; position:absolute; top:'+(this.height*i)+'px; ">');
		  document.write(this.item[i]);
		  document.write('</div>');
		} else if ( this.type == 2 || this.type == 3 ) {
		  document.write('<div id="'+this.name+'item'+i+'"style="left:'+(this.width*i)+'px; width:'+this.width+'; position:absolute; top:0px; ">');
		  document.write(this.item[i]);
		  document.write('</div>');
		}
	  }
	  document.write('</div>');
	};

	// ¹Ù·Î µð½ºÇÃ·¹ÀÌ ¾Ê°í ½ºÆ®¸µ ¸®ÅÏÇÏµµ·Ï Ãß°¡ 2006-03-30
	this.str_ret = function () {
	  var str = '<div id="'+this.name+'" style="height:'+this.height+'; width:'+this.width+'; position:relative; overflow:hidden; " OnMouseOver="'+this.name+'.onmouseover(); " OnMouseOut="'+this.name+'.onmouseout(); ">';
	  for(var i = 0; i < this.itemcount; i++) {
		if ( this.type == 1 ) {
		  str += '<div id="'+this.name+'item'+i+'"style="left:0px; width:'+this.width+'; position:absolute; top:'+(this.height*i)+'px; ">';
		  str += this.item[i];
		  str += '</div>';
		} else if ( this.type == 2 || this.type == 3 ) {
		  str += '<div id="'+this.name+'item'+i+'"style="left:'+(this.width*i)+'px; width:'+this.width+'; position:absolute; top:0px; ">';
		  str += this.item[i];
		  str += '</div>';
		}
	  }
	  str += '</div>';
	  return str;
	};

	this.scroll = function () {
	  if ( this.pause == true ) {
		window.setTimeout(this.name+".scroll()",this.pausedelay);
		this.pause = false;
	  } else {
		this.currentspeed = this.scrollspeed;
		if ( !this.stop ) {
		  for (i = 0; i < this.itemcount; i++) {
			obj = document.getElementById(this.name+'item'+i).style;
			if ( this.type == 1 ) {
			  obj.top = parseInt(obj.top) - 1;
			  if ( parseInt(obj.top) <= this.height * (-1) ) obj.top = this.height * (this.itemcount-1);
			  if ( parseInt(obj.top) == 0 ) this.currentspeed = this.pausedelay;
			} else if ( this.type == 2 ) {
			  obj.left = parseInt(obj.left) - 1;
			  if ( parseInt(obj.left) <= this.width * (-1) ) obj.left = this.width * (this.itemcount-1);
			  if ( parseInt(obj.left) == 0 ) this.currentspeed = this.pausedelay;
			}
		  }
		}
		window.setTimeout(this.name+".scroll()",this.currentspeed);
	  }
	};

	this.rolling = function () {
	  if ( this.stop == false  ) {
		this.next();
	  }
	  window.setTimeout(this.name+".rolling()",this.scrollspeed);
	}

	this.onmouseover = function () {
	  if ( this.pausemouseover ) {
		this.stop = true;
	  }
	};

	this.onmouseout = function () {
	  if ( this.pausemouseover ) {
		this.stop = false;
	  }
	};

	this.next = function() {
	  for (i = 0; i < this.itemcount; i++) {
		obj = document.getElementById(this.name+'item'+i).style;
		if ( parseInt(obj.left) < 1 ) { 
		  width = this.width + parseInt(obj.left);
		  break;
		}
	  }
	  for (i = 0; i < this.itemcount; i++) {
		obj = document.getElementById(this.name+'item'+i).style;
		if ( parseInt(obj.left) < 1 ) { 
		  obj.left = this.width * (this.itemcount-1);
		} else {
		  obj.left = parseInt(obj.left) - width;
		}
	  }
	}

	this.prev = function() {
	  for (i = 0; i < this.itemcount; i++) {
		obj = document.getElementById(this.name+'item'+i).style;
		if ( parseInt(obj.left) < 1 ) { 
		  width = parseInt(obj.left) * (-1);
		  break;
		}
	  }
	  if ( width == 0 ) {
		total_width = this.width * (this.itemcount-1);
		for (i = 0; i < this.itemcount; i++) {
		  obj = document.getElementById(this.name+'item'+i).style;
		  if ( parseInt(obj.left) + 1 > total_width ) { 
			obj.left = 0;
		  } else {
			obj.left = parseInt(obj.left) + this.width;
		  }
		}
	  } else {
		for (i = 0; i < this.itemcount; i++) {
		  obj = document.getElementById(this.name+'item'+i).style;
		  if ( parseInt(obj.left) < 1 ) { 
			obj.left = 0;
		  } else {
			obj.left = parseInt(obj.left) + width;
		  }
		}
	  }
	}

	this.unext = function () {
	  this.onmouseover();
	  this.next();
	  window.setTimeout(this.name+".onmouseout()",this.pausedelay);
	}

	this.uprev = function () {
	  this.onmouseover();
	  this.prev();
	  window.setTimeout(this.name+".onmouseout()",this.pausedelay);
	}
  }
/* indexÀÇ ÀÌ¹ÌÁö ½ºÅ©·Ñ ³¡ */


//--> /*µ¿¿±Ãß°¡ _070417_ÀÌÁöµ¥ÀÌ °ü·Ã ¸Þ´º ½ÃÀÛ*/ <!--
function left11(){
		document.all.left11.style.display="inline";
		document.all.left22.style.display="none";
		document.all.left33.style.display="none";
		document.all.left44.style.display="none";
		document.all.left55.style.display="none";
		document.all.left66.style.display="none";
}
function left22(){
		document.all.left11.style.display="none";
		document.all.left22.style.display="inline";
		document.all.left33.style.display="none";
		document.all.left44.style.display="none";
		document.all.left55.style.display="none";
		document.all.left66.style.display="none";
}
function left33(){
		document.all.left11.style.display="none";
		document.all.left22.style.display="none";
		document.all.left33.style.display="inline";
		document.all.left44.style.display="none";
		document.all.left55.style.display="none";
		document.all.left66.style.display="none";
}
function left44(){
		document.all.left11.style.display="none";
		document.all.left22.style.display="none";
		document.all.left33.style.display="none";
		document.all.left44.style.display="inline";
		document.all.left55.style.display="none";
		document.all.left66.style.display="none";
}
function left55(){
		document.all.left11.style.display="none";
		document.all.left22.style.display="none";
		document.all.left33.style.display="none";
		document.all.left44.style.display="none";
		document.all.left55.style.display="inline";
		document.all.left66.style.display="none";
}
function left66(){
		document.all.left11.style.display="none";
		document.all.left22.style.display="none";
		document.all.left33.style.display="none";
		document.all.left44.style.display="none";
		document.all.left55.style.display="none";
		document.all.left66.style.display="inline";
}
//--> /*µ¿¿±Ãß°¡ _070417_ÀÌÁöµ¥ÀÌ °ü·Ã ¸Þ´º ½ÃÀÛ*/ <!--