Cufon.replace('h1, h2, .box .head, #cart > ul > li > a, #cart ul ul li.total, .grid .g2 .price, .cart li .info h5, .cart li .info2 .price, .cart li.shipping span, .cart li .price');

$$('#cart ul').each(function(ele) {
$(ele).observe('mouseover', function() {
	if ($('cart_details') != null){
		    $('cart_details').show();
		};
	});
	$(ele).observe('mouseout', function () {
	if ($('cart_details') != null){
		    $('cart_details').hide();
		};
	});
});


var Browsers = Class.create({
  initialize: function() {
    var userAgent = navigator.userAgent.toLowerCase();
    this.version = parseInt((userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [])[1]);
    this.safari = /webkit/.test( userAgent );
    this.opera = /opera/.test( userAgent );
    this.msie = /msie/.test( userAgent ) && !/opera/.test( userAgent );
    this.ie6 = this.msie && this.version == 6;
    this.ie7 = this.msie && this.version == 7;
    this.ie8 = this.msie && this.version == 8;
    this.mozilla = /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent );
	
	this.applyClass();
  },
  
  applyClass: function() {
	this.body = $(document.body);
	if(this.msie) {
		this.body.addClassName('ie');
		this.body.addClassName('ie'+this.version);
	} else if(this.opera) {
		this.body.addClassName('opera');
	}
  }
});
var Browser = new Browsers();
