/* call these events when the page loads */
addLoadEvent(blurLinks);



function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	}
	else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}



/* remove all focus lines from links when clicked */
function blurLinks() {
	
	var links = $$('a');
	for (i=0;i<links.length;i++) {
		links[i].onfocus = function() {
			this.blur();
		}
	}
}



function swap(id, img) {
	$(id).src = img;
}


function openWin(URL, strTitle, intWidth, intHeight, intScrollable) {
	newWindow = window.open(URL, strTitle, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+intScrollable+",resizable=1,width="+intWidth+",height="+intHeight+",left=200,top=200")
	newWindow.focus();
}


function getNewLocation(value) {
	
	var loc = $$('#locationResults div');
	
	for (i=0;i<loc.length;i++) {
		loc[i].style.display='none';
	}
	
	//$(value).style.display='block';
	Effect.Appear(value, { duration:.5 });

	
}


function checkLocation() {
	
	var val = $('selLoc').value;
	$(val).style.display='block';
	


}

