preloadedImages = [];

function preloadImage(url){

	var p =preloadedImages;

	var imgKazu =p.length;

	p[imgKazu] =new Image();

	p[imgKazu].src =url;

};

$(function(){

  $('form li:last').css("border","none");

  $('#topicpath').curvy("3px");

  $('.productName').curvy("5px");

  $('.detail').curvy("5px");

  $('.reputation').curvy("5px");

  $('form').curvy("5px");

	$('img.btm').each(function(){

		this.originalSrc = this.src;

		this.rolloverSrc = this.originalSrc.replace(/(\.gif|\.jpg|\.png)/, '_on'+"$1");

		preloadImage(this.rolloverSrc)

	});

	$('img.btm').hover(function(){

		this.src = this.rolloverSrc;

	},function(){

		this.src = this.originalSrc;

	});

  $('p.pagetopAnchor').click(function(){

	 $('#corporateID').ScrollTo(800);

	 return false;

	 });

  $("#FooterArea li+li")

	.css("border-left-color","#999")

	.css("border-left-style","solid")

	.css("border-left-width","1px")

  $('.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;

	});

  $('#c-message').focus(function() {

		if (this.value == 'お問合せ内容をご記入下さい。') this.value = '';

		return false;

	});

  $('#c-message').blur(function(){

		if (this.value == '') this.value = 'お問合せ内容をご記入下さい。';

		return false;

	});

});




