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_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_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 fnFtc() {
 window.open("http://www.ftc.go.kr/info/bizinfo/communicationView.jsp?apv_perm_no=2008344007330200169&area1=&area2=&currpage=1&searchKey=04&searchVal=1048185668&stdate=&enddate=");
}

/*Ä«ÇÇ¶óÀÌÅÍºÎºÐ °ü·Ã-¼Ò¸Þ´º*/
function openPop(url, winName, title, w, h, t, l, s, r, gubun){
	var screenW;
	var screenH;
	var opt;
	if ( gubun!= "pop")  screenW = document.body.offsetWidth/2;
	else screenW = window.screen.availWidth / 2;
	screenH = window.screen.availHeight / 2;

	if ( ( screenW-(w/2) <= 0  || screenH-(h/2) <= 0 ) &&  gubun!= "pop" ){
		screenW = window.screen.availWidth / 2;
		screenH = window.screen.availHeight / 2;
		gubun = "pop";
	}


	opt = "width=" + w + "px, height=" + h + "px";
	if ( l > 0) opt = opt+",left=" + l + "px";
	else opt = opt+",left=" + (screenW-(w/2)) + "px";

	if (t > 0) opt = opt+",top=" + t + "px";
	else opt = opt+",top=" + (screenH-(h/2)) + "px";

	var win;
	if ( gubun != "pop" && gubun != "")  {
		opt=opt+",scrolling="+s+",resize="+r+"";
		if (gubun=="ajax" || gubun=="iframe")
		{
			fnInterVeil();
		}
		win=dhtmlwindow.open(winName, gubun, url, title,opt );
		win.onclose=function(){ return onclose(); } 
	}else{
		if (gubun == "pop" ){
			arraryUrl=url.split("?");
			if (arraryUrl.length > 1) url=url+"&pop_yn=Y";
			else  url=url+"?pop_yn=Y";
		}
		opt=opt+",scrollbars="+s+",resizable="+r+"";
		opt = opt+",statusbar=no, toolbar=no,location=no,directories=no,status=no,menubar=no";
		win = window.open(url, winName, opt);
		if(win==null)   {
			alert("Â÷´ÜµÈ ÆË¾÷Ã¢À» Çã¿ëÇØ ÁÖ¼¼¿ä.");
			return;
		}
		else    {
			win.focus();
		}
	}

}

function fnAgreement() {
	openPop("/Inc/copy_pop/pop_agreement.html",'agreement','agreement','500','530','0','0','0','0','');
}
function fnPrivate() {
	openPop("/Inc/copy_pop/pop_private.html",'private','private','500','530','0','0','0','0','');
}
function fnEmail() {
	openPop("/Inc/copy_pop/pop_email.html",'email','email','500','530','0','0','0','0','');
}

/*¿À½Ã´Â±æ ÆË¾÷-¼­¿ï¼¾ÅÍ*/
function smap01() {
	openPop("/company/s_map1.html",'smap01','smap01','346','577','0','0','0','0','');
}
function smap02() {
	openPop("/company/s_map2.html",'smap02','smap02','622','423','0','0','0','0','');
}
function smap03() {
	openPop("/company/s_map3.html",'smap02','smap02','624','497','0','0','0','0','');
}
/*¿À½Ã´Â±æ ÆË¾÷-´ë±¸¼¾ÅÍ*/
function dmap01() {
	openPop("/company/d_map1.html",'dmap01','dmap01','346','577','0','0','0','0','');
}
function dmap02() {
	openPop("/company/d_map2.html",'dmap02','dmap02','622','423','0','0','0','0','');
}
function dmap03() {
	openPop("/company/d_map3.html",'dmap03','dmap03','624','497','0','0','0','0','');
}

/*±³À°_¿ÀÇÁ¶óÀÎ_½Ã¼³´ë°ü*/
function scen11() {
	openPop("/edu/pic/scen11.html",'scen11','scen11','518','409','0','0','0','0','');
}
function scen12() {
	openPop("/edu/pic/scen12.html",'scen12','scen12','518','409','0','0','0','0','');
}
function scen13() {
	openPop("/edu/pic/scen13.html",'scen13','scen13','518','409','0','0','0','0','');
}
function scen14() {
	openPop("/edu/pic/scen14.html",'scen14','scen14','518','409','0','0','0','0','');
}
function scen21() {
	openPop("/edu/pic/scen21.html",'scen21','scen21','518','409','0','0','0','0','');
}
function scen22() {
	openPop("/edu/pic/scen22.html",'scen22','scen22','518','409','0','0','0','0','');
}
function scen23() {
	openPop("/edu/pic/scen23.html",'scen23','scen23','518','409','0','0','0','0','');
}
function scen24() {
	openPop("/edu/pic/scen24.html",'scen24','scen24','518','409','0','0','0','0','');
}
function scen31() {
	openPop("/edu/pic/scen31.html",'scen31','scen31','518','409','0','0','0','0','');
}
function scen32() {
	openPop("/edu/pic/scen32.html",'scen32','scen32','518','409','0','0','0','0','');
}
function scen33() {
	openPop("/edu/pic/scen33.html",'scen33','scen33','518','409','0','0','0','0','');
}
function scen34() {
	openPop("/edu/pic/scen34.html",'scen34','scen34','518','409','0','0','0','0','');
}
function scen41() {
	openPop("/edu/pic/scen41.html",'scen41','scen41','518','409','0','0','0','0','');
}
function scen42() {
	openPop("/edu/pic/scen42.html",'scen42','scen42','518','409','0','0','0','0','');
}
function scen43() {
	openPop("/edu/pic/scen43.html",'scen43','scen43','518','409','0','0','0','0','');
}
function scen44() {
	openPop("/edu/pic/scen44.html",'scen44','scen44','518','409','0','0','0','0','');
}
/*´ë±¸*/
function dcen51() {
	openPop("/edu/pic/dcen11.html",'scen51','scen51','518','409','0','0','0','0','');
}
function dcen52() {
	openPop("/edu/pic/dcen12.html",'scen52','scen52','518','409','0','0','0','0','');
}
function dcen53() {
	openPop("/edu/pic/dcen13.html",'scen53','scen53','518','409','0','0','0','0','');
}
function dcen54() {
	openPop("/edu/pic/dcen14.html",'scen54','scen54','518','409','0','0','0','0','');
}
function dcen61() {
	openPop("/edu/pic/dcen21.html",'scen61','scen61','518','409','0','0','0','0','');
}
function dcen62() {
	openPop("/edu/pic/dcen22.html",'scen61','scen62','518','409','0','0','0','0','');
}
function dcen63() {
	openPop("/edu/pic/dcen23.html",'scen63','scen63','518','409','0','0','0','0','');
}
function dcen64() {
	openPop("/edu/pic/dcen24.html",'scen64','scen64','518','409','0','0','0','0','');
}


/*¸Þ´º¸µÅ©*/

function go_url(obj)
{
	switch(obj)
	{		
		/* company */
		case"01_1":
			document.location.href='http://www.interparkcs.com/company/m01_01.html';
		break;
		
		case"01_2":
			document.location.href='http://www.interparkcs.com/company/m01_02.html';
		break;

		case"01_3":
			document.location.href='http://www.interparkcs.com/company/m01_03.html';
		break;
		
		case"01_4":
			document.location.href='http://www.interparkcs.com/company/m01_04.html';
		break;
		
		case"01_5":
			document.location.href='http://www.interparkcs.com/company/m01_05.html';
		break;

		case"01_6":
			document.location.href='http://www.interparkcs.com/company/m01_06.html';
		break;
		
		case"01_7":
			document.location.href='http://www.interparkcs.com/company/m01_07.html';
		break;
		
		case"01_8":
			document.location.href='http://www.interparkcs.com/company/m01_08.html';
		break;

		/* ÄÁÅÃ¼¾ÅÍ»ç¾÷ */
		case"02_1":
			document.location.href='http://www.interparkcs.com/contact/m02_01.html';
		break;
		
		case"02_2":
			document.location.href='http://www.interparkcs.com/contact/m02_02.html';
		break;

		case"02_3":
			document.location.href='http://www.interparkcs.com/contact/m02_03.html';
		break;
		
		case"02_4":
			document.location.href='http://www.interparkcs.com/contact/m02_04.html';
		break;
		
		case"02_5":
			document.location.href='http://www.interparkcs.com/contact/m02_05.html';
		break;

		case"02_6":
			document.location.href='http://www.interparkcs.com/contact/m02_06.html';
		break;
		case"02_7":
			document.location.href='http://www.interparkcs.com/contact/m02_07.html';
		break;
				
		/* ±³À°¼­ºñ½º»ç¾÷ */
		case"03_1":
			document.location.href='http://www.interparkcs.com/edu/m03_01.html';
		break;
		
		case"03_2":
			document.location.href='http://www.interparkcs.com/edu/m03_02.html';
		break;

		case"03_3":
			document.location.href='http://www.interparkcs.com/edu/m03_03.html';
		break;
/*		
		case"03_4":
			document.location.href='http://www.interparkcs.com/edu/m03_03.html';
		break;
		
		case"03_5":
			document.location.href='http://www.interparkcs.com/edu/m03_04.html';
		break;

		case"03_6":
			document.location.href='http://www.interparkcs.com/edu/m03_05.html';
		break;

		case"03_7":
			document.location.href='http://www.interparkcs.com/edu/m03_052.html';
		break;
		
		case"03_8":
			document.location.href='http://www.interparkcs.com/edu/m03_06.html';
		break;

		case"03_9":
			document.location.href='http://www.interparkcs.com/edu/m03_062.html';
		break;
		
		case"03_10":
			document.location.href='http://www.interparkcs.com/edu/m03_02.html';
		break;
		
		case"03_11":
			document.location.href='http://www.interparkcs.com/edu/m03_05.html';
		break;

		case"03_12":
			document.location.href='http://www.interparkcs.com/edu/m03_06.html';
		break;*/
		
		
		/* recruit */
		case"04_1":
			document.location.href='http://www.interparkcs.com/recruit/m04_01.html';
		break;
		
		case"04_2":
			document.location.href='http://www.interparkcs.com/recruit/m04_02.html';
		break;

		case"04_3":
			document.location.href='http://www.interparkcs.com/recruit/m04_03.html';
		break;
		
		case"04_4":
			document.location.href='http://www.interparkcs.com/recruit/m04_04.html';
		break;
		
		/* utill */
		case"05_1":
			document.location.href='http://www.interparkcs.com/utill/m05_01.html';
		break;
		
		case"05_2":
			document.location.href='http://www.interparkcs.com/utill/m05_02.html';
		break;

		case"05_2f":
			document.location.href='http://www.interparkcs.com/utill/m05_02.html?aType=2';
		break;

		case"05_3":
			document.location.href='http://www.interparkcs.com/utill/m05_03.html';
		break;
		
	}
}
function flash_view(url, w, h ){
 document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0' width='"+w+"' height='"+h+"' >");
 document.write("<param name='movie' value='"+url+"' />"); 
 document.write("<param name='quality' value='high' />");
 document.write("<param name='wmode' value='transparent' />");
 document.write("<param name='AllowScriptAccess' value='always' />");
 document.write("<embed src='"+url+"' quality='high' width='"+w+"' height='"+h+"' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='transparent' allowScriptAccess='sameDomain' ></embed></object>");
}

/*function flash(url, w, h, flashvars){
 document.write("<embed src='"+url+"' quality=high pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'http://www.macromedia.com/go/getflashplayer'  type=application/x-shockwave-flash width="+w+" height="+h+" wmode=transparent allowScriptAccess=\"sameDomain\">"); 
}*/

/* ±³À°¼­ºñ½º-½Ã¼³ÇöÈ²°¶·¯¸® */
// Tab Content
function initTabMenu(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);
		if (thismenu.imgEl) {
			thismenu.onmouseover = function () {
				//this.onmouseover();
			}
		}
		thismenu.onmouseover = tabMenuClick;
		
		if (!thismenu.container.first)
			thismenu.container.first = thismenu;
	}
	tabContainer.first.onmouseover();
}
function tabMenuClick() {
	currentmenu = this.container.current;
	if (currentmenu != this) {
		if (currentmenu) {
			currentmenu.targetEl.style.display = "none";
			if (currentmenu.imgEl) {
				currentmenu.imgEl.src = currentmenu.imgEl.src.replace("_on.jpg", "_off.jpg");
			} else {
				currentmenu.className = currentmenu.className.replace(" on", "");
			}
		}

		this.targetEl.style.display = "block";
		if (this.imgEl) {
			this.imgEl.src = this.imgEl.src.replace("_off.jpg", "_on.jpg");
		} else {
			this.className += " on";
		}
		this.container.current = this;
	}
	return false;
}

//°¶·¯¸®
function callme(image) {
img.filters[0].Apply();
img.src=image;
img.filters[0].Play();
}
function callme2(image) {
img2.filters[0].Apply();
img2.src=image;
img2.filters[0].Play();
}
