// ****************************************************
//
//           IMPROVED BANNER ROTATION SCRIPT
//
// 		    INSTRUCTIONS
//
//      Change the following variables:
//
//
//	link    = (a URL) the 'href' value, or place where clicking the banner brings
//		          the visitor 
//
//	image   = (folder location reference) where the banner image is on the server
//
//	TO CALL THE SCRIPT FROM THE PAGE, INCLUDE THE FOLLOWING CODE:
//
//      <SCRIPT LANGUAGE="JavaScript" src="http://stateofmusic.com/scripts/b-rotate.js"><SCRIPT>
//
//	
//
//
//*****************************************************


// The URLs for each banner
var link1 = new Array
link1[0] = "http://www.lobsterrecords.com"
link1[1] = "http://www.purevolume.com/feronavei"
link1[2] = "http://www.takeoverrock.com"
link1[3] = "http://www.ascitiesburn.com"
link1[4] = "http://www.lorenedrive.com"
link1[5] = "http://www.lobsterrecords.com/bandinfo.php?art_id=4"
link1[6] = "http://www.thebamboozle.com"
link1[7] = "http://www.lobsterrecords.com/bandinfo.php?art_id=6"
link1[8] = "http://www.norcalcomp.com/"
link1[9] = "http://www.dressedtokill.org/"
link1[10] = "http://www.drivethrurecords.com/"
link1[11] = "http://www.triplecrownrecords.com"
link1[12] = "http://www.fuse.tv/steven"

//////////////////////////////////////////////////

// The Banner images themselves
var image1 = new Array
image1[0] = "http://www.stateofmusic.com/_img/banners/lobster-records-2005.gif"
image1[1] = "http://www.stateofmusic.com/_label/468x60final.gif"
image1[2] = "http://www.stateofmusic.com/_img/banners/TakeoverBanner3.gif"
image1[3] = "http://www.stateofmusic.com/_img/banners/ascities_468x60.gif"
image1[4] = "http://www.stateofmusic.com/_img/banners/LDbanner.gif"
image1[5] = "http://www.stateofmusic.com/_img/banners/dlt-banner.gif"
image1[6] = "http://www.stateofmusic.com/_img/banners/press-BAMBOOZLE-BANNER-2.gif"
image1[7] = "http://www.stateofmusic.com/_img/banners/Over-it-brakes-banner.gif"
image1[8] = "http://www.stateofmusic.com/_label/norcal.gif"
image1[9] = "http://www.stateofmusic.com/_label/dressed-to-kill-records.gif"
image1[10] = "http://www.stateofmusic.com/_label/drive-thru-banner.gif"
image1[11] = "http://www.stateofmusic.com/_label/triple-crown-records.gif"
image1[12] = "http://www.stateofmusic.com/_img/fuse-steven.jpg"

/////////////////////////////////////////////////////////////

// The ALT Tag text for each banner-- Default is 'Click Here!'
var alttext1 = new Array
alttext1[0] = "Lobster Records"
alttext1[1] = "Ferona Vei"
alttext1[2] = "Takeover Records"
alttext1[3] = "As Cities Burn"
alttext1[4] = "Lorene Drive"
alttext1[5] = "Days Like These"
alttext1[6] = "The Bamboozle 2006"
alttext1[7] = "Over It"
alttext1[8] = "The Norcal Compilation 2005"
alttext1[9] = "Dressed To Kill Records"
alttext1[10] = "Drive Thru Records"
alttext1[11] = "Triple Crown Records"
alttext1[12] = "FUSE TV - Steven's Untitled Rock Show!"

// DO NOT ALTER SCRIPT BELOW THIS LINE

var totalBann = eval(link1.length-1);

var select = Math.floor(Math.random()*(link1.length));

document.write("<a href=" + link1[select] + " name='bannhref' target=_blank><img src=" + image1[select] + " alt='" + alttext1[select] + "' name='bann'  border=0></a>");

bannerz = select-1;

window.setTimeout('cyc();',8000);

function cyc() {
  if (++bannerz > totalBann) bannerz=0;
    document.bann.src = image1[bannerz];
    document.bann.alt = alttext1[bannerz];
    bannhref.href = link1[bannerz];


/* Choose how fast you want your image1s to cycle here. 
   The default is a new banner every 7 seconds. */

    window.setTimeout('cyc();',20000);
  }

