/************************/
/* REEL                 */
/************************/

var timer = null;
var container = null;
var reelwidth = 1447; //2413;
var reeloverlap = 24;
var windowwidth = 800;
var speed = -1;
var reell = null;
var reelr = null;
function initReel(){
	reell = document.getElementById("reel");
	container = document.getElementById("window");
	if(reell && container){			
		container.style.position = "relative";
		container.style.overflow = "hidden";
		container.style.zIndex  = 1;			
		reelr = reell.cloneNode(true);
		reelr.id = "reel2";
		container.appendChild(reelr);
		
		setupReel(reell,0);
		setupReel(reelr,reelwidth - reeloverlap);
		
		timer = setInterval("slide()",30);
	}
}
function setupReel(reel,position){
	reel.position = position;
	reel.style.position = "absolute";
	reel.style.zIndex  = 1;
	reel.style.left = position + "px";
	reel.style.top = 0 + "px";		
}
function slide(){
	moveReel(reell);
	moveReel(reelr);
}
function moveReel(reel){
	reel.position += speed;
	reel.style.left = reel.position + "px";
	if(reel.position < (-1 * reelwidth))
		reel.position += 2 * (reelwidth-reeloverlap);
}

/************************/
/* MENU                 */
/************************/

startList = function(id) {
if (document.all&&document.getElementById) {			
navRoot = document.getElementById(id);
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
	node.onmouseover=function() {
		this.className+=" over";
  }
  node.onmouseout=function() {
	  this.className=this.className.replace(" over", "");
  }
   }
  }
 }
}

/************************/
/* PEOPLE               */
/************************/

var c_person = null;
show_person = function(idx){
	if (document.getElementById) {	
	var person = document.getElementById("person-"+idx);
	if(person){
		if(c_person){
			c_person.style.display = "none";
		}
		person.style.display = "block";
		c_person = person;
	}
	}
}


function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+''
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
