// JavaScript Document

Cufon.set('fontFamily', 'Purista');
Cufon.replace('div.news-post h2', { fontWeight: '700', hover: true, textShadow: '#FFF 1px 1px' });
Cufon.replace('div.post h1', { fontWeight: '700', hover: true, textShadow: '#FFF 1px 1px' });
Cufon.replace('#content .recent-blog-posts h2', { fontWeight: '700', hover: true });

Cufon.replace('.sidebar h2', { fontWeight: '700', hover: true });
Cufon.replace('#header #sidebar-1 ul li#flexipages-2 ul li', { fontWeight: '700', hover: true });
Cufon.replace('#content .recent-blog-posts h2', { fontWeight: '700', hover: true });
Cufon.replace('#header #sidebar-1 ul li#flexipages-3 ul li', { fontWeight: '700', hover: true });

$(document).ready(function(){
	$(function(){
			// CurvyCorners 
			/*$('.wrapper-3').corner({
			  tl: { radius: 20 },
			  tr: { radius: 20 },
			  bl: { radius: 20 },
			  br: { radius: 20 },
			  antiAlias: true,
          	  autoPad: true,
          	  validTags: ["div"] });*/
			
			/*$('#footer .footer-wrapper').corner({
			  tl: { radius: 20 },
			  tr: { radius: 20 },
			  bl: { radius: 0 },
			  br: { radius: 0 },
			  antiAlias: true,
          	  autoPad: true,
          	  validTags: ["div"] });*/
			
			/*$('li.featured-work').corner({
			  tl: { radius: 8 },
			  tr: { radius: 8 },
			  bl: { radius: 8 },
			  br: { radius: 8 },
			  antiAlias: true,
          	  autoPad: true,
          	  validTags: ["div"] });*/
			
			/*$('div.aktt_tweets').corner({
			  tl: { radius: 8 },
			  tr: { radius: 8 },
			  bl: { radius: 8 },
			  br: { radius: 8 },
			  antiAlias: true,
          	  autoPad: true,
          	  validTags: ["div"] });*/
	
	// jQuery cycle plugin
	$('.slideshow-content ul').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		next: '.next', 
    	prev: '.prev',
		timeout: 7000 // slide duration, go figure
		//speed: 900 // transition speed
		
	});
			
	// reveal slideshow controls on hover
  	//$('#slideshow').hover(function() 
  	//{
  	//$('div.slideshow-nav').addClass('slideshow-visible');
  	//}, function() {
  	//$('div.slideshow-nav').removeClass('slideshow-visible');
  	//});
	
	// Masonry 
	$('#recent-work-posts').masonry({ 
			singleMode: true,
			itemSelector: '.featured-work' 


	});
	
	});
	
});




    


