// JavaScript Document
function globalNnavi(mode){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="760" height="148" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">\n');
document.write('<param name="movie" value="http://www.amayahome.com/image/global_navi.swf" />\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="wmode" value="transparent" />\n');
document.write('<param name="bgcolor" value="#ffffff" />\n');
document.write('<param name="flashvars" value="menumode='+mode+'">\n');
document.write('<embed src="http://www.amayahome.com/image/global_navi.swf" quality="high" bgcolor="#ffffff" width="760" height="148" name="navigator" align="middle" play="true" loop="false" quality="high" wmode="transparent" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" flashvars="menumode='+mode+'" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>\n');
document.write('<\/object>\n');
}

function calendar(link){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="650" height="25" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="calender">\n');

document.write('<param name=movie value="<MTBlogURL>img/w_calendar210.swf?oneday='+link+'&xmlURL=<MTBlogURL>calendar.xml&katachi=1&monthMoveColor=fcc150&entryDayColor=abc5d7&todayColor=fcc150&title_d=1">\n');
document.write('<param name="quality" value="high">\n');
document.write('<param name="wmode" value="transparent">\n');
document.write('<param name="bgcolor" value="#ffffff">\n');
document.write('<embed src="<MTBlogURL>img/w_calendar210.swf?oneday='+link+'&xmlURL=<MTBlogURL>calendar.xml&katachi=1&monthMoveColor=fcc150&entryDayColor=abc5d7&todayColor=fcc150&title_d=1" quality="high"  wmode="transparent" bgcolor="#ffffff" width="650" height="25" name="calender" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\n');
document.write('</embed>\n');
document.write('</object>\n');
}





function photocubic(){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="191" height="172" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">\n');
document.write('<param name="movie" value="http://www.amayahome.com/image/photocubic.swf" />\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="bgcolor" value="#ffffff" />\n');
document.write('<embed src="http://www.amayahome.com/image/photocubic.swf" quality="high" bgcolor="#ffffff" width="191" height="172" name="navigator" align="middle" play="true" loop="false" quality="high" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>\n');
document.write('<\/object>\n');
}

function pr(){
var imglist = new Array("top9.swf","top10.swf");
var selectnum = Math.floor((Math.random()*100)) % imglist.length;
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="416" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">\n');
document.write('<param name="movie" value="http://www.amayahome.com/image/'+imglist[selectnum]+'" />\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="bgcolor" value="#ffffff" />\n');
document.write('<embed src="http://www.amayahome.com/image/'+imglist[selectnum]+'" quality="high" bgcolor="#ffffff" width="416" height="300" name="navigator" align="middle" play="true" loop="false" quality="high" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>\n');
document.write('<\/object>\n');
}

function nextmore(mode,id){
	if (document.getElementById){
		if(mode=='body'){
			document.getElementById('body'+id).style.display = "block";
			document.getElementById('more'+id).style.display = "none";
			location.href = '#'+id;
            return true;
		}else if(mode=='more'){
			document.getElementById('body'+id).style.display = "none";
			document.getElementById('more'+id).style.display = "block";
			location.href = '#'+id;
            return true;

		}
	}
}
function showHide(entryID, entryLink, htmlObj) {
    extTextDivID = ('Text' + (entryID));
    extLinkDivID = ('Link' + (entryID));
    if( document.getElementById ) {
        if( document.getElementById(extTextDivID).style.display ) {
            if( entryLink != 0 ) {
                document.getElementById(extTextDivID).style.display = "block";
                document.getElementById(extLinkDivID).style.display = "none";
                htmlObj.blur();
            } else { 
                document.getElementById(extTextDivID).style.display = "none";
                document.getElementById(extLinkDivID).style.display = "block";
            }
        } else {
            location.href = entryLink;
            return true;
        }
    } else {
        location.href = entryLink;
        return true;
    }
}
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 openwindowMap(url,width,height)
{
	sw = screen.availWidth;
	sh = screen.availHeight;
	wl = (sw - width)/2;
	wt = (sh - height)/2;
	window.open(url, '_blank','width='+width+',height='+height+',scrollbars=yes,left='+wl+',top='+wt);
}
function openwindowAdc(url,width)
{
	sw = screen.availWidth;
	sh = screen.availHeight;
	height = sh;
	wl = (sw - width)/2;
	wt = (sh - height)/2;
	window.open(url, '_blank','width='+width+',height='+height+',scrollbars=yes,left=0,top=0');
}
function PrintPage(){
	if(document.getElementById || document.layers){
		window.print();		//印刷をします
	}
}
function changeBlock(mode,id){
	if (document.getElementById){
		if(mode=='entry'){
			document.getElementById('entry'+id).style.display = "block";
			document.getElementById('comment'+id).style.display = "none";
			document.getElementById('trackback'+id).style.display = "none";
			location.href = '#'+id;
            return true;
		}else if(mode=='comment'){
			document.getElementById('entry'+id).style.display = "none";
			document.getElementById('comment'+id).style.display = "block";
			document.getElementById('trackback'+id).style.display = "none";
			location.href = '#'+id;
            return true;
		}else if(mode=='trackback'){
			document.getElementById('entry'+id).style.display = "none";
			document.getElementById('comment'+id).style.display = "none";
			document.getElementById('trackback'+id).style.display = "block";
			location.href = '#'+id;
            return true;
		}
	}
}

function copyright(){
	myD = new Date();
	myYear = myD.getFullYear();
	document.write('<p>Copyright(C)'+myYear+' Sunrise Japan Corporation. All Rights Reserved.</p>\n');
}