<!--
if (document.images){
	var personWaiting = new Image(96,150);
	personWaiting.src = "images/personWaiting.gif";
	var personNotWaiting = new Image(96,150);
	personNotWaiting.src = "images/personNotWaiting.gif";
}

var homeText,screenBox,newsBox,screenClip,screenContent,contentName,name,screenURL;
function windowOnload() {
	//newsBoxes
	with (homeText = cbeGetElementById('homeText').cbe) {
		height(175);
		width(260);
		moveTo(22,105);
		show();
	}
	with (screenBox = cbeGetElementById('screenBox').cbe) {
		height(247);
		width(337);
		moveTo(370,-247);
		show();
	}
	with (newsBox = cbeGetElementById('newsBox').cbe) {
		height(150);
		width(430);
		moveTo(-260,361);
		show();
	}
	with (screenClip = cbeGetElementById('screenClip').cbe) {
		height(215);
		width(301);
		moveTo(387,111);
		show();
		clip(0,301,215,0);
	}
	with (screenContent = cbeGetElementById('screenContent').cbe) {
		height(247);
		width(337);
		moveTo(0,215);
		show();
	}
	init();
}
function init(){
	screenContent.sequence = new Array(
		"slideTo(0, 0, 1000, 'trevorOff();')",
		"stopSequence()"
	);
	newsBox.sequence = new Array(
		"slideTo(175, 361, 1000)",
		"stopSequence()"
	);
	screenBox.sequence = new Array(
		"slideTo(370, 95, 2000, 'screenContent.startSequence();')",
		"stopSequence()"
	);
	newsBox.startSequence();
	screenBox.startSequence();
	
}
function trevorOn(){
	document.images["person"].src = personNotWaiting.src
}
function trevorOff(){
	document.images["person"].src = personWaiting.src
}
function contentDrop(contentName){
	if (count == contentName){
		return;
	}
	else {
		name = contentName;
		trevorOn();
		screenContent.sequence = new Array(
			"slideTo(0, 247, 1000, 'contentRise(name);')",
			"stopSequence()"
		);
		screenContent.startSequence();
		count = contentName;
	}
}
function contentRise(name){
	document.images["screen"].src = "images/screen" + name + ".gif";
	if (screenURL = document.getElementById('screenURL')){
		screenURL.href = "images/screen" + name + "_large.gif";
	}
	screenContent.sequence = new Array(
		"slideTo(0, 0, 1000, 'trevorOff();')",
		"stopSequence()"
	);
	screenContent.startSequence();
}
//-->

