jQuery.noConflict();

(function (jq) {
    jq.event.special.load = {
        add: function (hollaback) {
            if ( this.nodeType === 1 && this.tagName.toLowerCase() === 'img' && this.src !== '' ) {
                
                // Image is already complete, fire the hollaback (fixes browser issues were cached
                // images isn't triggering the load event)
                if ( this.complete || this.readyState === 4 ) {
                    hollaback.handler.apply(this);
                }

                // Check if data URI images is supported, fire 'error' event if not
                else if ( this.readyState === 'uninitialized' && this.src.indexOf('data:') === 0 ) {
                    jq(this).trigger('error');
                }

                else {
                    jq(this).bind('load', hollaback.handler);
                }
            }
        }
    };
}(jQuery));

// festival page dock
jQuery(document).ready(function($j)
{

// special font replace
	Cufon.replace('.replace, .box h2 a, .entry h1, h2.prodtitles span, .wpsc_page_numbers a', { hover: true, fontFamily:'Futura' });
	
// slide login
	jQuery(".btn-slide").click(function(){
		$("#slide-panel").slideToggle("slow");
	});	
	
	window.onload = function() { 
    
    jQuery('.product_image').load(
        function() {
            
            jQuery(this).fadeIn();
        
        });
        
	};
});
//end
