jQuery.noConflict();
jQuery(function() {
//    jQuery('img.image1').data('ad-desc', 'Whoa! This description is set through elm.data("ad-desc") instead of using the longdesc attribute.<br>And it contains <strong>H</strong>ow <strong>T</strong>o <strong>M</strong>eet <strong>L</strong>adies... <em>What?</em> That aint what HTML stands for? Man...');
//    jQuery('img.image1').data('ad-title', 'Title through jQuery.data');
//    jQuery('img.image4').data('ad-desc', 'This image is wider than the wrapper, so it has been scaled down');
//    jQuery('img.image5').data('ad-desc', 'This image is higher than the wrapper, so it has been scaled down');
    
    var galleries = jQuery('.ad-gallery').adGallery();
    jQuery('#switch-effect').change(function() {
        galleries[0].settings.effect = jQuery(this).val();
        return false;
    });
    jQuery('#toggle-slideshow').click(function() {
        galleries[0].slideshow.toggle();
        return false;
    });
    jQuery('#toggle-description').click(function() {
        if(!galleries[0].settings.description_wrapper) {
          galleries[0].settings.description_wrapper = jQuery('#descriptions');
        } else {
          galleries[0].settings.description_wrapper = false;
        }
        return false;
    });
});


