﻿$(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^='popup']").prettyPhoto();
	$("a.deleteButton").click(function() {
		return confirm('Are you sure you want to delete this?');
	});
	$('#tips').css('display', 'block').cycle({
		fx: 'scrollUp',
		easing: 'easeOutSine',
		speed: 1500,
		timeout: 18000,
		random: 1,
		next: '#next',
		pause: 1
	});
	$('#repertoire').css('display', 'block').cycle({
		fx: 'scrollDown',
		easing: 'easeOutBounce',
		speed: 1000,
		timeout: 7000,
		random: 1,
		pause: 1
	}); 
	$(".cat").css('display', 'block');
	$("select#categoryFilter").bind("change", function() {
		this.form.submit();
	});
	$('a.email').nospam().attr({ title: 'email' });
});