// JavaScript Document
//show a new image every 1500 ms to start
	var id1  = setInterval("show1()", 1000);
	var id2  = setInterval("show2()", 2000);
	var id3  = setInterval("show3()", 3000);
	var id4  = setInterval("show4()", 4000);
	var id5  = setInterval("show5()", 5000);
	var id6  = setInterval("show6()", 6000);
	
//show text slideshow
	function show1()
	{
		$(".slide:eq(0)").fadeIn("slow");
	}
//hide featured
	function show2()
	{
		$(".slide:eq(1)").fadeIn ("slow");
	}
//show top 10
	function show3()
	{
		$(".slide:eq(2)").fadeIn ("slow");
	}	
//hide top 10
	function show4() 
	{
		$(".slide:eq(3)").fadeIn ("slow");
	}
//show promotion world
	function show5()
	{
		$(".slide:eq(4)").fadeIn ("slow");
	}
//hide promotion world
	function show6()
	{
		$(".slide:eq(5)").fadeIn ("slow");
	}
	
	
	$(document).ready(function() {
//= fix pngs in ie
			var i;
			for (i in document.images) {
			if (document.images[i].src) {
			var imgSrc = document.images[i].src;
			if (imgSrc.substr(imgSrc.length-4) === '.png' || imgSrc.substr(imgSrc.length-4) === '.png') {
				document.images[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='crop',src='" + imgSrc + "')";
					}
				}
			}		

//= get slideshow
			function slideshow() {
				var id1;
				var id2;
				var id3;
				var id4;
				var id5;
				var id6;	
				clearInterval(id1);
				clearInterval(id2);
				clearInterval(id3);
				clearInterval(id4);
				clearInterval(id5);
				clearInterval(id6);			
			}
});
