﻿///<reference path="jquery-1.4.1-vsdoc.js"/>

$(function () {
	Cufon.replace('h1', { hover: true })('h2', { hover: true })('h3', { hover: true })('#header ul a')('#GalleryPage #navigation a')('.cufon')('#body #mainImage li a', { hover: true });

	$("a[rel='external']").click(function () {
		this.target = "_blank";
	});

	$("#sections .section").each(function () {
		if ($(this).find("a").length) {
			$(this).addClass("clickable");
		}
	});

	$(".clickable").live("click", function () {
		var anchor = $("a:first", this);
		if (anchor.length) {
			location.href = $("a:first", this).attr("href");
		}
		return false;
	});

});
