$(function() {

//    alert('loading effects!');

    //$('a[rel*=facebox]').facebox()
    //$("a.facebox").facebox();
    //$("a.popup").fancybox();
    //$("a.lightbox").fancybox();


//	$.pir.options.php="pir.php";
//	$("#section_description").pir({font: "HelveNeuExt.ttf", wrap: true, color: "#fff", size: "22px"});

    $("#thumbnails a.image-link").click(function(){
        change_image( $("#" + this.rel) );
        return false;
    });

});

function change_image(img)
{
    $("#section-banner").hide();
    $("#large-image").removeClass('hidden');
    $("#large-image img").attr('src', img.attr('src') );
    $("#large-image img").attr('alt', img.attr('alt') );
    $("#large-image img").attr('title', img.attr('title') );
    $("#large-caption").html(img.attr('title'));
}
