	$(document).ready(function() {

		$('#primary-nav').nmcDropDown({
		show: {opacity: 'show', top: '-=5px'},
		show_speed: 200,
		hide: {opacity: 'hide', top: '+=5px'},
		hide_speed: 400
		});

		$('#quotes .body').innerfade({
			speed: 'slow',
			timeout: 10000,
			type: 'sequence', // random
			containerheight: '137px'
		});
		
		// Hover effect on logos
		
		$("ul.gallery li").hover(function() { //On hover...

			var thumbOver = $(this).find("img").attr("src"); //Get image url and assign it to 'thumbOver'

			//Set a background image(thumbOver) on the <a> tag - Set position to bottom
			$(this).find("a.thumb").css({'background' : 'url(' + thumbOver + ') no-repeat left bottom'});

			//Animate the image to 0 opacity (fade it out)
			$(this).find("span").stop().fadeTo('normal', 0 , function() {
				$(this).hide() //Hide the image after fade
			});
		} , function() { //on hover out...
			//Fade the image to full opacity 
			$(this).find("span").stop().fadeTo('normal', 1).show();
		});

		//Tooltips
		$('ul.menu a[title]').qtip({ style: { 
			name: 'red', 
			tip: 'rightMiddle',
			width: 280,
			padding: 8,
			background: '#ef4135',
			color: '#ffffff',
			border: {
				width: 0,
				radius: 0,
				color: '#ef4135'
				}

		},				 
		position: {
			corner: {
				target: 'leftMiddle',
				tooltip: 'rightMiddle'
			}
		} });
		
		$('#services ul.gallery a[title]').qtip({ style: { 
			name: 'red', 
			tip: 'bottomMiddle',
			width: 200,
			padding: 8,
			background: '#ef4135',
			color: '#ffffff',
			border: {
				width: 0,
				radius: 0,
				color: '#ef4135'
				}

		},				 
		position: {
			corner: {
				target: 'topMiddle',
				tooltip: 'bottomMiddle'
			}
		} });
		
		//Twitter Feed
		recentTwitterLoader({
			'TwitName':'TouchdownPRnews',
			'TwitCount':3,
			'ulClass':'news',
			'containerID':'#tweets',
			'onLoad':false
			});

	});