/* replacing font to embedded font */
Cufon.replace('h1, h2, h3, h4, h5, h6');

/* coin slider */
$(document).ready(function(){
	/* coin slider */
	$('#slider').coinslider({
		width: 860, // width of slider panel
		height: 300 // height of slider panel
	});
	
	/* animated scrolling */
	$('a[href*=#]').click(function(){
		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
			var $target = $(this.hash);
			$target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
			
			if ($target.length) {
	  			var targetOffset = $target.offset().top;
	  			$('html,body').animate({scrollTop: targetOffset}, 1000);
	  			return false;
			}
	 	}
  	});	
});

/* carousel */
jQuery(document).ready(function() {
	jQuery('#product_carousel').jcarousel();
	jQuery('#promo_carousel').jcarousel();
});

/* pagination */
$(function(){
	itemsPerPage = 10;
	separator = '';
	paginatorPosition = 'top';
	paginatorStyle = 1;
	showIfSinglePage = false;	
	$("#browse").pagination();
});


