function a(txt)
{
	self.status = txt
}

function b()
{
	self.status = ""
}

function toggleBox(szDivID, iState)
{
	if(document.layers)
	{
		document.layers[szDivID].visibility = iState ? "show" : "hide";
	}

	else if(document.getElementById)
	{
		var obj = document.getElementById(szDivID);
        obj.style.visibility = iState ? "visible" : "hidden";
    }

    else if(document.all)
	{
		document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
	}
}

/*
onclick="newWindow(this.href, 'popup', 600, 500, 1, 1, 0, 0, 0, 1, 0);

600 is the width of the popup window;
500 is the height of the popup window; 
scrollbars, resizable, menubar, toolbar, addressbar, statusbar, fullscreen
*/

function vidWindow(a_str_windowURL, a_str_windowName, a_int_windowWidth, a_int_windowHeight, a_bool_scrollbars, a_bool_resizable, a_bool_menubar, a_bool_toolbar, a_bool_addressbar, a_bool_statusbar, a_bool_fullscreen)
{
	var int_windowLeft = (screen.width - a_int_windowWidth) / 2;
	var int_windowTop = (screen.height - a_int_windowHeight) / 2;
	var str_windowProperties = 'height=' + a_int_windowHeight + ',width=' + a_int_windowWidth + ',top=' + int_windowTop + ',left=' + int_windowLeft + ',scrollbars=' + a_bool_scrollbars + ',resizable=' + a_bool_resizable + ',menubar=' + a_bool_menubar + ',toolbar=' + a_bool_toolbar + ',location=' + a_bool_addressbar + ',statusbar=' + a_bool_statusbar + ',fullscreen=' + a_bool_fullscreen + '';
	var obj_window = window.open(a_str_windowURL, a_str_windowName, str_windowProperties)
    if (parseInt(navigator.appVersion) >= 4)
	{
		obj_window.window.focus();
    }
}

function photo_open(link, width, height)
{
	var photoWindow = window.open(link,"photo",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height);
}

function stream_open(link, width, height)
{
	var streamWindow = window.open(link,"stream",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height);
}