function init(activeMenu)
{
	initLogo();
	initMenu(activeMenu);
}

function initLogo()
{
	var flashvars = {
		page: "home"
	};

	var params = {
		menu: "false",
		wmode: "transparent"
	};

	swfobject.embedSWF("swf/logo.swf", "logo", "700", "150", "9.0.0", "js/swfobject/expressInstall.swf", flashvars, params);
}

function initMenu(activeMenu)
{
	var activeHome, activeBiography, activeDiscography, activeSchedule, activeGuestbook, activePicsvids, activeBookings = 0;

	var params = {
		menu: "false",
		wmode: "transparent"
	};
	
	switch(activeMenu)
	{
		case "home":
			activeHome = 1;
			break;
		case "biography":
			activeBiography = 1;
			break;
		case "discography":
			activeDiscography = 1;
			break;
		case "schedule":
			activeSchedule = 1;
			break;
		case "guestbook":
			activeGuestbook = 1;
			break;
		case "picsvids":
			activePicsvids = 1;
			break;
		case "bookings":
			activeBookings = 1;
			break;
	}
	
	swfobject.embedSWF("swf/menuitem.swf", "menu_home", "190", "31", "9.0.0", "js/swfobject/expressInstall.swf", {title:"Home",destUrl:"index",active:activeHome}, params);
	swfobject.embedSWF("swf/menuitem.swf", "menu_biography", "190", "31", "9.0.0", "js/swfobject/expressInstall.swf", {title:"Biography",destUrl:"biography",active:activeBiography}, params);
	swfobject.embedSWF("swf/menuitem.swf", "menu_discography", "190", "31", "9.0.0", "js/swfobject/expressInstall.swf", {title:"Discography",destUrl:"discography",active:activeDiscography}, params);
	swfobject.embedSWF("swf/menuitem.swf", "menu_schedule", "190", "31", "9.0.0", "js/swfobject/expressInstall.swf", {title:"Schedule",destUrl:"schedule",active:activeSchedule}, params);
	swfobject.embedSWF("swf/menuitem.swf", "menu_guestbook", "190", "31", "9.0.0", "js/swfobject/expressInstall.swf", {title:"Guestbook",destUrl:"guestbook",active:activeGuestbook}, params);
	swfobject.embedSWF("swf/menuitem.swf", "menu_picsvids", "190", "31", "9.0.0", "js/swfobject/expressInstall.swf", {title:"Pics and Vids",destUrl:"picsvids",active:activePicsvids}, params);
	swfobject.embedSWF("swf/menuitem.swf", "menu_bookings", "190", "31", "9.0.0", "js/swfobject/expressInstall.swf", {title:"Bookings",destUrl:"bookings",active:activeBookings}, params);

}

function sound(file)
{
	var flashvars = {
	};

	var params = {
		menu: "false",
		wmode: "transparent"
	};

	swfobject.embedSWF("swf/" + file + ".swf", "sound", "10", "10", "9.0.0", "js/swfobject/expressInstall.swf", flashvars, params);
}

function player(file)
{
	var flashvars = {
	};

	var params = {
		menu: "false",
		wmode: "transparent"
	};

	swfobject.embedSWF("swf/player.swf?m=data/discography/" + file + ".mp3", "sound", "10", "10", "9.0.0", "js/swfobject/expressInstall.swf", flashvars, params);
}

function box(url)
{
	var bg = document.createElement("div");
	bg.setAttribute("id", "boxblack");
	bg.style.filter = "alpha(opacity=80)";
	bg.style.MozOpacity = "0.80";
	bg.style.KhtmlOpacity = "0.80";
	document.body.appendChild(bg);

	var bg = document.createElement("div");
	bg.setAttribute("id", "boxbg");
	document.body.appendChild(bg);

	var box = document.createElement("div");
	box.setAttribute("id", "box");
	box.innerHTML = "<a href=\"javascript:boxClose()\">Close</a>";
	box.innerHTML += "<iframe id=\"ibox\" width=\"604\" height=\"540\" frameborder=\"0\" src=\"" + url + "\"></iframe>";
	document.body.appendChild(box);
}

function boxClose()
{
	document.body.removeChild(document.getElementById('box'));
	document.body.removeChild(document.getElementById('boxblack'));
	document.body.removeChild(document.getElementById('boxbg'));
}