/* poppets java script */
/* from www.aloha-smile.com */


/* フォントサイズ */

mac=(navigator.appVersion.indexOf('Mac')!=-1)?true:false;
ie=(navigator.appName.charAt(0) == "M")?true:false;

document.write("<STYLE TYPE='text/css'><!--")
if(mac){
	//FOR MACINTOSH IE NS
	document.write(".j9{font-size:9px; font-family: osaka}")
	document.write(".j9b{font-size:9px; font-weight: bold; font-family: osaka}")
	document.write(".j9h{font-size:9px; line-height:14px; font-family: osaka}")
	document.write(".j9hb{font-size:9px; line-height:14px; font-weight: bold; font-family: osaka}")

	document.write(".j10{font-size:10px; font-family: osaka}")
	document.write(".j10b{font-size:10px; font-weight: bold; font-family: osaka}")
	document.write(".j10h{font-size:10px; line-height:16px; font-family: osaka}")
	document.write(".j10hb{font-size:10px; line-height:16px; font-weight: bold; font-family: osaka}")

	document.write(".j12{font-size:12px; font-family: osaka}")
	document.write(".j12b{font-size:12px; font-weight: bold; font-family: osaka}")
	document.write(".j12h{font-size:12px; line-height:20px; font-family: osaka}")
	document.write(".j12hb{font-size:12px; line-height:20px; font-weight: bold; font-family: osaka}")

	document.write(".j14{font-size:14px; font-family: osaka}")
	document.write(".j14b{font-size:14px; font-weight: bold; font-family: osaka}")
	document.write(".j14h{font-size:14px; line-height:24px; font-family: osaka}")
	document.write(".j14hb{font-size:14px; line-height:24px; font-weight: bold; font-family: osaka}")
}
else{
	if(ie){
	//FOR WINDOWS IE
	document.write(".j9{font-size:10px; line-height:12px; font-family: ＭＳ Ｐゴシック}")
	document.write(".j9b{font-size:10px; line-height:12px; font-weight: bold; font-family: ＭＳ Ｐゴシック}")
	document.write(".j9h{font-size:10px; line-height:14px; font-family: ＭＳ Ｐゴシック}")
	document.write(".j9hb{font-size:10px; line-height:14px; font-weight: bold; font-family: ＭＳ Ｐゴシック}")

	document.write(".j10{font-size:11px; line-height:13px; font-family: ＭＳ Ｐゴシック}")
	document.write(".j10b{font-size:11px; line-height:13px; font-weight: bold; font-family: ＭＳ Ｐゴシック}")
	document.write(".j10h{font-size:11px; line-height:16px; font-family: ＭＳ Ｐゴシック}")
	document.write(".j10hb{font-size:11px; line-height:16px; font-weight: bold; font-family: ＭＳ Ｐゴシック}")

	document.write(".j12{font-size:12px; line-height:15px; font-family: ＭＳ Ｐゴシック}")
	document.write(".j12b{font-size:12px; line-height:15px; font-weight: bold; font-family: ＭＳ Ｐゴシック}")
	document.write(".j12h{font-size:12px; line-height:19px; font-family: ＭＳ Ｐゴシック}")
	document.write(".j12hb{font-size:12px; line-height:19px; font-weight: bold; font-family: ＭＳ Ｐゴシック}")

	document.write(".j14{font-size:14px; line-height:17px; font-family: ＭＳ Ｐゴシック}")
	document.write(".j14b{font-size:14px; line-height:17px; font-weight: bold; font-family: ＭＳ Ｐゴシック}")
	document.write(".j14h{font-size:14px; line-height:23px; font-family: ＭＳ Ｐゴシック}")
	document.write(".j14hb{font-size:14px; line-height:23px; font-weight: bold; font-family: ＭＳ Ｐゴシック}")
}
else{
	//FOR WINDOWS NETSCAPE
	document.write(".j9{font-size:10px; line-height:11px}")
	document.write(".j9b{font-size:10px; line-height:11px; font-weight: bold}")
	document.write(".j9h{font-size:10px; line-height:14px}")
	document.write(".j9hb{font-size:10px; line-height:14px; font-weight: bold}")

	document.write(".j10{font-size:11px; line-height:12px}")
	document.write(".j10b{font-size:11px; line-height:12px; font-weight: bold}")
	document.write(".j10h{font-size:11px; line-height:16px}")
	document.write(".j10hb{font-size:11px; line-height:16px; font-weight: bold}")

	document.write(".j12{font-size:12px; line-height:15px}")
	document.write(".j12b{font-size:12px; line-height:15px; font-weight: bold}")
	document.write(".j12h{font-size:12px; line-height:19px}")
	document.write(".j12hb{font-size:12px; line-height:19px; font-weight: bold}")

	document.write(".j14{font-size:15px; line-height:18px}")
	document.write(".j14b{font-size:15px; line-height:18px; font-weight: bold}")
	document.write(".j14h{font-size:15px; line-height:23px}")
	document.write(".j14hb{font-size:15px; line-height:23px; font-weight: bold}")
	}
}
document.write("--></STYLE>");




/* スワップイメージ */

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

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);



/* オープンウィンドウ */

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function DogsWindow(theURL,winName,features) { //v2.0
  sw=screen.availWidth; 
  sh=screen.availHeight;
  wl = (sw-370)/2;
  wt = (sh-410)/2;
  window.open(theURL,winName,"width=370,height=410,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=" + wl + ",top=" + wt);
}

function CowboyWindow(theURL,winName,features) { //v2.0
  sw=screen.availWidth; 
  sh=screen.availHeight;
  wl = (sw-325)/2;
  wt = (sh-450)/2;
  window.open(theURL,winName,"width=325,height=450,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=" + wl + ",top=" + wt);
}

function chg_prtUrl(url) {
 opener.location.href = url;
}



/* ランダムにトップメイン画像を表示 */

var img = new Array;

img[0] = "backnumber/img/060401.jpg";
img[1] = "backnumber/img/060711.jpg";
img[2] = "backnumber/img/061016.jpg";
img[3] = "backnumber/img/070107.jpg";
img[4] = "backnumber/img/070501.jpg";
img[5] = "backnumber/img/070502.jpg";
img[6] = "backnumber/img/070503.jpg";
img[7] = "backnumber/img/070504.jpg";
img[8] = "backnumber/img/070505.jpg";
img[9] = "backnumber/img/070506.jpg";
img[10] = "backnumber/img/070507.jpg";
img[11] = "backnumber/img/070508.jpg";
img[12] = "backnumber/img/070509.jpg";
function random_img(){
        var i = myrandom(img.length) - 1;
        document.write("<IMG SRC=\""+img[i]+"\">");
}
function myrandom(max){
        var v = max * Math.random();
        if(v == 0.0){v = 1;}else{v = Math.ceil(v);}
        return v;
}