/**
* @version $Id: common.js 47664 2011-04-12 12:51:08Z dimitar $
*/

jQuery(document).ready(function() {
	jQuery("#bestsellers ul").jcarousel();

	if (jQuery.browser.msie) {
		jQuery("head").append("<link>");
    	css = $("head").children(":last");
    	css.attr({
      		rel:  "stylesheet",
      		type: "text/css",
      		href: "/mas_assets/theme/cyclocrossracing/css/jcarousel.css"
    	});
	}

	// Item Page: Suggested Products Carousel
	jQuery("#suggestions > ul").jcarousel();

	//jQuery('form').placeholder();

	//jQuery("input[type='password']").passStrength({
	//	userid:	"#user_id"
	//});
	
	//jQuery(".my-account li a").click(function() {
	//	var _url = jQuery(this).attr("href");
	//	jQuery.ajax({
	//		url: _url ,
	//		cache: false,
	//		success: function(html) {
	//			console.log("spek");
	//		}
	//	})
	//	return false;
	//});

	// Equal Height Thumbs
	jQuery(".equal-height").thumbheight();

	// Equal Width Labels
	jQuery("fieldset.labels label").formlabels();
	
	// Shopping Cart
	MPGEAR.cart.init({
		popup: "#shopping-cart",
		link: ".shopping-cart-link"
	});
	
	// Add To Cart Tooltip
	jQuery(".tooltip").tipTip({
		attribute: 'tooltip'
	});
		
});


