/*右カラム共通コンテンツ（バナー） */

function rightComBanner() {
document.write(
'<p class="rightBnr"><a href="/boki/juken/"><img src="/boki/images/c/bnr/ctop_bnr_sokuho.jpg" alt="解答速報" width="252"></a></p>' +
'<p class="rightBnr"><a href="/boki/info/#tokuten_moushikomi"><img src="/boki/images/c/bnr/ctop_tokuten.jpg" alt="購入者特典申し込みはこちら" width="252"></a></p>' 
);
}

/*右カラム共通コンテンツ（ボタン） */
function rightComBtn() {
document.write(
'<p><a href="/kaikeishi/navigation/goukaku/index.html"><img src="/kaikeishi/images/c/ctop_btn_experience_ot.gif" alt="合格体験記" width="212" height="47"></a></p>' +
'<p><a href="/kaikeishi/start/trial.html"><img src="/kaikeishi/images/c/ctop_btn_free-web_ot.gif" alt="WEBで無料体験" width="212" height="46"></a></p>'
);
}

/* タブ 上下ボタン */
function tabwin(contBox,btnTop,btnBtm,crrntNum) {
  if (! document.getElementById) return;
  for (i = 0; i <= 10; i++) {
    if (! document.getElementById(contBox + i)) continue;
    if (i == crrntNum) {
      document.getElementById(contBox + i).style.visibility = "visible";
      document.getElementById(contBox + i).style.position = "";
      document.getElementById(btnTop + i).className = "open";
	  document.getElementById(btnBtm + i).className = "open";
    } else {
      document.getElementById(contBox + i).style.visibility = "hidden";
      document.getElementById(contBox + i).style.position = "absolute";
      document.getElementById(contBox + i).style.top = "0px";
      document.getElementById(btnTop + i).className = "close";
	  document.getElementById(btnBtm + i).className = "close";
    }
  }
}

/* タブ 上部ボタンのみ */
function tabwinTop(contBox,btnTop,crrntNum) {
  if (! document.getElementById) return;
  for (i = 0; i <= 10; i++) {
    if (! document.getElementById(contBox + i)) continue;
    if (i == crrntNum) {
      document.getElementById(contBox + i).style.visibility = "visible";
      document.getElementById(contBox + i).style.position = "";
      document.getElementById(btnTop + i).className = "open";
//	  document.getElementById(btnBtm + i).className = "open";
    } else {
      document.getElementById(contBox + i).style.visibility = "hidden";
      document.getElementById(contBox + i).style.position = "absolute";
      document.getElementById(contBox + i).style.top = "0px";
      document.getElementById(btnTop + i).className = "close";
//	  document.getElementById(btnBtm + i).className = "close";
    }
  }
}


/* ロールオーバー */
function smartRollover() {   
  if(document.getElementsByTagName) {   
    var tags = ["img","input"];   
    var len = tags.length;   
    for( var i=0; i<len; i++ ) {   
      var el = document.getElementsByTagName(tags[i]);   
      var len2 = el.length;   
      for(var j=0; j<len2; j++) {   
        var attr = el[j].getAttribute("src");   
        if( attr ) {   
          if(el[j].getAttribute("src").match(/_ot\./))   
          {   
            el[j].onmouseover = function() {   
              this.setAttribute("src", this.getAttribute("src").replace("_ot.", "_ov."));   
            }   
            el[j].onmouseout = function() {   
              this.setAttribute("src", this.getAttribute("src").replace("_ov.", "_ot."));   
            }   
          }   
        }   
      }   
    }   
  }   
}   
if(window.addEventListener) {   
  window.addEventListener("load", smartRollover, false);   
}   
else if(window.attachEvent) {   
  window.attachEvent("onload", smartRollover);   
}

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];}}
}


/* When Open The Window ..Keep Screen*/
function ClickKeep() {   
var StartClickKeep = 1;
}

