//====================setup

function setup() {
initRollovers();
}

//====================/setup

//------ Daniel Nolan's rollover
function initRollovers() {

	if (!document.getElementById) return
	
	var aPreLoad = new Array();
	var sTempSrc;
	var aImages = document.getElementsByTagName('img');

	for (var i = 0; i < aImages.length; i++) {		
		if (aImages[i].className == 'img_on') {
			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_on'+ftype);

			aImages[i].setAttribute('hsrc', hsrc);
			
			aPreLoad[i] = new Image();
			aPreLoad[i].src = hsrc;
			
			aImages[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}	
			
			aImages[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_o'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}

function subopen(pageURL){
window.open(pageURL,"subwindow","width=300,height=200,resuzable=yes,scrollbars=yes")
}
function new_win(){
window.open("where.html","","width=350,height=300");
}
function changeimage(target,image) {
  document.getElementById(target).src = image;
}
function changeimage(target,image) {
  document.getElementById(target).src = image;
}
function setblink(){
document.all.blink.style.visibility = "visible";
setTimeout("setunblink()",700);
}
function setunblink(){
document.all.blink.style.visibility ="hidden";
setTimeout("setblink()",300);
}

function setupTextareaDes() {
    var textareas = document.getElementsByTagName("textarea");
    for (i = 0; i < textareas.length; i++) {
        if (textareas[i].className != "nodes") {
            textareas[i].onfocus = function (event) { return TextareaDes(this); };
        }
    }
    return;
}
function TextareaDes(from) {
    from.className = "nodes";
    from.value = "";
    from.onfocus = function (event) {};
    return;
}

