//Some image preloading stuff:
if (document.images) {
	s1on = new Image();
	s1on.src = "../images/session/s1_ovr.gif";
	s1off = new Image();
	s1off.src = "../images/session/s1.gif";

	s2on = new Image();
	s2on.src = "../images/session/s2_ovr.gif";
	s2off = new Image();
	s2off.src = "../images/session/s2.gif";

	s3on = new Image();
	s3on.src = "../images/session/s3_ovr.gif";
	s3off = new Image();
	s3off.src = "../images/session/s3.gif";

	s4on = new Image();
	s4on.src = "../images/session/s4_ovr.gif";
	s4off = new Image();
	s4off.src = "../images/session/s4.gif";

	s5on = new Image();
	s5on.src = "../images/session/s5_ovr.gif";
	s5off = new Image();
	s5off.src = "../images/session/s5.gif";

	s6on = new Image();
	s6on.src = "../images/session/s6_ovr.gif";
	s6off = new Image();
	s6off.src = "../images/session/s6.gif";

	s7on = new Image();
	s7on.src = "../images/session/s7_ovr.gif";
	s7off = new Image();
	s7off.src = "../images/session/s7.gif";

	s8on = new Image();
	s8on.src = "../images/session/s8_ovr.gif";
	s8off = new Image();
	s8off.src = "../images/session/s8.gif";

	sec1on = new Image();
	sec1on.src = "../images/session/session_prep_ovr.gif";
	sec1off = new Image();
	sec1off.src = "../images/session/session_prep.gif";
	
	sec2on = new Image();
	sec2on.src = "../images/session/analyze_ovr.gif";
	sec2off = new Image();
	sec2off.src = "../images/session/analyze.gif";
	
	sec3on = new Image();
	sec3on.src = "../images/session/extend_ovr.gif";
	sec3off = new Image();
	sec3off.src = "../images/session/extend.gif";
	
	sec4on = new Image();
	sec4on.src = "../images/session/piip_ovr.gif";
	sec4off = new Image();
	sec4off.src = "../images/session/piip.gif";
	
	sec5on = new Image();
	sec5on.src = "../images/session/reflect_ovr.gif";
	sec5off = new Image();
	sec5off.src = "../images/session/reflect.gif";
	
	site_mapon = new Image();
	site_mapon.src = "../images/session/sitemap_ovr.gif";
	site_mapoff = new Image();
	site_mapoff.src = "../images/session/sitemap.gif";
	
	sec2p1on = new Image();
	sec2p1on.src = "../images/session/sec2p1_ovr.gif";
	sec2p1off = new Image();
	sec2p1off.src = "../images/session/sec2p1.gif";
	
	sec3p1on = new Image();
	sec3p1on.src = "../images/session/sec3p1_ovr.gif";
	sec3p1off = new Image();
	sec3p1off.src = "../images/session/sec3p1.gif";

	sec3p2on = new Image();
	sec3p2on.src = "../images/session/sec3p2_ovr.gif";
	sec3p2off = new Image();
	sec3p2off.src = "../images/session/sec3p2.gif";


	fm_1on = new Image();
	fm_1on.src = "../images/fm/about_ovr.gif";
	fm_1off = new Image();
	fm_1off.src = "../images/fm/about.gif";
	
	fm_2on = new Image();
	fm_2on.src = "../images/fm/web_guide_ovr.gif";
	fm_2off = new Image();
	fm_2off.src = "../images/fm/web_guide.gif";

	fm_3on = new Image();
	fm_3on.src = "../images/fm/assignments_ovr.gif";
	fm_3off = new Image();
	fm_3off.src = "../images/fm/assignments.gif";

	fm_4on = new Image();
	fm_4on.src = "../images/fm/tech_notes_ovr.gif";
	fm_4off = new Image();
	fm_4off.src = "../images/fm/tech_notes.gif";

	fm_5on = new Image();
	fm_5on.src = "../images/fm/web_credits_ovr.gif";
	fm_5off = new Image();
	fm_5off.src = "../images/fm/web_credits.gif";

	fm_6on = new Image();
	fm_6on.src = "../images/fm/summaries_ovr.gif";
	fm_6off = new Image();
	fm_6off.src = "../images/fm/summaries.gif";

	fm_7on = new Image();
	fm_7on.src = "../images/fm/whos_who_ovr.gif";
	fm_7off = new Image();
	fm_7off.src = "../images/fm/whos_who.gif";

	fm_8on = new Image();
	fm_8on.src = "../images/fm/video_credits_ovr.gif";
	fm_8off = new Image();
	fm_8off.src = "../images/fm/video_credits.gif";

	fm_9on = new Image();
	fm_9on.src = "../images/fm/fac_tips_ovr.gif";
	fm_9off = new Image();
	fm_9off.src = "../images/fm/fac_tips.gif";

	fm_10on = new Image();
	fm_10on.src = "../images/fm/resources_ovr.gif";
	fm_10off = new Image();
	fm_10off.src = "../images/fm/resources.gif";

	fm_11on = new Image();
	fm_11on.src = "../images/fm/copyright_ovr.gif";
	fm_11off = new Image();
	fm_11off.src = "../images/fm/copyright.gif";

}

function imgOn(imgName) {
	if (document.images) {
     		 onImage = eval(imgName + "on.src");
     		 document[imgName].src = onImage;
    	}
 }

function imgOff(imgName) {
   	if (document.images) {
    		  offImage = eval(imgName + "off.src");
     		  document[imgName].src = offImage;
   	 }
 }

function popWin(loc,w,h,format) {
	if (!w || w == 0) {
		w = 800;
	} 
	if (!h || h == 0) {
		h = 600;
	} 
	
	var stat = 'no';
	var reSize = 'yes';
	var scroll = 'no';
	var tools = 'no';
	var locvar = 'no';
	if (format == 'PDF') {
		scrolll = 'yes';
	} 
	if (format == 'JPEG' || format == 'GIF') {
		w = w + 68;
		h = h + 84;
	}
	pwin = window.open(loc,'pop','width='+w+',height='+h+',toolbar='+tools+',status='+stat+',scrollbars='+scroll+',resizable='+reSize+',location='+locvar+',menubar=no,directories=no');
	pwin.focus();

}
