// ============================================================ 
// window.onload バッティング回避
// ============================================================ 
function addEvent(elm,listener,fn) {
	try {
		elm.addEventListener(listener,fn,false);
	} catch(e) {
		elm.attachEvent("on"+listener,fn);
	}
}

// ============================================================ 
// PRELOAD
// ============================================================ 
/*
function preload(imgs) {
  for(var i = 0; i < imgs.length; i++) {
    var imgObj = new Image();
    imgObj.src = imgs[i];
  }
}
preload([""]);
*/
// ============================================================ 
// ROLLOVER
// ============================================================ 
function RollOver(obj,val) {
	obj.src = val;
}

// ============================================================ 
// CLOSE WINDOW
// ============================================================ 
function close_win() {
  var nvua = navigator.userAgent;
    if(nvua.indexOf('MSIE') >= 0) {
      if(nvua.indexOf('MSIE 5.0') == -1) {
        top.opener = '';
      }
    }
    else if(nvua.indexOf('Gecko') >= 0) {
      top.name = 'CLOSE_WINDOW';
      wid = window.open('','CLOSE_WINDOW');
    }
    top.close();
}

// ============================================================ 
// POPUP
// ============================================================ 
function popup(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

