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('ybsurplus.homenshop.net/tpl/comm/js/language.php?+si=ybsurplus&bp=%2Fen%2Fcompany.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:/en/company.html');
deleteCookie('hLANG','/en/company.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=/en/company.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 = 'en';
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();
*/