// ロールオーバー function initRollOvers() { if (!document.getElementById){ return; } var preLoads = new Array(); var allImages = document.getElementsByTagName('img'); for (var i = 0; i < allImages.length; i++) { if (allImages[i].getAttribute("src").match("__off")) { var src = allImages[i].getAttribute('src'); var oSrc = src.replace("__off", "__on"); //-- スワップ元、スワップ先画像の登録 allImages[i].setAttribute('pSrc', src); allImages[i].setAttribute('oSrc', oSrc); //-- イメージのプリロード preLoads[i] = new Image(); preLoads[i].src = oSrc; //-- イベントの設定 allImages[i].onmouseover = function() { this.setAttribute('src', this.getAttribute('oSrc')); }; allImages[i].onmouseout = function() { this.setAttribute('src', this.getAttribute('pSrc')); }; } } } function addOnload(func){ if ( typeof window.addEventListener != "undefined" ){ window.addEventListener( "load", func, false ); }else if ( typeof window.attachEvent != "undefined" ) { window.attachEvent( "onload", func ); }else{ if ( window.onload !== null ){ var oldOnload = window.onload; window.onload = function ( e ) { oldOnload( e ); window[func](); }; }else{ window.onload = func; } } } addOnload(initRollOvers); // プルダウンメニュー用 function load_menu(){ if(document.getElementById && document.all && !navigator.userAgent.match(/Opera/)){ var obj = document.getElementById("root_toc"); for(var i=0;i 0) setTimeout('mObj(goTopPosi, goTopMove)', 1); } if (window.addEventListener) window.addEventListener('load', setGoTop, false); if (window.attachEvent) window.attachEvent('onload', setGoTop); //jquery-半透明画像 $(function(){ $('#top_menu img,#foot img,#topbn_col_right img,#top_col_left img,#top_col_center,#sub_PhotoAlf img').mouseover( function() { $(this).fadeTo(0, 0.5); }); $('#top_menu img,#foot img,#topbn_col_right img,#top_col_left img,#top_col_center,#sub_PhotoAlf img').mouseout( function() { $(this).fadeTo(0, 1.0); }); }); //jquery-文字サイズ変更 $(function(){ $("ul.tk_textresizer a").textresizer({ target: "#main-content", sizes: [ "1.4em", "1.0em", ".8em" ] }); }); function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&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