﻿/*
 * JQuery Configuration 
 * 
 * - 検索窓フォーカス
 * - タブメニュー
 * - ロールオーバー
 *
 */
 
 $(document).ready(function(){
	$(".gmap").css("display","none")
	$("a.slide").click(function(){
	  $("p.gmap").slideToggle("fast");
	  $(this).toggleClass("active");
	});
 });

/* 検索窓フォーカス
 *
 * NAME : Jqueryがいろいろ面白い件について(shortcut)
 * URI  : http://www.s-cut.net/memo/archives/2006/12/jquery.html
 * DEMO : http://www.s-cut.net/memo/
 *
 * COPYRIGHT : 
 * 
 * NOTE :
 * seachTextに改変
 *
 */
 
$(function(){
	var searchText = 'キーワードで検索';
	$('div#header input.text').val(searchText);
	$('div#header input.text').focus(function(){
		$(this).val('');
		$(this).addClass('onFocus');
	});
	$('div#header input.text').blur(function(){
		$(this).removeClass('onFocus');
		$(this).val(searchText);
	});
});

/* タブメニュー
 *
 * NAME : Expandable Sidebar Menu Screencast
 * URI  : http://jquery.com/blog/2006/11/14/expandable-sidebar-menu-screencast/
 * DEMO : http://jquery.com/files/demo/dl-done.html
 *
 * COPYRIGHT : 
 * Copyright (c) 2007 John Resig (jquery.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 */

	$(document).ready(function(){
		$("div.product dl dd:not").hide();
		$("div.product dl dt a").click(function(){
			$("div.product dl dd:visible").slideUp("slow");
			$(this).parent().next().slideDown("slow");
			return false;
		});
	});
	
	
	$(document).ready(function(){

				$('.slide').slidePanel({speed:'fast'});

	});

/* ロールオーバー
 *
 * NAME : jQuery_Auto 0.9
 * URI  : http://sputnik.pl/code/javascript/jquery_auto
 * DEMO : http://sputnik.pl/code/files/js/jquery/auto/jquery_auto_demo.html
 *
 * COPYRIGHT : 
 * Copyright: (c) 2006, Michal Tatarynowicz (tatarynowicz@gmail.com)
 * Licenced as Public Domain (http://creativecommons.org/licenses/publicdomain/)
 *
 */

// Initialization

$.auto = {
	init: function() {
		for (module in $.auto) {
			if ($.auto[module].init)
				$.auto[module].init();
		}
	}
};

$(document).ready($.auto.init);


// Auto-hidden elements

$.auto.hide = {
	init: function() {
		$('.Hide').hide();
	}
};


// Mouse hover

$.auto.hover = {

	init: function() {
		$('IMG.over')
			.bind('mouseover', this.enter)
			.bind('mouseout', this.exit)
			.each(this.preload);
	},

	preload: function() {
		this.preloaded = new Image;
		this.preloaded.src = this.src.replace(/^(.+)(\.[a-z]+)$/, "$1_over$2");
	},

	enter: function() {
		this.src = this.src.replace(/^(.+)(\.[a-z]+)$/, "$1_over$2");
	},

	exit: function() {
		this.src = this.src.replace(/^(.+)_over(\.[a-z]+)$/, "$1$2");
	}
};

/*
 *$(document).ready(function(){
 *	$("body.history tr:even").addClass("even");
 *});


 *$(function(){
 *$("ul").css("font-size",$.cookie('fsize'));
 *});
 *function font(size){
 *$("body").css("font-size",size);
 *$.cookie("fsize",size,{expires:30,path:'/'});//※1
 *}
 */
