﻿function rollover(imageName, language, status) {
	eval('document.' + imageName + '.src = "images/nav_' + language + '_' + imageName + '_' + status + '.gif"'); 
}

function swap(imageName, status) {
	eval('document.' + imageName + '.src = "images/' + imageName + '_' + status + '.gif"'); 
}

function openWin(url,name,w,h,t,m,s,r,st,l,d,c) {
	var windowOptions = "width=" + w + "," +
	"height=" + h + "," +
	"toolbar=" + t + "," +
	"menubar=" + m +"," +
	"scrollbars=" + s + "," +
	"resizable=" + r + "," +
	"status=" + st + "," +
	"location=" + l + "," +
	"directories=" + d + "," +
	"copyhistory=" + c;
	popupwindow = window.open(url, name, windowOptions);
	popupwindow.focus();
}

function cowTV(clipName,speed)
{
 	screenwidth = screen.availWidth;
	screenheight = screen.availHeight;
	thisWidth = 550;
	thisHeight = 400;
	thisLeft = ((screenwidth - thisWidth)/2);
	thisTop = ((screenheight - thisHeight)/2);
	optionString = ('width=' + thisWidth + ',height=' + thisHeight + ',top=' + thisTop + ',left=' + thisLeft + ',status=no,menubar=no,resizable=no,scrollbars=no,toolbar=no');
	fileOpen = "cowTVPopup.cfm?clipName="+clipName+"&speed="+speed;
	popUp = window.open(fileOpen,'cowTV',optionString);
}