Cufon.replace('#nav a, #main .boxes a, .top-part p.links a, .shopp-nav a, .shopp-nav span', {    'hover': true});jQuery(function($) {    $('#nav li:eq(0)').addClass('first');    $('#nav li:eq(1)').addClass('second');	    $('.shopp-nav em:last, .shopp-nav span:last').remove();	    if($('#sidebar').height() < $('#main').height()) {        var h = $('#main').height();        $('#sidebar').css('height', h);    } else {        var h = $('#sidebar').height();        $('#main').css('height', h);    }    $('.boxes li').hover(        function(){ 			if ($.browser.msie) {				$(this).find('ul').stop().show();			} else {				$(this).find('ul').stop().fadeTo("medium", 1); 			}            $(this).find('a:eq(0)').addClass('active');             $(this).css('background-position','0 bottom');         },        function(){ 			if ($.browser.msie) {				$(this).find('ul').stop().hide();			} else {				$(this).find('ul').stop().fadeTo('medium', 0); 			}                        $(this).find('a:eq(0)').removeClass('active');             $(this).css('background-position','0 0');         }        );	    if ( $.browser.msie && $.browser.version.substr(0,1) == 6 ) {        DD_belatedPNG.fix('#main .boxes li .heading');    }    if($('#main .rightside').height() < $('#main .flag').height()) {        var h = $('#main .flag').height();        $('#main .rightside').css('height', h)    }    else{        var h = $('#main .rightside').height();        $('#main .flag').css('height', h-26)    }	    $('.blink').focus(function(){        if( $(this).attr('value') == $(this).attr('title') ) {            $(this).attr({                'value': ''            });        }    }).blur(function(){        if( $(this).attr('value') == '' ) {            $(this).attr({                'value': $(this).attr('title')            })        }    });	    $('form#add-product-to-cart').submit(function() {        var valid = true;        var all_empty = true;        $('.product-quantity').each(function() {            $(this).removeClass('not-valid');            if ($(this).val() == "") {                return true;            } else {                all_empty = false;                if (!$(this).val().match(/^\d+?/)) {                    valid = false;                    $(this).addClass('not-valid');                }            }        });        if (all_empty) {            alert('Please specify quantity for at least one product before adding it to cart.');            return false;        }        if (!valid) {            alert('Please use correct integer values for the highlighted quantity fields.');            return false;        }    });        $("#shopp .protocol li").click(function(){        var href = $(this).find("a").attr("href");        window.location = href;        return false;    });});
