function open_any_window(scoot_type,scoot_name) 
{
newwindow=window.open("http://ktscooters.com/"+scoot_type+"/"+scoot_name,"scootWin","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=600,height=700");
if (window.focus) {newwindow.focus()}
	return false;
}

function open_gallery(scoot_type,scoot_name) 
{
newwindow=window.open("http://ktscooters.com/"+scoot_type+"/"+scoot_name,"scootWin","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=850,height=600");
if (window.focus) {newwindow.focus()}
	return false;
}


var currentdate = 0
var core = 0

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

slide = new StringArray(5)
slide[0] = 'slides/a.jpg'
slide[1] = 'slides/b.jpg'
slide[2] = 'slides/c.jpg'
slide[3] = 'slides/d.jpg'
slide[4] = 'slides/e.jpg'

var run = 60/slide.length

function ranslide() {
  currentdate = new Date()
  core = currentdate.getSeconds()
  core = Math.floor(core/run)
    return(slide[core])
}

function animate() {
	document.animation.src = aniframes[frame].src;	// diplay current frame
	frame = (frame + 1)%10;											// update frame counter
	timeout_id = setTimeout("animate()", 1000);				// display the next frame later
}
