
/*
function nr_itemLoadCallback(carousel, state)
{
    if (carousel.has(carousel.first, carousel.last)) {
        return;
    }
	jQuery.get('prod_scroller.php',{first: carousel.first,last: carousel.last},function(data) {
			mycarousel_itemAddCallback(carousel, carousel.first, carousel.last, data);
        });

};

function mycarousel_itemAddCallback(carousel, first, last, xml)
{
    jQuery(xml).each(function(i) {
		carousel.add(first + i, mycarousel_getItemHTML(jQuery(this).html()));
    });
};

function mycarousel_getItemHTML(url)
{
	return ""+url+"";
};
*/
$(document).ready(function () {
/*
	jQuery('#mycarousel').jcarousel({
        scroll:5,
		itemLoadCallback: nr_itemLoadCallback,
		buttonPrevHTML: '<div class="next">Previous</div>',
		buttonNextHTML: '<div class="next">Next</div>'
    });
*/


	$heritageGallery = $('#heritageGallery');
	$('.years', $heritageGallery).hide();
	$('ul', $heritageGallery).jcarousel({
		buttonPrevHTML: '<div class="next">Previous</div>',
		buttonNextHTML: '<div class="next">Next</div>'
	});
	$('a', $heritageGallery).click(function() {

		$this = $(this);
		$box = $($this.attr('href'));
		$.nyroModalManual({
			content: $box.clone(),
			minWidth: 500,
			minHeight: 366
		});
		return false;
	});
});



