		
		//images link
		var images=new Array();
		images[0] = "/store/images/cheer.png";
		images[1] = "/store/images/advertising.png";
		images[2] = "/store/images/climbhigh.png";
		images[3] = "/store/images/birthdayparty.png";
		images[4] = "/store/images/flute.png";
		images[5] = "/store/images/angelebay.png";
		//link to be taken to when clicked
		var link=new Array();
		link[0] = "http://www.omegasound.com/store/index.php?main_page=page&id=19&chapter=0";
		link[1] = "http://www.omegasound.com/store/index.php?main_page=page&id=18&chapter=0";
		link[2] = "http://www.omegasound.com/store/index.php?main_page=product_info&products_id=9204";
		link[3] = "http://www.omegasound.com/store/index.php?main_page=page&id=16&chapter=0";
		link[4] = "http://www.omegasound.com/store/index.php?main_page=page&id=17&chapter=0";
		link[5] = "http://www.omegasound.com/store/index.php?main_page=product_info&products_id=9288";
		//alternative text (pop up text on IE)
		var alt=new Array();
		alt[0] = "Custom Cheer/Dance Production";
		alt[1] = "Custom Advertising Music";
		alt[2] = "Climb High";
		alt[3] = "Studio Birthday Party";
		alt[4] = "Tracks For Instrumentalists";
		alt[5] = "Angel Flight";
		var set = 0;
		var numShowing = 3;
		/*	Nathan Helton
		 *	To Change the number change the numShowingVarible
		 *  Then in your HTML code add more <a id="linkX" href=""><img id="imgX" style="display:inline;" src=""/></a><br/>
		 *  lines and change the id where X is a variable incrementing from 0
		 */
		 
		 var TimeToFade = 500.0;
		 var fadeID = null;
		 
		
		function fadeOut(eid) {
	var element = document.getElementById(eid);
	if (element.fadeTime <= 0) {
		setTimeout("changePicture('"+eid+"')",150);
		return;	
	}
	element.fadeTime-=25;
	var opVal = element.fadeTime/TimeToFade;
	element.style.opacity = opVal;
	element.style.filter = 'alpha(opacity = ' + (opVal*100) + ')';
	setTimeout("fadeOut('"+eid+"')",5);
}

		function fadeIn(eid) {
			var element = document.getElementById(eid);
			if (element.fadeTime >= TimeToFade) {
				element.style.opacity = null;
				element.style.filter = null;
				return;	
			}
			element.fadeTime+=15;
			var opVal = element.fadeTime/TimeToFade;
			element.style.opacity = opVal;
			element.style.filter = 'alpha(opacity = ' + (opVal*100) + ')';
			setTimeout("fadeIn('"+eid+"')",5);
		}
		 
		function fade() {
			var element = document.getElementById('fadeBlock');
			element.fadeTime = TimeToFade;
			fadeOut('fadeBlock');
		}
		
		function changePicture(eid) {
			set++;
			if ((set*3) > link.length || ((set*3)+1) > images.length) {
				set = 0;	
			}
			showSet();	
			fadeIn(eid);
		}
		
		
		function showSet() {
			var count = 0;
			for (var x = (set*3); x < ((set*3)+numShowing); x++) {
				document.getElementById("link"+count).href = link[x];
				document.getElementById("img"+count).src = images[x];
				document.getElementById("img"+count).alt = alt[x];
				count++;
			}
		}
		
		
		
		setInterval("fade()", 6000);