$(document).ready(function() { 
	// Enable backgrounds caching in IE6
	if ($.browser.msie && $.browser.version.substr(0, 1) == "6") {
		document.execCommand("BackgroundImageCache", false, true);
	}

	// Treat links with rel="external" in Strict XHTML as old target="_blank"
	$("a[rel=external]").click(function() {
		window.open(this.href);
		return false;
	});
	
	$("#slideWidget").slideWidget({changeInterval: 6000});
	
	$('a[rel|="lightbox"]').fancybox({onCleanup: function() {}});

	$(this).bind("contextmenu", function() {
		return false;
	});
	$(this).keydown(function(event) {   
		var forbiddenKeys = new Array("c", "x", "v", "a", "C", "X", "V", "A");
		var keyCode = (event.keyCode) ? event.keyCode : event.which;
		if (event.ctrlKey) {
			for (i = 0; i < forbiddenKeys.length; i++) {
				if (forbiddenKeys[i] == String.fromCharCode(keyCode).toLowerCase()) {
					return false;
				}
			}
		}
		return true;
	});	
	$("body").disableTextSelect();
	$("body").bind("selectstart", function() { return false; });
	$("body").bind("dragstart", function() { return false; });
});
