/**
 * Author => Company       : Prodo Ltd
 * Author => Email         : chris@prodo.com
 * Author => Name          : Christopher Robinson
 * Author => Website       : http://www.prodo.com
 * Code   => Last Modified : 10 March 2009
 */

$(document).ready(function() {
	// Make external links open in a new window
	$('a[rel=external]').click(function(e) {
		open(this.href);
		e.preventDefault();
	}).attr('title', 'Opens in a new window');
	
	// Dynamically add the animation
	if($.isFunction($().cycle))
	{
		$('#header').append('<ol class="animation"><li class="b">&nbsp;</li><li class="d">&nbsp;</li></ol>');
		$('#header ol.animation').cycle({
			random  : 1,
			speed   : 1500, 
			timeout : 8500
		});
	}
});

var futura = {
    src : '/App_Themes/mccarthyhaulage/Futura.swf'
};

sIFR.activate(futura);

sIFR.replace(futura, {
    css      : '.sIFR-root { background-color:#004b84; color:#e3c853; font-size:38px; } .sIFR-root em { font-size:150%; font-style:normal; }',
    selector : '#content .page-heading h2'
});