function randOrd(){
	return (Math.round(Math.random())-0.5);
	} 
//Writes the navigation for the shirt styles in that department

function printShirtsNav() { 
	if (section == "Man" ) {
			document.write('<a href="/Man/ManCarving.html"><img src="/Images/Products/thumbs/ManCarving.jpg" width="50" height="50" alt="carving is cool shirt man" border="0" class="thumbnails"/><br />carving is cool</a><br/><a href="/Man/ManTrailersRock.html"><img src="/Images/Products/thumbs/ManTrailersRockArmy.jpg" width="50" height="50" alt="trailers rock shirt man" border="0" class="thumbnails" style="margin-top: 7px"/><br />trailers rock</a><br /><a href="/Man/ManLASucks.html"><img src="/Images/Products/thumbs/ManLASucks_Green.jpg" width="50" height="50" alt="la sucks shirt man" border="0" class="thumbnails" style="margin-top: 7px"/><br />l.a. sucks </a><a href="/Man/ManLiquorWH.html"><img src="/Images/Products/thumbs/ManLiquor2.jpg" width="50" height="50" alt="liquor shirt man" border="0" class="thumbnails" style="margin-top: 7px"/><br />liquor</a><br/><a href="/Man/ManEatSleepSurf.html"><img src="/Images/Products/thumbs/ManEatSleepSurf2.jpg" width="50" height="50" alt="eat sleep surf shirt man" border="0" class="thumbnails" style="margin-top: 7px"/><br />eat sleep surf</a>');
	} 	
	else if (section == "Woman"){
	var thumbs = new Array();
	thumbs[0] = '<a href="/Woman/WomanCarving.html"><img src="/Images/Products/thumbs/WomanCarving.jpg" width="50" height="50" alt="carving is cool shirt woman" border="0" class="thumbnails" style="margin-top: 7px"/><br />carving is cool</a><br/>';
	thumbs[1] = '<a href="/Woman/WomanJazzy.html"><img src="/Images/Products/thumbs/WomanJazzy.jpg" width="50" height="50" alt="jazzy shirt woman" border="0" class="thumbnails" style="margin-top: 7px;"/><br />jazzy</a><br/>';
	thumbs[2] = '<a href="/Woman/WomanTrailersRock.html"><img src="/Images/Products/thumbs/WomanTrailersRock.jpg" width="50" height="50" alt="trailers rock shirt woman" border="0" class="thumbnails" style="margin-top: 7px"/><br />trailers rock</a><br/>';
	thumbs[3] = '<a href="/Woman/WomanTranquilo.html"><img src="/Images/Products/thumbs/WomanTranquiloBl.jpg" width="50" height="50" alt="tranquilo shirt woman" border="0" class="thumbnails" style="margin-top: 7px"/><br />tranquilo</a><br/>';
	thumbs[4] = '<a href="/Woman/WomanLASucks.html"><img src="/Images/Products/thumbs/WomanLASucks.jpg" width="50" height="50" alt="la sucks shirt woman" border="0" class="thumbnails" style="margin-top: 7px"/><br />l.a. sucks </a><br/>';
	thumbs[5] = '<a href="/Woman/WomanLiquor.html"><img src="/Images/Products/thumbs/WomanLiquor.jpg" width="50" height="50" alt="liquor shirt woman" border="0" class="thumbnails" style="margin-top: 7px"/><br />liquor</a><br/>';
	thumbs[6] = '<a href="/Woman/WomanEatSleepSurf.html"><img src="/Images/Products/thumbs/WomanESSRed.jpg" width="50" height="50" alt="eat sleep surf shirt woman" border="0" class="thumbnails" style="margin-top: 7px"/><br />eat sleep surf </a><br/>';
	thumbs[7] = '<a href="/Woman/WomanPalms.html"><img src="/Images/Products/thumbs/WomanPalms.jpg" width="50" height="50" alt="rainbow palms shirt woman" border="0" class="thumbnails" style="margin-top: 7px"/><br />palms</a><br/>';
	thumbs[8] = '<a href="/Woman/WomanLASucksLS.html"><img src="/Images/Products/thumbs/WomanLASucksLS_Black.jpg" width="50" height="50" alt="la sucks woman long sleeve" border="0" class="thumbnails" style="margin-top: 7px"/><br />l.a. sucks l/s</a><br/>'
	thumbs[9] = '<a href="/Woman/WomanTrailersRockScoop.html"><img src="/Images/Products/thumbs/WomanTrailersRockScoop.jpg" width="50" height="50" alt="trailers rock organic scoop" border="0" class="thumbnails" style="margin-top: 7px"/><br />trailers rock organic</a><br/>'
	thumbs[10] = '<a href="/Woman/WomanLiquorTank.html"><img src="/Images/Products/thumbs/WomanLiquorTank.jpg" width="50" height="50" alt="liquor tank" border="0" class="thumbnails" style="margin-top: 7px"/><br />liquor tank</a><br/>';	
	thumbs[11] = '<a href="/Woman/WomanFlamingos.html"><img src="/Images/Products/thumbs/WomanFlamingo.jpg" width="50" height="50" alt="flamingos shirt woman" border="0" class="thumbnails" style="margin-top: 7px"/><br />flamingos</a><br/>';
	thumbs[12] = '<a href="/Woman/WomanLiquorV.html"><img src="/Images/Products/thumbs/WomanLiquorW.jpg" width="50" height="50" alt="liquor V-neck" border="0" class="thumbnails" style="margin-top: 7px"/><br />liquor v woman</a><br/>';
	thumbs[13] = '<a href="/Woman/WomanEatSleepSurf_LS.html"><img src="/Images/Products/thumbs/WomanESS_LS.jpg" width="50" height="50" alt="eat sleep surf long sleeve shirt woman" border="0" class="thumbnails" style="margin-top: 7px"/><br />eat sleep surf</a><br/>';
	
	
	document.write('<a href="/Woman/Woman.html"><p style="padding-bottom: 0px; padding-top: 0px; margin-top: 0px">view all women\'s</p></a>');
		
		var usedArray = new Array();
		for (i=0; i<14; i++){
			usedArray[i] = i;	
		}
		usedArray.sort(randOrd);
		
		for (i=0; i<7; i++){ //i is number to display in side bar
			document.write(thumbs[usedArray[i]]);	
		}	
}	else if (section == "Child" ) {
		document.write('<a href="/Child/ChildTrailersRock.html"><img src="/Images/Products/thumbs/ChildTrailersRock.jpg" width="50" height="50" alt="trailers rock shirt child" border="0" class="thumbnails"/><br />trailers rock</a><br /><a href="/Child/ChildCarving.html"><img src="/Images/Products/thumbs/ChildCarving2.jpg" width="50" height="50" alt="carving is cool shirt child" border="0" class="thumbnails" style="margin-top: 7px"/><br />carving is cool</a><br /><a href="/Child/ChildEatSleepSurf.html"><img src="/Images/Products/thumbs/ChildEatSleepSurf2.jpg" width="50" height="50" alt="eat sleep surf shirt child" border="0" class="thumbnails" style="margin-top: 7px"/><br />eat sleep surf</a><a href="/Child/ChildPalms.html"><img src="/Images/Products/thumbs/ChildRainbow.jpg" width="50" height="50" alt="rainbow palms shirt child" border="0" class="thumbnails" style="margin-top: 7px"/><br />palms</a>');
	} 
	
	else if (section =="Sale"){
	var thumbs = new Array();
	thumbs[0] = '<a href="/Man/ManTranquilo.html"><img src="/Images/Products/thumbs/ManTranquilo.jpg" width="50" height="50" alt="tranquilo shirt man" border="0" class="thumbnails" style="margin-top: 7px"/><br />tranquilo man</a><br/>';
	thumbs[1] = '<a href="/Man/ManLiquor.html"><img src="/Images/Products/thumbs/ManLiquor.jpg" width="50" height="50" alt="liquor shirt man" border="0" class="thumbnails" style="margin-top: 7px"/><br />liquor man</a>';
	thumbs[2] = '<a href="/Man/ManShredClub.html"><img src="/Images/Products/thumbs/ManShredClub.jpg" width="50" height="50" alt="shred club shirt man" border="0" class="thumbnails" style="margin-top: 7px"/><br />shred club man</a><br/>';
	thumbs[3] = '<a href="/Man/ManJazzy.html"><img src="/Images/Products/thumbs/ManJazzy.jpg" width="50" height="50" alt="jazzy shirt man" border="0" class="thumbnails" style="margin-top: 7px"/><br />jazzy man</a><br/>';
	thumbs[4] = '<a href="/Woman/WomanFlamingos.html"><img src="/Images/Products/thumbs/WomanFlamingo.jpg" width="50" height="50" alt="flamingos shirt woman" border="0" class="thumbnails" style="margin-top: 7px"/><br />flamingos woman</a><br/>';
	thumbs[5] = '<a href="/Woman/WomanEatSleepSurf_LS.html"><img src="/Images/Products/thumbs/WomanESS_LS.jpg" width="50" height="50" alt="eat sleep surf long sleeve shirt woman" border="0" class="thumbnails" style="margin-top: 7px"/><br />eat sleep surf woman</a><br/>';
	thumbs[6] = '<a href="/Woman/WomanEatSleepSurf.html"><img src="/Images/Products/thumbs/WomanESSRed.jpg" width="50" height="50" alt="eat sleep surf shirt woman" border="0" class="thumbnails" style="margin-top: 7px"/><br />eat sleep surf woman</a><br/>';
	thumbs[7] = '<a href="/Woman/WomanLiquorV.html"><img src="/Images/Products/thumbs/WomanLiquorW.jpg" width="50" height="50" alt="liquor V-neck" border="0" class="thumbnails" style="margin-top: 7px"/><br />liquor v woman</a><br/>';
	thumbs[8] = '<a href="/Woman/WomanJazzy.html"><img src="/Images/Products/thumbs/WomanJazzy.jpg" width="50" height="50" alt="jazzy shirt woman" border="0" class="thumbnails" style="margin-top: 7px;"/><br />jazzy woman</a><br/>';
	thumbs[9] = '<a href="/Woman/WomanPalms.html"><img src="/Images/Products/thumbs/WomanPalms.jpg" width="50" height="50" alt="rainbow palms shirt woman" border="0" class="thumbnails" style="margin-top: 7px"/><br />palms woman</a><br/>';
	thumbs[10] = '<a href="/Woman/WomanTranquilo.html"><img src="/Images/Products/thumbs/WomanTranquiloBl.jpg" width="50" height="50" alt="tranquilo shirt woman" border="0" class="thumbnails" style="margin-top: 7px"/><br />tranquilo woman</a><br/>';
	thumbs[11] = '<a href="/Child/ChildTranquilo.html"><img src="/Images/Products/thumbs/ChildTranquilo.jpg" width="50" height="50" alt="tranquilo shirt child" border="0" class="thumbnails" style="margin-top: 7px"/><br />tranquilo child</a><br/>';
	
	document.write('<a href="/Sale.html"><p style="padding-bottom: 0px; padding-top: 0px; margin-top: 0px">view all sale</p></a>');
		
		var usedArray = new Array();
		for (i=0; i<12; i++){
			usedArray[i] = i;	
		}
		usedArray.sort(randOrd);
		
		for (i=0; i<7; i++){
			document.write(thumbs[usedArray[i]]);	
		}

	}	
	else if (section == "Pet" ) {

	} 
	
	else if (section == "Accessorize"){
	var thumbs = new Array();
	thumbs[0] = '<a href="/Accessorize/Melissa.html"><img src="/Images/Products/thumbs/AccMelissaAmber.jpg" width="50" height="50" alt="melissa" border="0" class="thumbnails" style="margin-top: 7px"/><br />melissa</a><br />';
	thumbs[1] = '<a href="/Accessorize/Lanterns.html"><img src="/Images/Products/thumbs/AccLanternsWhite.jpg" width="50" height="50" alt="lanterns" border="0" class="thumbnails" style="margin-top: 7px"/><br />lanterns</a><br />';	
	thumbs[2] = '<a href="/Accessorize/GoldGems.html"><img src="/Images/Products/thumbs/AccGoldGemsGreen.jpg" width="50" height="50" alt="gold gems" border="0" class="thumbnails" style="margin-top: 7px"/><br />gold gems</a><br />';
	thumbs[3] = '<a href="/Accessorize/CarnelianHoops.html"><img src="/Images/Products/thumbs/AccCarnelianHoops.jpg" width="50" height="50" alt="carnelian hoops" border="0" class="thumbnails" style="margin-top: 7px"/><br /><span style="font-size:10px">carnelian hoops</span></a><br />';
	thumbs[4] = '<a href="/Accessorize/RedCandy.html"><img src="/Images/Products/thumbs/AccRedCandy2.jpg" width="50" height="50" alt="red candy" border="0" class="thumbnails" style="margin-top: 7px"/><br />red candy</a><br />';	
	thumbs[5] = '<a href="/Accessorize/ShellShapes.html"><img src="/Images/Products/thumbs/AccShellShapesOS2.jpg" width="50" height="50" alt="shell shapes" border="0" class="thumbnails" style="margin-top: 7px"/><br />shell shapes</a><br />';
	thumbs[6] = '<a href="/Accessorize/ShellDrops.html"><img src="/Images/Products/thumbs/AccShellDropsGreen.jpg" width="50" height="50" alt="shell drops" border="0" class="thumbnails" style="margin-top: 7px"/><br />shell drops</a><br />';
	thumbs[7] = '<a href="/Accessorize/ChainCrystals.html"><img src="/Images/Products/thumbs/AccChainedCrystals.jpg" width="50" height="50" alt="chained crystals" border="0" class="thumbnails" style="margin-top: 7px"/><br />chained crystals</a><br />';
	thumbs[8] = '<a href="/Accessorize/Bre.html"><img src="/Images/Products/thumbs/AccBre2.jpg" width="50" height="50" alt="bre" border="0" class="thumbnails" style="margin-top: 7px"/><br />bre</a><br />';
	thumbs[9] = '<a href="/Accessorize/Donuts.html"><img src="/Images/Products/thumbs/AccDonutBlue.jpg" width="50" height="50" alt="donuts" border="0" class="thumbnails" style="margin-top: 7px"/><br />donuts</a><br />';
	thumbs[10] = '<a href="/Accessorize/CrystalFlowers.html"><img src="/Images/Products/thumbs/AccCrystalFlowersRed.jpg" width="50" height="50" alt="crystal flowers" border="0" class="thumbnails" style="margin-top: 7px"/><br />crystal flowers</a><br />';
	thumbs[11] = '<a href="/Accessorize/DosEstrellas.html"><img src="/Images/Products/thumbs/AccDosEstrellas2.jpg" width="50" height="50" alt="dos estrellas" border="0" class="thumbnails" style="margin-top: 7px"/><br />dos estrellas</a><br />';
	thumbs[12] = '<a href="/Accessorize/Cascade.html"><img src="/Images/Products/thumbs/AccCascadePP.jpg" width="50" height="50" alt="cascade" border="0" class="thumbnails" style="margin-top: 7px"/><br />cascade</a><br />';
	thumbs[13] = '<a href="/Accessorize/DoubleHappiness.html"><img src="/Images/Products/thumbs/AccDoubleHappiness1.jpg" width="50" height="50" alt="double happiness" border="0" class="thumbnails" style="margin-top: 7px"/><br />double happiness</a><br />';	
	thumbs[14] = '<a href="/Accessorize/TwoRingCircus.html"><img src="/Images/Products/thumbs/AccTwoRingCircusO.jpg" width="50" height="50" alt="two ring circus" border="0" class="thumbnails" style="margin-top: 7px"/><br />two ring circus</a><br />';		
	thumbs[15] = '<a href="/Accessorize/GoGo.html"><img src="/Images/Products/thumbs/AccGoGoOrange.jpg" width="50" height="50" alt="go-go" border="0" class="thumbnails" style="margin-top: 7px"/><br />go-go</a><br />';	
	thumbs[16] = '<a href="/Accessorize/Drip.html"><img src="/Images/Products/thumbs/AccDripTurqG.jpg" width="50" height="50" alt="drip" border="0" class="thumbnails" style="margin-top: 7px"/><br />drip</a><br />';
	
	document.write('<a href="/Accessorize/Accessorize.html"><p style="padding-bottom: 0px; padding-top: 0px; margin-top: 0px">view all accessories</p></a>');
		
		var usedArray = new Array();
		for (i=0; i<17; i++){
			usedArray[i] = i;	
		}
		usedArray.sort(randOrd);
		
		for (i=0; i<7; i++){
			document.write(thumbs[usedArray[i]]);	
		}
	}	
}
