$(document).ready(function(){
	//HomePage Scripts
	// always place the navigator plugin AFTER the circular plugin 
	$("#home-carousel .scrollable").scrollable({size:1}).circular().navigator('.navi');
	$(".quotes .scrollable").scrollable({size:1}).autoscroll({autoplay: true}).circular().navigator('.quotes-navi');
	
	//PortfolioPage Scripts
	$('#portfolio-list li:odd').addClass('odd');
	$('#portfolio-list li:even div').each(function(){
		var $heading = $('h2',this).remove();
		$(this).append($heading);
	});
	
	//EngineersPage Scripts

	// setup tooltip for each Engineer Image 
    $("#engineers-list img[title]").mouseover(function(){$(this).css('border-color','#000')}).tooltip({ 
 
        // each trashcan image works as a trigger 
        tip: '#tooltip', 
 
        // custom positioning 
        position: 'top center', 
		effect:'slide',
 
        // move tooltip a little bit to the right 
        offset: [-80, -250], 
	});
	
	//ContactUsPage Scripts
	var legendContent =$('#contact-form legend').html();
	$('#contact-form legend').remove();
	$('#contact-form').prepend('<h2 id="contact-form-title">'+legendContent+'</h2>');
	
});//end of ready()