// jsFunctions.js
//
// Javascript functions and actions neccessary
// for some page functionality and design tweaking.
// NOTE: This requires the jQuery libraries

// execute these commands on page load
$(document).ready(function() {
	
	// fix "last child" definitions in older browsers
	fixChildren();
	
	// call thickbox
	thickbox();
	
});

function fixChildren() {

	$("#body li:last-child").addClass("last-child");
	$("#body dd:last-child").addClass("last-child");
	$("#masthead li:last-child").addClass("last-child");
	$("#footer li:last-child").addClass("last-child");

}

// activate thickbox in our own custom way
function thickbox() {
	
	/* code from actual thickbox source */
	tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
	imgLoader = new Image();// preload image
	imgLoader.src = tb_pathToImage;

}

// macromedia function?
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

