jQuery(document).ready(function(){	
	//Back to top slider
    jQuery('a[href=#totop]').click(function(){
        jQuery('html, body').animate({scrollTop:0}, 600);
        return false;
    });
	// Product Slider
    jQuery('#featured-products').jcarousel();

	// FancyBox jQuery
	jQuery("a.group").fancybox({ 'zoomSpeedIn': 300, 'zoomSpeedOut': 300, 'overlayShow': true }); 

	// Slider Homepage
	jQuery("#slider").easySlider({
		auto: true,
		continuous: true,
		lastShow: true,
		numeric: true
	});
});


$(function(){


    var tip = $("#tip");
 
    $("label.tooltip").hover(function(e){
 
        // assign the <label> title to tip
		var html = '<h3><em><span style="color: rgb(153, 51, 0);"><strong>United States Postal Service Shipping Notice</strong></span></em></h3><div><strong>Please be aware that although the United States Postal Service is sometimes a less expensive method of shipping, the USPS Priority Mail service does not guarantee delivery time nor does it provide tracking. If you choose the United States Postal Service as your method of shipping, Wheels Mfg. will not be able to refund, reimburse or resend packages that are lost or damaged. You assume full responsibility for your shipment once it leaves our facility.</strong></div><div><strong><span style="color: rgb(128, 0, 0);">We suggest our regular UPS shipping choices when at all possible in order to ensure recourse for lost or damaged packages, as well as improved tracking information.</span></div>';
        tip.text(html);
 
        // empty <label> title
        //$(this).attr("title", "");
 
        // set the position of tooltip and then display it
        tip.css("top",(e.pageY+5)+"px")
           .css("left",(e.pageX+5)+"px")
           .fadeIn("slow");
 
    }, function(){
 
        // hide tooltip
        $("#tip").fadeOut("fast");
 
        // set the <label> title with tootip content
        $(this).attr("title", tip.html());
    });
});
