/*function men_women()
{
	var men = document.getElementById("men");
	var men_menu = document.getElementById("men-menu");
	var women = document.getElementById("women");
	var women_menu = document.getElementById("women-menu");
	women_menu.className = "";
	men_menu.className = "";
	if ( men.className == "active") {
		men_menu.className = "visible";
	} 
	if ( women.className == "active") {
		women_menu.className = "visible";
	}
	men.onclick = function () {
		men.className = "active";
		women.className = "";	
		men_menu.className = "visible";
		women_menu.className = "";
	}
	women.onclick = function () {
		women.className = "active";
		men.className = "";	
		women_menu.className = "visible";
		men_menu.className = "";
	}
}

if (window.addEventListener)
	window.addEventListener("load", men_women, false);
else if (window.attachEvent)
	window.attachEvent("onload", men_women);
	*/
	
/* Added by Craig Coffman - 12/13/06 */
function fadeProcedure(oldid,newid) {
	setOpacity(0,newid);
	fadeOut(oldid,100,0,5,'introProcedure("'+oldid+'","'+newid+'")');
} //end fadeProcedure()

function introProcedure(oldid,newid) {
	document.getElementById(oldid).style.display='none';
	document.getElementById(newid).style.display='block';
	fadeIn(newid,0,100,10);
} //end introProcedure()

function fadeOut(id, startfade, endfade, speeder,action) {
	timer = 0;
	if (startfade > endfade)
		{
		for (i = startfade; i >= endfade; i--)
			{
			setTimeout("setOpacity(" + i + ",'" + id + "')", (timer * speeder));
			timer++;
			}
		}
		setTimeout(action,((startfade-endfade) * speeder));
} //end fadeOut()


function fadeIn(id, startfade, endfade, speeder) {
	timer = 0;
	if (startfade < endfade)
		{
		for (i = startfade; i <= endfade; i++)
			{
			setTimeout("setOpacity(" + i + ",'" + id + "')", (timer * speeder));
			timer++;
			}
		}
} //end fadeIn()

function setOpacity(opacity, id) {
	var el = document.getElementById(id).style;
	el.opacity = (opacity / 100);
	el.MozOpacity = (opacity / 100);
	el.KhtmlOpacity = (opacity / 100);
	el.filter = "alpha(opacity=" + opacity + ")";
} //end setOpacity()


//////////////// STRIPING TABLES
function stripeTable(tblID,tda,tdb) {
	tbl=document.getElementById(tblID);
	
	if(tbl) {
		rows=tbl.getElementsByTagName('tr');
		alter=0;
		if(rows.length) {
			for(o=0;o<rows.length;o++) {
				arow=rows[o];
				alter=alter?0:1;
				tds=arow.getElementsByTagName('td');
				if(tds.length) {
					for(p=0;p<tds.length;p++) {
						atd=tds[p];
						if(alter) atd.className=tdb;
						else atd.className=tda;
					} //end for
				}
			} //end for
		}
	} //end if there are tables
} //end stripeTable()

