jQuery(document).ready(function(){
			
		//		Enable Cufon fonts.
		Cufon.replace('#nav li.level-top.level0 a.level-top span');
		Cufon.replace('#side-nav li.subcat .current.category'); 			
		Cufon.replace('.blog .block .block-title strong');		
		Cufon.replace('.product-name h1');		
		Cufon.replace('.cufon');		


		// 		Quick cart 
		jQuery('#quick-cart a').click(function() {
			jQuery('div.block-cart').fadeToggle("slow", "linear");
		});
		//Hide on close click
		jQuery('a.quick-cart-icon-close').click(function() {
			jQuery('div.block-cart').fadeOut("slow","linear");
		});

		// Setup Product Zoom
		var options5 =
            {
                zoomWidth: 400,
                zoomHeight: 470,
                xOffset:15,
                yOffset:-20,
                showEffect:'fadein',
                hideEffect:'fadeout',
				fadeinSpeed: 'fast',
                fadeoutSpeed: 'fast',
				fadeinSpeed:true,
				preloadImages :false,
				preloadText:'Loading ...',
                title :false
            }
        jQuery(".gallery-image").jqzoom(options5);
        
        // After product zoom, set display/class for Gallery
        
        jQuery('#gallery-images a:first-child').addClass('current').fadeIn('fast');
        
        
        // Load Product tabs
        //Event.observe(window, 'load', loadTabs, false);
		//function loadTabs() {
		//	var tabs = new tabset('product_tabs'); // name of div to crawl for tabs and panels
		//	tabs.autoActivate($('tab_description')); // name of tab to auto-select if none exists in the url
		//}

		jQuery("div#makeMeScrollable").smoothDivScroll({ autoScroll: "onstart", autoScrollDirection: "backandforth", autoScrollStep: 1, autoScrollInterval: 15, startAtElementId: "startAtMe", visibleHotSpots: "always"});
	

});

