Event.observe(window, 'load', careersWireup);

function careersWireup() {
	
	joinTextDivs = $$('div.joinText');
	joinTextBlocks = $$('div.joinText blockquote');
	joinTextBlocks.each(function(s){
		s.insert({ top: '<span class="ldquo">&ldquo;</span>'});
		s.insert({ bottom: '<span class="rdquo">&rdquo;</span>'});
	}
	);
	
	joinImgs = $$('div#joinImages img')
	joinImgs.each(function(s){
		s.style.cursor="pointer";
	}
	);
	curTxt = 0;
	joinImgs.invoke('observe', 'mouseover', function(e){
		$('introText').style.display = 'none';
		var pointer = joinImgs.indexOf(this); //position of this element in the array
		joinTextDivs[curTxt].style.display="none";
		joinTextDivs[pointer].style.display="block";
		curTxt = pointer;
	}
	);
	
}