﻿// Typekit:
try { Typekit.load(); } catch (e) { }

// Let's pop open a modal:
function OpenModal(element) {
	$("#" + element).dialog("open");
}

$(document).ready(function () {

	// Disable right clicking:
	$(document).bind("contextmenu", function (e) {
		return false;
	});

	// Disable cut, copy:
	$(document).bind("cut copy", function (e) {
		e.preventDefault();
	});

	// If we've got a form, set the focus to the first form field:
	$("input:visible:first").focus();

	// Turn button sets in to, um, well, buttonsets:
	$(".ButtonSet").buttonset();

	// Defining what a modal should look like:
	$(".Modal").dialog({
		show: { effect: 'scale', speed: 'slow' },
		hide: { effect: 'scale', speed: 'slow' },
		autoOpen: false,
		draggable: false,
		modal: true,
		resizable: false,
		stack: false,
		width:525
	});

});

