function Is(){
	var agent = navigator.userAgent.toLowerCase();
	this.major = parseInt(navigator.appVersion);
	this.minor = parseFloat(navigator.appVersion);
	this.ns = ((agent.indexOf('mozilla') != -1) && ((agent.indexOf('spoofer') == -1) && (agent.indexOf('compatible') == -1)));
	this.ns2 = (this.ns && (this.major == 2));
	this.ns3 = (this.ns && (this.major == 3));
	this.ns4 = (this.ns && (this.major >= 4));
	this.ie = (agent.indexOf('msie') != -1);
	this.ie3 = (this.ie && (this.major == 2));
	this.ie4 = (this.ie && (this.major >= 4));
	this.op = (agent.indexOf('opera') != -1);
}

var is = new Is();

if (is.ns4){
	doc = "document";
	sty = "";
	htm = ".document";
} else if(is.ie4) {
	doc = "document.all";
	sty = ".style";
	htm = "";
} 

// mouse-over stuff
var img_ld=0;

function ld_imgs() {
	if (document.images) {  
		iobj = new MakeArray(16);
		
		iobj[ 0].src = "images/nav_search.gif";
		iobj[ 1].src = "images/nav_search_h.gif";
		iobj[ 2].src = "images/nav_news.gif";
		iobj[ 3].src = "images/nav_news_h.gif";
		iobj[ 4].src = "images/nav_contact.gif";
		iobj[ 5].src = "images/nav_contact_h.gif";
		iobj[ 6].src = "images/nav_company.gif";
		iobj[ 7].src = "images/nav_company_h.gif";
		iobj[ 8].src = "images/nav_employment.gif";
		iobj[ 9].src = "images/nav_employment_h.gif";
		iobj[10].src = "images/nav_onlineclasses.gif";
		iobj[11].src = "images/nav_onlineclasses_h.gif";
		iobj[12].src = "images/nav_classroom.gif";
		iobj[13].src = "images/nav_classroom_h.gif";
		iobj[14].src = "images/nav_custom.gif";
		iobj[15].src = "images/nav_custom_h.gif";
		
		img_ld=1;
		}
		layerSetup();
	}
	
function MakeArray(n) {
	this.length = n;
	for (var i = 0; i< n; i++) this[i] = new Image();
	return this;
}
	
function chng_img(layer,imgName,imgNum) {
	if (document.layers && layer!=null && img_ld) { 
		eval('document.'+layer+'.document.images["'+imgName+'"].src = iobj[imgNum].src');
	} else {
		document.images[imgName].src = iobj[imgNum].src;
	}	
}

function layerSetup(){
	knowledgeLyr = eval(doc + '["knowledge"]' + sty);
	knowledgeLyr.top = 160;
	knowledgeLyr.left = 0;
	
	textLyr = eval(doc + '["textLayer"]' + sty);
	textLyr.top = 180;
	//textLyr.left = 402; // winW-391
    textLyr.left = 305; // winW-391
	
	arraySetup();
}

function arraySetup() {
	textArray = new Array()
	textArray[0] = "<FONT STYLE=\"font: bold 10px Verdana, Geneva, Arial, Helvetica, San-Serif;\">\nInstruction Set is a leading Education Solutions Provider(E*SP&#153;),<br>offering a comprehensive suite of training products and services,<br>including web-based and instructor-led training, course<br>development, education consulting services and complete<br>outsourced solutions.<BR><BR>At Instruction Set, IT training starts with listening.  It's  finding the<br>best way to get knowledge not just between the walls of a<br>company, but between the ears of the people who work there.\n</FONT>";
	textArray[1] = "<FONT STYLE=\"font: bold 10px Verdana, Geneva, Arial, Helvetica, San-Serif;\">\nAnytime, anywhere, Technical and Desktop Training. It's that<br>simple. Whether you are an individual or a Corporation, Instruction<br>Set has online training solutions that will get you up to speed<br>quickly.<br><br>Participants have access to an extensive array of off-the-shelf<br>elearning courses, but the possibilities don't stop there. Need<br>customized content? Want your branding on the courses? Need to<br>serve it up through your own Learning Management System?<br>Look no further.\n</FONT>";
	textArray[2] = "<FONT STYLE=\"font: bold 10px Verdana, Geneva, Arial, Helvetica, San-Serif;\">\nTechnical training, covering today's leading edge technologies,<br>available at your location. Instruction Set has over 450 days of off-<br>the-shelf Instructor-led Training in the hottest topics, including<br>XML, Java, Linux, database technologies, and Windows<br>programming.\n</FONT>";
	textArray[3] = "<FONT STYLE=\"font: bold 10px Verdana, Geneva, Arial, Helvetica, San-Serif;\">\nInstruction Set offers a full range of services to complete our<br>integrated, end-to-end solution.  Education consulting services<br>include services such as training needs assessment, skills<br>assessment, competency modeling, curriculum design, and custom<br>content development.<br><br>As the final part of its 'one-stop shop' model, Instruction Set is<br>able to completely outsource the management of training<br>solutions, including providing the hosting and technology support<br>for Web-based products.\n</FONT>";
	layerWrite("textLayer",null,0);
}

function layerWrite(id,nestref,textNum) {
	if (is.ns4) {
		var lyr = (nestref)? eval('document.'+nestref+'.document.'+id+'.document') : document.layers[id].document;
		lyr.open();
		lyr.write(textArray[textNum]);
		lyr.close();
	} else if (is.ie4) { 
		document.all[id].innerHTML = textArray[textNum];
	}
}

function pageReload(){
	textLyr.left = 305; //winW-391
}