jQuery(document).ready(function(){

	var flashes = jQuery("div.flash");
	var triggets = jQuery("div a[rel]");

	triggets.click(function() {
		flashes.toggle();
	});

	triggets.prettyPhoto({
		animationSpeed: 'normal', /* fast/slow/normal */
		padding: 40, /* padding for each side of the picture */
		opacity: 0.35, /* Value betwee 0 and 1 */
		showTitle: true, /* true/false */
		allowresize: true, /* true/false */
		counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
		theme: 'light_rounded', /* light_rounded / dark_rounded / light_square / dark_square */
		callback: function() {
			flashes.toggle();
		}
	});
	
/*
	jQuery("[id$='DialogTrigger']").click(function() {
		var id = jQuery(this).attr('id');
		id = id.substring(0, id.length - 7);
		jQuery("#" + id).dialog({
			bgiframe: true,
			modal: false,
			width: "auto",
			height: "auto",
			open: function() {
				jQuery("div.flash").toggle();
			},
			close: function() {
				jQuery("div.flash").toggle();
			}
		});
		return false;
	});
*/
});

