/* nav */

use('thing.mouse');

init('Thing.captureMouseMove()');

var currNav = false;

function showNav(what){
	hideNav();
	currNav = 'globalNav' + what;
	if (Thing.all[currNav]){
		Thing.all[currNav].show();
	}
}

Thing.mouseMove = function(p){
	if (Thing.all[currNav]){
		if ( currNav && !Thing.all[currNav].isHit(p) )
			hideNav();
	}
}

function hideNav(){
	if (Thing.all[currNav]){
		if ( currNav ) {
			Thing.all[currNav].hide();
			currNav = false;
		}
	}
}

/* pathway stuff */

pathwaytext = new Array ()
	pathwaytext.d1_txt = '<b>Pre-assessment</b><br>As a first step, certification candidates assess their existing level of knowledge and skills. Such pre-assessment helps save time and money by diagnosing the level of competency and providing suggestions for training that will be beneficial prior to taking a certification exam.'
	pathwaytext.d2_txt = '<b>Training</b><br>Next, certification candidates obtain training through sources such as books, computer-based training, videos, and instructor-led courses. Training tools, exam demonstrations, test-taking tips are available from Certiport and its Approved Courseware Vendors.'
	pathwaytext.d3_txt = '<b>Practice Tests</b><br>Although they do not guarantee an exam will be passed, practice tests are available to ensure certification candidates have retained the information they learned in training and are able to appropriately apply that information in a test-taking environment.'
	pathwaytext.d4_txt = '<b>Certification</b><br>Certiport is a complete certification provider of performance-based exams. Available through our extensive network of iQcenters, these unique exams offer real-world test experience by testing applicants either through simulation or within an application while the program is actually running live.'
	pathwaytext.d5_txt = '<b>Employment, Productivity, Advancement</b><br>Because certification provides formal recognition of expertise on a subject, it is a cornerstone of a strong resume. And, once on the job, the training behind the certification process pays off. With the ability to utilize advanced functionality of hardware and software, certified employees enjoy increased productivity, more frequent job advancement, higher salaries, and greater job satisfaction.'
	
function hideDetails(){
	d1.hide();
	d2.hide();
	d3.hide();
	d4.hide();
	d5.hide();
	detailText.hide();
	detailIntro.show();
	trap.hide();
}

use("thing.write");

function showDetails(what){
	var meat = '<p class="helpText">'+pathwaytext[(what + '_txt')] +'</p>'
	if (Thing.all[what]) {
		detailIntro.hide();
		detailText.write( meat );
		detailText.show();
		trap.show();
		Thing.all[what].show();
	}
	
}
