/********************************* ºê¶ó¿ìÀú Å¸ÀÌÆ² º¯°æ ***************************/
top.document.title = ' Welcome to ALCOPANEL  Co., Ltd. '
/********************************* ºê¶ó¿ìÀú Å¸ÀÌÆ² º¯°æ ***************************/


// ÀÌ¹ÌÁö Å¬¸¯½Ã Á¡¼± ¾ø¾Ö±â :::::::::: Àû¿ëÆäÀÌÁö body ¿¡ onload="allblur()" Ãß°¡.
var myAnchors=document.all.tags("A"); 
function allblur() {
	for (i=0;i<myAnchors.length;i++) { 
		myAnchors[i].onfocus=new Function("myAnchors["+i+"].blur()");
	} 
}


// IMAGE_ROLLOVER ½ºÅ©¸³Æ® 

function menuOn(imgEl)
{
	imgEl.src = imgEl.src.replace(".gif", "_.gif");
}

function menuOut(imgEl)
{
	imgEl.src = imgEl.src.replace("_.gif", ".gif");
}


// ·£´ý ¹è°æ

function Random() { 
  var day = new Date();
  var num= Math.abs(Math.sin(day.getTime()/1000)); 
  return num; 
}


function Random2() { 
  var x = Random(); 
  if (x > .99) {
    document.write ("<style> body {background:url('../../images/common/bg_sub_01.jpg') no-repeat top center} </style>"); return;
  }
  if (x > .88) {
    document.write ("<style> body {background:url('../../images/common/bg_sub_01.jpg') no-repeat top center} </style>"); return;
  }
  if (x > .77) {
    document.write ("<style> body {background:url('../../images/common/bg_sub_01.jpg') no-repeat top center} </style>"); return;
  }
  if (x > .66) {
    document.write ("<style> body {background:url('../../images/common/bg_sub_01.jpg') no-repeat top center} </style>"); return;
  }
  if (x > .55) {
    document.write ("<style> body {background:url('../../images/common/bg_sub_02.jpg') no-repeat top center} </style>"); return;
  }
  if (x > .44) {
    document.write ("<style> body {background:url('../../images/common/bg_sub_02.jpg') no-repeat top center} </style>"); return;
  }
  if (x > .33) {
    document.write ("<style> body {background:url('../../images/common/bg_sub_02.jpg') no-repeat top center} </style>"); return;
  }
  if (x > .0) {
    document.write ("<style> body {background:url('../../images/common/bg_sub_02.jpg') no-repeat top center} </style>"); return;
  } 
}


Random2(); 




// GNB ³×ºñ°ÔÀÌ¼Ç flash(ÆÄÀÏÁÖ¼Ò, °¡·Î, ¼¼·Î, ¹è°æ»ö, À©µµ¿ì¸ðµå, º¯¼ö, °æ·Î)
function flash(url,w,h,bg,win,vars,base){
	var s=
	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' align='middle'>"+
	"<param name='allowScriptAccess' value='always' />"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='wmode' value='"+win+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
	"<param name='FlashVars' value='"+vars+"' />"+
	"<param name='bgcolor' value='"+bg+"' />"+
	"<param name='base' value='"+base+"' />"+
	"<embed src='"+url+"' base='"+base+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";
	document.write(s);
}



// write document contents
function documentwrite(src){
	document.write(src);
}

function tdBg(num, bg_color) {
	if (document.all)
	eval("document.all.tr" + num + ".style.backgroundColor=bg_color");

	if (document.getElementById)
	document.getElementById("tr" +num).style.backgroundColor=bg_color;
}



//ÀÌ¹ÌÁö ÅÇ
	var img_tab1_on = new Image();
	var img_tab1_off = new Image();
	var img_tab2_on = new Image();
	var img_tab2_off = new Image();
	img_tab1_on.src = "../../images/common/main/img_tab1_on.gif";
	img_tab1_off.src = "../../images/common/main/img_tab1_off.gif";
	img_tab2_on.src = "../../images/common/main/img_tab2_on.gif";
	img_tab2_off.src = "../../images/common/main/img_tab2_off.gif";

	var cur_tab = "tab1";
	function menuOn1(tab) {
		if (tab != cur_tab) {
			obj = eval("document.all."+tab);
			tempobj = eval("img_"+tab+"_on");
			obj.src = tempobj.src;
		}
	}
	function menuOut1(tab) {
		if (tab != cur_tab) {
			obj = eval("document.all."+tab);
			tempobj = eval("img_"+tab+"_off");
			obj.src = tempobj.src;
		}
	}
	function change_tab1(tab) {
		ifr_tab1.location = "ifr_"+tab+".html";
		cur_tab = tab;
		if (tab == 'tab1') {
			document.all.tab1.src = img_tab1_on.src;
			document.all.tab2.src = img_tab2_off.src;
			link1.innerHTML = "<a href='/kr/htmls/cyberPr/news.html'><img src='../../images/common/main/btn_more.gif'></a>";
		}else{
			document.all.tab1.src = img_tab1_off.src;
			document.all.tab2.src = img_tab2_on.src;
			link1.innerHTML = "<a href='/kr/htmls/cyberPr/notice.html'><img src='../../images/common/main/btn_more.gif'></a>";
		}
	}

////////////////////////////////////////////////////////////