function validate_search()
	{
	if (document.searchForm.search.value!="") document.searchForm.submit();
	}
	
function openInform()
	{
	var inform=window.open("http://www.irca.org/inform/index.html", "inform");
	inform.focus();
	}
	
function imgOff(imgName, nest) 
	{
	if (document.images) 
		{ 
		if (document.layers && nest != null) 
			document.layers[nest].document[imgName].src = eval(imgName + "_off.src");
		else
			document[imgName].src = eval(imgName + "_off.src");      
		}
	}

function imgOn(imgName, nest) 
	{
	if (document.images) 
		{ 
		if (document.layers && nest != null) 
			document.layers[nest].document[imgName].src = eval(imgName + "_on.src");
		else
			document[imgName].src = eval(imgName + "_on.src");      
		}
	}

// Preloading global, top and footer navigation

topnav_home_on = new Image();          
topnav_home_on.src = "../images/new/nav_top/home_on.gif";
topnav_home_off = new Image();          
topnav_home_off.src = "../images/new/nav_top/home_off.gif";

topnav_about_on = new Image();          
topnav_about_on.src = "../images/new/nav_top/about_on.gif";
topnav_about_off = new Image();          
topnav_about_off.src = "../images/new/nav_top/about_off.gif";

	topnav_about_1_on = new Image();          
	topnav_about_1_on.src = "../images/new/nav_top/about_1_on.gif";
	topnav_about_1_off = new Image();          
	topnav_about_1_off.src = "../images/new/nav_top/about_1_off.gif";
	
	topnav_about_2_on = new Image();          
	topnav_about_2_on.src = "../images/new/nav_top/about_2_on.gif";
	topnav_about_2_off = new Image();          
	topnav_about_2_off.src = "../images/new/nav_top/about_2_off.gif";
	
topnav_news_on = new Image();          
topnav_news_on.src = "../images/new/nav_top/news_on.gif";
topnav_news_off = new Image();          
topnav_news_off.src = "../images/new/nav_top/news_off.gif";

topnav_inform_on = new Image();          
topnav_inform_on.src = "../images/new/nav_top/inform_on.gif";
topnav_inform_off = new Image();          
topnav_inform_off.src = "../images/new/nav_top/inform_off.gif";

topnav_links_on = new Image();          
topnav_links_on.src = "../images/new/nav_top/links_on.gif";
topnav_links_off = new Image();          
topnav_links_off.src = "../images/new/nav_top/links_off.gif";

topnav_contact_on = new Image();          
topnav_contact_on.src = "../images/new/nav_top/contact_on.gif";
topnav_contact_off = new Image();          
topnav_contact_off.src = "../images/new/nav_top/contact_off.gif";

	topnav_contact_1_on = new Image();          
	topnav_contact_1_on.src = "../images/new/nav_top/contact_1_on.gif";
	topnav_contact_1_off = new Image();          
	topnav_contact_1_off.src = "../images/new/nav_top/contact_1_off.gif";
	
	
topnav_language_on = new Image();          
topnav_language_on.src = "../images/new/nav_top/language_on.gif";
topnav_language_off = new Image();          
topnav_language_off.src = "../images/new/nav_top/language_off.gif";

	topnav_language_1_on = new Image();          
	topnav_language_1_on.src = "../images/new/nav_top/language_1_on.gif";
	topnav_language_1_off = new Image();          
	topnav_language_1_off.src = "../images/new/nav_top/language_1_off.gif";
	
	topnav_language_2_on = new Image();          
	topnav_language_2_on.src = "../images/new/nav_top/language_2_on.gif";
	topnav_language_2_off = new Image();          
	topnav_language_2_off.src = "../images/new/nav_top/language_2_off.gif";
	
	topnav_language_3_on = new Image();          
	topnav_language_3_on.src = "../images/new/nav_top/language_3_on.gif";
	topnav_language_3_off = new Image();          
	topnav_language_3_off.src = "../images/new/nav_top/language_3_off.gif";

global_glossary_on = new Image();          
global_glossary_on.src = "../images/new/nav_global/glossary_on.gif";
global_glossary_off = new Image();          
global_glossary_off.src = "../images/new/nav_global/glossary_off.gif";

global_sitemap_on = new Image();          
global_sitemap_on.src = "../images/new/nav_global/sitemap_on.gif";
global_sitemap_off = new Image();          
global_sitemap_off.src = "../images/new/nav_global/sitemap_off.gif";

global_go_on = new Image();          
global_go_on.src = "../images/new/nav_global/go_on.gif";
global_go_off = new Image();          
global_go_off.src = "../images/new/nav_global/go_off.gif";

footer_glossary_on = new Image();          
footer_glossary_on.src = "../images/new/nav_footer/glossary_on.gif";
footer_glossary_off = new Image();          
footer_glossary_off.src = "../images/new/nav_footer/glossary_off.gif";

footer_privacy_on = new Image();          
footer_privacy_on.src = "../images/new/nav_footer/privacy_on.gif";
footer_privacy_off = new Image();          
footer_privacy_off.src = "../images/new/nav_footer/privacy_off.gif";

footer_sitemap_on = new Image();          
footer_sitemap_on.src = "../images/new/nav_footer/sitemap_on.gif";
footer_sitemap_off = new Image();          
footer_sitemap_off.src = "../images/new/nav_footer/sitemap_off.gif";

left_auditorcert_0_on = new Image();
left_auditorcert_0_on.src = "../images/new/nav_left/auditorcert_0_on.gif";
left_auditorcert_0_off = new Image();
left_auditorcert_0_off.src = "../images/new/nav_left/auditorcert_0_off.gif";

left_auditortrain_0_on = new Image();
left_auditortrain_0_on.src = "../images/new/nav_left/auditortrain_0_on.gif";
left_auditortrain_0_off = new Image();
left_auditortrain_0_off.src = "../images/new/nav_left/auditortrain_0_off.gif";

left_employers_0_on = new Image();
left_employers_0_on.src = "../images/new/nav_left/employers_0_on.gif";
left_employers_0_off = new Image();
left_employers_0_off.src = "../images/new/nav_left/employers_0_off.gif";

left_certification_0_on = new Image();
left_certification_0_on.src = "../images/new/nav_left/certification_0_on.gif";
left_certification_0_off = new Image();
left_certification_0_off.src = "../images/new/nav_left/certification_0_off.gif";
	

	
// Preloading left navigation
function preloadLeftNav(sectionName, nbSubSections)
	{
	var nbSubSections;
	switch(sectionName)
		{
		case "about": nbSubSections=2; break;
		case "inform": nbSubSections=4; break;
		case "contact": nbSubSections=1; break;
		case "auditorcert": nbSubSections=8; break;
		case "auditortrain": nbSubSections=2; break;
		case "employers": nbSubSections=4; break;
		case "certification": nbSubSections=11; break;
		default: nbSubSections=0;
		}
	eval('left_'+sectionName+'_0_on = new Image()');
	eval('left_'+sectionName+'_0_on.src = "../images/new/nav_left/'+sectionName+'_0_sel_on.gif"');
	eval('left_'+sectionName+'_0_off = new Image()');
	eval('left_'+sectionName+'_0_off.src = "../images/new/nav_left/'+sectionName+'_0_sel_off.gif"');
	for (var i=1; i<=nbSubSections; i++)
		{
		eval('left_'+sectionName+'_'+i+'_on = new Image()');
		eval('left_'+sectionName+'_'+i+'_on.src = "../images/new/nav_left/'+sectionName+'_'+i+'_on.gif"');
		eval('left_'+sectionName+'_'+i+'_off = new Image()');
		eval('left_'+sectionName+'_'+i+'_off.src = "../images/new/nav_left/'+sectionName+'_'+i+'_off.gif"');
		}
	}
