// fg site scripts -->
// preload images -->

shows = new Image;
shows.src = "/images/shows_def.gif";
showshov = new Image;
showshov.src = "/images/shows_hov.gif";

tunes = new Image;
tunes.src = "/images/tunes_def.gif";
tuneshov = new Image;
tuneshov.src = "/images/tunes_hov.gif";

pics = new Image;
pics.src = "/images/pics_def.gif";
picshov = new Image;
picshov.src = "/images/pics_hov.gif";

vids = new Image;
vids.src = "/images/vids_def.gif";
vidshov = new Image;
vidshov.src = "/images/vids_hov.gif";

band = new Image;
band.src = "/images/band_def.gif";
bandhov = new Image;
bandhov.src = "/images/band_hov.gif";

blog = new Image;
blog.src = "/images/blog_def.gif";
bloghov = new Image;
bloghov.src = "/images/blog_hov.gif";

fbook = new Image;
fbook.src = "/images/icn_fbook.png";
fbookhov = new Image;
fbookhov.src = "/images/icn_fbook_on.png";

myspace = new Image;
myspace.src = "/images/icn_myspace.png";
myspacehov = new Image;
myspacehov.src = "/images/icn_myspace_on.png";

lastfm = new Image;
lastfm.src = "/images/icn_lastfm.png";
lastfmhov = new Image;
lastfmhov.src = "/images/icn_lastfm_on.png";

ilike = new Image;
ilike.src = "/images/icn_ilike.png";
ilikehov = new Image;
ilikehov.src = "/images/icn_ilike_on.png";

twit = new Image;
twit.src = "/images/icn_twit.png";
twithov = new Image;
twithov.src = "/images/icn_twit_on.png";


function roll(imgDocID,imgObjName)
	{
document.images[imgDocID].src = eval(imgObjName + ".src")
	}

//begin vid page script

var tabs = new Array('thumb1','thumb2');

function vidSwap(vid,tab){
	hideallids();
	showdiv(vid,tab);
}

function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<tabs.length;i++){
		hidediv(tabs[i]);
	}		  
}

function hidediv(tab) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(tab).className = 'vidPicker';
	}
}

function showdiv(vid,tab) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById("vidFrame").src = "video/" + vid + ".htm";
		document.getElementById(tab).className = 'vidPickersel';
	}
}

//end vid page script

//start band page script
// tabbed panel function -->
var instrument = new Array('bandvox','bandkeys','bandbass','banddrums','bandguitar');
var pic = new Array('stayC','nikki','jim','thane','bubba');
var biocopy = new Array('staycbio','nikkibio','jwbio','thanebio','bubbabio');

function flipBio(instrument,pic,biocopy){
	hideall();
	showBio(instrument,pic,biocopy);
}

function hideall(){
	//loop through the array and hide each element by id
	for (var i=0;i<instrument.length;i++){
		hide(instrument[i],pic[i], biocopy[i]);
	}		  
}

function hide(instrument,pic,biocopy) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById("bandbg").className = 'banddef';
		document.getElementById(pic).className = pic + "def";
		document.getElementById("start").style.display = "none";
		document.getElementById(biocopy).style.display = "none";
	}
}

function showBio(instrument,pic,biocopy) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById("bandbg").className = instrument;
		document.getElementById(pic).className = pic + "sel";
		document.getElementById(biocopy).style.display = "inline";
	}
}

//rotating image script
//*****************************************
// Blending Image Slide Show Script- 
// © Dynamic Drive (www.dynamicdrive.com)
// For full source code, visit http://www.dynamicdrive.com/
//*****************************************

//specify interval between slide (in mili seconds)
var slidespeed=2000

//specify images
var slideimages=new Array("/images/store/lst_blue.jpg","/images/store/wlst_black.jpg","/images/store/mhd_blue.jpg","/images/store/whd_gray.jpg","/images/store/rng_white.jpg","/images/store/wcap_white.jpg")

//specify corresponding links
var slidelinks=new Array("http://www.cafepress.com/furnituregirls.417839190","http://www.cafepress.com/furnituregirls.417838049","http://www.cafepress.com/furnituregirls.417838048","http://www.cafepress.com/furnituregirls.418182482","http://www.cafepress.com/furnituregirls.417852688","http://www.cafepress.com/furnituregirls.417852687")

var newwindow=1 //open links in new window? 1=yes, 0=no

var imageholder=new Array()
var ie=document.all
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}

function gotoshow(){
if (newwindow)
window.open(slidelinks[whichlink])
else
window.location=slidelinks[whichlink]
}

