// JavaScript Document
var currentRollover;
jQuery(function( $ ){
	//subnav for work
	var showContent = "";
	var clickedField ="";
	//on the start look for
	
	//init google maps
	$('.tbtn').click(function(){
		if ($(this).attr('href')=='#')
		{
			$('#listHolder').fadeOut(100);
			//show the stuff
			$('#headlineHolder img').show();
			$('#mainright p').show();
			showContent = "";
		}else{
			$('#listHolder').fadeOut(2);
			$('#headlineHolder img').hide();
			$('#mainright p').hide();
			$('#imageHolder').html("");
			//show content
			showContent = $(this).parent().find('.clientsHidden').html();
			$('#contentHolder').html(showContent);
			$('#listHolder').fadeIn(300);
			setupRollover();
			startWithImage();
			
		}
		//swap out the button
		$('.clicktbtn').removeClass(' clicktbtn');
		$(this).addClass(' clicktbtn');
		return false;
	});	
	//make links inactive
	$('a.clientLink').live('click', function() {
		return false;
	});
	
});
function setupRollover()
{
	$('a.clientLink').mouseenter(function(){
		var im = $(this).parent().find('.hiddenImage').html();
		$('a.clientLink').removeClass(' roll');
		$(this).addClass(' roll');
		$('#imageHolder').html(im);
	});
}
function startWithImage()
{
	var sim = $('.startWith').parent().find('.hiddenImage').html();
	$('.startWith').addClass(' roll');
	$('#imageHolder').html(sim);
}