
//롤오버스크립트

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_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_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 bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 

//플래쉬 임베디드
function view_movie(mU,mW,mH) {
	document.write ('<OBJECT id=player codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 	classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 width="'+mW+'" height="'+mH+'" type=application/x-oleobject VIEWASTEXT>');
	document.write ('<PARAM NAME="AudioStream" VALUE="-1"/>');
	document.write ('<PARAM NAME="AutoPlay" VALUE="0"/>');
	document.write ('<PARAM NAME="AutoSize" VALUE="0"/>');
	document.write ('<PARAM NAME="AutoStart" VALUE="0"/>');
	document.write ('<PARAM NAME="AnimationAtStart" VALUE="1"/>');
	document.write ('<PARAM NAME="AllowScan" VALUE="0"/>');
	document.write ('<PARAM NAME="AllowChangeDisplaySize" VALUE="0"/>');
	document.write ('<PARAM NAME="AllowChangeDisplayMode" VALUE="0"/>');
	document.write ('<PARAM NAME="AutoRewind" VALUE="-1"/>');
	document.write ('<PARAM NAME="Balance" VALUE="0"/>');
	document.write ('<PARAM NAME="BaseURL" VALUE=""/>');
	document.write ('<PARAM NAME="BufferingTime" VALUE="1000"/>');
	document.write ('<PARAM NAME="CaptioningID" VALUE=""/>');
	document.write ('<PARAM NAME="ClickToPlay" VALUE="0"/>');
	document.write ('<PARAM NAME="CursorType" VALUE="32512"/>');
	document.write ('<PARAM NAME="CurrentPosition" VALUE="-1"/>');
	document.write ('<PARAM NAME="CurrentMarker" VALUE="0"/>');
	document.write ('<PARAM NAME="DefaultFrame" VALUE=""/>');
	document.write ('<PARAM NAME="DisplayBackColor" VALUE="0"/>');
	document.write ('<PARAM NAME="DisplayForeColor" VALUE="0"/>');
	document.write ('<PARAM NAME="DisplayMode" VALUE="1"/>');
	document.write ('<PARAM NAME="DisplaySize" VALUE="1"/>');
	document.write ('<PARAM NAME="Enabled" VALUE="-1"/>');
	document.write ('<PARAM NAME="EnableContextMenu" VALUE="0"/>');
	document.write ('<PARAM NAME="EnablePositionControls" VALUE="-1"/>');
	document.write ('<PARAM NAME="EnableFullScreenControls" VALUE="-1"/>');
	document.write ('<PARAM NAME="EnableTracker" VALUE="-1"/>');
	document.write ('<PARAM NAME="FileName" VALUE="'+mU+'"/>');
	document.write ('<PARAM NAME="InvokeURLs" VALUE="-1"/>');
	document.write ('<PARAM NAME="Language" VALUE="0"/>');				
	document.write ('<PARAM NAME="Mute" VALUE=""/>');
	document.write ('<PARAM NAME="PlayCount" VALUE="1"/>');
	document.write ('<PARAM NAME="PreviewMode" VALUE="0"/>');
	document.write ('<PARAM NAME="Rate" VALUE="1"/>');
	document.write ('<PARAM NAME="SAMILang" VALUE=""/>');
	document.write ('<PARAM NAME="SAMIStyle" VALUE=""/>');
	document.write ('<PARAM NAME="SAMIFileName" VALUE=""/>');
	document.write ('<PARAM NAME="SelectionStart" VALUE="0"/>');
	document.write ('<PARAM NAME="SelectionEnd" VALUE="0"/>');
	document.write ('<PARAM NAME="SendOpenStateChangeEvents" VALUE="-1"/>');
	document.write ('<PARAM NAME="SendWarningEvents" VALUE="-1"/>');
	document.write ('<PARAM NAME="SendErrorEvents" VALUE="-1"/>');
	document.write ('<PARAM NAME="SendKeyboardEvents" VALUE="0"/>');
	document.write ('<PARAM NAME="SendMouseClickEvents" VALUE="0"/>');
	document.write ('<PARAM NAME="SendMouseMoveEvents" VALUE="0"/>');
	document.write ('<PARAM NAME="SendPlayStateChangeEvents" VALUE="-1"/>');
	document.write ('<PARAM NAME="ShowCaptioning" VALUE="0"/>');
	document.write ('<PARAM NAME="ShowControls" VALUE="0"/>');
	document.write ('<PARAM NAME="ShowAudioControls" VALUE="0"/>');
	document.write ('<PARAM NAME="ShowDisplay" VALUE="0"/>');
	document.write ('<PARAM NAME="ShowGotoBar" VALUE="0"/>');
	document.write ('<PARAM NAME="ShowPositionControls" VALUE="0"/>');
	document.write ('<PARAM NAME="ShowStatusBar" VALUE="0"/>');
	document.write ('<PARAM NAME="ShowTracker" VALUE="0"/>');
	document.write ('<PARAM NAME="SRC" VALUE="'+mU+'"/>');
	document.write ('<PARAM NAME="TransparentAtStart" VALUE="-1"/>');
	document.write ('<PARAM NAME="VideoBorderWidth" VALUE="0"/>');
	document.write ('<PARAM NAME="VideoBorderColor" VALUE="0"/>');
	document.write ('<PARAM NAME="VideoBorder3D" VALUE="0"/>');
	document.write ('<PARAM NAME="Volume" VALUE="0"/>');
	document.write ('<PARAM NAME="WindowlessVideo" VALUE="0"/>');
	document.write ('<PARAM NAME="Loop" VALUE="-1"/>');
	document.write ('</OBJECT>');
}
function view_flash(fU,fW,fH,fN){
	var fU, fW, fH, fN;
	document.write ('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"  width="'+fW+'" height="'+fH+'" id="'+fN+'" align="middle">');
	document.write ('<param name="wmode" value="transparent"/>');
	document.write ('<param name="movie" value="'+fU+'"/>');
	document.write ('<param name="quality" value="high"/>');
	document.write ('<embed src="'+fU+'" wmode="transparent" quality="high" bgcolor="#ffffff" width="'+fW+'" height="'+fH+'" name="'+fN+'" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write ('</object>');
}
//이미지클릭시 테두리 없애기
function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 

//게시판들.........
function calcHeight() {
    //find the height of the internal page
    var the_height=
    document.getElementById('iframe').contentWindow.
    document.body.scrollHeight;
    
    //change the height of the iframe
    document.getElementById('iframe').height=
    the_height;
}

//롤오버
		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.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_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];}
		}


//FLASH Link
function GoMenu(name) {
    if (eval(name) == "") {
        alert("서비스 준비중입니다.");
        return;    
    } else {
		document.location.href = eval(name);
	}
}





	var mMenu1="/s1/s1_01.html";
	var mMenu2="/s2/s2_01.html";
	var mMenu3="/s3/s3_01.html";
	var mMenu4="/s4/s4_01.html";
	var mMenu5="/s4/s4_01.html";
	var mMenu6="/s6/s6_01.html";
	var mMenu7="/s7/s7_01.html";



function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

/*회사소개***********************************************/

function m1_1(){
 location.href="../01_sub/01_sub.jsp";	
}
function m1_2(){
 location.href="../01_sub/02_sub.jsp";	
}
function m1_3(){
 location.href="../01_sub/03_sub.jsp";	
}
function m1_4(){
 location.href="../01_sub/04_sub.jsp";	
}
function m1_5(){
 location.href="../01_sub/05_sub.jsp";	
}
function m1_6(){
 location.href="../01_sub/06_sub.jsp";	
}
function m1_7(){
 location.href="../01_sub/07_sub.jsp";	
}


function m2_1(){
 location.href="../01_sub/01_sub.jsp";		
}
function m2_2(){
 location.href="../02_sub/02_sub.jsp";		
}
function m2_3(){
 location.href="../02_sub/03_sub.jsp";		
}
function m2_4(){
 location.href="../02_sub/04_sub.jsp";		
}
function m2_5(){
 location.href="../02_sub/05_sub.jsp";		
}


function m3_1(){
 location.href="../03_sub/01_sub.jsp";
}
function m3_2(){
 location.href="../03_sub/02_sub.jsp";
}
function m3_3(){
 location.href="../03_sub/03_sub.jsp";
}
function m3_4(){
 location.href="../03_sub/04_sub.jsp";
}
function m3_5(){
 location.href="../03_sub/05_sub.jsp";
}


function m4_1(){
 location.href="../04_sub/01_sub.jsp";
}
function m4_2(){
 location.href="../04_sub/02_sub.jsp";
}
function m4_3(){
 location.href="../04_sub/03_sub.jsp";
}
function m4_4(){
 location.href="../04_sub/04_sub.jsp";
}
function m4_5(){
 location.href="../04_sub/05_sub.jsp";
}


function m5_1(){
 location.href="../05_sub/01_sub.jsp";
}
function m5_2(){
 location.href="../05_sub/02_sub.jsp";
}
function m5_3(){
 location.href="../05_sub/03_sub.jsp";
}
function m5_4(){
 location.href="../05_sub/04_sub.jsp";
}
function m5_5(){
 location.href="../05_sub/05_sub.jsp";
}
function m5_6(){
 location.href="../05_sub/06_sub.jsp";
}
function m5_7(){
 location.href="../05_sub/07_sub.jsp";
}
function m5_8(){
 location.href="../05_sub/08_sub.jsp";
}


function m6_1(){
 location.href="../06_sub/01_sub.jsp";
}
function m6_2(){
 location.href="../06_sub/02_sub.jsp";
}
function m6_3(){
 location.href="../06_sub/03_sub.jsp";
}
function m6_4(){
 location.href="../06_sub/04_sub.jsp";
}
function m6_5(){
 location.href="../06_sub/05_sub.jsp";
}


function m7_1(){
 location.href="../07_sub/01_sub.jsp";
}
function m7_2(){
 location.href="../07_sub/02_sub.jsp";
}
function m7_3(){
 location.href="../07_sub/03_sub.jsp";
}
function m7_4(){
 location.href="../07_sub/04_sub.jsp";
}
function m7_5(){
 location.href="javascript:MM_openBrWindow('http://164.125.36.47/urimal-spellcheck.html','','width=420,height=561');";
}


function m8_1(){
 location.href="../08_sub/01_sub.jsp";
}
function m8_2(){
 location.href="../08_sub/02_sub.jsp";
}
function m8_3(){
 location.href="../08_sub/03_sub.jsp";
}
function m8_4(){
 location.href="../08_sub/04_sub.jsp";
}
function m8_5(){
 location.href="../08_sub/05_sub.jsp";
}


function m9_1(){
 location.href="../09_sub/01_sub.jsp";
}
function m9_2(){
 location.href="../09_sub/02_sub.jsp";
}
function m9_3(){
 location.href="../09_sub/03_sub.jsp";
}
function m9_4(){
 location.href="../09_sub/04_sub.jsp";
}
function m9_5(){
 location.href="../09_sub/05_sub.jsp";
}


function gt_01(){                           // 메인
 location.href="/";
}
function gt_02(){                           // 사이트맵
 location.href="../09_sub/04_sub.jsp";
}
function gt_03(){                           // contact us
 location.href="mailto:webmaster@ecglobal.biz";
}
function gt_04(){                           // admin
 window.open('/admin/login.jsp','adminLogin','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=400, height=300, top=300, left=300');
}
function gt_05(){                           // 로그아웃
 location.href="/admin/logout.jsp";
}
function gb_02(){                           // 기술제휴
 location.href="";
}

function gt_06(){                           // 영어홈페이지
 window.open("../eng/index.html");
}




function test(pic, features){
wow=window.open("","",features);
wow.document.write("<HTML><head><title>이미지 팝업띄우기</title></head>"); 
wow.document.write("<body leftmargin=0 topmargin=0>"); 
wow.document.write("<a href=# onClick=window.close()><img src="+pic+" border=0></a>"); 
wow.document.write("</body></HTML"); 
}


