// Cufon Stuff
	Cufon.replace('h1', { fontFamily: 'JohnSansMedium' });
	Cufon.replace('h2', { fontFamily: 'JohnSansLite' });
	Cufon.replace('h3', { fontFamily: 'JohnSansMedium' });
	Cufon.replace('#nav', {hover: true, fontFamily: 'JohnSansMedium' });
	Cufon.replace('.links a', {hover: true, fontFamily: 'JohnSansBlack' });
	Cufon.replace('#quotes', { fontFamily: 'JohnSansWhite' });	
	Cufon.replace('.title a', {hover: true, fontFamily: 'JohnSansMedium' });	
	Cufon.replace('.credit', { fontFamily: 'JohnSansLite' });		

// jQuery Stuff


		//fancybox
		$(document).ready(function() {
			$("a.iframe").fancybox({
				'width'				: 785,
				'height'			: 540,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'overlayOpacity'	: 0.7,
				'overlayColor'		: '#000'
			});
		});


	// Loading Screen
	$(window).load(function() {
	$('#loading').fadeOut(1500, function() {  // Animation complete.
	  });
	});	


	// Disables new versions of the Skype toolbar and tel no recognition
	$(document).ready(function() {
		window.setTimeout(function() {
			$('.skype_pnh_container').html('');
			$('.skype_pnh_print_container').removeClass('skype_pnh_print_container');
		}, 800);
	});
	
	// jQuery Cycle
	$(document).ready(function() {
    	$('#quotes').cycle({
			fx:    'fade', 
    		speed:  1000,
			timeout:  3500, 
//			cleartype: true,
//			cleartypeNoBg: true,
			pause: 1
 		});
	});
	
	//gWave Scroller
//	$(function(){
//		$('.content').gWaveScrollPane();
//	});	
	
	//inField Labels
	$(function(){ $("label").inFieldLabels({ fadeOpacity:0.1 });
	});	
		
	//Toggle Boxes x Two
	//Hacked together from
	//http://www.sitepoint.com/forums/javascript-15/jquery-slide-left-right-597712.html#post4140098
	
	
	jQuery(function () {
	jQuery('.toggleOne').click(function () {
		jQuery('.boxOne').slideToggleWidth();
	});
	 
	jQuery.fn.extend({
	  slideRight: function() {
		return this.each(function() {
		  jQuery(this).animate({width: 'show'});
		});
	  },
	  slideLeft: function() {
		return this.each(function() {
		  jQuery(this).animate({width: 'hide'});
		});
	  },
	  slideToggleWidth: function() {
		return this.each(function() {
		  var el = jQuery(this);
		  if (el.css('display') == 'none') {
			el.slideRight();
		  } else {
			el.slideLeft();
		  }
		});
	  }
	});
	});
	
	jQuery(function () {
	jQuery('.toggleTwo').click(function () {
		jQuery('.boxTwo').slideToggleWidth();
	});
	 
	jQuery.fn.extend({
	  slideRight: function() {
		return this.each(function() {
		  jQuery(this).animate({width: 'show'});
		});
	  },
	  slideLeft: function() {
		return this.each(function() {
		  jQuery(this).animate({width: 'hide'});
		});
	  },
	  slideToggleWidth: function() {
		return this.each(function() {
		  var el = jQuery(this);
		  if (el.css('display') == 'none') {
			el.slideRight();
		  } else {
			el.slideLeft();
		  }
		});
	  }
	});
	});

// End of jQuery Stuff


