imgName = new Array('COOK', 'PCGT', 'GIFT', 'AMDV', 'NOED', 'DVPF', 'SOGT', 'SOPC');
title = new Array('Divvies Cookies', 'Divvies Flavored Popcorn Gifts', 'Divvies Gifts', 'Automatic Divvies', 'Divvies Non-Edibles', 'Divvies Party Favors', 'Special Occasion Gifts', 'Special Occasion Popcorn Gifts');


var prodText=new Array(
	
	
	'<img src="/images/store_images/T.gif" style="float:left; padding-right: 5px;">he Chocolate Chip Cookie \(the king of all cookies\), made the Divvies way without milk or eggs, becomes nothing less than a taste explosion of brown sugar and massive amounts of melted chocolate. But don\'t just pop these cookies in your mouth. Divvies are much more than a mouthful. And ignoring this warning may cause concerned friends and random onlookers to quickly hand you a napkin.&nbsp;&nbsp;<a href=\"/facts.php\">Divvies Facts</a>',

'<img src="/images/store_images/T.gif" style="float:left; padding-right: 5px;">he Molasses Cookie, made the Divvies\' way, is not just a substitute for chocolate, it may just become your new cookie favorite. Take out eggs and milk and you\'re left with nothing less than a chewy, gooey, sugary confection of ginger and molasses.&nbsp;&nbsp;<a href=\"/facts.php\">Divvies Facts</a>',

'<img src="/images/store_images/T.gif" style="float:left; padding-right: 5px;">he Oatmeal Chocolate Chip Cookie is delicious proof that not only <span class=\"italics\" >can</span> you mix breakfast with dessert . . . you absolutely <span class=\"italics\" >should</span>. Enjoy the gooey, chewy, chunky texture of oatmeal smothered in melted chocolate. It\'s like having your oatmeal and eating your cake too.&nbsp;&nbsp;<a href=\"/facts.php\">Divvies Facts</a>',

'<img src="/images/store_images/T.gif" style="float:left; padding-right: 5px;">he Oatmeal Raisin Cookie, made the Divvies\' way, tastes like Mom set down your piping hot bowl of oatmeal and then left the room so you could load on the brown sugar and raisins \'til your sweet tooth hurts.&nbsp;&nbsp;<a href=\"/facts.php\">Divvies Facts</a>',

'<img src="/images/store_images/D.gif" style="float:left; padding-right: 5px;">ivvies gifts are the delicious things that come in fun boxes . . . big type, big bow, big card create big smiles and bring out the child in all of us - the anticipation of opening something very special. And special is what these gifts are, because not only are they delicious inside and out, a portion of the price of each gift is given to the organizations whose goal it is to find a cure for food allergies.  Divvies gifts give so much.&nbsp;&nbsp;<a href=\"/about.php\">Divvies Gives Back</a>',

'Popcorn is just one of those fun foods that should always come in bulk because everyone loves it!  Just having it in a room says "there\'s a party going on" - even if you are just sitting around watching tv with your family. And now, Divvies introduces three delicious, special-recipe popcorns that not only taste amazing, but are also safe - so that everyone can join in the party. Made in Divvies own dedicated facility where no peanuts, tree nuts, eggs or milk enter the doors, their popcorns are not only made free of most common food allergens, but also tested for possible cross-contamination from ingredients.',

'<img src="/images/store_images/Y.gif" style="float:left; padding-right: 5px;">ou gotta try this, especially if you are a Cracker Jack&#174; fan. But here\'s the real prize - Divvies is popped fresh and it\'s made safe for all those with food allergies to peanuts, tree nuts, milk and eggs.',

'<img src="/images/store_images/I.gif" style="float:left; padding-right: 5px;">f you want something that really tips the taste treat meter - you gotta go for Divvies sweetest popcorn concoction - caramel corn with fine grade chocolate hand drizzled over the whole thing.',

'<img src="/images/store_images/C.gif" style="float:left; padding-right: 5px;">lose your eyes - you are the star contestant in the tractor pull at the country fair - open them - your brother is dragging you across the room to loose your grip on your Divvies bag of Kettle Corn.  All the down home taste of sugar and salt smashed together in light, fluffy corn.',
'This moist and scrumptious cookie is inspired by the winning recipe from the FAANtastic Divvies Cookie Contest. And it\'s as good as it is delicious, because part of the proceeds go to support the work being done by FAAN helping people with food allergies.'
);

var prodCodeData = new Array('CCHP', 'MOLS', 'OATC', 'OATR', 'CKGT', 'POPP', 'CCRN', 'CHRN', 'KCRN', 'CLOT');
var catAltTags = new Array('bakery cookies', 'gourmet popcorn', 'online gifts', 'Automatic Divvies', 'Non Edibles', 'Divvies Party Favors', 'Special Occasion Gifts', '');
	
	function catImage(img)
	   {
	   
	   filename = new Array('cookies.png', 'popcorn.png', 'gifts.png', 
	   'autodivviesstitle.gif', 'nonedibles_title.gif', 'parties.png', 'sweetgifts.png', 'sweetgifts.png');  
	   
	       imgPath = '/images/store_images/titles/';
	       i = 0;
	       
	       for(i=0; i < imgName.length; i++)
	           {
	           if( img == imgName[i] )
	               {
	               document.write('<img src="'+ imgPath + filename[i] + '" alt="'+catAltTags[i]+'">');
	               break;
	               }
	           }
	       
	   }
	   
function pageTitle(code)
    {
    
    i = 0;
	       
	       for(i=0; i < title.length; i++)
	           {
	           if( code == imgName[i] )
	               {
	               return title[i]
	               break;
	               }
	           }
	       
	   }

function showProdText(params)
    {
    findCode = params.substring(24, params.length);
    
    i = 0;
	       
	       for(i=0; i < prodCodeData.length; i++)
	           {
	           if( findCode == prodCodeData[i] )
	               {
	               document.write(prodText[i]);
	               break;
	               }
	           }
  
    
    
	   }

function displayAutoDiv(plan) {

                if(plan == "6MOAD") {
                
                for(i=0; i< 5; i++)
                    {
                    document.write(Months[thisMonth.getMonth()+i]);
                    document.write('<!---ITEMOPT'+i+'--->');
                    }
                
                }
            
            
    }


var favorDisplay = new Array('<img src="/images/store_images/T.gif" style="float:left; padding-right: 5px;">urn any excuse to snack into a 3-ring circus --- presenting 2 of Divvies popcorns drizzled with caramel or sugar & salt. Perfect single servings for birthday favors, school parties. . . or even after-school snacks. They are all made to share because they are made in a dedicated bakery with no peanuts tree nuts, eggs or milk.',

'<img src="/images/store_images/D.gif" style="float:left; padding-right: 5px;">ivvies candies come from a dedicated candyland where no peanuts, tree nuts, eggs or milk have ever entered their gates. And these sweets are packed in party-favor-sized clear bags to dazzle and delight. Just imagine. . . candies to share! ...now that\'s a reason to party! Divvies candies are also available in gifts and care packages.',

'<img src="/images/store_images/F.gif" style="float:left; padding-right: 5px;">inally! Sweet treats for school parties, picnics and birthdays that are made to share. . . because they are made without peanuts, tree nuts, eggs and milk. AND they are made right here, in Divvies own dedicated bakery, in South Salem, New York right over the Connecticut border. Just minutes from Pound Ridge, Bedford and New Canaan and ten minutes off exit 38 on the Merritt Parkway. <br><br>Divvies Cupcakes come in combos of chocolate and vanilla and are available by the dozen. Since every cupcake is baked to order, be sure to email or call two business days in advance of pick up. Our bakery is open Monday through Friday 11AM - 4PM.<br><br><span style=\"color:red; padding-left:20%; \">(CUPCAKES ARE PICK-UP ONLY)</span><br>'



);

function favorText(code) {
    favor = new Array('PPRT', 'CDNY', 'CPCK');
    for(i=0; i<favor.length; i++) {
        if(favor[i] == code) {
            document.write(favorDisplay[i]);
            }
        }
    }
	   