jQuery.noConflict();
jQuery(function() {

//extraordinary page slider	
	jQuery("#extraImg").cycle({
		fx:     'uncover', 
     	cssBefore: { opacity: 1 },
      	animOut:   { opacity: 0 },
      	speed: 1000,
      	timeout: 0,
        pager:  '#giftCMC_nav3',
        next:   '#next2',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#giftCMC_nav3 li:eq(' + (idx) + ') a';
        }
	});	

//animal category page slider
	jQuery("#catagoryAnimal").cycle({
		fx:     'uncover', 
     	cssBefore: { opacity: 1 },
      	animOut:   { opacity: 0 },
      	speed: 1000,
      	timeout: 0,
		random: 1,
        pager:  '#giftCMC_nav2',
        next:   '#next2',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#giftCMC_nav2 li:eq(' + (idx) + ') a';
        }
	});
	
//homepage featured animal slider
    jQuery('#slideshow').cycle({
        fx:        'uncover',
     	cssBefore: { opacity: 1 },
      	animOut:   { opacity: 0 },
      	speed: 1000,
      	timeout: 0,
		random: 1,
        pager:  '#giftCMC_nav',
        next:   '#next2',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#giftCMC_nav li:eq(' + (idx) + ') a';
        }
    });
 
 
//homepage top 10 animal fade in slider
    jQuery('#slideshow2').cycle({
    	fx:			'fade',
        speed:       200,
        timeout:     0,
        pager:		"#nav",
        pagerEvent: 'mouseover',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#nav li:eq(' + (idx) + ') a';
        }
    });
    
    
//changes text on top 10 mouseovers to say adopt me now
	 jQuery("#nav li a").hover(function () {
		  	jQuery(this).data("animal", jQuery(this).text()).text("Adopt me now!");
		},
		function () {
			jQuery(this).text( jQuery(this).data("animal") );
		});
		
		
//scrolls the cross sell items on the animal sku page
  jQuery('#upsellC').cycle({
		fx:     'scrollLeft', 
		speed:  'slow',
		timeout: 0, 
		next:   '#next3', 
		prev:   '#prev3'
	});
	
	jQuery('#shipFriend').hide();
	
//shows/hides the ship to a friend info on shopping cart page
	jQuery('a#shipToAFriend').click(function() {
		jQuery('#shipFriend').slideToggle("slow");
	});
	
//animal category page
	jQuery("#accordion").accordion({
	header: '.greenBarLinkClosed'});
	
});
//////////////////////end of initialized jquery /////////////////////////