<!--
var topPosition = 20;
var origYPos;
var scrollInterval;
var timelineIndex;
var	animTimer;
var timeline;


if (document.images) {  // navigation image preload
}

function animate() {
	if (timelineIndex < timeline.length) {
		animTimer	= setTimeout(timeline[timelineIndex+2]+";animate();", timeline[timelineIndex]);
		if (timeline[timelineIndex+1] == 0)
			timelineIndex += 3;
		else
			timeline[timelineIndex+1]--;
	}
}

function scrollFeats() {
  if (is_nav4up) {
    if (features.y <= origYPos && window.pageYOffset <= origYPos) return;
	  var y_amount = parseInt((window.pageYOffset + topPosition - features.getYPosition())*.1);
  }
  else {
    if (features.y <= origYPos && document.body.scrollTop <= origYPos) return;
	  var y_amount = parseInt((document.body.scrollTop + topPosition - features.getYPosition())*.1);
  }
	if (isNaN(y_amount)) y_amount = 0;
	features.moveBy(null, y_amount);
}

function moveFeats() {
	features.moveTo(null, document.body.scrollTop + topPosition);
}

function checkForm(aForm) {
  if (aForm.fname.value.length < 1) {
    alert("First name required!"); return false;
  }
  if (aForm.lname.value.length < 1) {
    alert("Last name required!"); return false;
  }
  if (aForm.email.value.length < 1) {
    alert("E-mail address required!"); return false;
  }

  if (aForm.elements[8].checked)  // subscribe?
    aForm.elements[4].value = "subscribe i "+aForm.email.value;
  else if (aForm.elements[9].checked)  // unsubscribe?
    aForm.elements[4].value = "unsubscribe i "+aForm.email.value
  return true;
}

function openWindow(theURL,winName,features) {
  popupWin = window.open(theURL,winName,features);
}
//-->
