// remap jQuery to $
(function($){
	function initMenu() {
    	$('#menu-sidebar-menu ul').hide();
		$("#menu-sidebar-menu ul li").css("cursor", "pointer");
		// prepend a plus sign to signify that the sub-menus aren't expanded
		$("#menu-sidebar-menu li a").prepend("+ ");   	
		$('#menu-sidebar-menu li a').click(
    		function() {
    			$(this).next().slideToggle('normal');
				$(this).toggleClass("active");
    		}
    	);
    	}
    $(document).ready(function() {initMenu();});
	$(function(){
	  $('#home-slider').bxSlider({
	    auto: true,
	    autoControls: false
	  });
	});
	$(function() {
	    $("#shopp ul.products li.product div.frame").hover( function ( e ) {
	        $(this).children('#shopp ul.products li .details').toggle(e.type === 'mouseenter');
	    });
	});
	$(function(){
	  $('#home-products').bxSlider({
	    auto: false,
	    autoControls: false,
	    displaySlideQty: 3,
	    moveSlideQty: 1,
		autoControls: false,
		autoHover: true,
		pause: 6500
	  });
	});
	Cufon.replace('#header .menu-header ul li a',{hover: true});
	Cufon.replace('#shopp .category .top-section h3'); // Works without a selector engine
	Cufon.replace('#shopp-cart-ajax ul li a'); // Works without a selector engine
	Cufon.replace('#shopp .product-details h3.product-name'); // Works without a selector engine
	Cufon.replace('h2.page-title'); // Works without a selector engine
	
	$(".iframe").colorbox({iframe:true, width:"500px", height:"400px"});
	
})(window.jQuery);
