$(function(){
  $('a.popup').click(function(){
       window.open(this.href, "map","width=600,height=400");
       return false;
	 });
  $('p.pagetop').click(function(){
	 $('#main').ScrollTo(800);
	 return false;
	 });
  $('form div.search_left ul li#estimation_search').click(function(){
	 $('form#goods_search_form').css('display','none');
	 $('form#estimation_search_form').css('display','block');
	 $('form#center_search_form').css('display','none');
	 return false;
	 });
  $('form div.search_left ul li#center_search').click(function(){
	 $('form#goods_search_form').css('display','none');
	 $('form#estimation_search_form').css('display','none');
	 $('form#center_search_form').css('display','block');
	 return false;
	 });
  $('form div.search_left ul li#goods_search').click(function(){
	 $('form#goods_search_form').css('display','block');
	 $('form#estimation_search_form').css('display','none');
	 $('form#center_search_form').css('display','none');
	 return false;
	 });
  $('.continue img').each(function(){
		this.originalSrc = this.src;
		this.rolloverSrc = this.originalSrc.replace('.gif', '_on.gif');
	});
  $('.continue img').hover(function(){
		this.src = this.rolloverSrc;
	},function(){
		this.src = this.originalSrc;
	});
  $('.searchbox#goods').focus(function() {
		if (this.value == '探したい商品を入力してください。') this.value = '';
		return false;
	});
  $('.searchbox#goods').blur(function(){
		if (this.value == '') this.value = '探したい商品を入力してください。';
		return false;
	});
  $('.searchbox#center').focus(function() {
		if (this.value == '探したいボウリング場名を入力してください。') this.value = '';
		return false;
	});
  $('.searchbox#center').blur(function(){
		if (this.value == '') this.value = '探したいボウリング場名を入力してください。';
		return false;
	});
  $('.searchbox#estimation').focus(function() {
		if (this.value == '探したい商品を入力してください。') this.value = '';
		return false;
	});
  $('.searchbox#estimation').blur(function(){
		if (this.value == '') this.value = '探したい商品を入力してください。';
		return false;
	});
});

