// The diary entries are stored in an array

var page = 0;

diaryStory = new Array(13);

diaryStory[0] = "<h1>STEP INTO COZINESS</h1>Capulet Juliet Pointe Shoe (<a href='http://www.discountdance.com/dancewear/style_JULIETD30.html'>JULIETD30</a>): As a professional dancer I have my own shoes custom made and fitted to my feet so I have been wearing my own shoe now for quite a few years. Discount Dance Supply asked me to try on this new pointe shoe by Capulet® and though I have not danced in it I can say without a doubt that is it the most comfortable pointe shoe that I have ever put on my foot. The 'Juliet' by Capulet® is made with intelligent molecules making the shoes soft and flexible, extremely shock absorbing and supportive around the foot.  A DDS Catalog Exclusive!";

diaryStory[1] = "<h1>ARE YOU SEEING STRIPES?</h1>Natalie Dance Skater Socks (<a href='http://www.discountdance.com/dancewear/style_N8444.html'>N8444</a>/<a href='http://www.discountdance.com/dancewear/style_N8444C.html'>N8444C</a>):  These fun colorful socks will brighten up any outfit. Wear them in class or just around town and you will be sure to be a standout in the crowd. A DDS Catalog Exclusive!";
       
diaryStory[2] = "<h1>CAMI WHAMMY</h1>Bal Togs® Two Tone Camisole (<a href='http://www.discountdance.com/dancewear/style_h87338.html'>H87338</a>/<a href='http://www.discountdance.com/dancewear/style_187338.html'>187338</a>):  Are you in the mood to make a stylish statement? Then this two-tone camisole leotard will do just the trick. Available in fun color combinations including a few with neon pop, this style will sure to be an instant hit among today’s dancers. A DDS Catalog Exclusive!";

diaryStory[3] = "<h1>IT’S A SNAP</h1>K. H. Martin by Sansha Cap Sleeve Leotard (<a href='http://www.discountdance.com/dancewear/style_KH3507M.html'>KH3507M</a>):  This gorgeous cap sleeve leotard will look great on any dancer.  The snaps allow you to adjust the 'V' to as low or high as you want.  This leotard is not only a great classroom basic but it will also look great with your favorite pair of jeans. ";

diaryStory[4] = "<h1>BACK OFF</h1>Natalie’s Tank Leotard (<a href='http://www.discountdance.com/dancewear/style_N8418.html'>N8418</a>): Show off your gorgeous back and be a standout in the classroom in Natalie’s exquisite tank leotard with cloverleaf back design. A DDS Catalog Exclusive!";

diaryStory[5] = "<h1>GO WITH THE FLOW</h1>Watercolour's Tie Dress (<a href='http://www.discountdance.com/dancewear/style_WCTD.html'>WCTD</a>): Elegant and flowing, this exquisite dress by Watercolours was designed especially for Discount Dance Supply.  Great for lyrical or ballet performances and even for a night on the town; this dress can be worn on stage over any leotard but will also look great over your favorite pair or leggings or jeans. A DDS Catalog Exclusive!";

diaryStory[6] = "<h1>PREFECT DRESS FOR CLASS OR STAGE</h1>K.H. Martin by Sansha Tank Dress (<a href='http://www.discountdance.com/dancewear/style_KH2502T.html'>KH2502T</a>): I have always been a big fan of short dresses and often wear them to class or rehearsal so I am sure I will end up getting this dress in all the colors.";

diaryStory[7] = "<h1>THE LONG AND SHORT OF IT</h1>Body Wrappers® Camisole Unitard (<a href='http://www.discountdance.com/dancewear/style_T7313.html'>T7313</a>): Unitards are also another favorite of mine and this tri-colored camisole shorty unitard by Body Wrappers® gives you both a sporty and trendy appeal all in one. I love unitards because the offer you both comfort and function wrapped up all in one garment.";	

diaryStory[8] = "<h1>BOOTY DOWN</h1>DDS Exclusive Seamless Booty Short (<a href='http://www.discountdance.com/dancewear/style_LB900.html'>LB900</a>): Color your world (and the classroom) in these seamless booty shorts.  Available in an assortment of fun colors, these 1 ½ inch seam booty shorts will look great layered over any leotard or paired with your favorite camisole or bra top. A DDS Catalog Exclusive! ";

diaryStory[9] = "<h1>FISHING FOR A COMPLIMENT</h1>DDS Exclusive Fishnet Top (<a href='http://www.discountdance.com/dancewear/style_JULIAN5.html'>JULIAN5</a>): This fishnet seamless top is a great addition to any dancers’ wardrobe. This trendsetting style can be worn over a basic camisole leotard or layered with a colorful bra top underneath for your own unique look.  A DDS Catalog Exclusive!";

diaryStory[10] = "<h1>ALL ZIPPED UP</h1>DDS Exclusive Zipper Capri Legging (<a href='http://www.discountdance.com/dancewear/style_LB11000.html'>LB11000</a>): Add a jolt of athletic chic to your dance wardrobe with these fun leggings.   Accented with studs and a zipper on the bottom, this legging can be layered over any leotard or worn with your favorite tunic top. A DDS Catalog Exclusive!";

diaryStory[11] = "<h1>STREET STYLE</h1>DDS Exclusive T-shirt (<a href='http://www.discountdance.com/dancewear/style_B7223.html'>B7223</a>): Turn up the volume in this fashion forward 'iPod Music' splatter t-shirt.  Designed using an assortment of fun neon colors, this top will look great paired up with your favorite booty short or jeans.  A DDS Catalog Exclusive! ";

diaryStory[12] = "<h1>SWEATS AND A LOT MORE</h1>Boxercraft Hooded Sweatshirt (<a href='http://www.discountdance.com/dancewear/style_V75B.html'>V75B</a>): Stay warm in style with this versatile long sleeve hooded sweatshirt by Boxercraft. This cozy style is great worn as a cover-up over your favorite leotard or wear around town with your favorite pair of skinny jeans or leggings. ";

diaryStory[13] = "<h1>FEEL THE HEAT</h1>Sansha’s Fleece Warm-up Sac (<a href='http://www.discountdance.com/dancewear/style_EF04F.html'>EF04F</a>):  Stay warm and cozy in this great cover-up by Sansha.  Economically priced, this unisex warm-up sac is the perfect addition to any dancer's closet.  GREAT price, GREAT style, what more could you ask for. For a more relaxed fit, I suggest going up one size.";

diaryStory[14] = "<h1>COLOR THERAPY</h1>DDS Exclusive Multi Striped Legwarmers (<a href='http://www.discountdance.com/dancewear/style_WT85.html'>WT85</a>):  Instantly brighten your look for Fall with these look-defining striped 14 inch legwarmers.  Available in four jubilant color combinations, these legwarmers will add flare and style to your dance wardrobe.  A DDS Catalog Exclusive!";

diaryStory[15] = "<h1>THE TOTE OF THE TOWN</h1>Sugar and Bruno Dance Bag (<a href='http://www.discountdance.com/dancewear/style_dd4500.html'>DD4500</a>): Fun and Functional, this tote bag allows the dancer to explore their inner artist. Show your originality and create your own look using the 4 colored markers that are included when you purchase this bag.";

diaryStory[16] = "<h1>MY HATS OFF TO YOU</h1>Funky Diva Graffiti Hat (<a href='http://www.discountdance.com/dancewear/style_FD4008.html'>FD4008</a>): Add some funk to your dance look with this trendy graffiti hat by Funky Diva. ";

diaryStory[17] = "<h1>MY LITTLE PRINCESS</h1>Natalie’s My Little Princess collection (<a href='http://www.discountdance.com/dancewear/style_pb28050.html'>PB28050</a> Animal Print Tutu, <a href='http://www.discountdance.com/dancewear/style_pb28048.html'>PB28048</a> Two-tone Tutu with Glitter, <a href='http://www.discountdance.com/dancewear/style_pb27386.html'>PB27386</a> Organza Tutu with Sequins, <a href='http://www.discountdance.com/dancewear/style_pb28121.html'>PB28121</a> Pastel Petticoat, <a href='http://www.discountdance.com/dancewear/style_pb27405l.html'>PB27405L</a> Organza Halo with Pearls, <a href='http://www.discountdance.com/dancewear/style_pb27406l.html'>PB27406L</a> Heart Wand with Pearls, <a href='http://www.discountdance.com/dancewear/style_pb27596.html'>PB27596</a> Bun Wreath with Flowers ):   This collection consists of dresses, skirts, and delicately detailed accessories all that can be worn in the classroom, on stage, at a birthday party, or at home when playing dress up. Great gift ideas for the “Tiny Dancer or Princess” in your life.  The entire collection is A DDS Website Exclusive!<p>P.S. There are also a ton more new items on the website for this fall, so make sure to check out the WEBSITE EXCLUSIVES section for items that you can get only at Discount Dance Supply";



function placePhotos(selected)
{
photos = new Array(new Array(23), new Array(23)); // the number of photos e.g. 14 photos - enter 13 (because we count from 0)
// fill array with the products that will be included in the diary
// the photos matching 
var photos = [["julietd30.jpg","n8444.jpg","n8444c.jpg","h87338.jpg","187338.jpg","kh3507m.jpg","n8418.jpg","wctd.jpg", "kh2502t.jpg","t7313.jpg","lb900.jpg","julian5.jpg","lb11000.jpg","b7223.jpg","v75b.jpg","ef04f.jpg","wt85.jpg","dd4500.jpg","fd4008.jpg","pb28050.jpg","pb28048.jpg","pb27386.jpg","pb28121.jpg","pb27405l.jpg","pb27406l.jpg","pb27596.jpg"],[0,1,1,2,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,17,17,17,17,17,17]];
	
var photosTotal = photos[0].length;
var count = 1;
image = "";
	for (i=0; i<photosTotal; i++)
		{
			image += '<a href="javascript:story(\'' + photos[1][i] + '\');placePhotos(\'' + photos[1][i] + '\');pageControl(' + photos[1][i] + ');" onClick="largerImages(\'' + photos[0][i] + '\') ">';
			
			if (photos[1][i] == selected) 
			{
			image += "<img src='image/140x150/" + photos[0][i] + "' width='60' height='60' class='selected'></a>";
			}
			else
			{
			image += "<img src='image/140x150/" + photos[0][i] + "' width='60' height='60' class='notselected'></a>";	
			}
			
			document.getElementById("gallery").innerHTML = "" + image + "";
			
			if (count == 3) { count = 0; image = image +  "<br />"; }
			count ++;
		}
	
		
}
function story(selectedStory) {
	
displayStory = selectedStory;

document.getElementById("diaryEntry").innerHTML = "" + diaryStory[displayStory] + "";

}
function largerImages(enlargedPhoto)
{


bigPhoto = enlargedPhoto;
bigPhotoArray = bigPhoto.split(".");

document.getElementById("bigImage").innerHTML = "<a href='http://www.discountdance.com/dancewear/style_" + bigPhotoArray[0] + ".html'> <img src='image/250x300/" + bigPhoto + "' width='160' border='0'></a>";

}
function pageControl(page) 
{
	
		if (page == 0) { previousPage = 17; } else { previousPage = page - 1; }
		if (page == 17) { nextPage = 0; } else { nextPage = page + 1; }
		
		document.getElementById("diaryEntry").innerHTML = "" + diaryStory[page] + "";
		document.getElementById("navigation1").innerHTML = "<a href='javascript:story(" + previousPage + ");placePhotos(" + previousPage + ");pageControl(" + previousPage + ");'><img src='image/fashionDiaryBack.jpg' border='0' ></a>";
		document.getElementById("navigation2").innerHTML = "<a href='javascript:story(" + nextPage + ");placePhotos(" + nextPage + ");pageControl(" + nextPage + ");'><img src='image/fashionDiaryNext.jpg' border ='0'></a>";
		
		
		
	
}

	