//固定メニュー 
document.write('<div id="fixfoot" style="z-index:1; width:160px; text-align:left;position:absolute; left:0px;height:250px;background-color:;color:#fefefe;border:0px solid #000000;"><table width="160" border="0" cellspacing="0" cellpadding="0"><tr><td id="td1"><a href="http://www.sij8.com/smarty/"><img src="images/smarty_banner.gif" alt="" border="0"></a></td></tr></table>');
//document.write('');//画像ファイル
document.write('</div>');


//スクロール毎
if (typeof document.body.style.maxHeight != "undefined") { 
//////// fixed対応
fixfootid = 'fixfoot';
document.getElementById(fixfootid).style.position = "fixed";
document.getElementById(fixfootid).style.bottom = 0;

}else{
//////// fixed非対応
move();
onscroll = move;
}

//fixed非対応Function
function move(){
fixfootid = 'fixfoot';

var scwidth = 0;
var fh = 0;

//スクロール幅
myBsr   = navigator.appName;
myAgent = navigator.userAgent;
if (myAgent.indexOf("Opera",0) != -1){
brz = "OP";
}else if (myAgent.indexOf("MSIE",0) != -1){
scwidth = 0;//スクロール幅(IEはスクロールの内側の値)
}else if (myAgent.indexOf("Mozilla/",0) != -1){
scwidth = document.documentElement.scrollHeight;
if(scwidth){ scwidth = document.documentElement.scrollHeight; }
scwidth = 16;//スクロール幅(Mozilla系手動設定)
}else{
scwidth = 16;//スクロール幅(それ以外手動設定)
}

//高さの取得
ht = window.innerHeight;
if(!ht){
ht = document.documentElement.clientHeight;
}
if(!ht){
ht = document.body.clientHeight;
}
fh = document.getElementById(fixfootid).offsetHeight;

settop = ht - fh - scwidth;//上から何ピクセルか

//移動
if(document.compatMode == 'CSS1Compat'){
toppx = document.documentElement.scrollTop + settop;
document.getElementById(fixfootid).style.top = toppx+"px";

}else if(document.all){
toppx = document.body.scrollTop + settop;
document.all(fixfootid).style.pixelTop= toppx;

}else{
toppx = pageYOffset + settop;
document.getElementById(fixfootid).style.top = toppx+"px";
}}




