Cufon.replace('h4'); // Works without a selector engine
Cufon.replace('h5'); // Works without a selector engine

jQuery.noConflict();
(function($){

    $('.portfolio a').imgPreview({
        containerID: 'imgPreviewWithStyles',
        imgCSS: {
            // Limit preview size:
            height: 200
        },
        // When container is shown:
        onShow: function(link){
            // Animate link:
            $(link).stop().animate({
                opacity:0.4
            });
            // Reset image:
            $('img', this).css({
                opacity:0
            });
        },
        // When image has loaded:
        onLoad: function(){
            // Animate image
            $(this).animate({
                opacity:1
            }, 300);
        },
        // When container hides:
        onHide: function(link){
            // Animate link:
            $(link).stop().animate({
                opacity:1
            });
        }
    });

    $("a[rel='group1']").colorbox({
        slideshow:false
    });
    $("a[rel='group2']").colorbox({
        slideshow:false
    });
})(jQuery);



