// JavaScript Document
<!--

		var mySlideList = ['images/IMG_1781.JPG','images/IMG_1782.JPG','images/IMG_1783.JPG','images/IMG_1784.JPG','images/IMG_1785.JPG'];
		var mySlideShow = new SlideShow(mySlideList, 'slideimg',3000,"mySlideShow");
		
		var mySlideList2 = ['images/Bag1.JPG','images/Bag2.JPG','images/Bag3.JPG','images/Bag4.JPG','images/Bag5.JPG','images/Bag6.JPG','images/Bag7.JPG'];
		var mySlideShow2 = new SlideShow(mySlideList2, 'slideimg2',3000,"mySlideShow2");
		
		var mySlideList3 = ['images/IMG_5627.JPG','images/IMG_5628.JPG','images/IMG_5633.JPG','images/IMG_5634.JPG','images/IMG_5635.JPG','images/IMG_5636.JPG','images/IMG_5637.JPG','images/IMG_5637.JPG'];
		var mySlideShow3 = new SlideShow(mySlideList3, 'slideimg3',3000,"mySlideShow3");
		
		function SlideShow(slideList, image, speed, name)          
		
		{
		
		  this.slideList = slideList;
		
		  this.image = image;
		
		  this.speed = speed;
		
		  this.name = name;
		
		  this.current = 0;
		
		  this.timer = 0;
		
		}
		
		SlideShow.prototype.play = SlideShow_play;  
		
		function SlideShow_play()       
		
		{
		
		  with(this)
		
		  {
		
			if(current++ == slideList.length-1) current = 0;
		
			switchImage(image, slideList[current]);
		
			clearTimeout(timer);
		
			timer = setTimeout(name+'.play()', speed);
		
		  }
		
		}
		
		function switchImage(imgName, imgSrc) 
		
		{
		
		  if (document.images)
		
		  {
		
			if (imgSrc != "none")
		
			{
		
			  document.images[imgName].src = imgSrc;
		
			}
		
		  }
		
		}
		
		
		var thedate = new Date();
		var month = thedate.getMonth();
		
		function isWinter()
		{
			if(month > 4 && month < 8){return false;}
			return true;
		}
		
		function SetHoursText(id)
		{
			if(isWinter()){
				document.getElementById(id).innerHTML = '<table class=\"tableHours\"><tr><td><h2>Winter Hours</h2></td></tr><tr><td>Closed Monday</td></tr><tr><td>Tuesday - Friday  12-6</td></tr><tr><td>Saturday 10-6</td></tr><tr><td>Sunday 12-5</td></tr></table>';
			}
			else{
				document.getElementById(id).innerHTML = '<table class=\"tableHours\"><tr><td><h2>Summer Hours</h2></td></tr><tr><td>Monday 11-5</td></tr><tr><td>Tuesday Closed</td></tr><tr><td>Wednesday 11-5</td></tr><tr><td>Thursday 11-5</td></tr><tr><td>Friday 11-6</td></tr><tr><td>Saturday 10-6</td></tr><tr><td>Sunday 12-5</td></tr></table>';
			}
		}
		
		function ShowDiv(DivID) 
		{
	 		var ContentDiv = document.getElementById('content');
	 
	 		var children = ContentDiv.getElementsByTagName('div') ;               
	 		for(var c=0; c < children.length; c++) 
	 		{
				if(children[c].id == DivID)
				{
					children[c].style.display = '';
					if(children[c].id == 'tour')
					{
						mySlideShow.play();
					}
					if(children[c].id == 'handbags')
					{
						mySlideShow2.play();
					}
					if(children[c].id == 'shoes')
					{
						mySlideShow3.play();
					}
				}
				else
				{
					children[c].style.display = 'none';
				}
	 		}
		}
		
		<!--window.onload=function(){SetHoursText('divHours'); ShowDiv('feature');}-->
		window.onload=function(){ ShowDiv('feature');}
		
		function SwitchImages(imgTags, direction, ImgMax)
		{
			var currentPage = document.getElementById('labelPage').innerHTML;
			var pageMax = Math.round(ImgMax/imgTags.length);
			
			if(direction == "BACK")
			{
				currentPage --;
				if(currentPage	< 1)
				{
					currentPage = pageMax;
				}
			}
			else
			{
				currentPage ++ ;
				if(currentPage > pageMax)
				{
					currentPage = 1;
				}
			}
			
			for(var i=0; i < imgTags.length; i++)
			{
				var imageNumber = (currentPage - 1) * imgTags.length + (i + 1);
				var imgItem = document.getElementById(imgTags[i]);
				if(imageNumber < ImgMax)
				{
					if(imageNumber < 10)
					{
						imageNumber = "0" + imageNumber;
					}
					imgItem.src = "images/spring09/shoe" + imageNumber + "_spring09.gif";
					imgItem.style.display = '';
					imgItem.alt = imageNumber;
				}
				else
				{
					imgItem.style.display = 'None';
				}
			}
			
			document.getElementById('labelPage').innerHTML = currentPage;
		}
-->	
