Cufon.replace('#navigation ul li a',{ fontFamily : 'JaneAusten',hover: true });
Cufon.replace('.cover-frame h3',{ fontFamily : 'JaneAusten' });
Cufon.replace('h2.script',{ fontFamily : 'JaneAusten' });
Cufon.replace('#main-content h3',{ fontFamily : 'Gotham-Medium' });
Cufon.replace('#main-content h3.script',{ fontFamily : 'JaneAusten' });
Cufon.replace('.top-links a',{ fontFamily : 'TypewriterRough', hover: true });
Cufon.replace('a.read-about',{ fontFamily : 'TypewriterRough', hover: true });
Cufon.replace('.cover-frame a.visitlink',{ fontFamily : 'TypewriterRough', hover: true });
Cufon.replace('.social-links a',{ fontFamily : 'TypewriterRough', hover: true });
Cufon.replace('.call-us p',{ fontFamily : 'TypewriterRough' });




$(document).ready(function() {

	// sidebar press pieces always link to press room
	$('#sidebar ul.itemlist li.item-thumbimg a').attr('href','press-room');
	
	// need new window
	$('ul.itemlist-clientlogos li.item-logo a').attr('target','_blank');

	
	// make press entries show up in a lightbox instead of a detail page
	$('.presspage ul.itemlist-press li.full-item').each(function(){
		var fullimg = $(this).find('li.item-fullimg img').attr('src');
		// new source should be bigger img make width 600
		//fullimg = fullimg.replace("&w=123&h=147&zc=1","&w=600");
		fullimg = fullimg.replace("&w=123&h=147&far=1","");
		fullimg = fullimg.replace("http://www.convergencecms.com/resources/phpThumb/phpThumb.php?src=../../swpr/","");
		
		// set link hrefs to src of full img
		$(this).find('li.item-thumbimg a,li.item-name a ')
			.attr('href',fullimg)
			.fancybox({
				'titlePosition'	: 'over'
			});
		
	});
	
	// make press entries show up in a lightbox instead of a detail page
	$('.presspage ul.itemlist-pressonline li.full-item').each(function(){
		var fullimg = $(this).find('li.item-fullimg img').attr('src');
		// new source should be bigger img make width 600
		//fullimg = fullimg.replace("&w=123&h=147&zc=1","&w=600");
		fullimg = fullimg.replace("&w=123&h=147&far=1","");
		fullimg = fullimg.replace("http://www.convergencecms.com/resources/phpThumb/phpThumb.php?src=../../swpr/","");
		
		// set link hrefs to src of full img
		$(this).find('li.item-thumbimg a,li.item-name a ')
			.attr('href',fullimg)
			.fancybox({
				'titlePosition'	: 'over'
			});
		
	});
	
	$('.presspage ul.itemlist-presstv li.full-item').each(function(i){
		$(this).find('li.item-videocode').wrap('<div style="display:none;"><div id="video'+i+'"></div></div>');
		var popup = '#video'+i;
		// set link hrefs to src of full img
		$(this).find('li.item-thumbimg a,li.item-name a ')
			.attr('href',popup)
			.fancybox({
				'titlePosition'		: 'none',
				'transitionIn'		: 'none',
				'transitionOut'		: 'none'
			});
		
	});
	
	
		

});
