<!--#include file="cufon-yui.js" -->
<!--#include file="Gotham_200.font.js" -->
<!--#include file="GothamMed_500.font.js" -->
<!--#include file="GothamBold_700.font.js" -->
<!--#include file="cycle.min.js" -->

// init Cufon
	
if (document.getElementById('home')) {
	Cufon.replace('h1 > span', {fontFamily: 'Gotham'});
	Cufon.replace('h1 > span > span', {fontFamily: 'GothamBold'});
} else {
	Cufon.replace('h1', {fontFamily: 'Gotham'});
}

Cufon.replace('#footer p, .about h3, .affiliations, #main h3 ', {
	fontFamily: 'Gotham',
	hover: true,
	hoverables: { a: true }
});

Cufon.replace('#sidebar h3, .casestudies h2, .masterplanning h2, .news h2, .project h2, #sidebar h6, .planning h2, .architecture h2, .interiordesign h2, .purchasing h2, .installation h2, .about h2, .services h2, .contact h2, .featuredlink a, .people h4, #sidebar.landing h3, .ontheweb, .landing h3',  {
	fontFamily: 'GothamMed',
	hover: true,
	hoverables: { a: true }
});

Cufon.replace('.gnav, .utilnav', {
	fontFamily: 'GothamBold',
	hover: true,
	hoverables: { a: true }
});

if (document.getElementById('gallery')) {
	$('#gallery').after('<div id="pager"></div>').children('ul').cycle({ speed: 700, pause: true, pager: '#pager'});
} else {

(function () {
	var main = $('#main'),
		scnd = $('#secondary'),
		  mh = main.height(),
		  sh = scnd.height();
	if (mh > sh) {
		scnd.height(mh - 20);
	} else {
		main.height(sh + 50);
	}
}());
}
$('a[rel=external]').attr('target', '_blank');
