﻿$(function(){	/*	-------------------------------- Disable current content's button in Global menu. */	/*	var $dir = location.pathname;	var $base_img_path = '/wp-content/themes/kaiketsu/images/';	switch($dir){		case "/": case "/about": case "/business": case "/works": case "/recruit": case "/contacts":			var $p;			if($dir == "/"){				$p = "glb-home";			}else{				$p = "glb-"+$dir.substring(1, $dir.length);			}			$("li#"+$p+">a").removeAttr('href');			$("li#"+$p+">a").removeClass('btn');			if( $p == "glb-home" ){				$bgimg = $base_img_path+"icon_home.gif";			}else{				$bgimg = $base_img_path+"icon_rarrow.gif";			}			$("li#"+$p+">a").css("background-color","#E5E415");			$("li#"+$p+">a").css("background-image","url("+$bgimg+")");			$("li#"+$p+">a").css("background-repeat","no-repeat");			$("li#"+$p+">a").css("background-position","left center");			//$("li#"+$p+">a>img").attr('src',$base_img_path+"btn_"+$p+"_ov.gif");			break;	}	*/		/*	-------------------------------- Attach auto rollover image.	var $img_path;	var $ro_img_path;	$("a.btn").mouseover(function(){			$img_path = $("img", $(this)).attr("src");			$ro_img_path = $img_path.replace(/(\.[a-zA-Z]+)$/,"_ov$1");			$("img", $(this)).attr("src", $ro_img_path);	});	$("a.btn").mouseout(function(){			$("img", $(this)).attr("src", $img_path);	});	*/		/*	-------------------------------- TreeView */	$("#tree").treeview({		collapsed: true,		animated: "fast",		prerendered: true,		persist: "location"	});});