function Marquee() {
	//Properties
	this.BoxHeight = Array();
	this.BoxPosition = Array();
	this.BoxEnd = Array();
	this.Box = Array();
	this.BoxSpeed = Array();
	// Methods
	this.init = init;
	this.nudgeBox = nudgeBox;
	
	function init() {
		for (i = 0;i < this.init.arguments.length;i++) {
			element = this.init.arguments[i]; 
			this.Box[element] = document.getElementById(element);
			this.BoxHeight[element] = document.getElementById(element+"Wrapper").offsetHeight;
			this.BoxPosition[element] = this.BoxHeight[element];
			this.BoxEnd[element] = 0 - this.Box[element].offsetHeight;
			this.BoxSpeed[element] = 100;
			this.Box[element].Timer = window.setInterval('Marquee.nudgeBox(Marquee.Box["'+element+'"])',this.BoxSpeed[element]);
			window.setTimeout('document.getElementById("'+element+'").style.visibility = "visible"',300);
		}
	}
		
	function nudgeBox(box) {
		
		if (this.BoxPosition[box.id] == this.BoxEnd[box.id]) {
			this.BoxPosition[box.id] = this.BoxHeight[box.id]; 
			box.style.top = this.BoxPosition[box.id] +"px";
		}
		else { 
			box.style.top = this.BoxPosition[box.id] +"px"; 
			this.BoxPosition[box.id] = this.BoxPosition[box.id] - 1 ; 
		}
	}
	

}
var Marquee = new Marquee();
function flipIn(id) {
	document.getElementById(id+"Title").style.color = "#CCCCCC";
	document.getElementById(id+"Image").src = "landing/"+id+"Hover.jpg";
}
function flipOut(id) {
	document.getElementById(id+"Title").style.color = "#FFFFFF";
	document.getElementById(id+"Image").src = "landing/"+id+".jpg";
}
