document.write(''); /* var url = parent.document.location.toString(); if (url.indexOf('board.html') !== -1) { var urlArr = new Array(); urlArr = url.split("/"); var lang =urlArr.length - 2; if (url.indexOf('lang') == -1) { parent.document.location.href = '../'+ urlArr[lang] +'/board.html'; } } */ //alert('cacs.co.kr/tpl/comm/js/language.php?+si=cacsedu&bp=%2Fgb1.html'); /* if (parent.location.href.indexOf('/en/') < 0) alert(parent.location.href); else if (parent.location.href.indexOf('/en/') >= 0) alert('en'); else if (parent.location.href.indexOf('/ko/') < 0) alert(parent.location.href); else if (parent.location.href.indexOf('/ko/') >= 0) alert('ko'); else if (parent.location.href.indexOf('/zh_cn/') < 0) alert(parent.location.href); else if (parent.location.href.indexOf('/zh_cn/') >= 0) alert('zh_cn'); */ //if (parent.location.href.indexOf('/ko/') >= 0) alert('ko'); function changeLang(url){ //alert(t); //return; // �ㅺ뎅�� 二쇱냼 �뺤콉 �곸슜 by chris 20090605 //url = eval("document.getElementById('"+t+"')").value; if(url) { //setCookie('hLANG',lang,null); window.top.location.href = url; //parent.location.href = url; } // 荑좏궎 �댁슜�� 湲곗〈 �몄뼱 �좏깮 //lang = eval("document.getElementById('"+t+"')").value; //if(lang) { // setCookie('hLANG',lang,null); //window.top.location.reload(); // parent.location.replace(parent.location.href); //} } function setLang() { el = document.getElementById('v-wdg-chglang'); // �덉쇅泥섎━ : el�� �대떦 媛믪씠 �놁쓣 寃쎌슦 getCookie()�� getDefaultLang()�먯꽌 泥섎━ var lang = getCookie('hLANG'); // �덉쇅泥섎━ : 荑좏궎媛믪씠 el�� �덈뒗吏� 泥댄겕 var chk = 0; var i; for (i = el.length - 1; i>=0; i--) { if (el.options[i].value) { //alert(el.options[i].value); if (lang == el.options[i].value) el.value = lang; chk = 1; } } // �덉쇅泥섎━ : 荑좏궎媛믪씠 el�� �놁쓣 寃쎌슦 if (chk != 1) { // �덉쇅泥섎━ 1 : 泥ル쾲吏� 媛� 蹂댁뿬二쇨린 el.value = el.options[0]; // �덉쇅泥섎━ 2 : 荑좏궎媛� ��젣 ��, 由щ줈�� alert('hLANG:/gb1.html'); deleteCookie('hLANG','/gb1.html'); parent.location.replace(parent.location.href); } } function setCookie(c_name,value,expiredays) { if (value == "") value = getDefaultLang(); var exdate=new Date(); exdate.setDate(exdate.getDate()+expiredays); //document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString())+ "; path=/"; document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString())+ "; path=/gb1.html"; } function getCookie(c_name) { // �곗꽑 �쒖쐞 1. 荑좏궎 �덉쓣 寃쎌슦, 荑좏궎(path : baseUrl �곸슜) if (document.cookie.length>0) { c_start=document.cookie.indexOf(c_name + "="); if (c_start!=-1) { c_start=c_start + c_name.length+1; c_end=document.cookie.indexOf(";",c_start); if (c_end==-1) c_end=document.cookie.length; //alert('[1]'+unescape(document.cookie.substring(c_start,c_end))); var lang = unescape(document.cookie.substring(c_start,c_end)); if (lang == "undefined") lang = getDefaultLang(); // DEFAULT; } else { lang = getDefaultLang(); // DEFAULT; } } else { lang = getDefaultLang(); // DEFAULT; } return lang; } function deleteCookie(c_name,path) { var expireDate = new Date(); expireDate.setDate( expireDate.getDate() - 1 ); document.cookie = c_name + "= " + "; expires=" + expireDate.toGMTString() + "; path=" + path; } function getDefaultLang() { // �곗꽑 �쒖쐞 2. 愿�由ъ옄 �ㅼ젙 湲곕낯 �몄뼱 var lang = 'ko'; setCookie('hLANG',lang,null); return lang; } function getoffset(e) { var t=e.offsetTop; var l=e.offsetLeft; while(e=e.offsetParent) { if (e.id !== 'v_home_dft'){ t+=e.offsetTop; l+=e.offsetLeft; } } return Array(t,l); } var userAgent = navigator.userAgent.toLowerCase(); browser={ version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1], safari: /webkit/.test( userAgent ), opera: /opera/.test( userAgent ), msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ), mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent ) } window.onload = function(){ if (browser.version < 7){ var menu = document.getElementsByTagName('ul'); for (var i=0; i < menu.length; i++ ){ if (menu(i).className.indexOf("mainmenu") != -1){ mainmenu = menu(i); var m = mainmenu.childNodes; for (var n=0; n < m.length; n++ ){ m(n).onmouseover = function(){ for (var x =0; x < this.childNodes.length ; x++ ) { if (this.childNodes(x).tagName == 'UL') { //alert(this.childNodes(x).tagName); this.childNodes(x).style.visibility = "visible"; } } } m(n).onmouseout = function(){ for (var x =0; x < this.childNodes.length ; x++ ) { if (this.childNodes(x).tagName == 'UL') { //alert(this.childNodes(x).tagName); this.childNodes(x).style.visibility = "hidden"; } } } } } } } if (getId("v-wdg-chglang")) { var obj = getId("v-wdg-chglang"); pos = getoffset(obj); var objv = getId("v_home_dft"); objv.appendChild(obj); var obj = getId("v-wdg-chglang"); obj.style.top = pos[0] + 'px'; obj.style.left = pos[1] + 'px'; } if (getId("wowasp_footer_content")) { if (getId("board_list")) getId("board_list").style.height = 'auto' //getId("wowasp_footer").style.display = "none"; var max_top = 0; var max_id = ''; var max_height = 0; var divs =document.getElementsByTagName("div"); for (var i=0;i < divs.length;i++) { if (divs[i].id != 'wowasp_footer_content') { max_height = divs[i].offsetTop + divs[i].offsetHeight; if (max_height > max_top){ max_top = max_height; max_id = divs[i].id; } } } getId("wowasp_footer_content").style.top = (max_top + 20)+"px"; } //var lang = getCookie('hLANG'); //setLang(); } function getId(id) { return document.getElementById(id); } /* document.ondragstart = function() { return false; } document.onselectstart = function() { return false; } */ //document.onmousedown = function(){ // if (event.button==2 || event.button==3){ //�ㅻⅨ履� 留덉슦�� // IE(6,7)��. �띿뒪�� �쒕옒洹� �댁긽�꾩긽 諛⑹�(�꾩떆) //alert("�곹뭹 �곸꽭�ㅻ챸 臾대떒 �꾩슜 諛⑹�瑜� �꾪븯��\n\n留덉슦�� �ㅻⅨ履� 踰꾪듉�� �ъ슜�섏떎 �� �놁뒿�덈떎."); // } //} /* var Common = { baseUrl: null , setBaseUrl: function(url) { alert(url); Common.baseUrl = url; } , url: function(url) { return this.baseUrl+url.replace(/^\/+/, ''); } } Common.setBaseUrl(); */