<!--
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_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];}
}

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 wopen(theURL,winN,yoko,tate) {
 var WO1
 WO1 = window.open(theURL,winN,'scrollbars=yes,resizable=yes, width=500, height=550');
 WO1.window.resizeTo(yoko,tate);
 WO1.focus();
}

function wclose() {window.close();}

function changeHeadline(id,n){
var id2, n;
if(n==0){
id2 = id + 1;
	if(document.getElementById){
	        document.getElementById(id).style.display = "none";
			document.getElementById(id2).style.display = "block";
	}
} else {
id2 = id.substr(0,2);
	if(document.getElementById){
	        document.getElementById(id2).style.display = "block";
			document.getElementById(id).style.display = "none";
}}}

/*//////////// フルスクリ−ン幅get用指定用関数   UseFree
========================================================
 Win  n4 n6 moz e4 e5 e6,
 Mac  n4 n6 moz e4.5 e5,
 Linux n4 n6 moz         
========================================================
 ルスクリ−ン幅をピクセル単位で取得する
 Support http://game.gr.jp/js/
=======================================================*/
function getScreenWIDTH(){
	if(!!window.screen)
		return screen.width        //N4,N6,Moz,IE,共用
	else
		return null                //上記以外
}
function getScreenHEIGHT(){
	if(!!window.screen)
		return screen.height       //N4,N6,Moz,IE,共用
	else
		return null                //上記以外
}
/*//////////// フルスクリ−ン幅get用指定用関数ここまで */
var sw1; var sw2; var pitch1; var pitch2; var str;
function PopWindow(Aurl,Aname,Awidth,Aheight){
	sw1 = 0; sw2 = 0; pitch1 = 14; pitch2 = 30; pitch3 = 24;
	getSW = getScreenWIDTH();
	getSH = getScreenHEIGHT() - pitch2;
	if(getSW < (Awidth - 0) + (pitch1 * 2)){
		Pwidth = getSW - pitch1; sw1 = 1;
		Pwscr = 0;
	} else {
		Pwidth = (Awidth - 0) + pitch3 ;
		Pwscr = (getSW - pitch1 - Pwidth) / 2;
	}
	if(getSH < (Aheight - 0) + (pitch2 * 2)){
		Pheight = getSH - pitch2; sw2 = 1;
		Phscr = 0;
	} else {
		Pheight = (Aheight - 0) + pitch3 ;
		Phscr = (getSH - pitch2 - Pheight)/ 2 ;
	}
	if(!sw1 && sw2){
		Pwidth = (Pwidth - 0) + pitch1;
		Pwscr = (getSW - pitch1 - Pwidth) / 2;
	}
	if(sw1 && !sw2){
		Pheight = (Pheight - 0) + pitch2 / 2;
		Phscr = (getSH - pitch2 - Pheight)/ 2 ;
	}
	var pic_popup = 1;
	if ( pic_popup == 2 ){
		str = ",resizable";
	} else {
		str = ",left=" + Pwscr + ",top=" + Phscr + ",screenX=0,screenY=0,resizable";
	}
	if(sw1 || sw2){
		str += ",scrollbars";
	}
	if(Pwidth < 40){Pwidth = 40}
	if(Pheight < 80){Pheight = 80}
	Astr = "width=" + Pwidth + ",height=" + Pheight + str;
	subwin = window.open(Aurl,'',Astr);
}
//-->
