var menuskin = 'skin1' 
var display_url = 0 

function showmenuie5(){ 
var rightedge = document.body.clientwidth-event.clientX; 
var bottomedge = document.body.clientheight-event.clientY; 
if (rightedge < ie5menu.offsetwidth) 
ie5menu.style.left = document.body.scrollLeft + event.clientX - ie5menu.offsetwidth; 
else 
ie5menu.style.left = document.body.scrollLeft + event.clientX; 
if (bottomedge < ie5menu.offsetheight) 
ie5menu.style.top = document.body.scrollTop + event.clientY - ie5menu.offsetheight; 
else 
ie5menu.style.top = document.body.scrollTop + event.clientY; 
ie5menu.style.visibility = 'visible'; 
return false; 
} 

function hidemenuie5(){ 
ie5menu.style.visibility = 'hidden'; 
} 
function delete_msg(url,str){
  if(confirm(str)){location=url;}
}
function highlightie5(){ 
  if(event.srcElement.className == 'menuitems'){ 
    event.srcElement.style.backgroundColor = 'highlight'; 
    event.srcElement.style.color = 'white'; 
  if(display_url) 
    window.status = event.srcElement.url; 
  } 
} 

function lowlightie5(){ 
  if(event.srcElement.className == 'menuitems'){ 
    event.srcElement.style.backgroundColor = ''; 
    event.srcElement.style.color = 'black'; 
    window.status = ''; 
  } 
} 

function jumptoie5(){ 
if (event.srcElement.className == 'menuitems') 
{ 
if (event.srcElement.getAttribute('target') !=null) 
window.open(event.srcElement.url,event.srcElement.getAttribute('target')); 
else 
window.location = event.srcElement.url; 
} 
} 

// menu tiptool hidden
function openimg(url,win_width,win_height,win_scroll) {
var me_width;
var me_height;

me_width = (window.screen.width/2) - (win_width/2);
me_height = (window.screen.height/2) - (win_height/2);
me_height = me_height - 30;

var win2 = window.open(url,'win2','height='+win_height+',width='+win_width+',left='+me_width+',top='+me_height+',screenX='+me_width+',screenY='+me_height+',resizable=no,menubar=no,scrollbars='+win_scroll+','+',location=no,status=no');
win2.focus();
}

// yes check
function delete_data(url){
  if(confirm('»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?')){location=url;}
}

function onmenu_focus(nm){
  if(nm == 1){
    mnu00.style.display = 'none';
    mnu01.style.display = 'block';
    mnu02.style.display = 'none';
    mnu03.style.display = 'none';
    mnu04.style.display = 'none';
  }
  else if(nm == 2){
    mnu00.style.display = 'none';
    mnu01.style.display = 'none';
    mnu02.style.display = 'block';
    mnu03.style.display = 'none';
    mnu04.style.display = 'none';
  }
  else if(nm == 3){
    mnu00.style.display = 'none';
    mnu01.style.display = 'none';
    mnu02.style.display = 'none';
    mnu03.style.display = 'block';
    mnu04.style.display = 'none';
  }
  else if(nm == 4){
    mnu00.style.display = 'none';
    mnu01.style.display = 'none';
    mnu02.style.display = 'none';
    mnu03.style.display = 'none';
    mnu04.style.display = 'block';
  }
  else{
    mnu00.style.display = 'block';
    mnu01.style.display = 'none';
    mnu02.style.display = 'none';
    mnu03.style.display = 'none';
    mnu04.style.display = 'none';
  }
}

var startopacity = 30; // 

function fadeIt(obj,direct){ 
if(window.timer) { clearInterval(timer); } 
tobj=obj; drct=direct; 
timer=setInterval("flowfilter(tobj,drct);",5); } 

function flowfilter(thing,dct){ 
if(dct==1) { if (thing.filters.alpha.opacity<100) { thing.filters.alpha.opacity+=5; } else { clearInterval(timer); } } 
if(dct==2) { if (thing.filters.alpha.opacity>startopacity) { thing.filters.alpha.opacity-=5; } else { clearInterval(timer); } } 
}



function JS_viewObj(objhtml) { 
    document.write(objhtml); 
} 
function popupWindow(url, w, h) {
  var posX = (screen.width - w) / 2;
  var posY = (screen.height - h) / 2;
  var option = ",resizable=no,scrollbars=no,status=no";
  window.open(url, "new_win","width="+w+",height="+h+",left="+posX +",top="+posY+option);
}
