jQuery(function() {
	// initialize scrollable
	jQuery("div.scrollable").scrollable({circular: true}).autoscroll({ autoplay: true, interval: 1000, rotate: true });

	jQuery("#div_top_10 .items img").click(function() {
		// calclulate large image's URL based on the thumbnail URL (flickr specific)
		var url = jQuery(this).attr("src").replace("_t", "");

		// get handle to element that wraps the image and make it semitransparent
		var wrap = jQuery("#image_wrap").fadeTo("medium", 0.5);
		xajax_charge_plain_top10(this.getAttribute('hook_id'));


		// when page loads simulate a "click" on the first image
		}
	).filter(":first").click();
});

function top10_ImageLoaded() {
	var wrap = jQuery("#image_wrap");
	wrap.fadeTo("fast", 1);
}

jQuery(document).ready(function() {
	jQuery("div.scrollable_scrollable").scrollable({circular: true}).autoscroll({ autoplay: true, interval: 1000, rotate: true });
});

