/*

BASE Functions

==================================================================================================================*/	

// Cufon Setup
Cufon.replace('h1, h2', { fontFamily: 'Gotham', hover: true });
Cufon.replace('.staffing h2', { textShadow: '1.2em 1.2em 1.2em #a41102' });
Cufon.replace('.employment h2', { textShadow: '1.2em 1.2em 1.2em #d05102' });
Cufon.replace('.about h2', { textShadow: '1.2em 1.2em 1.2em #386902' });

Cufon.replace('.sidebar-box h3, .sidebar-box-red h3, .sidebar-box-orange h3, .profession-box h2, .jobs-block h2, .job-type, .faq-entry .qa', { textShadow: '1.2em 1.2em 1.2em rgba(0, 0, 0, .4)' });
Cufon.replace('.inner .header-title h1', { textShadow: '1.2em 1.2em 1.2em rgba(255, 255, 255, .6)' });

	function doSlide(target, method) {
		$('ul#photos').stop();
		var targetPos = $(target).position();
		if (targetPos.left == 0) { targetPos.left = offset; }
		
		previous = '#' + $('ul#photos li.current').attr('id');
		current = '#' + $(target).attr('id');
		$('ul#photos li').removeClass('current');
		$(target).addClass('current');
		
		$('ul#photos li img.photo').stop().fadeTo('fast', .15);
		$(target + ' img.photo').stop().fadeTo('fast',1);
		
		/* scroll or jump */
		(method == 'jump') ?
			$('ul#photos').stop().css('left','-' + (targetPos.left - offset) + 'px') :
			$('ul#photos').stop().animate({ 'left' : '-' + (targetPos.left - offset) + 'px' }, 1000, 'swing');
	}
	


$(document).ready(function() {
						 $('.rotating-images').cycle({timeout: 6500, speed: 1700});  
							   
});

// Print Page
function printThis() {
	(window.print) ? window.print() : alert('To print his page press Ctrl-P on your keyboard \nor choose print from your browser or device after clicking OK');
}
