/*
Cufon.replace('.custom-row .title-custom, .row-top-menu > ul > li > a, .wrapper-box .boxTitle h3, .article-title-text, .wrapper-box-extra .boxTitle h3, .componentheading, .article-text-indent h1, .article-text-indent h2, .article-text-indent h3, .article-text-indent h4, .article-text-indent h5, .article-text-indent h6, .blog_more strong',  { fontFamily: 'Myriad Pro' , hover: true });
Cufon.replace(' .headet-title-1, .headet-title-2',  { fontFamily: 'Myriad Pro 600' , hover: true });
*/


$(document).ready(function(){
	$('#home-rotator').cycle();
	setupPDFs();

	Cufon.replace('#content h2, h3, #contactform legend',  { fontFamily: 'Myriad Pro' , hover: true });
	Cufon.replace('#navigation > li > a',  { fontFamily: 'Myriad Pro' , hover: true });


});


function setupPDFs() {
	var anchors = $('a').get();
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		var ahref = anchor.getAttribute("href");
		if (ahref.match("pdf")){
			makePDF(anchor);
		}
	}
}

function makePDF(anchor) {
	anchor.target = "_blank";
	$(anchor).after('<img src="http://ssecdn.net/pdficon.gif" alt="PDF Logo" title="PDF will open in a new window" style="margin: 0 5px;"/> ');
}

