// Prod Maker
function ProdMaker(numb, dscr, price, size, themeLink, homeOrGal) {
this.numb = numb;
this.dscr = dscr;
this.price = price;
this.size = size;
this.themeLink = themeLink;
this.homeOrGal = homeOrGal;
}



// News Maker
function newsMaker(numb, tit, dscr) {
this.numb = numb;
this.tit = tit;
this.dscr = dscr;
}


// Top Link
function topLink(i,j)	{
	if (i == 'news')	{
		return('<A HREF="http://www.wooly-baby.com/news' + news[news.length-1].numb + '.html"><IMG BORDER=0 SRC="./themes/' + j + '_links_news.gif"></A>');
				}
	else			{
		return('<A HREF="http://www.wooly-baby.com/' + i + '.html"><IMG BORDER=0 SRC="./themes/' + j + '_links_' + i + '.gif"></A>');
				}
			}




// Get Random Number
// ==========================================================================
function getRandomNum(lbound, ubound) {
return (Math.round(Math.random() * (ubound - lbound)) + lbound);
}




prod = new Array();
count = -1;


//prod[++count] = new ProdMaker('049','',33.00,'7','xjx lfl msm','g h');

prod[++count] = new ProdMaker('066','\'Autumn\' - Lambswool toddler slippers with leather toe and heel.',36.00,'7','xjx lfl msm','g h');
prod[++count] = new ProdMaker('065','\'Silly\' patchwork, hi-top slippers with soft, chocolate brown leather heel and toe',48.00,'7','xjx lfl msm','g h');
prod[++count] = new ProdMaker('064','\'Pocket Full of Posies\' high-top slippers',33.00,'7','lfl msm','g h');
prod[++count] = new ProdMaker('063','\'Dress Up\' high-top side-seam slippers',42.00,'7','xjx lfl msm','g h');
prod[++count] = new ProdMaker('062','\'First Bike\' light blue, high-top side-seam slippers',42.00,'7','lfl msm','g h');
prod[++count] = new ProdMaker('061','\'Holiday Stockings\' hight top baby slippers with leather toe and heel',38.00,'7','xjx lfl msm','g h');
prod[++count] = new ProdMaker('060','Wooly Baby cashmere hat and slipper pair',56.00,'7','xjx lfl msm','g h');
prod[++count] = new ProdMaker('059','\'Cotton Candy\' high top slippers with leather toe and heel',38.00,'7','xjx lfl msm','g h');
prod[++count] = new ProdMaker('058','\'Side pocket\' high top slippers with leather toe & heel',32.00,'3','lfl msm','g h');
prod[++count] = new ProdMaker('057','\'Mosey\' low top, merino wool slippers with applique flower',46.00,'5','lfl msm','g h');
//prod[++count] = new ProdMaker('056','A variety or Wooly Baby slippers',33.00,'v','xjx lfl msm','g h');
prod[++count] = new ProdMaker('055','Burnt Sienna low top slippers with faux strap',42.00,'7','lfl msm','g h');
prod[++count] = new ProdMaker('054','\'Green Apples\' basic low top slippers',28.00,'7','lfl msm','g h');
prod[++count] = new ProdMaker('053','Striped high top slippers with leather toe & heel',33.00,'7','lfl msm','g h');
prod[++count] = new ProdMaker('052','\'Town Boots\' - high top, side-seam slippers',38.00,'7','xjx lfl msm','g h');
prod[++count] = new ProdMaker('051','Smoke blue low top slippers with faux strap',40.00,'7','lfl msm','g h');
//prod[++count] = new ProdMaker('050','Striped low top slippers with leather toe & heel',33.00,'7','lfl msm','g h');
prod[++count] = new ProdMaker('049','\'Puddles on the Way\' Low top merino wool slippers',37.00,'5','xjx lfl msm','g h');
prod[++count] = new ProdMaker('048','\'Making Cider\' High top lambs wools slippers',37.00,'5','xjx lfl msm','g h');
prod[++count] = new ProdMaker('047','High top lambs wool slippers with leather heel and toe',38.00,'5','xjx lfl msm','g h');
prod[++count] = new ProdMaker('046','\'Crawdad Hunting\' low top slippers',33.00,'5','xjx lfl msm','g h');
//prod[++count] = new ProdMaker('045','\'Gone Fishing\' Lambs Wool low top slippers',33.00,'4','xjx lfl msm','g h');
prod[++count] = new ProdMaker('044','\'Country Fair\' high top slippers',33.00,'3','xjx lfl msm','g h');
prod[++count] = new ProdMaker('043','\'Snow Fort\' high top slippers with leather toes and heels',38.00,'7','xjx lfl msm','g h');
//prod[++count] = new ProdMaker('042','\'Balloon Man\' low top scrap bin slippers',33.00,'7','lfl msm','g h');
//prod[++count] = new ProdMaker('041','\'Wheat Fields\' low top tan slippers with wool tweed strap',33.00,'7','lfl msm','g h');
//prod[++count] = new ProdMaker('040','\'Sky Baby\' blue low top baby slippers',28.00,'3','xjx lfl msm','g h');
//prod[++count] = new ProdMaker('039','\'Picking Violets\' Side seamed purple toddler slipper',33.00,'6','lfl msm','g h');
prod[++count] = new ProdMaker('038','\'Naked in the Rain\' high top toddler slipper',36.00,'7','lfl msm','g h');
//prod[++count] = new ProdMaker('037','\'Field Mouse\' low top toddler slipper',33.00,'6','xjx lfl msm','g h');
prod[++count] = new ProdMaker('036','\'Raspberry patch\' high top toddler slipper',33.00,'5','lfl msm','g h');
//prod[++count] = new ProdMaker('035','Pink low top slipper with leather heel and toe - perfect for summer and spring!',32.00,'7','lfl msm','g h');
//prod[++count] = new ProdMaker('034','\'Lamb to School\' high top slipper with leather heel and toe.',36.00,'7','lfl msm','g h');
prod[++count] = new ProdMaker('033','\'Gladiola\' flower ankled high top slipper with chocolate leather toe and heel',43.00,'7','xjx lfl msm','g h');
//prod[++count] = new ProdMaker('032','\'Racing Stripes\' high top baby slippers with leather reinforced toes and heels - ZIP ZIP!',33.00,'7','xjx lfl msm','g h');
//prod[++count] = new ProdMaker('031','\'Elderberry Jam\' low top baby slippers with leather reinforced toes and heels',33.00,'5','xjx lfl msm','g h');
prod[++count] = new ProdMaker('030','\'Mountain Laurel\' high top baby slippers with leather reinforced toes and heels',33.00,'v','xjx','g h');
prod[++count] = new ProdMaker('029','\'She\'s so Sweet\' thick high top baby slippers with chocolate brown soles',29.00,'8','xjx','g h');
//prod[++count] = new ProdMaker('028','\'After Midnight cardigans made cool again\' - High-top baby slippers with mother of pearl buttons',33.00,'6','xjx lfl msm','g h');
//prod[++count] = new ProdMaker('027','High top baby slippers with full surround, leather reinforced soles',42.00,'7','xjx lfl msm','g h');
//prod[++count] = new ProdMaker('026','Brown high top slippers made from ultra-thick felted sweater',28.00,'7','xjx lfl msm','g h');
//prod[++count] = new ProdMaker('025','\'Cardigans made cool-again\' - High-top baby slippers made from cardigan sweaters',33.00,'7','xjx lfl msm','g h');
//prod[++count] = new ProdMaker('018','Tan high-top toddler slippers',29.00,'7','xjx lfl','g');
prod[++count] = new ProdMaker('019','Speckled, light gray, mid-top toddler slippers',29.00,'7','xjx lfl msm','g h');
//prod[++count] = new ProdMaker('020','Plain light gray and magenta toddler slippers',29.00,'v','xjx','g h');
//prod[++count] = new ProdMaker('021','Chocolate brown, mid-top baby slippers',29.00,'4','xjx lfl msm','g h');
//prod[++count] = new ProdMaker('022','Cotton candy stripe toddler slippers (85% wool, 15% acrylic)',29.00,'7','xjx msm','g h');
//prod[++count] = new ProdMaker('000','Rust fair isle, mid-top toddler slippers',29.00,'5.5','xjx lfl','g h');
//prod[++count] = new ProdMaker('002','Tan, felted top toddler slippers',29.00,'2T','xjx lfl msm','g h');
//prod[++count] = new ProdMaker('003','Sky blue baby slippers with dark brown soles',29.00,'3','xjx lfl','g h');
//prod[++count] = new ProdMaker('004','Grey, cabled slippers with ribbed, high-top',29.00,'7','xjx lfl','g h');
//prod[++count] = new ProdMaker('005','Royal magenta toddler slippers made from 100% lamb\'s wool',29.00,'5.5','xjx','g h');
//prod[++count] = new ProdMaker('006','High topped, \'Red-lectric\' cabled toddler slippers',29.00,'7','xjx lfl','g');
//prod[++count] = new ProdMaker('007','Tan mid-top toddler slippers with embroidered power flower',31.00,'5','lfl','g');
//prod[++count] = new ProdMaker('008','Red mid-top toddler slippers with dark grey stitching',29.00,'6','xjx','g h');
prod[++count] = new ProdMaker('009','Turquoise \'no-top\' baby shoes',29.00,'7','lfl msm','g h');
//prod[++count] = new ProdMaker('010','\'Bonita Apple\' brown, high-top toddler slippers with appliqued apple and embroidered leaf',33.00,'7','lfl','g h');
//prod[++count] = new ProdMaker('011','Brown ribbed-top toddler slippers with patterned toe',29.00,'7','xjx lfl msm','g h');
//prod[++count] = new ProdMaker('012','\'Mocha-Mix\' brown and creme toddler slippers with applique flower on toe',33.00,'5','xjx lfl','g h');
//prod[++count] = new ProdMaker('013','Thick, brown, ribbed-top toddler slippers with applique spring leaf on toe',33.00,'8.5','lfl msm','g h');
//prod[++count] = new ProdMaker('014','Plain, high-top kid\'s and toddler slippers',29.00,'v','xjx lfl','g h');
//prod[++count] = new ProdMaker('015','Electric purple high-top toddler slippers made from 100% lamb\'s wool',29.00,'7','','g h');
//prod[++count] = new ProdMaker('016','\'Bonita Apple\' tan, high-top toddler slippers with appliqued apple and embroidered leaf',33.00,'v','xjx lfl msm','g h');
prod[++count] = new ProdMaker('017','Autumn orange and brown cabled toddler slippers',29.00,'8.5','lfl','g');
//prod[++count] = new ProdMaker('001','Blue snowflake, low-top toddler slippers',29.00,'7','xjx lfl','g h');


news = new Array();
count = -1;



news[++count] = new newsMaker('090105','Official Launch of Wooly-Baby.com','Hooray!! The Wooly-baby.com website is up and running. Get a tour of the content.');
news[++count] = new newsMaker('090115','Wooly-baby slippers at brick and mortar store','Wooly-baby slippers are now being sold at Beetle Creek Kids in Kennett Square, PA');
news[++count] = new newsMaker('090117','2009 International Year of the Natural Fibre','2009 is the \'International Year of the Natural Fibre\'...as declared by the Food and Agriculture Organization of the United Nations');
news[++count] = new newsMaker('090201','Wooly-baby \'Sprouts-up\' in California','Wooly-baby slippers can be found at Sprout Children\'s Clothing in nothern California');
news[++count] = new newsMaker('090228','New Slipper Designs from Wooly Baby','New Slipper Designs from Wooly Baby! The <I>Billy Goat</I> and <I>Bear</I> lines of Wooly Baby slippers are intended for 24/7 use.');
news[++count] = new newsMaker('090705','Wooly Baby is on Facebook','Get social and come see us on Facebook. Share stories and photos of your little one in Wooly Baby slippers. See you there!');
news[++count] = new newsMaker('090912','Wooly Baby is a Crafty Bastard!','Come visit us at the Crafty Bastards show in Washington DC, on Saturday, October 3rd 2009.');
news[++count] = new newsMaker('091018','Wooly Baby in <I>1000 Ideas for Creative Reuse</I>!','Wooly Baby slippers appear in Garth Johnson\'s <I>"1000 Ideas for Creative Reuse"</I>.');
news[++count] = new newsMaker('091230','New Pants From an Old Sweater!','Read our \"How-To\" for making warm, wool pants for your little boy or girl from one of your old sweaters');
news[++count] = new newsMaker('100526','Buy Fresh, Buy Local!','Wooly Baby will be displaying and selling at upcoming craft shows in Pennsylvania and Delaware.');
news[++count] = new newsMaker('100730','Wooly Baby is a Crafty Bastard!','Come visit us at the Crafty Bastards show in Washington DC, on Saturday, October 2nd 2010.');








//*******************************Theme Setter***************************************
var themes = new Array('xjx', 'lfl');
var dummy = new Date();
dummy = dummy.getDate();
dummy = dummy / themes.length;
while (dummy>1)
{
dummy = dummy -1;
}
var theme = themes[dummy * themes.length - 1];
theme = 'msm';











//*******************************News Banner*****************************************
var newsBanner = '<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD VALIGN=TOP><IMG SRC="./themes/' + theme + '_newAndNotable.gif" WIDTH=208></TD><TD><TABLE CELLPADDING=0 CELLSPACING=10><TR>';
for (i=news.length-1; i>news.length-4; i = i-1)	{

newsBanner += '<TD VALIGN=TOP><SPAN CLASS="' + theme + 'SubFont"><IMG SRC="./themes/spacer.gif" WIDTH=175 HEIGHT=1><BR><A HREF="http://www.wooly-baby.com/news' + news[i].numb + '.html">' + news[i].dscr + '</SPAN></TD>';
if (i != news.length-3) newsBanner += '<TD class="' + theme + 'TableBgColor1"><IMG SRC="./themes/spacer.gif" WIDTH=1></TD>';

						}
newsBanner += '</TR></TABLE></TD></TR></TABLE>';












//******************************Pre Content********************************************
var preContent = '<BODY BACKGROUND="./themes/' + theme + '_bg.gif" TOPMARGIN=0 LEFTMARGIN=0 MARGINHEIGHT=0 MARGINWIDTH=0><CENTER><TABLE CELLPADDING=0 CELLSPACING=0 WIDTH=990 BORDER=0><TR><TD VALIGN=TOP><IMG BORDER=0 SRC="./themes/' + theme + '_tleft.gif"></TD><TD VALIGN=TOP ROWSPAN=2><TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD VALIGN=TOP><A HREF="http://www.wooly-baby.com/index.html"><IMG BORDER=0 SRC="./themes/' + theme + '_logoleft.gif"></A></TD><TD VALIGN=BOTTOM><IMG SRC="./themes/' + theme + '_logoright.gif"></TD></TR><TR><TD VALIGN=TOP COLSPAN=2><TABLE class="' + theme + 'TableBgColor1" CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD>' + topLink('news', theme) + '</TD><TD>' + topLink('products', theme) + '</TD><TD>' + topLink('gallery', theme) + '</TD><TD>' + topLink('buy', theme) + '</TD><TD>' + topLink('contact', theme) + '</TD><TD>' + topLink('questions', theme) + '</TD></TR></TABLE></TD></TR><TR><TD VALIGN=TOP COLSPAN=2><TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD class="' + theme + 'TableBgColor1"><IMG SRC="./themes/spacer.gif" WIDTH=2></A></TD><TD BGCOLOR=#FFFFFF VALIGN=BOTTOM><IMG SRC="./themes/spacer.gif" WIDTH=796 HEIGHT=1 BORDER=0><BR><TABLE WIDTH=796 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><IMG SRC="./themes/spacer.gif" WIDTH=200 HEIGHT=5 BORDER=0></TD></TR><TR><TD ALIGN=RIGHT><A HREF="http://woolybaby.etsy.com"><IMG SRC="./etcart/etsyicon.gif" WIDTH=25 HEIGHT=25 BORDER=0></A><IMG SRC="./themes/spacer.gif" WIDTH=10 HEIGHT=1 BORDER=0><A HREF="http://www.facebook.com/pages/Wooly-Baby/91576319217"><IMG SRC="./etcart/facebookicon.gif" WIDTH=25 HEIGHT=25 BORDER=0></A><IMG SRC="./themes/spacer.gif" WIDTH=20 HEIGHT=1 BORDER=0></TD></TR></TABLE><BR>';

var newsTitle = '';
for (i=0; i<news.length; ++i)	{
	if (window.location.href.indexOf(news[i].numb) > -1)	newsTitle = '<H3>' + news[i].tit + '</H3>' + parseInt(news[i].numb.substring(2,4)) + ' / ' + parseInt(news[i].numb.substring(4,6)) + ' / 20' + news[i].numb.substring(0,2);
				}


var newsPreContent = '<BODY BACKGROUND="./themes/' + theme + '_bg.gif" TOPMARGIN=0 LEFTMARGIN=0 MARGINHEIGHT=0 MARGINWIDTH=0><CENTER><TABLE CELLPADDING=0 CELLSPACING=0 WIDTH=990 BORDER=0><TR><TD VALIGN=TOP><IMG BORDER=0 SRC="./themes/' + theme + '_tleft.gif"></TD><TD VALIGN=TOP ROWSPAN=2><TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD VALIGN=TOP><A HREF="http://www.wooly-baby.com/index.html"><IMG BORDER=0 SRC="./themes/' + theme + '_logoleft.gif"></A></TD><TD VALIGN=BOTTOM><IMG SRC="./themes/' + theme + '_logoright.gif"></TD></TR><TR><TD VALIGN=TOP COLSPAN=2><TABLE class="' + theme + 'TableBgColor1" CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD>' + topLink('news', theme) + '</TD><TD>' + topLink('products', theme) + '</TD><TD>' + topLink('gallery', theme) + '</TD><TD>' + topLink('buy', theme) + '</TD><TD>' + topLink('contact', theme) + '</TD><TD>' + topLink('questions', theme) + '</TD></TR></TABLE></TD></TR><TR><TD VALIGN=TOP COLSPAN=2><TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD class="' + theme + 'TableBgColor1"><IMG SRC="./themes/spacer.gif" WIDTH=2></A></TD><TD BGCOLOR=#FFFFFF VALIGN=BOTTOM><IMG SRC="./themes/spacer.gif" WIDTH=796 HEIGHT=1 BORDER=0><BR><TABLE WIDTH=796 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><IMG SRC="./themes/spacer.gif" WIDTH=200 HEIGHT=5 BORDER=0></TD></TR><TR><TD ALIGN=RIGHT><A HREF="http://woolybaby.etsy.com"><IMG SRC="./etcart/etsyicon.gif" WIDTH=25 HEIGHT=25 BORDER=0></A><IMG SRC="./themes/spacer.gif" WIDTH=10 HEIGHT=1 BORDER=0><A HREF="http://www.facebook.com/pages/Wooly-Baby/91576319217"><IMG SRC="./etcart/facebookicon.gif" WIDTH=25 HEIGHT=25 BORDER=0></A><IMG SRC="./themes/spacer.gif" WIDTH=20 HEIGHT=1 BORDER=0></TD></TR></TABLE><BR><TABLE WIDTH=750><TR><TD><IMG SRC="./themes/spacer.gif" WIDTH=50 BORDER=0></TD><TD><IMG SRC="./themes/spacer.gif" WIDTH=200 BORDER=0></TD><TD><IMG SRC="./themes/spacer.gif" WIDTH=50 BORDER=0></TD><TD><SPAN class="' + theme + 'MainFont"><BR><H1>Wooly Baby News</H1><BR>' + newsTitle + '<BR>';














//*******************************Post Content********************************************
var bottomLinks = '<TABLE CELLSPACING=10 CELLPADDING=0 BORDER=0><TR><TD><SPAN CLASS="' + theme + 'SubFont"><A HREF="http://www.wooly-baby.com/index.html">home</A> | <A HREF="http://www.wooly-baby.com/news' + news[news.length-1].numb + '.html">news</A> | <A HREF="http://www.wooly-baby.com/products.html">products</A> | <A HREF="http://www.wooly-baby.com/gallery.html">gallery</A> | <A HREF="http://www.wooly-baby.com/buy.html">buy</A> | <A HREF="http://www.wooly-baby.com/contact.html">contact</A> | <A HREF="http://www.wooly-baby.com/questions.html">questions</A></TD><TD class="' + theme + 'TableBgColor2"><IMG SRC="./themes/spacer.gif" WIDTH=1 HEIGHT=1></TD><TD><SPAN class="' + theme + 'SubFont">Copyright 2008, Wooly-baby.com<BR><A HREF="mailto:info@wooly-baby.com">info@wooly-baby.com</A></SPAN></TD><TD><IMG SRC="./themes/spacer.gif" WIDTH=8 HEIGHT=1></TD></TR></TABLE></TD></TR></TABLE>';
var postContent = '<TABLE CELLPADDING=0 CELLSPACING=0><TR><TD class="' + theme + 'TableBgColor3">' + newsBanner + '</TD></TR></TABLE></TD><TD class="' + theme + 'TableBgColor1"><IMG SRC="./themes/spacer.gif" WIDTH=2 HEIGHT=450></A></TD></TR><TR><TD class="' + theme + 'TableBgColor1" COLSPAN=3 ALIGN=RIGHT>' + bottomLinks + '</TD></TR></TABLE></TD><TD VALIGN=TOP><IMG SRC="./themes/' + theme + '_tright.gif"></TD></TR><TR><TD VALIGN=BOTTOM><IMG SRC="./themes/' + theme + '_bleft.gif" BORDER=0></TD><TD VALIGN=BOTTOM><IMG SRC="./themes/' + theme + '_bright.gif" BORDER=0></TD></TR><TR><TD COLSPAN=3><IMG SRC="./themes/' + theme + '_bottom.gif"></TD></TR></TABLE></CENTER>';

var newsPostContent = '</SPAN><BR><CENTER><IMG SRC="./themes/spacer.gif" WIDTH=30 BORDER=1></CENTER><BR><BR></TD><TD><IMG SRC="./themes/spacer.gif" WIDTH=30 BORDER=0></TD></TR></TABLE></TD><TD class="' + theme + 'TableBgColor1"><IMG SRC="./themes/spacer.gif" WIDTH=2 HEIGHT=450></A></TD></TR><TR><TD class="' + theme + 'TableBgColor1" COLSPAN=3 ALIGN=RIGHT>' + bottomLinks + '</TD></TR></TABLE></TD><TD VALIGN=TOP><IMG SRC="./themes/' + theme + '_tright.gif"></TD></TR><TR><TD VALIGN=BOTTOM><IMG SRC="./themes/' + theme + '_bleft.gif" BORDER=0></TD><TD VALIGN=BOTTOM><IMG SRC="./themes/' + theme + '_bright.gif" BORDER=0></TD></TR><TR><TD COLSPAN=3><IMG SRC="./themes/' + theme + '_bottom.gif"></TD></TR></TABLE></CENTER>';
