

jQuery(document).ready(function($) {
	
	if($('#slideshow').length){ 
	
	$('#slideshow').coinslider({ 
	width: 940, // width of slider panel
		height: 310, // height of slider panel
		hoverPause: false,
		opacity: 1, // opacity of title and navigation
		effect: 'swirl', // random, swirl, rain, straight
		delay: 6000, // delay between images in ms
		sDelay: 30, // delay beetwen squares in ms
		spw: 10, // squares per width
		sph: 1 // squares per height
	 });
	 
 }
 
 
 	if($('#slideshow2').length){ 
	
	$('#slideshow2').coinslider({ 
	width: 538, // width of slider panel
		height: 250, // height of slider panel
		hoverPause: false,
		opacity: 1, // opacity of title and navigation
		effect: 'swirl', // random, swirl, rain, straight
		delay: 5000, // delay between images in ms
		sDelay: 30, // delay beetwen squares in ms	
		spw: 12, // squares per width
		sph: 1 // squares per height
	 });
	 
 }
            Cufon.replace('.cs-title h1, #sidebar_previous, #sidebar_next', { fontFamily: 'sprout' });
            Cufon.replace('.cs-title p', {	fontFamily: 'sprout', textShadow: '1px 1px 2px #105600)' }); 
            Cufon.replace('h1, h2, h5, h6, h3', { fontFamily: 'sprout' });
			Cufon.replace('#access, h4, h1.entry-title', { fontFamily: 'sprout', hover: true, textShadow: '#fff 1px 2px 1px)'});
			Cufon.replace('#access .current_page_item a', { fontFamily: 'sprout', hover: true, textShadow: '#ffffff 1px 2px 0px)' });
			Cufon.replace( '#box1 h1, #box1 h2, #box2 h1, #box2 h2, #box3 h1, #box3 h2',  { fontFamily: 'sprout', textShadow: '1px 1px 2px #105600)' });	

Cufon.replace('blockquote, #services h3, #contact h2', {	fontFamily: 'Sydfonts', textShadow: '#ffffff 1px 2px 0px)' });
Cufon.replace('h3.port', { fontFamily: 'sprout', textShadow: '1px 1px 2px #105600)' });	
	 });


jQuery(document).ready(function($) {
			Cufon.refresh()
				//To switch directions up/down and left/right just place a "-" in front of the top/left attribute
				//Full Caption Sliding (Hidden to Visible)
				$('.boxgrid.captionfull').hover(function(){
					$(".cover", this).stop().animate({top:'132px'},{queue:false,duration:160});
				}, function() {
					$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
				});
				//Caption Sliding (Partially Hidden to Visible)	
			});	
			
jQuery(document).ready(function($) {
	
		// Add pdf icons to pdf links
	$("#content a[href$='.pdf']").addClass("pdf");
	
	// Add word icons to word links
	$("#content a[href$='doc']").addClass("doc");
	
	// Add email icons to email links
	$("#content a[href^='mailto:']").addClass("emailaddress");

	//Add external link icon to external links - 
	$('#content a').filter(function() {
		//Compare the anchor tag's host name with location's host name
	    return this.hostname && this.hostname !== location.hostname;
	  }).addClass("external");
	
	
		     $("#tweet").tweet({
        join_text: "auto",
        username: "sprout_design",
        avatar_size: 0,
        count: 3,
        auto_join_text_default: "sprout said,", 
        auto_join_text_ed: "sprout",
        auto_join_text_ing: "sprout were",
        auto_join_text_reply: "sprout replied",
        auto_join_text_url: "sprout were checking out",
        loading_text: "loading tweets..."
      });
	
	if($('.porto').length){ 
				var vg = $(".porto").vgrid({
				easeing: "easeOutQuint",
				time: 800,
				delay: 60,
				gridDefWidth: 950,
				forceAnim: 1 }); 
		
		 }
		 });
