$(document).ready(function() {
  

   
   // testimonials fade in/out
   if ($('#testimonials').length>0) {   
      $("#testimonials").tabs({ fx: {  opacity: 'toggle' } }).tabs("rotate", 10000);
   }
	
	//CUFON
	Cufon('ul#nav a span');
	Cufon('#slideshow h1');
	Cufon('.categories h3 a', {hover: {color: '#fb9600'}});
	Cufon('.testi p');
	Cufon('.latestnews h4');
	Cufon('.latestnews a.btn-readmore');
	Cufon('#subpage-title h1');
	Cufon('.block-testi p.quote');
	Cufon('#sidebar h3 span');
	
	// CUFON DROID FONT
	Cufon.replace('#header ul a', { fontFamily: 'Droid Sans',hover: {color: '#FFFFFF'} });
	Cufon.replace('p.transact', { fontFamily: 'Droid Sans' });
	Cufon.replace('#main-content h2', { fontFamily: 'Droid Sans' });
	Cufon.replace('#contact label', { fontFamily: 'Droid Sans' });
	
/* Main Navigation hover for IE6 
-------------------------------------*/
sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
	
});




