///////////////////////////////////////////////////////////////////////////////
// Rollover functions                                                       //
///////////////////////////////////////////////////////////////////////////////

if (document.images) {
	memoriesOn = new Image();
	memoriesOn.src = "images/buttons/but_memories_over.jpg";
	memoriesOff = new Image();
	memoriesOff.src = "../assets/images/spacer.gif";
	wallpaperOn = new Image();
	wallpaperOn.src = "images/buttons/but_wallpaper_over.jpg";
	wallpaperOff = new Image();
	wallpaperOff.src = "../assets/images/spacer.gif";
	galleryOn = new Image();
	galleryOn.src = "images/buttons/but_images_over.jpg";
	galleryOff = new Image();
	galleryOff.src = "../assets/images/spacer.gif";
	videoOn = new Image();
	videoOn.src = "images/buttons/but_video_over.jpg";
	videoOff = new Image();
	videoOff.src = "../assets/images/spacer.gif";
	freespiritOn = new Image();
	freespiritOn.src = "images/buttons/but_freespirit_over.jpg";
	freespiritOff = new Image();
	freespiritOff.src = "../assets/images/spacer.gif";
	jamsOn = new Image();
	jamsOn.src = "images/buttons/but_jams_over.jpg";
	jamsOff = new Image();
	jamsOff.src = "../assets/images/spacer.gif";
	backOn = new Image();
	backOn.src = "images/buttons/but_back_over.gif";
	backOff = new Image();
	backOff.src = "images/buttons/but_back.gif";
	backimagesOn = new Image();
	backimagesOn.src = "images/buttons/but_back_images_over.jpg";
	backimagesOff = new Image();
	backimagesOff.src = "images/buttons/but_back_images.jpg";
}

function imgOn(imageName) {
	if (document.images) {
		document [imageName].src = eval(imageName + "On.src")
  }
}

function imgOff(imageName) {
	if (document.images) {
		document [imageName].src = eval(imageName + "Off.src")
  }
}

///////////////////////////////////////////////////////////////////////////////
// Window pop-up functions                                                   //
///////////////////////////////////////////////////////////////////////////////

// This is the popup window for the Wallpaper.

function wallpaper()
{
  window.open('wallpaper.html','wallpaper','width=400,height=278,menubar=no,toolbar=no,location=no,scrollbars=no,resizable=no,status=no,directories=no,top=10,left=10');
}

// This is the video popup.

function video()
{
  window.open('video/video.html','video','width=160,height=136,menubar=no,toolbar=no,location=no,scrollbars=no,resizable=no,status=no,directories=no,top=10,left=10');
}

// These are for the Images page.

function img01()
{
  window.open('pics/img01.html','img01','width=486,height=626,menubar=no,toolbar=no,location=no,scrollbars=no,resizable=no,status=no,directories=no,top=10,left=10');
}

function img02()
{
  window.open('pics/img02.html','img02','width=434,height=566,menubar=no,toolbar=no,location=no,scrollbars=no,resizable=no,status=no,directories=no,top=10,left=10');
}

function img03()
{
  window.open('pics/img03.html','img03','width=540,height=536,menubar=no,toolbar=no,location=no,scrollbars=no,resizable=no,status=no,directories=no,top=10,left=10');
}

function img04()
{
  window.open('pics/img04.html','img04','width=540,height=566,menubar=no,toolbar=no,location=no,scrollbars=no,resizable=no,status=no,directories=no,top=10,left=10');
}

function img05()
{
  window.open('pics/img05.html','img05','width=350,height=566,menubar=no,toolbar=no,location=no,scrollbars=no,resizable=no,status=no,directories=no,top=10,left=10');
}

function img06()
{
  window.open('pics/img06.html','img06','width=400,height=482,menubar=no,toolbar=no,location=no,scrollbars=no,resizable=no,status=no,directories=no,top=10,left=10');
}

function img07()
{
  window.open('pics/img07.html','img07','width=600,height=514,menubar=no,toolbar=no,location=no,scrollbars=no,resizable=no,status=no,directories=no,top=10,left=10');
}

function img08()
{
  window.open('pics/img08.html','img08','width=350,height=566,menubar=no,toolbar=no,location=no,scrollbars=no,resizable=no,status=no,directories=no,top=10,left=10');
}

function img09()
{
  window.open('pics/img09.html','img09','width=600,height=514,menubar=no,toolbar=no,location=no,scrollbars=no,resizable=no,status=no,directories=no,top=10,left=10');
}

function img10()
{
  window.open('pics/img10.html','img10','width=400,height=566,menubar=no,toolbar=no,location=no,scrollbars=no,resizable=no,status=no,directories=no,top=10,left=10');
}

function img11()
{
  window.open('pics/img11.html','img11','width=600,height=548,menubar=no,toolbar=no,location=no,scrollbars=no,resizable=no,status=no,directories=no,top=10,left=10');
}

function img12()
{
  window.open('pics/img12.html','img12','width=400,height=626,menubar=no,toolbar=no,location=no,scrollbars=no,resizable=no,status=no,directories=no,top=10,left=10');
}

///////////////////////////////////////////////////////////////////////////////
// This is for an MP3 popup window                                           //
///////////////////////////////////////////////////////////////////////////////

var UniqueID = 314 // Make each link open in a new window 
var newWinOffset = 0 // Position of first pop-up

function PlayerOpen(soundfiledesc,soundfilepath) { 
PlayWin = window.open('',UniqueID,'width=320,height=186,top=' + newWinOffset +',left=0,resizable=0,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0,personalbar=0');
PlayWin.focus(); 

var winContent = "<html><head><title>" + soundfiledesc + "</title></head><body bgcolor='#cccccc' link='#000000' vlink='#000000'>"; 
winContent += "<p style='font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 12px;line-height: 13px;font-weight: bold;color: #FF3333;text-align:center;'>" + soundfiledesc + "</p>";

winContent += "<OBJECT width='300' height='42'>"; 
winContent += "<param name='SRC' value='" + soundfilepath + "'>";
winContent += "<param name='AUTOPLAY' VALUE='true'>"; 
winContent += "<param name='CONTROLLER' VALUE='true'>";
winContent += "<param name='BGCOLOR' VALUE='#CCCCCC'>"; 
winContent += "<EMBED SRC='" + soundfilepath + "' AUTOSTART='TRUE' LOOP='FALSE' WIDTH='300' HEIGHT='42' CONTROLLER='TRUE' BGCOLOR='#CCCCCC'></EMBED>";
winContent += "</OBJECT>"; 

winContent += "<p style='font-family:Verdana,sans-serif;font-size:10px;line-height: 13px;font-weight: normal;text-align:center;'>Tommy Bolin, guitar &bull; Jeff Cook, vocals<br>Stanley Sheldon, bass &bull; Tom Stephenson, keys<br>Bobby Berge, drums";
winContent += "<p style='font-family:Verdana,sans-serif;font-size:11px;line-height: 14px;font-weight: bold;text-align:center;'><a href='" + soundfilepath +"'>Download the MP3</a><br><span style='font-size:9px;font-weight: normal;'>(Right-Click link to download)</span></p>";
winContent += "</body></html>"; 

PlayWin.document.write(winContent); 
PlayWin.document.close(); // "Finalizes" new window 
UniqueID = UniqueID + 1 // newWinOffset = newWinOffset + 20 // subsequent pop-ups will be this many pixels lower 
}

