function initCufon(){
	Cufon.replace('.worktitle, .staffname .title, .postmetaarea ul li, .title span, .space .see-more, .casestudy h1', { fontFamily: '"museo300"'});
	Cufon.replace('#nav a', {textShadow: '#3a4d47 0 2px', fontFamily: '"museo500"', hover:true});
	Cufon.replace('.staffname, .post-content-column h2, .twocolumn h2, .post-content-column h3, .date-day, .date-month, .footer-area h4, .space .list h4 span.l, .footer-area .phone, .space .twocolumn h3, .teamtext h3, .space .threecolumn h3, .info p, .service-box h3, .long-service-box h3, .postlisttitle, .postedin, .article_short h2, .readon, .detail-name, .visitproject, .projectside h2, .contactside h2, .quoteby, .casestudy h2, .field p, input.submitbtn, .location span, .connect, .casestudy p strong, .casestudy h3', { fontFamily: '"museo500"'});
	Cufon.replace('.teamtitle, #greeting, .space .list h4 strong, .space .block .descript h3 span, .space .block .descript .mark span, .mark, .service-box h2, .long-service-box h2, .blogheading, .location.strong', { fontFamily: '"museo700"'});
	Cufon.replace('.list p, .more a, .col-1 p, .teamtext p, .col-2 p, .col-3 p, .box p, .subnav a, .menu a, .smalllinks a, .tweet-list li, .list-box li, .descript a, .service_desc p, .service-box p, .long-service-box p, .postedin span, .article_short p, .workcompany, .detail-company, .projectside p, .project_cat, .clientsaid p, .casestudy p, .field small, .contactside p, .location, .message, .post-content-column p, .bloglist li, .article_short ul li', { fontFamily: '"museo300"'});
}
$(function(){
	initCufon();
});

$(document).ready(function() {
		$(".scrollto").click(function() {
		var el = $(this).attr("href");
		if (el != "#") {
			var y = $(el).offset().top - 20;
		} else {
			var y = 0;
		}
		$('html,body').animate({scrollTop: y}, 500);
		return false;
		});
});

var resizeTimer;
$(window).resize(function() {
	clearTimeout(resizeTimer);
	resizeTimer = setTimeout(initCufon, 100);
});
