﻿			$(document).ready(function(){
				$('#des_image').bxSlider({
					displaySlideQty: 1,
					moveSideQty: 1,
					easing: 'jswing'
				});
				$('#gallery').bxSlider({
					displaySlideQty: 1,
					moveSideQty: 1,
					easing: 'jswing',
					pager: true,
					pagerSelector: '.pagination'				
				});
				var sudoSlider = $("#products").sudoSlider({
		           history:true,
		           numeric:true,
		        });
				$("a[rel='gallery']").colorbox({transition:"fade"});
			
				// validate signup form on keyup and submit
	$("#register_form").validate({
		messages: {
			confirm_password: {
				equalTo: "Please enter the same password as above"
			}
		}
	});
	
$("#products ul li").hover(function(){
    $(this).siblings().stop().animate({"opacity": .5});
},function(){
    $(this).siblings().stop().animate({"opacity": 1});
});
	
$('.trigger').toggle(function() { 
    $('.panel').fadeIn('slow'); 
    return false; 
  }, 
function() { 
    $('.panel').fadeOut('slow'); 
    return false; 
  });

	
});


$(function(){
  $(".pagination a").click(function(e){
    e.preventDefault();
    $(".pagination a").addClass("active").not(this).removeClass("active");
  });
  
  $('.next').click(function() {
    var $el = $('.pagination a.active').removeClass('active');
    var $next = $el.parent().next();

    if ($next.length == 0)
        $next = $('.pagination a:first');

    $next.find('a.active').addClass('active');
});

  
});
	

 			Cufon.replace('ul#categorynav,ul#social', { fontFamily: 'Omnes Regular', hover: { color: '#ffdc81' }});
			Cufon.replace('div#featurewrapper h2, h1.related,div#product_info h1, p.price, #content h1,form h2,inpbtn, table#profile th span,#orders_heading,#profilewrapper h1, .contact h1, #checkout h1, #checkout h2, p.total, #main_search label,#content h2, #content h3', { fontFamily: 'Omnes Regular'});
			Cufon.replace('div#featurewrapper h1 ', { fontFamily: 'Omnes Light'});

