$(document).ready(function () {

    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');


    $.each($("#cart ul"), function(i,v) {
      $(v).mouseover(function() {
         $('#cart_details').show()
      });
      $(v).mouseout(function() {
         $('#cart_details').hide()
      });
    });


    function initBrowsers() {
        userAgent = navigator.userAgent.toLowerCase();
        version = parseInt((userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [])[1]);
        safari = /webkit/.test( userAgent );
        opera = /opera/.test( userAgent );
        msie = /msie/.test( userAgent ) && !/opera/.test( userAgent );
        ie6 = this.msie && this.version == 6;
        ie7 = this.msie && this.version == 7;
        ie8 = this.msie && this.version == 8;
        mozilla = /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent );  
        applyClass(msie );
    };
  
    function applyClass(msie) {
      if(msie) {
        $('body').addClass('ie');
        $('body').addClass('ie'+this.version);
      } else if(this.opera) {
        $('body').addClass('opera');
      }
    }

    initBrowsers();
    //end global.js

});
