od47(document).ready(function(){

od47('.content-area').hide();
// hides all divs with a class of content-area (all classes can be renamed to whatever you want)

od47('.content-area:nth(0)').show();
// shows first div

od47('#content-tabs li:nth(0)').addClass('current');
// current style on first tab

var tabLength = od47('#content-tabs li').length;
if (tabLength == 1)
	{
	od47('#content-tabs').find('li').hide();
	}
		

od47('#content-tabs li').css('cursor' , 'pointer').click(function()
	{
		
		od47('#content-tabs li').removeClass('current');
		// gets rid of current style on tab

		od47(this).addClass('current');
		// adds class to tab clicked

		od47('.content-area').hide();
		// hides all content-area divs

		var url= od47(this).children().attr('href');
		var urlSplit=url.split("#");
		// variables taken fromm href to create div id name to show

		od47('#'+urlSplit[1]+'').fadeIn(300);
		// get div id name and show it

		return false;
	});

od47('#consultant-view ul.imageGallery li span').append(' <a href="#">[hide description]</a>');

od47('#consultant-view ul.imageGallery li span a').click(function()
	{
	od47(this).parent().parent().removeClass("imageGallery-preview");
	return false;
	});
	
od47('#consultant-view ul.imageGallery li').css('opacity' , '0.8');

od47('#consultant-view ul.imageGallery li').click(function()
	{
	od47('#consultant-view ul.imageGallery li').removeClass("imageGallery-preview");
	od47(this).addClass("imageGallery-preview");
	od47('#consultant-view ul.imageGallery li').css('opacity' , '0.8');
	od47(this).css('opacity' , '1.0');
	});

});
