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.0
  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 && document.getElementById) x=document.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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function IMG(num){
var num1 = new Array(10);
        num1[0] =  "http://tonic.jp.to/dejirogu/img/date/0.gif";     num1[1] =  "http://tonic.jp.to/dejirogu/img/date/1.gif";     num1[2] =  "http://tonic.jp.to/dejirogu/img/date/2.gif";
        num1[3] =  "http://tonic.jp.to/dejirogu/img/date/3.gif";     num1[4] =  "http://tonic.jp.to/dejirogu/img/date/4.gif";     num1[5] =  "http://tonic.jp.to/dejirogu/img/date/5.gif";
        num1[6] =  "http://tonic.jp.to/dejirogu/img/date/6.gif";     num1[7] =  "http://tonic.jp.to/dejirogu/img/date/7.gif";     num1[8] =  "http://tonic.jp.to/dejirogu/img/date/8.gif";
        num1[9] =  "http://tonic.jp.to/dejirogu/img/date/9.gif";     return num1[num];
}

function G(){
        var doc = "";
        var now = new Date();
        t =  eval(now.getMonth()+1) + "";
        n =  now.getDate() + "";
        for( i=0 ; i < t.length ; i++){
                gazou = IMG(t.charAt(i));
                doc += '<IMG SRC="'+gazou+'" width=12 height=15 border=0 alt="今日は何の日？">';
        }
        doc += "<IMG SRC='http://tonic.jp.to/dejirogu/img/date/month.gif' width=12 height=15 border=0 alt='今日は何の日？'>"
        for( i=0 ; i < n.length ; i++){
                gazou = IMG(n.charAt(i));
                doc += '<IMG SRC="'+gazou+'" width=12 height=15 border=0 alt="今日は何の日？">';
        }
        doc += "<IMG SRC='http://tonic.jp.to/dejirogu/img/date/day.gif' width=12 height=15 border=0 alt='今日は何の日？'>"

dd = new Date();
day  = dd.getDay();
//　曜日分岐
if (day == 1) {         // 月曜日
        doc += "<IMG SRC='http://tonic.jp.to/dejirogu/img/date/mon.gif' width=24 height=15 border=0 alt='今日は何の日？'>"
} else  if (day == 2) { // 火曜日
        doc += "<IMG SRC='http://tonic.jp.to/dejirogu/img/date/tue.gif' width=24 height=15 border=0 alt='今日は何の日？'>"
} else  if (day == 3) { // 水曜日
        doc += "<IMG SRC='http://tonic.jp.to/dejirogu/img/date/wed.gif' width=24 height=15 border=0 alt='今日は何の日？'>"
} else  if (day == 4) { // 木曜日
        doc += "<IMG SRC='http://tonic.jp.to/dejirogu/img/date/thu.gif' width=24 height=15 border=0 alt='今日は何の日？'>"
} else  if (day == 5) { // 金曜日
        doc += "<IMG SRC='http://tonic.jp.to/dejirogu/img/date/fri.gif' width=24 height=15 border=0 alt='今日は何の日？'>"
} else  if (day == 6) { // 土曜日
        doc += "<IMG SRC='http://tonic.jp.to/dejirogu/img/date/sat.gif' width=24 height=15 border=0 alt='今日は何の日？'>"
} else {                // 日曜日
        doc += "<IMG SRC='http://tonic.jp.to/dejirogu/img/date/sun.gif' width=24 height=15 border=0 alt='今日は何の日？'>"
}

        return doc;
}