
// JavaScript Document
function xtractFile(data){
var m = data.match(/(.*)\/([^\/\\]+)(\.\w+)$/);
if(m == null) { m = "null"; }
return {path: m[1], file: m[2], extension: m[3]}
}

jQuery(document).ready(function() {

	if(typeof sIFR == "function"){
	
		// This is the preferred "named argument" syntax
		sIFR.replaceElement( named(
						   {
							   sSelector:".banner h1 span", sFlashSrc:"flash/eurostile.swf", 
							   sColor:"#000000", sCase:"upper", sWmode:"transparent"
							}));
	};
	


	$('.carousel').jCarouselLite({
			btnNext: ".next",
			btnPrev: ".prev",
			visible: 4,
			auto: 3000,
			speed: 400,
			circular: true,
			scroll: 1,
			beforeStart: null,
			afterEnd: null
	});
	
	

					$('#news').innerfade({
						animationtype: 'slide',
						speed: 750,
						timeout: 2000,
						type: 'random',
						containerheight: '1em'
					});
					
					
					$('.fade').innerfade({
						speed: 1000,
						timeout: 5000,
						type: 'sequence',
						containerheight: '20em'
					});
		
}); // END jQuery(document).ready


