// JavaScript Document
Cufon.replace('h1', { fontFamily: 'Gotham Rounded Book' }); 
Cufon.replace('h2'); 
Cufon.replace('div.feat-content p', { fontFamily: 'Gotham Rounded Book' });
Cufon.replace('div.feat-content strong');
Cufon.replace('div.feat-link'); 
Cufon.replace('div.news-header');
Cufon.replace('div.permalink"');
Cufon.replace('div.speak');


	
/***********************************************
* Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
******************/
var mygallery=new fadeSlideShow({
	wrapperid: "fadeshow", //ID of blank DIV on page to house Slideshow
	dimensions: [897, 407], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
		["images/banner.png", "/track-record/case-studies", "", ""],
		["images/banner2.png", "/about/why-choose-us", "", ""],
		["images/banner3.png", "/about/team/Penelope-bettison", "", ""],
		["images/banner4.png", "/contact/", "", ""],
		["images/banner5.png", "/track-record/testimonials", "", ""] //<--no trailing comma after very last image element!
		/*["images/banner-test.jpg", "#", "", "*/

	],
	displaymode: {type:'auto', pause:8000, cycles:0, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 500, //transition duration (milliseconds)
	descreveal: "ondemand",
	togglerid: ""
})  

/***********************************************
Limit amount of text of the blog feed
**********************************************/
var $j = jQuery.noConflict();
  $j(document).ready(function() {
  var text2 = $j('.feat-content .post-body p').html();
  if(text2.length > 250) {
	  text2 = text2.substring(0, 250);
	  $j('.feat-content .post-body p').html( text2 + "... ");
  }	
});




