<!--Roll Over

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


// LastUpdate : 2003/9/22/5:38:02 PM
// このスクリプトは変数設定に合わせた同じ表示領域のサブウィンドウを開くものです。
// 対応ブラウザはバージョン4以上です。

function winOpen(wurl,wname,wwidth,wheight,wtop,wleft,wtb,wlb,wdir,wstb,wmb,wscb,wres){
	
	// 初期設定
	
	pref= "no";
	
	if(wurl == "url" || wurl == null){
		wurl = "http://www.google.com/";
	}
	if(wwidth == "width" || wwidth == null){
		wwidth = 500;
	}
	else{
		wwidth = parseInt(wwidth)
	}
	if(wheight == "height" || wheight == null){
		wheight = 500;
	}
	else{
		wheight = parseInt(wheight)
	}
	if(wtb == "toolbar" || wtb == null){
		wtb = pref;
	}
	if(wlb == "location" || wlb == null){
		wlb = pref;
	}
	if(wdir == "directories" || wdir == null){
		wdir = pref;
	}
	if(wstb == "status" || wstb == null){
		wstb = pref;
	}
	if(wmb == "menubar" || wmb == null){
		wmb = pref;
	}
	if(wscb == "scrollbars" || wscb == null){
		wscb = pref;
	}
	if(wres == "resizable" || wres == null){
		wres = pref;
	}
	
	// 表示領域オフセット
	
	var pf = navigator.platform.charAt(0);
	var an = navigator.appName.charAt(0);
	var ua = navigator.userAgent;
	
	if(pf == "M"){
		
		if(an == "N"){
			
			if(wtb =="yes" || wlb == "yes"){
				
				if(ua.indexOf("Gecko",0) > -1 && ua.indexOf("Safari",0) <= -1){
					wheight += 79;
				}
				if(wlb == "yes" && ua.indexOf("Safari",0) > -1){
					wheight += 72;
				}
				if(wscb != "no" && ua.indexOf("Safari",0) > -1){
					wwidth += 15;
					wheight += 15;
				}
				
			}
			
			if(wstb == "yes"){
				
				if(ua.indexOf("Safari",0) > -1){
					wheight += 15;
				}
				if(ua.indexOf("Gecko",0) > -1 && ua.indexOf("Safari",0) <= -1){
					wheight += 18;
				}
				
			}
			
			if(wscb == "yes"){
				
				if(ua.indexOf("Gecko",0) > -1 && ua.indexOf("Safari",0) <= -1){
					wwidth += 18;
					wheight += 18;
				}
				else{
					
					if(wstb != "yes" && ua.indexOf("[",0) <= -1){
						wwidth += 15;
						wheight += 15;
					}
					
				}
				
			}
			
		}
		
	}
	else{
		
		if(wmb == "yes"){
			
			if(ua.indexOf("MSIE",0) > -1){
				
				if(wtb == "yes" && wlb == "yes" && wdir == "yes" && wstb == "yes"){
					wheight += 123;
				}
				else{
					wheight -= 20;
				}
				
			}
			
		}
		if(wscb == "yes"){
			wwidth += 15;
			wheight += 15;
		}
		
	}
	
	// 表示位置（デフォルトは中央）
	
	var sw = screen.availWidth / 2;
	var sh = screen.availHeight / 2;
	var ww = wwidth / 2;
	var wh = wheight / 2;
	
	if(wtop == "top" || wtop == null){
		wtop = parseInt(sh - wh);
	}
	
	if(wleft == "left" || wleft == null){
		wleft = parseInt(sw - ww);
	}
	
	var wopt = "width=" + wwidth;
	wopt += ",height=" + wheight;
	wopt += ",top=" + wtop;
	wopt += ",left=" + wleft;
	wopt += ",toolbar=" +  wtb;
	wopt += ",location=" + wlb;
	wopt += ",directories=" + wdir;
	wopt += ",status=" + wstb;
	wopt += ",menubar=" + wmb;
	wopt += ",scrollbars=" + wscb;
	wopt += ",resizable=" + wres;
	
	ow = window.open(wurl,wname,wopt);
	ow.focus();
	return;
	
}



// QRコードポップアップ
var IE = 0,NN = 0,N6 = 0;
if(document.all) IE = true;
else if(document.layers) NN = true;
else if(document.getElementById) N6 = true;
function OnLink(Msg,mX,mY,nX,nY){
var pX = 5,pY = -25;
var sX = 5,sY = -25;
if(IE){
MyMsg = document.all(Msg).style;
MyMsg.visibility = "visible";
}
if(NN){
MyMsg = document.layers[Msg];
MyMsg.visibility = "show";
}
if(N6){
MyMsg = document.getElementById(Msg).style;
MyMsg.visibility = "visible";
}
if(IE){
pX = document.body.scrollLeft;
pY = document.body.scrollTop;
MyMsg.left = mX + pX + sX + "px";
MyMsg.top = mY + pY + sY + "px";
}
if(NN || N6){
MyMsg.left = nX+ sX + "px";
MyMsg.top = nY + sY + "px";
}
}
function OffLink(Msg){
if(IE) document.all(Msg).style.visibility = "hidden";
if(NN) document.layers[Msg].visibility = "hide";
if(N6) document.getElementById(Msg).style.visibility = "hidden";
}



//ポップアップコメント

function MM_popupMsg(msg) { //v1.0
  alert(msg);
}



// Author : Kenta Nakae


// minmax.js: make IE5+/Win support CSS min/max-width/height
// version 1.0, 08-Aug-2003
// written by Andrew Clover <and@doxdesk.com>, use freely

/*@cc_on
@if (@_win32 && @_jscript_version>4)

var minmax_elements;

minmax_props= new Array(
  new Array('min-width', 'minWidth'),
  new Array('max-width', 'maxWidth'),
  new Array('min-height','minHeight'),
  new Array('max-height','maxHeight')
);

// Binding. Called on all new elements. If <body>, initialise; check all
// elements for minmax properties

function minmax_bind(el) {
  var i, em, ms;
  var st= el.style, cs= el.currentStyle;

  if (minmax_elements==window.undefined) {
    // initialise when body element has turned up, but only on IE
    if (!document.body || !document.body.currentStyle) return;
    minmax_elements= new Array();
    window.attachEvent('onresize', minmax_delayout);
    // make font size listener
    em= document.createElement('div');
    em.setAttribute('id', 'minmax_em');
    em.style.position= 'absolute'; em.style.visibility= 'hidden';
    em.style.fontSize= 'xx-large'; em.style.height= '5em';
    em.style.top='-5em'; em.style.left= '0';
    if (em.style.setExpression) {
      em.style.setExpression('width', 'minmax_checkFont()');
      document.body.insertBefore(em, document.body.firstChild);
    }
  }

  // transform hyphenated properties the browser has not caught to camelCase
  for (i= minmax_props.length; i-->0;)
    if (cs[minmax_props[i][0]])
      st[minmax_props[i][1]]= cs[minmax_props[i][0]];
  // add element with properties to list, store optimal size values
  for (i= minmax_props.length; i-->0;) {
    ms= cs[minmax_props[i][1]];
    if (ms && ms!='auto' && ms!='none' && ms!='0' && ms!='') {
      st.minmaxWidth= cs.width; st.minmaxHeight= cs.height;
      minmax_elements[minmax_elements.length]= el;
      // will need a layout later
      minmax_delayout();
      break;
  } }
}

// check for font size changes

var minmax_fontsize= 0;
function minmax_checkFont() {
  var fs= document.getElementById('minmax_em').offsetHeight;
  if (minmax_fontsize!=fs && minmax_fontsize!=0)
    minmax_delayout();
  minmax_fontsize= fs;
  return '5em';
}

// Layout. Called after window and font size-change. Go through elements we
// picked out earlier and set their size to the minimum, maximum and optimum,
// choosing whichever is appropriate

// Request re-layout at next available moment
var minmax_delaying= false;
function minmax_delayout() {
  if (minmax_delaying) return;
  minmax_delaying= true;
  window.setTimeout(minmax_layout, 0);
}

function minmax_stopdelaying() {
  minmax_delaying= false;
}

function minmax_layout() {
  window.setTimeout(minmax_stopdelaying, 100);
  var i, el, st, cs, optimal, inrange;
  for (i= minmax_elements.length; i-->0;) {
    el= minmax_elements[i]; st= el.style; cs= el.currentStyle;

    // horizontal size bounding
    st.width= st.minmaxWidth; optimal= el.offsetWidth;
    inrange= true;
    if (inrange && cs.minWidth && cs.minWidth!='0' && cs.minWidth!='auto' && cs.minWidth!='') {
      st.width= cs.minWidth;
      inrange= (el.offsetWidth<optimal);
    }
    if (inrange && cs.maxWidth && cs.maxWidth!='none' && cs.maxWidth!='auto' && cs.maxWidth!='') {
      st.width= cs.maxWidth;
      inrange= (el.offsetWidth>optimal);
    }
    if (inrange) st.width= st.minmaxWidth;

    // vertical size bounding
    st.height= st.minmaxHeight; optimal= el.offsetHeight;
    inrange= true;
    if (inrange && cs.minHeight && cs.minHeight!='0' && cs.minHeight!='auto' && cs.minHeight!='') {
      st.height= cs.minHeight;
      inrange= (el.offsetHeight<optimal);
    }
    if (inrange && cs.maxHeight && cs.maxHeight!='none' && cs.maxHeight!='auto' && cs.maxHeight!='') {
      st.height= cs.maxHeight;
      inrange= (el.offsetHeight>optimal);
    }
    if (inrange) st.height= st.minmaxHeight;
  }
}

// Scanning. Check document every so often until it has finished loading. Do
// nothing until <body> arrives, then call main init. Pass any new elements
// found on each scan to be bound   

var minmax_SCANDELAY= 500;

function minmax_scan() {
  var el;
  for (var i= 0; i<document.all.length; i++) {
    el= document.all[i];
    if (!el.minmax_bound) {
      el.minmax_bound= true;
      minmax_bind(el);
  } }
}

var minmax_scanner;
function minmax_stop() {
  window.clearInterval(minmax_scanner);
  minmax_scan();
}

minmax_scan();
minmax_scanner= window.setInterval(minmax_scan, minmax_SCANDELAY);
window.attachEvent('onload', minmax_stop);

@end @*/
