function roll(id,color){
	document.getElementById(id).style.backgroundColor='#'+color;
}
function loadVideo(id){
	video.location.href=id;
}
function loadFeat(id){
	features.location.href=id;
}

function open_feature(stURL) {

	w = screen.width-60;
	h = screen.height-120;
	
	proj = 'loureed_feature';

	arg = 'width='+w+',height='+h+',left=24,top=22,scrollbars=no';
	
	popup = (document.layers) ? window.open(stURL, proj, arg) : window.open(stURL, proj, arg);
	popup.focus();
	
}

var win = null;
function popWin(mypage,w,h){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,status=no, toolbar=no'
win = window.open(mypage,settings)
if(win.window.focus){win.window.focus();}
}
function checkin(id){
	if(document.getElementById(id).style.backgroundColor='#000000'){
		roll(id,'801919');
	}else{
		roll(id,'ff6666');
	}
}
function checkout(id){
	if(document.getElementById(id).style.backgroundColor='#801919'){
		roll(id,'000000');
	}else{
		roll(id,'ff6666');
	}
}

function selectSpeed(id){
	if(id){
		document.getElementById('videoformHi').style.visibility='hidden';
		document.getElementById('videoformLo').style.visibility='visible';
		roll('lo','ff6666');
		roll('hi','000000');
	}else{
		document.getElementById('videoformLo').style.visibility='hidden';
		document.getElementById('videoformHi').style.visibility='visible';
		roll('hi','ff6666');
		roll('lo','000000');
	}
}
function unblur() {
	this.blur();
}
window.onload = function() {
	links = document.getElementsByTagName("a");
	for(i=0; i<links.length; i++) {
		links[i].onfocus = unblur
	}
	boxes = document.getElementsByTagName("input");
	for(i=0; i<boxes.length; i++) {
		boxes[i].onfocus = unblur
	}
}

/*******************************************************************
 * soopa-rollovers.js
 * 7/28/2001
 * www.youngpup.net
 *
 * easiest rollovers on earth, baby!
 * see www.youngpup.net for documentation.
 *******************************************************************/

function soopaSetup() {
	var img, sh, sn, sd
	for (var i = 0; (img = document.images[i]); i++) {
		if (img.getAttribute) {

			sn = img.getAttribute("src");
			sh = img.getAttribute("hsrc");
			sd = img.getAttribute("dsrc");

			if (sn != "" && sn != null) {
				img.n = new Image();
				img.n.src = img.src;
			
				if (sh != "" && sh != null) {
					img.h = new Image();
					img.h.src = sh;
					img.onmouseover = soopaSwapOn
					img.onmouseout  = soopaSwapOff
				}

				if (sd != "" && sd != null) {
					img.d = new Image();
					img.d.src = sd;
					img.onmousedown = soopaSwapDown
				}
			}
		}
	}
}

function soopaSwapOn() {
	this.src = this.h.src;
}

function soopaSwapOff() {
	this.src  = this.n.src;
}

function soopaSwapDown() {
	this.src  = this.d.src;
	this.temp = typeof(document.onmouseup) != 'undefined' && typeof(document.onmouseup) != 'unknown' ? document.onmouseup : "";
	soopaSwapUp.img = this;
	document.onmouseup = soopaSwapUp;
}

function soopaSwapUp() {
	var ths = soopaSwapUp.img;
	ths.src = ths.n.src;
	if (ths.temp) document.onmouseup = ths.temp;
}
