// Sub-featured thumbnail hover effect
jQuery(document).ready(function () {
    jQuery(function(){
        jQuery('ul.sf-menu').superfish();
    });
    jQuery(function(){
        jQuery("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 10000, true);
    });
});

// products page tabs
jQuery(document).ready(function(){

    var tabBlock = jQuery('div.entry > div');

    jQuery('ul.tabs a').click(function () {

        tabBlock.hide().filter(this.hash).fadeIn(700);

        jQuery('ul.tabs a').removeClass('active');
        jQuery(this).addClass('active');

        return false;
        
    }).filter(':first').click();
});

// colorbox image zoom
jQuery(document).ready(function(){
     
});

// products page slider panel	
jQuery(document).ready(function(){
	jQuery('.cust-item-wrap').hover(function(){
		jQuery("div.slide-up", this).stop().animate({top:'151px'},{queue:false,duration:160});
	}, function() {
		jQuery("div.slide-up", this).stop().animate({top:'194px'},{queue:false,duration:160});
	});
});


// products feature qtip
jQuery(document).ready (function () {
    jQuery('table td#accordion:not(:empty)').each(function()
    {
       jQuery(this).qtip({
          content: {
             text: jQuery(this).html()
             //title: { text: title }
          },
          position: {
             corner: {target: 'rightMiddle', tooltip: 'leftMiddle'}
          },
          show: { 
              when: { event: 'click' }, effect: { type: 'fade' }
          },
          hide: 'unfocus',
          style: {
             border: {width: 3, radius: 6},
             //background: '#f4f4f4',
             tip: {corner: 'leftMiddle', height: 10, width: 10},
             name: 'cream',
             width: {max: 400, min: 300},
             padding: 10
          }
       })
    });
}) ;


// generic tooltip for any  a title attribute
jQuery(document).ready (function () {
   // By suppling no content attribute, the library uses each elements title attribute by default
    

});


// shows the more/less text on the featured page
jQuery(document).ready(function(){	
	jQuery("ul.features span.more").click(function(){

		jQuery(this).parent("p").next("p#toggle").animate({
			height: ['toggle', 'easeInOutQuad'],
			opacity: 'toggle'}, 200
		);

		jQuery(this).text(jQuery(this).text() == '+ More' ? '- Less' : '+ More');
		return false;

	});
});


jQuery(document).ready(function(){	
	jQuery('div.progress span').each(function() {		
		jQuery(this).animate({width: jQuery(this).text()}, 3000, 'swing');		
	});
});









   
