/*

Add site-specific scripts here. The following JelCMS functions are available:

function swapImg(imgName, preloadedImg)
	imgName = a named image
	preloadedImg = an Image object
	
	Changes the src atrribute of the named image to that of the preloadedImg src

function preload(imgSrc)
	imgSrc = url to an image
	
	returns an Image object to trigger a preload

function delayedPreload(imgName, imgSrc)
	imgName = name of the image object to create
	imgSrc = url to the image to preload
	
	After page loads, preloads all images that this function was called to preload
	and creates an Image object of imgName for use elsewhere in the page.

function addOnLoad(fn)
	fn = a function to execute upon page load
	
	Allows you to queue up functions to execute once the page has loaded
*/


function dropdownGo(selBoxObj) {
	selectedOption = selBoxObj.options[selBoxObj.selectedIndex];
	url = selectedOption.value;
	target = "_top";
	if (selectedOption.getAttribute("target")) {
		target = selectedOption.getAttribute("target");
	}

	if (url.length > 0) {
		if (target != "_top") {
			window.open(url, target);
		} else {
			document.location = url;
		}
	}
}


