// function :: Open Rippledinck Recommends window

function Start() {
	ripple = window.open("http://www.juniortheatre.com/shows/ripple.htm", "Rippledinck", "width=320, height=240, screenx=20, screeny=20, toolbar=0, location=0, directories=0, menubar=0, status=0, scrollbars=0, resizable=0");
	setTimeout("ripple.close();", 10000);
}

function Rippledinck() {
	timer = setTimeout("Start('http://www.juniortheatre.com/shows/ripple.htm', 300, 220)", 0);
}

//////////////////////////////////////////////////////

		

// function :: Open Show Schedule window

function Schedule() {
	window.open("http://www.juniortheatre.com/shows/2005-2006/58schedule.htm", "schedule", "width=760, height=284, screenx=20, screeny=20, toolbar=0, location=0, directories=0, menubar=0, status=0, scrollbars=0, resizable=0");
}

// function :: Open Seating Chart window

function Seats() {
	window.open("http://www.juniortheatre.com/shows/seating.html", "seats", "width=440, height=324, left=20, top=20, toolbar=0, location=0, directories=0, menubar=0, status=0, scrollbars=0, resizable=0");
}

// function :: Open Gift Certificates window

function GiftCerts() {
	window.open("http://www.juniortheatre.com/shows/giftcert.html", "giftcerts", "width=634, height=340, left=20, top=20, toolbar=0, location=0, directories=0, menubar=0, status=0, scrollbars=1, resizable=1");
}

//////////////////////////////////////////////////////



// function :: Floater

var floater;
var theTop = 12;
var old = theTop;

function init() {
	floater = new getObj('floater');
	movefloater();
}

function getObj(name) {
  if (document.getElementById) {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  } else if (document.all) {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  } else if (document.layers) {
	this.obj = getObjNN4(document,name);
	this.style = this.obj;
  }
}

function movefloater() {
	if (window.innerHeight) {	
		pos = window.pageYOffset
	} else if (document.documentElement && document.documentElement.scrollTop) {
		pos = document.documentElement.scrollTop
	} else if (document.body) {
		pos = document.body.scrollTop
	}

	if (pos < theTop) pos = theTop;
	else pos += 12;

	if (pos != old) {
		pos = (.1 *(pos-old))+old;
		floater.style.top = pos + "px";
	}
	
	old = pos;
	temp = setTimeout( 'movefloater()', 10 );
}

/* required :: <body onload="javascript:init();">
   
   <div id="floater">text or graphics here</div>  */

//////////////////////////////////////////////////////



