<!--
//-- Script written by Kris Hansen kristi@kmhcreative.com --//

var r = 0;
ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;

//-- define layers for Netscape or IE4+/NS6pr --//

function ticker_init() {
	if (ns4) {vtick = document['vtickDiv'+r];
		  vtick.ypos = vtick.top}
	else {if (ie4) {vtick=document.all('vtickDiv'+r)} else {vtick = document.getElementById('vtickDiv'+r)}
	      vtick.ypos = parseInt(vtick.style.top)}
}



//-- define vertical ticker sliding motion --//
function vslider() {

//-- keep sliding as long as the top side yposition is less than or equal to 400px --//
	if (vtick.ypos <= 400) {

//-- slide bottom to top in increments of 5px --//
		vtick.ypos -= 4

//-- reset the yposition to the new co-ordinates --//
	if (ns4) {vtick.top = vtick.ypos}
	else {vtick.style.top = vtick.ypos}

//-- checks for top position of item and pauses vertical ticker --//
if (vtick.ypos == 234) //-- move item out of view --//

{setTimeout("vslider()",5000)} //-- sets pause length in milliseconds --//

//-- if item hasn't reached top keep scrolling and wait 30ms before checking again --//
else {setTimeout("vslider()",30)}  

//-- check to see if last image has scrolled off entirely and reset if it has --//

if (vtick.ypos < 132) {vrestart();}
	}
}



//-- Reset for Vertical Ticker --//
function vrestart() {
r=r+1
//-- reposition current ticker at starting coordinates again --//
	vtick.ypos = 338
	if (ns4) {vtick.top = vtick.ypos}
	else {vtick.style.top = vtick.ypos}
//-- if the last item has run through, reset to re-display the first item again --//
	if (r==4) {r=0}
	ticker_init(r);
}



//-->
