// jquery.pngFix.js
$(document).ready(function(){
	$(document).pngFix(); 
});


// jquery.rollover.js
$(document).ready(function(){
	$('.rollover img').rollover();
	$('.pagetop a img').rollover();
	$('#header ul.nav li a img').rollover();
	$('#contents #mainImage a img').rollover();
	$('#footer div.banner a img').rollover();
	$('body#top #main ul.nav li a img').rollover();
	$('body#chocolat #contents p.nav a img').rollover();
	$('body#freshchocolat #contents p.nav a img').rollover();
});


// smooth scroller
$(document).ready(function(){
	$("a[href*=#]").click(function() {  
		var hash = this.hash;  
		if(!hash || hash == "#")  
			return false;  
		$($.browser.safari ? 'body' : 'html')  
			.animate({scrollTop: $(hash).offset().top}, 400, "swing");  
		return false;  
	});  
});


// Form Text Style
$(document).ready(function(){
	$('input[type=password], input[type=text], textarea').addClass('txtbox');
	$('input[type=password], input[type=text], textarea').focus(function() {
		$(this).addClass('txtfocus');
	});
	$('input[type=password], input[type=text], textarea').blur(function() {
		if ($(this).find('.txtfocus')) {
			$(this).removeClass('txtfocus');
		}
	});

	$('input[type=password], input[type=text], textarea').hover(function(){
		$(this).addClass("txthover");
	},function(){
		$(this).removeClass("txthover");
	})
});


