jQuery(InitSite);

function InitSite()
{
	Cufon.now();
	Cufon.replace("nav a, .fritz", {fontFamily: 'Friz Quadrata Std', fontSize: '15px', color: '#39301f', hover:{color: '#0b6716'}});
	Cufon.replace(".fritz", {fontFamily: 'Friz Quadrata Std'});
	Cufon.replace("h1,h2,h3", {fontFamily: 'Hand Of Sean', color: 'black', 'textShadow': '3px 2px #DDDDDD'});
	Cufon.replace(".handofsean, .cufon", {fontFamily: 'Hand Of Sean', color: 'white'});
	Cufon.replace(".col2 .cufon", {fontFamily: 'Hand Of Sean', color: 'black'});
	setPositions();
	$(window).resize(setPositions);
	
	$('a.product').fancybox(); 
	
}
$(function(){
  // assign the slider to a variable
  var slider = $('#slider1').bxSlider({
    controls: false
  });

  // assign a click event to the external thumbnails
  $('.thumbs a').click(function(){
   var thumbIndex = $('.thumbs a').index(this);
    // call the "goToSlide" public function
    slider.goToSlide(thumbIndex);
 
    // remove all active classes
    $('.thumbs a').removeClass('pager-active');
    // assisgn "pager-active" to clicked thumb
    $(this).addClass('pager-active');
    // very important! you must kill the links default behavior
    return false;
  });

  // assign "pager-active" class to the first thumb
  $('.thumbs a:first').addClass('pager-active');
});
function setPositions()
{
	if($(window).width()>1165)
	{
		$("#bottles").addClass("show").fadeIn();
	}
	else
		$("#bottles").fadeOut();
}
