// JavaScript Document 京

//以下折りたたみ部分につけたIDを指定
var menuids = [
	'id01',
	'id02',
	'id03',
	'id04',
	'id05',
	'id06',
	'id07',
	'id08',
	'id09',
	'id10',
	'id11',
	'id12',
	'id13',
	'id14',
	'id15'
];

//HTMLのonloadで呼び出す関数（この関数で指定したIDの部分を隠す）
function loadSettinngs( exid ){
	
	var len = menuids.length;
	var i = 0;
	while( i < len ){
		if(exid != menuids[i] ){
			document.getElementById( menuids[i] ).style.display = 'none';
		}
		i ++ ;
	}
	
}

//クリックしたときに指定したID部分を展開する関数
function idOpen( id ){
	
if( document.getElementById( id ).style.display == 'none'){
		document.getElementById( id ).style.display = 'block';
	}else{
		document.getElementById( id ).style.display = 'none';
	}

var idv = id + 'a';
if( document.getElementById( id ).style.display == 'none'){
		document.getElementById( idv ).style.display = 'block';
	}else{
		document.getElementById( idv ).style.display = 'none';
	}

}



//別窓
function openWin(theURI) {
 PopUpWin=window.open(theURI,'theWin','scrollbars=0,width=450,height=300,resizable=0,directories=0,toolbar=0,status=0,location=0');
 PopUpWin.focus();
}


//ロールオーバーイメージ
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
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];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&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<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function hoge() {
return (event.keyCode == 13) ? false : true;
}



//アクセス解析
/* -------------------------------------------------------------------
* Copyright 2009 futomi  http://www.futomi.com/
* 2009-03-28
* ----------------------------------------------------------------- */
(function () {
/* -------------------------------------------------------------------
* URL of acclog.cgi
* ----------------------------------------------------------------- */
var acclog_cgi_url = 'http://www.retriever.org/cgi-bin/acc/acclog.cgi';

/* ---------------------------------------------------------------- */
create_beacon();
function create_beacon() {
	var img = document.createElement("img");
	img.src = acclog_cgi_url + "?referrer=" + document.referrer + "&width=" + screen.width + "&height=" + screen.height + "&color=" + screen.colorDepth + "&epoch=" + new Date().getTime();
}
})();


//Google Analytics

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-26821129-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
		

//Google +1

		  window.___gcfg = {lang: 'ja'};

  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();

