if(we==0){tt7=ttt1;tt6=ttt7;tt5=ttt6;tt4=ttt5;tt3=ttt4;tt2=ttt3;tt1=ttt2;}
if(we==1){tt7=ttt2;tt6=ttt1;tt5=ttt7;tt4=ttt6;tt3=ttt5;tt2=ttt4;tt1=ttt3;}
if(we==2){tt7=ttt3;tt6=ttt2;tt5=ttt1;tt4=ttt7;tt3=ttt6;tt2=ttt5;tt1=ttt4;}
if(we==3){tt7=ttt4;tt6=ttt3;tt5=ttt2;tt4=ttt1;tt3=ttt7;tt2=ttt6;tt1=ttt5;}
if(we==4){tt7=ttt5;tt6=ttt4;tt5=ttt3;tt4=ttt2;tt3=ttt1;tt2=ttt7;tt1=ttt6;}
if(we==5){tt7=ttt6;tt6=ttt5;tt5=ttt4;tt4=ttt3;tt3=ttt2;tt2=ttt1;tt1=ttt7;}
if(we==6){tt7=ttt7;tt6=ttt6;tt5=ttt5;tt4=ttt4;tt3=ttt3;tt2=ttt2;tt1=ttt1;}


max=Math.max(tt1,tt2,tt3,tt4,tt5,tt6,tt7);
x=max/wa;
t1=tt1/x;if(t1<4 && t1!=0){t1=4;}
t1=Math.floor(t1);y1=wa-t1+1;
t2=tt2/x;if(t2<4 && t2!=0){t2=4;}
t2=Math.floor(t2);y2=wa-t2+1;
t3=tt3/x;if(t3<4 && t3!=0){t3=4;}
t3=Math.floor(t3);y3=wa-t3+1;
t4=tt4/x;if(t4<4 && t4!=0){t4=4;}
t4=Math.floor(t4);y4=wa-t4+1;
t5=tt5/x;if(t5<4 && t5!=0){t5=4;}
t5=Math.floor(t5);y5=wa-t5+1;
t6=tt6/x;if(t6<4 && t6!=0){t6=4;}
t6=Math.floor(t6);y6=wa-t6+1;
t7=tt7/x;if(t7<4 && t7!=0){t7=4;}
t7=Math.floor(t7);y7=wa-t7+1;

h1=ha*0;
h2=ha*1;
h3=ha*2;
h4=ha*3;
h5=ha*4;
h6=ha*5;
h7=ha*6;

h8=ha*7+6;
h9=wa+26;
h10=ha*7;
fw=fw2=500;
if(fs>8){fw=fw2=700;}

function kaz(get){today.innerHTML=get+'<DIV style=" position : absolute;top:0;left:-'+h5+';"><a href=http://co.29g.net target=_blank><img src=http://29g.net/b.gif width='+h10+' height=18 border=0 alt="アクセスカウンター&#13;&#10;無料レンタル"></a></div>';}

document.write('<DIV style="width:'+h8+';height:'+h9+';position : relative;background:'+bak+' url('+baki+');border:3px double '+wak+';">'+
'<DIV style=" position : absolute;top:'+y1+';left:'+h1+';"><input type="button" style="width:'+ha+';height:'+t1+';border:1px solid #eeeeee;background:'+col+' url('+bari+');" onclick=kaz('+tt1+')></div>'+
'<DIV style=" position : absolute;top:'+y2+';left:'+h2+';"><input type="button" style="width:'+ha+';height:'+t2+';border:1px solid #eeeeee;background:'+col+' url('+bari+');" onclick=kaz('+tt2+')></div>'+
'<DIV style=" position : absolute;top:'+y3+';left:'+h3+';"><input type="button" style="width:'+ha+';height:'+t3+';border:1px solid #eeeeee;background:'+col+' url('+bari+');" onclick=kaz('+tt3+')></div>'+
'<DIV style=" position : absolute;top:'+y4+';left:'+h4+';"><input type="button" style="width:'+ha+';height:'+t4+';border:1px solid #eeeeee;background:'+col+' url('+bari+');" onclick=kaz('+tt4+')></div>'+
'<DIV style=" position : absolute;top:'+y5+';left:'+h5+';"><input type="button" style="width:'+ha+';height:'+t5+';border:1px solid #eeeeee;background:'+col+' url('+bari+');" onclick=kaz('+tt5+')></div>'+
'<DIV style=" position : absolute;top:'+y6+';left:'+h6+';"><input type="button" style="width:'+ha+';height:'+t6+';border:1px solid #eeeeee;background:'+col+' url('+bari+');" onclick=kaz('+tt6+')></div>'+
'<DIV style=" position : absolute;top:'+y7+';left:'+h7+';"><input type="button" style="width:'+ha+';height:'+t7+';border:1px solid #eeeeee;background:'+col+' url('+bari+');" onclick=kaz('+tt7+')></div>'+
'<DIV style=" position : absolute;top:'+wa+';left:0;width:'+h5+';height:20;border:1px solid #eeeeee;background:'+col+';color:'+fon+';font-size:'+fs+';text-align:right;vertical-align:middle;line-height:18px;font-weight:'+fw+';">'+to+'</div>'+
'<DIV style=" position : absolute;top:'+wa+';left:'+h5+';width:'+h4+';height:20;border:1px solid #eeeeee;background:'+col+';color:'+fon+';font-size:'+fs2+';text-align:right;vertical-align:middle;line-height:18px;font-weight:'+fw2+';" id="today">'+tt7+'<DIV style=" position : absolute;top:0;left:-'+h5+';"><a href=http://co.29g.net target=_blank><img src=http://29g.net/b.gif width='+h10+' height=18 border=0 alt="アクセスカウンター&#13;&#10;無料レンタル"></a></div></div>'+
'</div>');
