﻿$(document).ready(
function() {
	$("a[href^=\"http://\"]").attr({ title: 'external link' });
	$("a[href^=\"mailto:\"]").attr({ title: 'email' });
	$("a[href$=.pdf]").attr({ title: 'PDF file' });
	$("a[rel^='prettyPhoto']").prettyPhoto({
			animation_speed: 'normal', /* fast/slow/normal */
			slideshow: 5000, /* false OR interval time in ms */
			autoplay_slideshow: false, /* true/false */
			opacity: 0.8, /* Value between 0 and 1 */
			show_title: true, 
			allow_resize: true, 
			counter_separator_label: '/', 
			theme: 'light_rounded', 
			horizontal_padding: 20, 
			modal: false, 
			overlay_gallery: true, 
			keyboard_shortcuts: true,
			social_tools: false, 
			ie6_fallback: true});
	$("a.deleteButton").click(function() {
		return confirm('Are you sure you want to delete this?');
	});
	$(".cat").css('display', 'block');
	$("select#categoryFilter").bind("change", function() {
		this.form.submit();
	});
});
