function career_center()
{
	if($chk($('carCenter')))
	{
		var tr = $('carCenter').getElements('tr');
		var next = $('carCenter').getElement('a.next');
		career_count = tr.length;
		career_position = 0;

		for(var i=0;career_count>i;i++)
		{
			if((i+1)>5)
				tr[i].setStyle('display','none');
			else
				tr[i].setStyle('display','block');
		}

		career_position += 5;
	}
}

function featured_people()
{
	if($chk($('featPeople')))
	{
		var next = $('featPeople').getElements('ul.carFeatNav').getElements('a.next');
		var featPeople = $('featPeople').getElements('div.featPerson');
		var count = featPeople.length;
		featPerson = featPeople[0];

		for(var i=0;count>i;i++)
			featPeople[i].setStyle('display','none');

		featPerson.setStyle('display','block');

		next.each(function(el){
			el.addEvent('click',function(){
				featPerson.setStyle('display','none');
				if($defined(featPerson.getNext()))
					featPerson = featPerson.getNext();
				else
					featPerson = $('featPeople').getFirst();

				featPerson.setStyle('display','block');
			});
		});
	}
}

function who_said()
{
	if($chk($('whoSaid')))
	{
		var whoLink = $('whoSaid').getElement('p.whoLink').getElement('a');

		whoLink.addEvent('click',function(){
			var quote = $('whoSaid').getElement('div.quote');
			var quoted = $('whoSaid').getElement('p.quoted');

			quote.setStyle('display','none');
			quoted.setStyle('display','block');
		});
	}
}

function open_video()
{
	if($chk($$('a.video_image')))
	{
		$$('a.video_image').each(function(el){
			el.addEvent('click',function(e){
				e = new Event(e).stop();
				open_window(this.href, 680, 440);
			});
		});
	}
}

/////////////////////////////////////////////////////////////////////


addLoadEvent(open_video);
addLoadEvent(career_center);
addLoadEvent(featured_people);
addLoadEvent(who_said);
