
// this code opens new windows - verify the width and heights work for this particular website
	function open_new_window(url, window_name)
	{
		window.open(url,window_name,'width=600,height=500,toolbar=1,scrollbars=1,directories=1,location=1,status=1,menubar=1,resizable=1');
	}
// end of code opening new windows
// this code controls the dhtml code activated by onclick of the links
	var contentObj;
	var page_loaded = "false";
	function init()
	{
		contentObj = addLayer('content');
		setLayerSize(contentObj,360,400);
		setLayerClip(contentObj,0,360,400,0);
		moveLayerTo(contentObj,290,110);
		showLayer(contentObj);
		setLayerHTML(contentObj,sBeginning_code);
		page_loaded = true;
		preloadImages();
	}		
	window.onload = init;
	function load_1(code_def)
	{
		if(page_loaded == true)
		{
			setLayerHTML(contentObj,code_def);

		}
	}

// code to write the beginning table tags for the opening display in each section - to cut down on load time

	var setup_code = "";
	setup_code =  "<table width='360' border='0' cellpadding='0' cellspacing='0'>\n";
	setup_code += "<tr>\n";
	setup_code += "<td width='360' align='left'>"; 	
//code to set the dynamic html display for the opening homepage content

	var sBeginning_code = "";
	var sSec_0_code = "";
	sSec_0_code =  setup_code;
	sSec_0_code += "<p class='content' align='center'><img src='images/sparks.jpg' border=1><br><span class='small'>Use the links on the left to see if you have what it takes!</span>\n";
	sSec_0_code += "</td></tr></table>";
	sBeginning_code = sSec_0_code;

	var take1 = "";
	var sSec_1_code = "";
	sSec_1_code =  setup_code + "\n";
	sSec_1_code += "<p class='content'><span class='news'>It Takes Time & Commitment</span><ul class='content' style='margin-top: 4px; margin-bottom: 4px; margin-left: 25px'><li>As an apprentice you must be willing to commit to 2 - 5 years of on-the-job and classroom training, depending on your trade.</li><li>You must arrive for classes ON TIME.</li><li>You must arrive for work ON TIME.</li></ul><b class='content'>This shows the instructors and the contractors that you are dependable and committed.</b>\n";
	sSec_1_code += "</td></tr></table>";
	take1 = sSec_1_code;
	
	var take2 = "";
	var sSec_2_code = "";
	sSec_2_code =  setup_code + "\n";
	sSec_2_code += "<p class='content'><span class='news'>It Takes Motivation</span><ul class='content' style='margin-top: 4px; margin-bottom: 4px; margin-left: 25px'><li>You should be ready to apply yourself.</li><li>You should be able to push yourself that extra mile to get the job done.</li><li>You should be ready to learn.</li></ul><b class='content'>This shows the instructors and contractors that you are able, ready and willing to get the job done.</b>\n";
	sSec_2_code += "</td></tr></table>";
	take2 = sSec_2_code;

	var take3 = "";
	var sSec_3_code = "";
	sSec_3_code =  setup_code + "\n";
	sSec_3_code += "<p><p class='content'><span class='news'>It Takes the Willingness to Further Your Education</span><ul class='content' style='margin-top: 4px; margin-bottom: 4px; margin-left: 25px'><li>You must understand that a career in the trades requires a high school diploma or GED.</li><li>You should be ready and willing to learn and apply your math and reading skills.</li><li>You should be ready and willing to help to strengthen your math and reading skills if you feel that they may be barriers to applying for an apprenticeship program.</li></ul>\n";
	sSec_3_code += "";
	sSec_3_code += "";
	sSec_3_code += "</td></tr></table>";
	take3 = sSec_3_code;

	var take4 = "";
	var sSec_4_code = "";
	sSec_4_code =  setup_code + "\n";
	sSec_4_code += "<p class='content'><span class='news'>It Takes Long-Term Thinking</span><ul class='content' style='margin-top: 4px; margin-bottom: 4px; margin-left: 25px'><li>You should understand that securing a better future does not happen overnight.</li><li>You should understand that you are developing a CAREER that will provide long-term security for you and your family.</li></ul>\n";
	sSec_4_code += "</td></tr></table>";
	take4 = sSec_4_code;


	

