function pop(url,name,w,h){ window.open(url,name,'width='+w+',height='+h+',scrollbars=no') } //Popup(½ºÅ©·Ñ¹Ù¾øÀ½)
function pops(url,name,w,h){ window.open(url,name,'width='+w+',height='+h+',scrollbars=yes') } //Popup(½ºÅ©·Ñ¹ÙÀÖÀ½)


//ÇÏÀÌÆÛ¸µÅ©
function home(){location.href="./index.php";} //
function company(){location.href="/etc/company.php";}
function sitemap(){location.href="/etc/sitemap.php";}
function privacy(){window.open('/etc/privacy.php','','width=480,height=495,location=0,directories=0,resizable=0,status=0,toolbar=0,menubar=0,scrollbars=0');}
function service(){window.open('/etc/service.php','','width=480,height=495,location=0,directories=0,resizable=0,status=0,toolbar=0,menubar=0,scrollbars=0');}
function contactus(){window.open('/etc/contactus.php','','width=480,height=500,location=0,directories=0,resizable=0,status=0,toolbar=0,menubar=0,scrollbars=0');}
function email(){window.open('/etc/email.php','','width=380,height=343,location=0,directories=0,resizable=0,status=0,toolbar=0,menubar=0,scrollbars=0');}
function qna(){window.open('/etc/qna.php','','width=480,height=495,location=0,directories=0,resizable=0,status=0,toolbar=0,menubar=0,scrollbars=auto');}
function inform(){window.open('/etc/inform.php','','width=480,height=495,location=0,directories=0,resizable=0,status=0,toolbar=0,menubar=0,scrollbars=auto');}
function setup(){location.href="/upfile/product/setup.exe";}

//ÀüÃ¼ ¸µÅ© Blur
function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;

//ÀÌ¿Ã¶ó½ºÅõ¸í
function getFlash(url, wid, hei){
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width="+wid+" height="+hei+"><param name='movie' value='"+url+"'><param name='quality' value='high'><param name='allowScriptAccess' value='sameDomain'><param name='wmode' value=transparent><embed src='"+url+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width="+wid+" height="+hei+"></embed></object>");
}

function playAqua(){
	document.write("<embed invokeURLs=false style='width:320;height:240;' src='/inc/fla/OUTPUT_VTS_01_4.wmv' type=application/x-mplayer2 showcontrols='0' loop='-1'>");
}

//¶ó¿îµåÅ×ÀÌºí
function roundTable(objID) {
       var obj = document.getElementById(objID);
       var Parent, objTmp, Table, TBody, TR, TD;
       var bdcolor, bgcolor, Space;
       var trIDX, tdIDX, MAX;
       var styleWidth, styleHeight;

       // get parent node
       Parent = obj.parentNode;
       objTmp = document.createElement('SPAN');
       Parent.insertBefore(objTmp, obj);
       Parent.removeChild(obj);

       // get attribute
       bdcolor = obj.getAttribute('rborder');
       bgcolor = obj.getAttribute('rbgcolor');
       radius = parseInt(obj.getAttribute('radius'));
       if (radius == null || radius < 1) radius = 1;
       else if (radius > 6) radius = 6;

       MAX = radius * 2 + 1;

       /*
              create table {{
       */
       Table = document.createElement('TABLE');
       TBody = document.createElement('TBODY');

       Table.cellSpacing = 0;
       Table.cellPadding = 0;

       for (trIDX=0; trIDX < MAX; trIDX++) {
              TR = document.createElement('TR');
              Space = Math.abs(trIDX - parseInt(radius));
              for (tdIDX=0; tdIDX < MAX; tdIDX++) {
                     TD = document.createElement('TD');

                     styleWidth = '1px'; styleHeight = '1px';
                     if (tdIDX == 0 || tdIDX == MAX - 1) styleHeight = null;
                     else if (trIDX == 0 || trIDX == MAX - 1) styleWidth = null;
                     else if (radius > 2) {
                            if (Math.abs(tdIDX - radius) == 1) styleWidth = '2px';
                            if (Math.abs(trIDX - radius) == 1) styleHeight = '2px';
                     }

                     if (styleWidth != null) TD.style.width = styleWidth;
                     if (styleHeight != null) TD.style.height = styleHeight;

                     if (Space == tdIDX || Space == MAX - tdIDX - 1) TD.style.backgroundColor = bdcolor;
                     else if (tdIDX > Space && Space < MAX - tdIDX - 1)  TD.style.backgroundColor = bgcolor;

                     if (Space == 0 && tdIDX == radius) TD.appendChild(obj);
                     TR.appendChild(TD);
              }
              TBody.appendChild(TR);
       }

       /*
              }}
       */

       Table.appendChild(TBody);

       // insert table and remove original table
       Parent.insertBefore(Table, objTmp);
}


  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-17198133-4']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
