/*Roll Over & Out*/

var $cc = new Object();
$cc.Img = function($mouseover, $mouseout) {
  this.mouseover = $mouseover;
  this.mouseout = $mouseout;
}
$cc.Base = function() {
  var $undefined;
  return arguments[0] == $undefined ? '' : arguments[0];
}
$cc.Cache = function($obj) {
  for(var $p in $obj) {
    eval('this.'+$p+' = new Object()');
    for(var $p2 in eval('$obj.'+$p)) {
      eval('this.'+$p+'.'+$p2+' = new Image()');
      eval('this.'+$p+'.'+$p2+'.src = $cc.Cache.base+$obj.'+$p+'.'+$p2);
    }
  }
}
$cc.Load = function($id, $obj) {
  eval('$obj.'+$id+'.mouseout.src = $obj.'+$id+'.mouseover.src');
  eval('document.'+$id+'.src = $obj.'+$id+'.mouseover.src');
}
$cc.Mouseover = function($id, $obj) {
  eval('document.'+$id+'.src = $obj.'+$id+'.mouseover.src');
}
$cc.Mouseout = function($id, $obj) {
  eval('document.'+$id+'.src = $obj.'+$id+'.mouseout.src');
}
$cc.img = new Object();


/* Back Number Button */
$cc.img.btn_backnumber = new $cc.Img("common/img/btn_backnumber_over.gif", "common/img/btn_backnumber.gif");

$cc.img.btn_index = new $cc.Img("common/img/btn_index_over.gif", "common/img/btn_index.gif");
$cc.img.btn_back = new $cc.Img("common/img/btn_back_over.gif", "common/img/btn_back.gif");
$cc.img.btn_next = new $cc.Img("common/img/btn_next_over.gif", "common/img/btn_next.gif");





/*Center Open Window*/
function openWin(url,height,width,name) {
  var str="height=" + height + ",innerHeight=" + height;
  str+=",width=" + width + ",innerWidth=" + width;
  if (window.screen) {
    var ah=screen.availHeight-30;
    var aw=screen.availWidth-10;

    var xc=(aw-width)/2;
    var yc=(ah-height)/2;

    str+=",left="+xc+",screenX="+xc;
    str+=",top="+yc+",screenY="+yc;
  }
  str+=",scrollbars=no,status =yes,resizable =no";
  return window.open(url,name,str);
}

function openWin2(url,height,width,name) {
  var str="height=" + height + ",innerHeight=" + height;
  str+=",width=" + width + ",innerWidth=" + width;
  if (window.screen) {
    var ah=screen.availHeight-30;
    var aw=screen.availWidth-10;

    var xc=(aw-width)/2;
    var yc=(ah-height)/2;

    str+=",left="+xc+",screenX="+xc;
    str+=",top="+yc+",screenY="+yc;
  }
  str+=",scrollbars=yes,resizable =no";
  return window.open(url,name,str);
}

function openWin3(url,height,width,name) {
  var str="height=" + height + ",innerHeight=" + height;
  str+=",width=" + width + ",innerWidth=" + width;
  if (window.screen) {
    var ah=screen.availHeight-30;
    var aw=screen.availWidth-10;

    var xc=(aw-width)/2;
    var yc=(ah-height)/2;

    str+=",left="+xc+",screenX="+xc;
    str+=",top="+yc+",screenY="+yc;
  }
  str+=",scrollbars=yes,resizable =no,menubar =yes";
  return window.open(url,name,str);
}
