var descriptorText	=	new Array("Information about the NJATC, instructor training, college credits, certifications, NTI, membership pages, curriculum errata, discussion forums, bulletins, webinars, news and events, locating JATC training centers, and various other valuable resources.",									"Full length NJATC training courses for Inside IBEW members and NECA personnel.  The training includes blended learning for Inside Apprentices along with Continuing Electrical Training (CET) for members not in the apprenticeship (Journeyman Wiremen and CW/CE members).       ", 									"On-line NJATC LMS (Learning Management System) for the IBEW Outside Apprenticeship.  These courses are blended with the face-to-face classroom and lab component. ", 									"Home page of the NJATCU condensed courses from industry manufacturers.  Courses hosted by BlueVolt.");var thumbNailRoot	=	"./images/thumbnail_";var thumbNailImages	=	new Array("NJATC_Home", "IBL", "OBL", "NJATCU");/*NJATC Home PageInformation about the NJATC, instructor training, college credits, certifications, NTI, membership pages, curriculum errata, discussion forums, bulletins, webinars, news and events, locating JATC training centers, and various other valuable resources.  Inside Blended LearningFull length NJATC training courses for Inside IBEW members and NECA personnel.  The training includes blended learning for Inside Apprentices along with Continuing Electrical Training (CET) for members not in the apprenticeship (Journeyman Wiremen and CW/CE members).         Outside Blended LearningOn-line NJATC LMS (Learning Management System) for the IBEW Outside Apprenticeship.  These courses are blended with the face-to-face classroom and lab component.   NJATCUHome page of the NJATCU condensed courses from industry manufacturers.  Courses hosted by BlueVolt.*/function updatePageThumbNailByOffset(iOffset, thumbNailImg, descriptionDiv){		var thumbNail			=	document.getElementById(thumbNailImg);	var thumbNailDesc		=	document.getElementById(descriptionDiv);		thumbNail.src			=	(thumbNailRoot + thumbNailImages[iOffset] + '.jpg');	thumbNailDesc.innerHTML	=	('<p>' + descriptorText[iOffset] + '</p>');}function fetchDescriptionTextByOffset(iOffset){	return descritorText[iOffset];}function toggleButtonHoverState(buttonObject, rootClass){	var currentClass 			= buttonObject.className.split(" ");	var currentButtonState		= '';	var fullClassName			= '';	var iClassNameIndex			= 0;		var buttonParent = buttonObject.parentNode;	var buttons		 = buttonParent.getElementsByTagName('li');			resetAllButtonObjects(buttons, rootClass);	if (currentClass.length > 0)	{		//Item Index 0 Will Indicate The Button State		//Anything else is irrelevant		currentButtonState		= currentClass[0];		for ( iClassNameIndex = 1; iClassNameIndex < currentClass.length; iClassNameIndex++)		{			fullClassName += currentClass[iClassNameIndex];	//Save any other custom CSS classes.		}	}	else	{		//We only have the button class.		currentButtonState 	= currentClass[0];		fullClassName		= '';	}		if (currentButtonState.indexOf(rootClass + 'Hover') >= 0)	{		currentButtonState	=	rootClass;	}	else if (currentButtonState.indexOf(rootClass + 'Active') < 0)	{		currentButtonState	=	rootClass + 'Hover';	}	buttonObject.className	=	currentButtonState + ' ' + fullClassName;}function handleButtonOnclick(buttonObject, rootClass, urlString){	var buttonParent = buttonObject.parentNode;	var buttons		 = buttonParent.getElementsByTagName('li');			resetAllButtonObjects(buttons, rootClass);		buttonObject.className = rootClass + 'Active' + ' ' + fetchAllClassNamesFrom(buttonObject.className.split(" "), 1);			if (urlString.length > 0)	{		window.location = urlString;	}}function resetAllButtonObjects(buttonObjects, rootClass){	var 	i 				= 0;	var 	classNames		= null;	var		arryClassName	= '';		for ( i = 0; i < buttonObjects.length; i++)	{		classNames = buttonObjects[i].className.split(" ");				buttonObjects[i].className = rootClass + ' ' + fetchAllClassNamesFrom(classNames, 1);	}	}function fetchAllClassNamesFrom(classNames, iOffset){	var i				=	iOffset;	var retString		=	'';		for (; i < classNames.length; i++)	{		retString += classNames[i];	}	 return retString;}function setHeaderBackground(imgObj, logoObj){	var headerBackground	=	document.getElementById(imgObj);	var logoObject			=	document.getElementById(logoObj);		//window.location = "./fetch_header_image.asp?imagesPath=header_images";	$.ajax(	{					url: "./fetch_header_image.asp?imagesPath=header_images",			success: function(data)					 {						setHeaderCallback(data,headerBackground, logoObject);					 }	});}function  setHeaderCallback(data, headerObj, logoObj){		var		retData		=	data.split(",");	var		currClass	=	logoObj.className;		//var 	newimages	=	[];    //	//newimages[0]		= new Image();    //newimages[0].src 	= $.trim(retData[0]);	//alert(data);	currClass = currClass.substring(0, currClass.length-1);	logoObj.style.display='none';	headerObj.src 		=  $.trim(retData[0]);	logoObj.className	=  currClass + retData[1];	setTimeout("document.getElementById('"+logoObj.id+"').style.display = 'block';", 250);}
