// JavaScript Document
var flag, siblingFlag;
flag = false;
siblingFlag = false;

//function's only parameter is the unique name and id attributes(both need to be the same)
// that we're going to give to each plus sign image
// this one function parameter is how the function will identify which plus/minus
// sign to toggle


function minusPlusCCCCFF(whichImage, whichLinks)
{
	if (document.images[whichImage].src =="http://www.mathwarehouse.com/images/menu/minus_ccccff.gif")
		{
		 document.images[whichImage].src ="http://www.mathwarehouse.com/images/menu/plus_ccccff.gif";

		}
else{
document.images[whichImage].src = "http://www.mathwarehouse.com/images/menu/minus_ccccff.gif";
	}


if(document.getElementById(whichLinks).style.display!='block')
	{document.getElementById(whichLinks).style.display='block';}
else{document.getElementById(whichLinks).style.display='none'}
}



function minusPlus(whichImage, whichLinks)
{
	if (document.images[whichImage].src =="http://www.mathwarehouse.com/images/menu/minus.gif")
		{
		 document.images[whichImage].src ="http://www.mathwarehouse.com/images/menu/plus.gif";

		}
else{
document.images[whichImage].src = "http://www.mathwarehouse.com/images/menu/minus.gif";
	}


if(document.getElementById(whichLinks).style.display!='block')
	{document.getElementById(whichLinks).style.display='block';}
else{document.getElementById(whichLinks).style.display='none'}
}

