

var artglass = { movie:"master.swf", width:"852", height:"520", majorversion:"7", build:"0", xi:"true", allowscriptaccess:"always", flashvars:"galleryName=artglass.swf" };
var fineart = { movie:"master.swf", width:"852", height:"520", majorversion:"7", build:"0", xi:"true", allowscriptaccess:"always", flashvars:"galleryName=fineart.swf" };
var objects  = { movie:"master.swf", width:"852", height:"520", majorversion:"7", build:"0", xi:"true", allowscriptaccess:"always", flashvars:"galleryName=objects.swf" };
var lighting  = { movie:"master.swf", width:"852", height:"520", majorversion:"7", build:"0", xi:"true", allowscriptaccess:"always", flashvars:"galleryName=lighting.swf" };

function loadMenus() {
	var currentid = "";
	var currentValue = "";
	var currentLink = "";
	var thisTitle = "";
	var links = document.getElementsByTagName("a");

	for (var i=0; i< links.length; i++) {
		currentid = links[i].getAttribute("id");
		if (currentid) { 
			currentValue = links[i].firstChild.nodeValue;
			currentLink = links[i].getAttribute("href");
			currentValue += "&flashVarURL=" + currentLink;

			if (links[i].getAttribute("class") == "current" || links[i].className == "current") {
				currentClass = "current" ;
			} else {
				currentClass = "";
			}		
			currentValue += "&flashVarClass=" + currentClass;
		
			currentNav = links[i].parentNode.parentNode.getAttribute("id");
			currentValue += "&flashVarNav=" + currentNav;
			
			bodyClass = document.body.className;
			currentValue += "&flashVarBody=" + bodyClass;
			

			thisTitle = { movie:"swf/txt.swf", width:"150", height:"29.4", majorversion:"7", build:"0", wmode:"transparent", flashvars:"flashVarText="+currentValue };
			
			UFO.create(thisTitle,currentid);
		}
	}
}


function loadSWFText() {
	var theCurrentId = "";
	var currentElement = "";
	var theText = "";
	var flashVarParams = "";
	var titles = document.getElementsByTagName("h2");
	var currentTitle = "";
	for (var i=0; i < titles.length; i++) {
		theCurrentId = titles[i].getAttribute("id");
		currentElement = titles[i];
		
		theText = currentElement.firstChild.nodeValue;
		flashVarParams = theText+"&flashVarNav="+theCurrentId ;
		currentTitle = { movie:"swf/title.swf", width:"150", height:"29.4", majorversion:"7", build:"0", wmode:"transparent", flashvars:"flashVarText="+flashVarParams };

		UFO.create(currentTitle,theCurrentId);
	}
}


