var mnuButton;
var w;

function popWindow(url)
{

var tw = w;
w = open(url, "_blank","status=no, scrollbars=yes, height=400, width=520, left=" + (window.screenLeft+(document.body.clientWidth-520)/2) + ", top=" + (window.screenTop+(document.body.clientHeight-400)/2));
w.focus();
window.onunload=closePopup;
if (typeof(tw) == "object") tw.close();
}

function popWindowLarge(url, set_width)
{
var tw = open(url, "_blank", "status=yes, resizable=yes scrollbars=yes, width=" + set_width + ", height=" + set_width);
tw.focus();
}

function popWindowL(url)
{
var tw = open(url, "_blank", "status=yes, resizable=yes scrollbars=yes");
tw.focus();
}

function popWindowSmall(url)
{
var tw = window.open(url, "promo", "status=no, resizable=no scrollbars=no, width=380, height=360");
tw.focus();
}

function openWindow(url)
{
var tw = window.open(url);
tw.focus();
}


function button_in(activeButton)
{
	
	mnuButton=activeButton;
	mnuButton.style.background="#FF1C1C";
	mnuButton.style.color="black";
}

function button_out()
{
	mnuButton.style.background="#0C0C0C";	
	mnuButton.style.color="white";
}

function ToggleText(visText,invText) 
{
	visText.visibility="visible"; 
	invText.visibility="hidden";
}


function closePopup()
{
w.close();
};

function results (pollURL) {
resultsWindow = open(pollURL, "results","status=no, scrollbars=yes, height=400, width=600, left=" + (window.screenLeft+(document.body.clientWidth-600)/2) + ", top=" + (window.screenTop+(document.body.clientHeight-400)/2));
}