/*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();



/* Utiliry Navi (Top)*/
$cc.img.un_inquiry = new $cc.Img("common/img/frame/un_inquiry_over.gif", "common/img/frame/un_inquiry.gif");
$cc.img.un_access = new $cc.Img("common/img/frame/un_access_over.gif", "common/img/frame/un_access.gif");
$cc.img.un_sitemap = new $cc.Img("common/img/frame/un_sitemap_over.gif", "common/img/frame/un_sitemap.gif");

/* Utiliry Navi (Middle)*/
$cc.img.un_examinee = new $cc.Img("common/img/frame/un_examinee_over.gif", "common/img/frame/un_examinee.gif");
$cc.img.un_student = new $cc.Img("common/img/frame/un_student_over.gif", "common/img/frame/un_student.gif");
$cc.img.un_graduate = new $cc.Img("common/img/frame/un_graduate_over.gif", "common/img/frame/un_graduate.gif");

/* Global Navi */
$cc.img.gn_idea = new $cc.Img("common/img/frame/gn_idea_over.gif", "common/img/frame/gn_idea.gif");
$cc.img.gn_outline = new $cc.Img("common/img/frame/gn_outline_over.gif", "common/img/frame/gn_outline.gif");
$cc.img.gn_jhs = new $cc.Img("common/img/frame/gn_jhs_over.gif", "common/img/frame/gn_jhs.gif");
$cc.img.gn_hs = new $cc.Img("common/img/frame/gn_hs_over.gif", "common/img/frame/gn_hs.gif");
$cc.img.gn_ghs = new $cc.Img("common/img/frame/gn_ghs_over.gif", "common/img/frame/gn_ghs.gif");
$cc.img.gn_schedule = new $cc.Img("common/img/frame/gn_schedule_over.gif", "common/img/frame/gn_schedule.gif");
$cc.img.gn_club = new $cc.Img("common/img/frame/gn_club_over.gif", "common/img/frame/gn_club.gif");

/* Utiliry Navi (Bottom)*/
$cc.img.un_aboutsite = new $cc.Img("common/img/frame/un_aboutsite_over.gif", "common/img/frame/un_aboutsite.gif");
$cc.img.un_privacy = new $cc.Img("common/img/frame/un_privacy_over.gif", "common/img/frame/un_privacy.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);
}





/* Schedule Link */
function schedule_link() {
	myD       = new Date();
	myYear    = myD.getYear();
	myYear4   = (myYear < 2000) ? myYear+1900 : myYear;
	
	document.write( "<meta http-equiv='refresh' content='0;URL=/schedule/" + myYear4 + "/'>" );
	
}



/*Flash Setting*/


/*Index*/

function IndexMov(){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="850" height="300">\n');
document.write('<param name="wmode" value="opaque">\n');
document.write('<param name="movie" value="swf/index.swf">\n');
document.write('<param name="quality" value="high">\n');
document.write('<embed src="swf/index.swf" quality="high" wmode="opaque" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="850" height="300"></embed>\n');
document.write('</object>\n');
}







/*if(document.all || document.getElementById){
	document.onmousedown = RightClick;	//右クリックイベント取得
}else if(document.layers){
	window.captureEvents(Event.MOUSEDOWN);
	window.onmousedown = RightClick;	//右クリックイベント取得
}

function RightClick(e){
	if(document.all || document.getElementById){
		if(event.button & 2){
			alert("右クリック不可");	//アラート画面表示
			return(false);
		}
	}else if(document.layers){
		if(e.which == 3){
			alert("右クリック不可");	//アラート画面表示
			return(false);
		}
	}
}*/


