// ===========================================================================================/*	INSERT MENU		This will display a menu created from the TinyMenu array*/function InsertMenu(menuSpan,menuArray) {	var newLink;	var putMenu = document.getElementById(menuSpan);	for ( var tel = 0; tel < menuArray.length; tel++ ) {		var newImg =	document.createElement("img");		newImg.src =	menuArray[tel].icon;		newImg.id = "smallImg"+tel;		newImg.className = "smallmenu";				putMenu.appendChild(newImg);				if ( menuArray[tel].link != "-" ) {			newLink = document.createElement("a");			newLink.innerHTML = "&nbsp;<b>"+menuArray[tel].item+"</b>";			newLink.href = menuArray[tel].link;			newLink.id = "smallItem"+tel;			newLink.className =	"smallmenu";			newLink.title = menuArray[tel].item		}		else {			newLink = document.createElement("span");			newLink.innerHTML = "&nbsp;<b>"+menuArray[tel].item+"</b>";			newLink.className = "smallmenu";		}			putMenu.appendChild(newLink);		var newBrk =	document.createElement("br");			putMenu.appendChild(newBrk);		}	}// ===========================================================================================/*	TINY MENU*/function tinyMenu(menuSpan,artist,referer) {	this.itemLoad = 0;	this.tinyItems = new Array();	this.artist = artist;	// add '?' after ".htm" if you want the artist name to be passed in the URL	this.add("music",		"/music.html",		"pix/icons/small_music.gif");	this.add("info",		"/",			"pix/icons/small_info.gif");	this.add("photo",		"/photo",	"pix/icons/small_camera.gif");	this.add("video",		"/video",		"pix/icons/small_tv.gif");		InsertMenu(menuSpan,this.tinyItems);	}// ===========================================================================================tinyMenu.prototype.add = function(item,link,icon) {	if ( link == "" ) { link = "-"; }	var temp = new menuObj(item,link,icon,this.artist);	this.tinyItems.push(temp);}// ===========================================================================================function menuObj(item,link,icon,artist) {	this.item = item;	if ( link != "-" ) {		if ( link.indexOf("?") != -1 ) { this.link = link+"a="+artist; }		else { this.link = artist+link.substring(0,link.length); }	}	else { this.link = "-" }	this.icon = icon;}// ===========================================================================================
