// JavaScript Document

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 banner() {
document.open();
document.write("<a href='http://hb.afl.rakuten.co.jp/hsc/06392317.e1682e40.06392319.a232e291/' target='_blank'><img src='http://hbb.afl.rakuten.co.jp/hsb/06392317.e1682e40.06392319.a232e291/' border='0'></a>");
document.close();
}

function sidebanner() {
document.open();
document.write("<!-- Rakuten Widget FROM HERE --><script type='text/javascript'>rakuten_design='slide';rakuten_affiliateId='0010c69e.2b9650bc.0658809c.543326da';rakuten_items='ranking';rakuten_genreId='0';rakuten_size='200x350';rakuten_target='_blank';rakuten_theme='natural';rakuten_border='off';rakuten_auto_mode='off';rakuten_genre_title='off';rakuten_recommend='on';</script><script type='text/javascript' src='http://xml.affiliate.rakuten.co.jp/widget/js/rakuten_widget.js'></script><!-- Rakuten Widget TO HERE -->");
document.close();
}

function sidebannerold() {
document.open();
document.write("<a href='http://click.linksynergy.com/fs-bin/click?id=gr2XuFBA2dA&offerid=138700.10000019&type=4&subid=0'><IMG alt='ユナイテッド・シネマ　最新映画を自動更新でご紹介！' border='0' src='http://www.unitedcinemas.jp/affiliate/image/banner/movie-02-234-60.jpg'></a><IMG border='0' width='1' height='1' src='http://ad.linksynergy.com/fs-bin/show?id=gr2XuFBA2dA&bids=138700.10000019&type=4&subid=0'>");
document.write("<a href='http://click.linksynergy.com/fs-bin/click?id=gr2XuFBA2dA&offerid=91153.10000046&type=4&subid=0'><IMG alt='スカパー! レンタルサービスおまかせＨＤプラン' border='0' src='http://www.relation-bridge.com/sky/234_60.gif'></a><IMG border='0' width='1' height='1' src='http://ad.linksynergy.com/fs-bin/show?id=gr2XuFBA2dA&bids=91153.10000046&type=4&subid=0'>");
document.write("<a href='http://px.a8.net/svt/ejp?a8mat=U6V3K+5CX82+HVC+62MDD' target='_blank'><img border='0' width='234' height='60' alt='' src='http://www29.a8.net/svt/bgt?aid=050708720009&wid=001&eno=01&mid=s00000002316001020000&mc=1'></a><img border='0' width='1' height='1' src='http://www17.a8.net/0.gif?a8mat=U6V3K+5CX82+HVC+62MDD' alt=''>");
document.close();
}

function dbindex() {
document.open();
document.write("<a href='http://click.linksynergy.com/fs-bin/click?id=gr2XuFBA2dA&offerid=143443&subid=0'><IMG alt='amadana(アマダナ)' border='0'  width='468' height='60' src='http://ad.linksynergy.com/fs-bin/show?id=gr2XuFBA2dA&bids=143443&gridnum=1&catid=-1&subid=0'></a>");
document.write("<a href='http://click.linksynergy.com/fs-bin/click?id=gr2XuFBA2dA&offerid=94348&subid=0'><IMG alt=' iTunes Store（Japan）' border='0'  width='468' height='60' src='http://ad.linksynergy.com/fs-bin/show?id=gr2XuFBA2dA&bids=94348&gridnum=1&catid=-1&subid=0'></a>");
document.close();
}

function backToTop() {
  var x1 = x2 = x3 = 0;
  var y1 = y2 = y3 = 0;
  if (document.documentElement) {
      x1 = document.documentElement.scrollLeft || 0;
      y1 = document.documentElement.scrollTop || 0;
  }
  if (document.body) {
      x2 = document.body.scrollLeft || 0;
      y2 = document.body.scrollTop || 0;
  }
  x3 = window.scrollX || 0;
  y3 = window.scrollY || 0;
  var x = Math.max(x1, Math.max(x2, x3));
  var y = Math.max(y1, Math.max(y2, y3));
  window.scrollTo(Math.floor(x / 2), Math.floor(y / 2));
  if (x > 0 || y > 0) {
      window.setTimeout("backToTop()", 25);
  }
}

function showArea(areaId){
document.getElementById('side2adcon1').style.display="none";
document.getElementById('side2adcon2').style.display="none";
document.getElementById('side2adcon3').style.display="none";
document.getElementById(areaId).style.display="block";
}

	
	    var t1 = "<a href='http://hb.afl.rakuten.co.jp/hsc/082a34a6.357003ec.06392319.a232e291/' target='_blank'><img src='http://hbb.afl.rakuten.co.jp/hsb/082a34a6.357003ec.06392319.a232e291/' border='0'></a>";
	    var t2 = "<a href='http://click.linksynergy.com/fs-bin/click?id=gr2XuFBA2dA&offerid=94348.10001470&type=4&subid=0'><IMG alt=' iTunes Store（Japan）' border='0' src='http://ad.linkshare.ne.jp/13894/bestofstore/WhatsHot090422_468x60.jpg'></a><IMG border='0' width='1' height='1' src='http://ad.linksynergy.com/fs-bin/show?id=gr2XuFBA2dA&bids=94348.10001470&type=4&subid=0'>";
	    var t3 = "<a href='http://click.linksynergy.com/fs-bin/click?id=gr2XuFBA2dA&offerid=143443&subid=0'><IMG alt='amadana(アマダナ)' border='0'  width='468' height='60' src='http://ad.linksynergy.com/fs-bin/show?id=gr2XuFBA2dA&bids=143443&gridnum=1&catid=-1&subid=0'></a>";
	    var t4 = "<a href='http://click.linksynergy.com/fs-bin/click?id=gr2XuFBA2dA&offerid=129779.10000740&type=4&subid=0'><IMG alt='ユニバーサル・スタジオ・ジャパン(R)' border='0' src='http://www.usj.co.jp/affiliate/banner/msp/468_60.gif'></a><IMG border='0' width='1' height='1' src='http://ad.linksynergy.com/fs-bin/show?id=gr2XuFBA2dA&bids=129779.10000740&type=4&subid=0'>";
	
	   function getm(u){
	     if (u<=15) document.write(t3) ;
	     else { if (u<=30) document.write(t2) ;
	     else { if (u<=45) document.write(t1) ;
	     else { if (u<=60) document.write(t4) ;
		 } } }
	}

