/* ▼サイト内検索のインプット▼ */
      this.onload = function ()
      {
        var word = this.document.forms.search.word;
        
        word.onfocus = function ()
        {
          if (this.value == this.defaultValue)
          {
            this.value = '';
            this.className = 'word active';
          }
        }
        
        word.onblur = function ()
        {
          if (this.value == '')
          {
            this.value = this.defaultValue;
            this.className = 'word passive';
          }
        }
        
        word.onkeydown = function (event)
        {
          var e = event || window.event;
          
          if (e.keyCode == 13)
          {
            if (this.value != '')
            {
              this.form.submit();
            }
          }
        }
        
        word.onfocus();
        word.onblur();
      }

      function search_focus()
      {
        var word = this.document.forms.search.word;
        
        word.onfocus = function ()
        {
          if (this.value == this.defaultValue)
          {
            this.value = '';
            this.className = 'word active';
          }
        }
        
        word.onblur = function ()
        {
          if (this.value == '')
          {
            this.value = this.defaultValue;
            this.className = 'word passive';
          }
        }
        
        word.onkeydown = function (event)
        {
          var e = event || window.event;
          
          if (e.keyCode == 13)
          {
            if (this.value != '')
            {
              this.form.submit();
            }
          }
        }
        
        word.onfocus();
        word.onblur();
      }


/* ▲サイト内検索のインプット▲ */


/* ▼タブ▼ */
function visibleLayer(Base ,Other ,Layer , OtherLayer) {
	
	if (document.getElementById) {
		

			document.getElementById(OtherLayer).style.visibility = "hidden";
			document.getElementById(Layer).style.visibility = "visible";
			
			
			document.getElementById(Base).style.background = "url(\"http://www.andows.com/blog/archives/site_images/tab_on.gif\") no-repeat";
			document.getElementById(Other).style.background = "url(\"http://www.andows.com/blog/archives/site_images/tab_off.gif\") no-repeat";

								} 
			
		}
		
/* ▲タブ▲ */

function FullWin(url) {
var strUA = "";
strUA = navigator.userAgent.toLowerCase();
get_w = window.screen.width;
get_h = window.screen.height;

if(strUA.indexOf("safari") != -1){
	window.open(url,"","width="+get_w+", height="+get_h+", menubar=no, toolbar=no, scrollbars=no");

  }else if(strUA.indexOf("firefox") != -1){
	window.open(url,"","width="+get_w+", height="+get_h+", menubar=no, toolbar=no, scrollbars=no");

  }else {
	/*IE&OPERA*/
	window.open(url,"","fullscreen=yes");
  }


	


}










function jump(sel) {
	if (sel.options[sel.selectedIndex].value){
	top.parent.
	location.href=sel.options[sel.selectedIndex].value;
						}
}

window.name = "blogwin";

function showMore(varA1, varB1){
		var123 = ('varXYZ' + (varA1));
		varABC = ('varP' + (varA1));

		if( document.getElementById ) {
			if( document.getElementById(var123).style.display ) {
				if( varB1 != 0 ) {
					document.getElementById(var123).style.display = "block";
					document.getElementById(varABC).style.display = "none";
				} else { document.getElementById(var123).style.display = "none";
				document.getElementById(varABC).style.display = "block"; }
			} else { location.href = varB1;
						return true; }
		} else { location.href = varB1;
					return true; }
				}

function insertCommentRef(n) {
    document.comments_form.text.value += ">>" + n + "\n";
    document.comments_form.text.focus();
}
