







(function () {
  var onload = function (e) {
    for (var i = 0; i < document.images.length; ++i) {
      if (document.images[i].src.match(/^(.*)-base\.([^.]*)$/)) {
        (function (img, pre, ext) {
          var active = new Image(); active.src = pre + '-act.' + ext;
          var normal = new Image(); normal.src = pre + '-base.' + ext;
          var onmouseover = function (e) { img.src = active.src; }
          var onmouseout = function (e) { img.src = normal.src; }
          try {
            img.addEventListener('mouseover', onmouseover, false);
            img.addEventListener('mouseout', onmouseout, false);
          }
          catch (e) {
            img.attachEvent('onmouseover', onmouseover);
            img.attachEvent('onmouseout', onmouseout);
          }
        })(document.images[i], RegExp.$1, RegExp.$2);
      }
    }
  }
  try {
    window.addEventListener('load', onload, false);
  }
  catch (e) {
    window.attachEvent('onload', onload);
  }
})()






function popup (URL, w, h){
	if( window.name == "POP" ){
		var PopWinName = "POP2";
	} else {
		var PopWinName = "POP";
	}
	var PROPERTY = "scrollbars=1,toolbar=0,location=0,directories=1,status=0,menubar=0,resizable=1,width=" + w + ",height=" + h;
	var PopWin = window.open(URL,PopWinName,PROPERTY);
	PopWin.focus();
}

