	var timerID;
	var datestring = new String();
	var today = new Date();
	var daylist=new Array();
	var monthlist=new Array();	  
	var curPos;
	var posDir;
	var lastPic;
	var curPic;
	var picIndex;
	var thisPicID;
	var season="FALL";
	
	var smList=new Array(21);
	var lgList=new Array(21);
	var pageList=new Array(21);
	var tagList=new Array(5);
	var	tagPics=new Array();
	var smImg = new Image;
	var lgImg = new Image;
	var curLgImg = new Image;
	var curSmImg = new Image;
	pageList[0]="fall.php";
	pageList[1]="fall.php";
	pageList[2]="fall.php";
	pageList[3]="fall.php";
	pageList[4]="fall.php";
	pageList[5]="fall.php";
	pageList[6]="fall.php";
	pageList[7]="fall.php";
	pageList[8]="fall.php";
	pageList[9]="fall.php";
	pageList[10]="fall.php";
	pageList[11]="fall.php";
	pageList[12]="fall.php";
	pageList[13]="spring.php";
	pageList[14]="spring.php";
	pageList[15]="spring.php";
	pageList[16]="spring.php";
	pageList[17]="spring.php";
	pageList[18]="spring.php";
	pageList[19]="spring.php";
	pageList[20]="accessories.php";
	
//	if(season=="SPRING")
//	{
		for(i=0;i<21;i++)
		{
			smList[i]="sm"+i;
			lgList[i]="lg"+i;
		}
//	}
//	else
//	{
//		for(i=1;i<13;i++)
//		{
//			smList[i]="sm"+(i+8);
//			lgList[i]="lg"+(i+8);
//		}
//		for(i=13;i<21;i++)
//		{
//			smList[i]="sm"+(i-11);
//			lgList[i]="lg"+(i-11);
//		}
//			
//	}
	
	for(i=0;i<5;i++)
	{
		tagList[i]="images/taglines/type"+(i+1)+".jpg";
		//alert(tagList[i]);
	}
	
	//alert("Whoa 2");
	

	function move_tag_pics()
	{
		curPic=lastPic;
		while(curPic==lastPic)
		{
			curPic=Math.floor(Math.random()*5);
		}	
//		alert(curPic);	
		document.getElementById('tagPic').src=tagList[curPic];
		lastPic=curPic;
	}
	
	function move_tag_picsA()
	{
		curPic=lastPic;
		while(curPic==lastPic)
		{
			curPic=Math.floor(Math.random()*5);
		}	
//		alert(curPic);	
		document.getElementById('tagPic').src=tagList[curPic];
		lastPic=curPic;
	}
	
	function makeCursorWait(xthis)
	{
		xthis.style.cursor="wait";
	}
	
	function makeCursorDefault(xthis)
	{
		xthis.style.cursor="default";
	}
	
	function makeCursorHand(xthis)
	{
		xthis.style.cursor="pointer";
	}
	
	function move_pics()
	{
		var posChange;
		curPos=document.getElementById('scrollerDiv').style.left;
		curPos=parseInt(curPos,10);
		if(curPos==-133)
		{
			curPos=0;
			curSmImg=smList[0];
			curLgImg=lgList[0];
			curPageList=pageList[0];
			for(picIndex=0;picIndex<20;picIndex++)
			{
				smList[picIndex]=smList[picIndex+1];
				lgList[picIndex]=lgList[picIndex+1];
				pageList[picIndex]=pageList[picIndex+1];
			}
			smList[20]=curSmImg;
			lgList[20]=curLgImg;
			pageList[20]=curPageList;
		}
		else
		{
			curPos-=1;
		}
		document.images['scroll1'].src=document.images[smList[0]].src;
		document.images['scroll2'].src=document.images[smList[1]].src;
		document.images['scroll3'].src=document.images[smList[2]].src;
		document.images['scroll4'].src=document.images[smList[3]].src;
		document.images['scroll5'].src=document.images[smList[4]].src;
		document.images['scroll6'].src=document.images[smList[5]].src;
		document.images['scroll7'].src=document.images[smList[6]].src;
		document.images['scroll8'].src=document.images[smList[7]].src;
		document.getElementById('scrollerDiv').style.left=curPos+"px";
	}
	
	function move_picsA()
	{
		var posChange;
		curPos=document.getElementById('scrollerDivA').style.left;
		curPos=parseInt(curPos,10);
		if(curPos==-133)
		{
			curPos=0;
			curSmImg=smList[0];
			curLgImg=lgList[0];
			curPageList=pageList[0];
			for(picIndex=0;picIndex<20;picIndex++)
			{
				smList[picIndex]=smList[picIndex+1];
				lgList[picIndex]=lgList[picIndex+1];
				pageList[picIndex]=pageList[picIndex+1];
			}
			smList[20]=curSmImg;
			lgList[20]=curLgImg;
			pageList[20]=curPageList;
		}
		else
		{
			curPos-=1;
		}
		document.images['scroll1'].src=document.images[smList[0]].src;
		document.images['scroll2'].src=document.images[smList[1]].src;
		document.images['scroll3'].src=document.images[smList[2]].src;
		document.images['scroll4'].src=document.images[smList[3]].src;
		document.images['scroll5'].src=document.images[smList[4]].src;
		document.images['scroll6'].src=document.images[smList[5]].src;
		document.images['scroll7'].src=document.images[smList[6]].src;
		document.images['scroll8'].src=document.images[smList[7]].src;
		document.getElementById('scrollerDivA').style.left=curPos+"px";
	}
	
	function start_clock()	
	{ 						
		//alert("Whoa 3");
		document.getElementById('scrollerDiv').style.left="0px";
		posDir=-1;
		timerID=setInterval("move_pics()",29);
		timerID2=setInterval("move_tag_pics()",10001);
		lastPic=1;
		document.body.style.cursor="default";
	}

	function start_clockA()	
	{ 						
		//alert("Whoa 3");
		document.getElementById('scrollerDivA').style.left="0px";
		posDir=-1;
		timerID=setInterval("move_picsA()",29);
		timerID2=setInterval("move_tag_picsA()",10001);
		lastPic=1;
		document.body.style.cursor="default";
	}

	function setImg(picID)
	{
		thisPicID=picID;
//		alert(pageList[picID]);
//		newStuff="<img id=\"prodPic\" name=\"prodPic\" alt=\"products\" ";
//		newStuff=newStuff+"src=\"images/galleryl/galleryLg/";
//		newStuff=newStuff+images[lgList[picID]].src\" />";
//		alert(newStuff);
//		document.getElementById("bigImg").innerHTML=newStuff;
//		alert(document.images[lgList[picID]].src);
		document.images['prodPic'].src=document.images[lgList[picID]].src;
	}
	
	function goToIt()
	{
//		alert(thisPicID);
//		alert(pageList[thisPicID]);

		x=pageList[thisPicID];
		if(x!="spring.php" && x!="fall.php" && x!="accessories.php")
		{
			x=pageList[0];
		}
		window.location=x;
	}	
	
	function myTrim(s)
	{
		//alert("~~"+s+"~~");
		while(s.substr(0,1)==" ")
		{
			s=s.substr(1);
		}
		l=s.length;
		while(s.substr(l-1,1)==" ")
		{
			s=s.substr(0,l-1);
			l=s.length;
		}
		//alert("~~"+s+"~~");
		return s;
	}