
//=====================
//
//=====================
function openFFTMenu()
{
	var test = document.getElementById("bla").className = "show";
}

//=====================
//
//=====================
function closeFFTMenu()
{
	var test = document.getElementById("bla").className = "hidden";
}

//=====================
//
//=====================
function openWindow(url)
{
	window.open(url);
}

//=====================
//
//=====================
function openTermsOfUse()
{
    window.open("/fftimes/static/pages/terms_of_use.htm",null,'toolbar=no, directories=no, location=no, status=yes, menubar=no, resizable=yes, scrollbars=yes, width=600, height=600');
}

//=====================
//
//=====================
function openDefinitions()
{
    window.open("/fftimes/static/gameplan/definitions.htm",null,'toolbar=no, directories=no, location=no, status=yes, menubar=no, resizable=yes, scrollbars=yes, width=600, height=600');
}

//=====================
//
//=====================
function bookMark()
{
	if (window.external)
	{
		window.external.AddFavorite("http://www.thefantasyfootballtimes.com","The Fantasy Football Times");
	}
	else
	{ 
		alert("Sorry! Your browser doesn't support this function.");
	}
}

//=====================
//
//=====================
function setInjuryWire(o)
{
	var myFFTimes  = document.getElementById("iframeMYFFtimes");
	var injuryWire = document.getElementById("iframeInjuryWire");
	var isMember   = o.checked ? 1 : 0;
	
	if(o.checked)
		myFFTimes.src = "/fftimes/member/MyFFTimes.aspx?member=2";
	else
		myFFTimes.src =  "/fftimes/member/MyFFTimes.aspx?member=1";
	
	document.location = "/fftimes/default.aspx"
}

//=====================
//
//=====================	
function showRoster(rosterName)
{
	var div  = document.getElementById("div" + rosterName);
	var span = document.getElementById("plusMinusText" + rosterName);
	if(div.className == "show")
	{
		div.className = "hidden";
		span.innerText = "+";
	}
	else 
	{
		div.className = "show";
		span.innerText = "-";
	}
}

