$.noConflict();

function onAfter(curr,next,opts) {
				var caption = (opts.currSlide + 1) + '<span class="no-bold">of</span>' + opts.slideCount;
				jQuery('.number').html(caption);
			}

var $j = jQuery;

jQuery(function() {
		
	// Looks Cycle
    jQuery('#lookcycle').cycle({
			    fx:     'fade',
			    speed:  200,
			    timeout: 0,
			    sync:  1,
			    prev:    '#prev',
		        next:    '#next',
		        pager:  '#look-nav-bar',
		        pagerAnchorBuilder: function(idx, slide) {
		            // return sel string for existing anchor
		            return '#feature-nav2 li:eq(' + (idx) + ') a';
		        },
		       	after:     onAfter
			});
			
	// Large Home Cycle
	jQuery('#large-home-cycle').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		speed: 1000,
		timeout: 7000,
		sync: 1
	});
	
	// Product Cycle
	jQuery('#product-cycle').before('<ul id="product-cycle-thumbs" class="image-thumbs">').cycle({ 
    fx:     'fade', 
    speed:  300,
    sync: 1, 
    timeout: 0, 
    pager:  '#product-cycle-thumbs',
    
    // callback fn that creates a thumbnail to use as pager anchor 
    pagerAnchorBuilder: function(idx, slide) { 
        return '<li><a href="#"><img src="' + slide.src + '" width="84" /></a></li>'; 
    }
    
    });
        
    
    //Fancybox
    jQuery("a[rel=product_group]").fancybox({}); 
    
    $j("#various2").fn.fancybox({
		'modal' : true
	});     
});

// usage: log('inside coolFunc', this, arguments);
window.log = function(){
  log.history = log.history || [];   // store logs to an array for reference
  log.history.push(arguments);
  if(this.console) {
      arguments.callee = arguments.callee.caller;
      console.log( Array.prototype.slice.call(arguments) );
  }
};
(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();)b[a]=b[a]||c})(window.console=window.console||{});

