// JavaScript Document 

//var dirPath='';
//for (i=0;i<dir;i++) {
//	dirPath = dirPath + "../";
//}



function toggleDisplay(blkID) {
	var obj=document.all && document.all(blkID) || document.getElementById && document.getElementById(blkID);
	if(obj && obj.style) obj.style.display="none" == obj.style.display ?"" : "none";

	var blkAllID = blkID + "all";
	var objAll=document.all && document.all(blkAllID) || document.getElementById && document.getElementById(blkAllID);
	if(objAll && objAll.style) objAll.style.display="none" == objAll.style.display ?"" : "none";
	
//	document.location.href = "#" + blkID ;
}


function pagetopBtn() {
	document.write('<p class="pagetop"><a href="#top"><img src="/spacer.gif" width="68" height="11" title="PAGE TOP" /></a></p>');
	document.write('<div class="clear"></div>');
}

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 movr(wk) {
	dirPath = "/wp-content/themes/gizmo-0711/images/giz/";
	if (typeof document.documentElement.style.maxHeight != "undefined") {
		// IE 7.0 以上 または Gecko などモダンブラウザー
		document.images.namedItem(wk).src = dirPath + "image/" + wk + "_o.gif";
	} else {
		// IE 6.0 以下
	}
}

function mout(wk) {
	dirPath = "/wp-content/themes/gizmo-0711/images/giz/";
	if (typeof document.documentElement.style.maxHeight != "undefined") {
		// IE 7.0 以上 または Gecko などモダンブラウザー
		document.images.namedItem(wk).src = dirPath + "image/" + wk + ".gif";
	} else {
		// IE 6.0 以下
	}
}

function movrF(wk,fl) {
	dirPath = "/wp-content/themes/gizmo-0711/images/giz/";
	if (typeof document.documentElement.style.maxHeight != "undefined") {
		// IE 7.0 以上 または Gecko などモダンブラウザー
		document.images.namedItem(wk).src = dirPath + wk + "_o." + fl;
	} else {
		// IE 6.0 以下
	}
}

function moutF(wk,fl) {
	dirPath = "/wp-content/themes/gizmo-0711/images/giz/";
	if (typeof document.documentElement.style.maxHeight != "undefined") {
		// IE 7.0 以上 または Gecko などモダンブラウザー
		document.images.namedItem(wk).src = dirPath + wk + "." + fl;
	} else {
		// IE 6.0 以下
	}
}

function popup1(url,nam,wid,hei){
	prop = "status=yes,scrollbars=yes,resizable=yes";
	puWindow(url,nam,wid,hei,prop);
}

function puWindow(url,nam,wid,hei,prop){
	var offset = 100;
	var w = window.screen.width;
	var h = window.screen.height;
	var l = (w-wid)/2;
	var t = ((h-hei)/2)-offset;
	sty = prop;
	sty+= ",width=";
	sty+= wid;
	sty+= ",height=";
	sty+= hei;
	sty+= ",left=";
	sty+= l;
	sty+= ",top=";
	sty+= t;
	popWin = window.open(url,nam,sty);
	popWin.focus();
}

function toggleDisplay(blkID) {
	var obj=document.all && document.all(blkID) || document.getElementById && document.getElementById(blkID);
	if(obj && obj.style) obj.style.display="none" == obj.style.display ?"" : "none";

	var blkAllID = blkID + "All";
	var objAll=document.all && document.all(blkAllID) || document.getElementById && document.getElementById(blkAllID);
	if(objAll && objAll.style) objAll.style.display="none" == objAll.style.display ?"" : "none";
	
	document.location.href = "#" + blkID ;
}

