menuLinks = new Array(
	"Home", "http://www.MamaGeekMinis.com/joy",
	"Photos","http://www.MamaGeekMinis.com/joy/photo_gallery.html",
	"Videos","http://www.MamaGeekMinis.com/joy/videos.html",
	"Creations","http://www.MamaGeekMinis.com/joy/creations.html",
	"Links","http://www.MamaGeekMinis.com/joy/links.html",
	"Email","http://www.MamaGeekMinis.com/joy/email.html"
);


//initialize
if(document.getElementById){
	//debugTxt = document.getElementById("debug");

	altMenu = document.getElementById("menuAlt");
	
	myTable = "<table border=0 cellspacing=0><tr>";
	for(linkIndex = 0;linkIndex<menuLinks.length/2;linkIndex++){
		myTable += "<td bgcolor='#FF9999'>";
		myTable += "<font face='Arial' size='2'><b>";
		myTable += "<a style='color: #000000; text-decoration: None' href='"+menuLinks[linkIndex*2+1]+"'>"
		myTable += "&nbsp;"+menuLinks[linkIndex*2]+"&nbsp;</a>";
		myTable += "</b></font></td>";
		myTable += "<td>&nbsp;</td>";
	}
	//myTable += "<td bgcolor='#FF9999'>test1</td><td bgcolor='#FF9999'>test2</td>";
	//myTable += "<td bgcolor='#FF9999'>test3</td>";
	myTable += "</tr></table>";

	altMenu.innerHTML = myTable;	

	//altMenu.innerHTML = "<table border='0px' bgcolor='#FFCCCC'><tr><td bgcolor='#FF9999'>test1</td><td bgcolor='#FF9999'>test2</td>";
	//altMenu.innerHTML += "<td bgcolor='#FF9999'>test2</td>";
	//altMenu.innerHTML += "</tr></table>";
}
else{
	menuTable = document.createElement("table");
	menuTable.setAttribute("border","0px");
	menuTable.style.background="#FFCCCC";
	tableBody = menuTable.appendChild(document.createElement("tbody"));
	menuRow = tableBody.appendChild(document.createElement("tr"));
	for(linkIndex = 0;linkIndex<menuLinks.length/2;linkIndex++){
		newcell = menuRow.appendChild(document.createElement("td"));
		newCell.style.background = "#FF9999";
		fontObject = newCell.appendChild(document.createElement("FONT"));
       		fontObject.setAttribute("face","Arial");
	        fontObject.setAttribute("size","2");
		boldObject=fontObject.appendChild(document.createElement("b"));
		anchor = boldObject.appendChild(document.createElement("a"));
		anchor.style.color = "#00000";
		//anchor.style.text-decoration = "None";
		anchor.href = menuLinks[linkIndex*2+1];
		anchor.innerHTML = menuLinks[linkIndex*2];
		//anchor.innerHTML="<a style='color: #000000; text-decoration: None' href='"+menuLinks[linkIndex*2+1]+"'>"+menuLinks[linkIndex*2]+"</a>";
		//altMenu.innerHTML += "<a style='color: #000000; text-decoration: None' href="+menuLinks[linkIndex*2+1]+">"+menuLinks[linkIndex*2]+"</a>";
		//altMenu.innerHTML += "</font></td><td width='50'>&nbsp;</td>";	
		//newCell = menuRow.appendChild(document.createElement("td"));
		//newCell.innerHTML = "&nbsp;";
	}
	altMenu.appendChild(menuTable);
}
