
function Brand(brandID, brandName)
{
    this.brandID = brandID;
    this.brandName = brandName;
}



var arrBrands = new Array(
      ''
      ,new Brand('1', 'Barbie')
      ,new Brand('2', 'Matchbox')
      ,new Brand('3', 'Hot Wheels')
      ,new Brand('122', 'Fisher-Price Preschool')
      ,new Brand('123', 'Fisher-Price Infant Toys')
      ,new Brand('124', 'Fisher-Price Babygear')
      ,new Brand('125', 'F-P Sports, Seasonal and Ride-On')
      ,new Brand('148', 'Fisher-Price Friends')
      ,new Brand('163', 'Other Mattel Girls')
      ,new Brand('164', 'Other Mattel Boys')
      ,new Brand('165', 'Mattel Games, Puzzles and Software')
      ,new Brand('166', 'Mattel Entertainment Licensing')
      ,new Brand('168', 'Power Wheels')
      ,new Brand('175', 'Electric Racing')
      ,new Brand('177', 'Tyco Remote Control')
      ,new Brand('216', 'Fisher-Price Licensed Product')
)



function Cat(catID, catName)
{
    this.catID = catID;
    this.catName = catName;
}



var arrCatsProd = new Array(
    ''
 
 
    ,new Array(
         new Cat('12', 'Barbie Accessories')
         ,new Cat('46', 'Barbie Fashions/Playsets')
         ,new Cat('7', 'Barbie Mainline Dolls')
         ,new Cat('153', 'Barbie\'s Friends and Family')
         ,new Cat('225', 'Cali Girl')
         ,new Cat('150', 'My Scene Accessories')
         ,new Cat('149', 'My Scene Dolls')
    )
 
 
    ,new Array(
         new Cat('155', 'Matchbox Collectibles')
         ,new Cat('29', 'Matchbox Mainline')
         ,new Cat('156', 'Matchbox Playsets and Accessories')
    )
 
 
    ,new Array(
         new Cat('182', 'Hot Wheels Collectibles')
         ,new Cat('8', 'Hot Wheels Mainline')
         ,new Cat('48', 'Hot Wheels Playsets')
         ,new Cat('183', 'Hot Wheels Racing')
    )
 
 
    ,new Array(
         new Cat('126', 'GeoTrax')
         ,new Cat('130', 'Great Adventures')
         ,new Cat('51', 'Imaginext')
         ,new Cat('131', 'Kasey the Kinderbot')
         ,new Cat('35', 'Little People')
         ,new Cat('128', 'Loving Family Doll House')
         ,new Cat('129', 'Loving Family Sweet Streets')
         ,new Cat('132', 'Magna Doodle')
         ,new Cat('134', 'Other Preschool')
         ,new Cat('36', 'Pixter')
         ,new Cat('121', 'Power Touch')
         ,new Cat('37', 'Rescue Heroes')
         ,new Cat('127', 'Role Play')
         ,new Cat('133', 'View Master')
    )
 
 
    ,new Array(
         new Cat('158', 'Babbles To Books')
         ,new Cat('137', 'Baby Play Zone')
         ,new Cat('159', 'Baby Smartronics')
         ,new Cat('160', 'Bright Expressions')
         ,new Cat('140', 'Brilliant Basics')
         ,new Cat('138', 'Classical Chorus')
         ,new Cat('227', 'Dance Baby Dance')
         ,new Cat('221', 'Laugh & Learn')
         ,new Cat('141', 'Learning Patterns')
         ,new Cat('157', 'Link-a-doos')
         ,new Cat('161', 'Nature Bearries')
         ,new Cat('139', 'Ocean Wonders')
         ,new Cat('26', 'Other Infant Toys')
         ,new Cat('135', 'Peek-a-Blocks')
         ,new Cat('136', 'Photo Fun Learning')
         ,new Cat('142', 'Sparkling Symphony')
    )
 
 
    ,new Array(
         new Cat('212', 'Bassinets/Cradlettes')
         ,new Cat('193', 'Bouncers')
         ,new Cat('47', 'Car Seats')
         ,new Cat('195', 'Entertainers/Activity Centers')
         ,new Cat('211', 'High Chairs')
         ,new Cat('192', 'Monitors')
         ,new Cat('6', 'Other Babygear')
         ,new Cat('197', 'Play Yards')
         ,new Cat('198', 'Potty')
         ,new Cat('196', 'Strollers')
         ,new Cat('194', 'Swings')
    )
 
 
    ,new Array(
         new Cat('146', 'Grow To Pro')
         ,new Cat('40', 'Other Outdoor and Ride-Ons')
         ,new Cat('147', 'Outdoor Play Equipment')
         ,new Cat('145', 'Scooters')
         ,new Cat('144', 'Skates/Roller Blades')
         ,new Cat('52', 'Trikes/Ride Ons')
    )
 
 
    ,new Array(
         new Cat('204', 'Barney')
         ,new Cat('209', 'Bear in the Big Blue House')
         ,new Cat('203', 'Blue\'s Clues')
         ,new Cat('205', 'Dora the Explorer')
         ,new Cat('53', 'Other Fisher-Price Friends')
         ,new Cat('202', 'Sesame Street')
         ,new Cat('206', 'Winnie the Pooh')
    )
 
 
    ,new Array(
         new Cat('116', 'Ello')
         ,new Cat('27', 'Large Dolls')
         ,new Cat('17', 'Other Mattel Girls')
         ,new Cat('38', 'Polly Pocket')
         ,new Cat('44', 'What\'s Her Face')
    )
 
 
    ,new Array(
         new Cat('179', 'Masters of the Universe')
         ,new Cat('32', 'Max Steel')
         ,new Cat('28', 'Other Mattel Boys')
    )
 
 
    ,new Array(
         new Cat('24', 'Games')
         ,new Cat('176', 'Puzzles')
    )
 
 
    ,new Array(
         new Cat('187', 'Batman')
         ,new Cat('18', 'Disney Classics')
         ,new Cat('189', 'Disney Collectibles')
         ,new Cat('25', 'Harry Potter')
         ,new Cat('186', 'Justice League')
         ,new Cat('34', 'Nickelodeon')
         ,new Cat('22', 'Other Mattel Entertainment Licensing')
         ,new Cat('188', 'Yu-Gi-Oh')
    )
 
 
    ,new Array(
         new Cat('169', 'Advanced Series')
         ,new Cat('39', 'Other Power Wheels')
         ,new Cat('172', 'Performance Series')
         ,new Cat('170', 'Preschool Series')
         ,new Cat('171', 'Toddler Series')
    )
 
 
    ,new Array(
         new Cat('199', 'Battery Operated')
         ,new Cat('49', 'Hot Wheels/Tyco Electric Racing')
    )
 
 
    ,new Array(
         new Cat('201', 'Other Remote Control')
         ,new Cat('42', 'Remote Control')
    )
 
 
    ,''
 
)
 
 

var arrCatsFAQ = new Array(
    ''
 
 
    ,new Array(
         new Cat('12', 'Barbie Accessories')
         ,new Cat('10', 'Barbie Collectibles')
         ,new Cat('46', 'Barbie Fashions/Playsets')
         ,new Cat('7', 'Barbie Mainline Dolls')
    )
 
 
    ,''
 
 
    ,new Array(
         new Cat('182', 'Hot Wheels Collectibles')
         ,new Cat('8', 'Hot Wheels Mainline')
         ,new Cat('48', 'Hot Wheels Playsets')
         ,new Cat('183', 'Hot Wheels Racing')
    )
 
 
    ,new Array(
         new Cat('35', 'Little People')
         ,new Cat('36', 'Pixter')
         ,new Cat('121', 'Power Touch')
         ,new Cat('37', 'Rescue Heroes')
    )
 
 
    ,new Array(
         new Cat('158', 'Babbles To Books')
         ,new Cat('137', 'Baby Play Zone')
         ,new Cat('159', 'Baby Smartronics')
    )
 
 
    ,new Array(
         new Cat('47', 'Car Seats')
    )
 
 
    ,''
 
 
    ,''
 
 
    ,''
 
 
    ,''
 
 
    ,''
 
 
    ,''
 
 
    ,new Array(
         new Cat('169', 'Advanced Series')
         ,new Cat('39', 'Other Power Wheels')
         ,new Cat('172', 'Performance Series')
         ,new Cat('170', 'Preschool Series')
         ,new Cat('171', 'Toddler Series')
    )
 
 
    ,new Array(
         new Cat('49', 'Hot Wheels/Tyco Electric Racing')
    )
 
 
    ,new Array(
         new Cat('42', 'Remote Control')
    )
 
 
    ,''
 
)
 
 

var arrCatsInstrux = new Array(
    ''
 
 
    ,new Array(
         new Cat('12', 'Barbie Accessories')
         ,new Cat('46', 'Barbie Fashions/Playsets')
         ,new Cat('7', 'Barbie Mainline Dolls')
         ,new Cat('153', 'Barbie\'s Friends and Family')
         ,new Cat('9', 'Other Barbie')
    )
 
 
    ,new Array(
         new Cat('156', 'Matchbox Playsets and Accessories')
    )
 
 
    ,new Array(
         new Cat('48', 'Hot Wheels Playsets')
    )
 
 
    ,new Array(
         new Cat('126', 'GeoTrax')
         ,new Cat('130', 'Great Adventures')
         ,new Cat('51', 'Imaginext')
         ,new Cat('131', 'Kasey the Kinderbot')
         ,new Cat('35', 'Little People')
         ,new Cat('128', 'Loving Family Doll House')
         ,new Cat('132', 'Magna Doodle')
         ,new Cat('134', 'Other Preschool')
         ,new Cat('36', 'Pixter')
         ,new Cat('121', 'Power Touch')
         ,new Cat('37', 'Rescue Heroes')
         ,new Cat('127', 'Role Play')
         ,new Cat('133', 'View Master')
    )
 
 
    ,new Array(
         new Cat('158', 'Babbles To Books')
         ,new Cat('137', 'Baby Play Zone')
         ,new Cat('159', 'Baby Smartronics')
         ,new Cat('160', 'Bright Expressions')
         ,new Cat('140', 'Brilliant Basics')
         ,new Cat('138', 'Classical Chorus')
         ,new Cat('227', 'Dance Baby Dance')
         ,new Cat('141', 'Learning Patterns')
         ,new Cat('157', 'Link-a-doos')
         ,new Cat('161', 'Nature Bearries')
         ,new Cat('139', 'Ocean Wonders')
         ,new Cat('26', 'Other Infant Toys')
         ,new Cat('135', 'Peek-a-Blocks')
         ,new Cat('136', 'Photo Fun Learning')
         ,new Cat('142', 'Sparkling Symphony')
    )
 
 
    ,new Array(
         new Cat('212', 'Bassinets/Cradlettes')
         ,new Cat('193', 'Bouncers')
         ,new Cat('47', 'Car Seats')
         ,new Cat('195', 'Entertainers/Activity Centers')
         ,new Cat('211', 'High Chairs')
         ,new Cat('192', 'Monitors')
         ,new Cat('6', 'Other Babygear')
         ,new Cat('197', 'Play Yards')
         ,new Cat('198', 'Potty')
         ,new Cat('196', 'Strollers')
         ,new Cat('194', 'Swings')
    )
 
 
    ,new Array(
         new Cat('146', 'Grow To Pro')
         ,new Cat('40', 'Other Outdoor and Ride-Ons')
         ,new Cat('145', 'Scooters')
         ,new Cat('144', 'Skates/Roller Blades')
         ,new Cat('52', 'Trikes/Ride Ons')
    )
 
 
    ,new Array(
         new Cat('53', 'Other Fisher-Price Friends')
         ,new Cat('202', 'Sesame Street')
    )
 
 
    ,new Array(
         new Cat('27', 'Large Dolls')
         ,new Cat('38', 'Polly Pocket')
    )
 
 
    ,''
 
 
    ,new Array(
         new Cat('50', 'DM2')
         ,new Cat('24', 'Games')
    )
 
 
    ,new Array(
         new Cat('25', 'Harry Potter')
         ,new Cat('34', 'Nickelodeon')
         ,new Cat('188', 'Yu-Gi-Oh')
    )
 
 
    ,new Array(
         new Cat('169', 'Advanced Series')
         ,new Cat('39', 'Other Power Wheels')
         ,new Cat('172', 'Performance Series')
         ,new Cat('170', 'Preschool Series')
         ,new Cat('171', 'Toddler Series')
    )
 
 
    ,new Array(
         new Cat('199', 'Battery Operated')
         ,new Cat('49', 'Hot Wheels/Tyco Electric Racing')
    )
 
 
    ,new Array(
         new Cat('42', 'Remote Control')
    )
 
 
    ,''
 
)
 
 

function popCats(selected, arrCats)
{
  	var mySel = document.forms.formSearch.Category;
	if(!mySel) return;
		
	mySel.options.length = 0;
  	var thisCat = arrCats[getIndex(selected)];
  	
  	var no = new Option();
	no.value = 0;
	no.text	 = '- Please Select -';
	no.selected = true;
	mySel.options[mySel.options.length] = no;
  	
	for(i=0;i<thisCat.length;i++)
	{
		var no = new Option();
		no.value = thisCat[i].catID;
		no.text	 = thisCat[i].catName;
		mySel.options[mySel.options.length] = no;
	}



}

function popBrands(arrCats)
{
  	var mySel = document.forms.formSearch.Brand;
	if(!mySel) return;
		
	mySel.options.length = 1;
  	
  	for(i=1;i<arrBrands.length;i++)
  	{
  		var thisBrandID = arrBrands[i].brandID;
  		var thisBrandName = arrBrands[i].brandName;
		
		if (arrCats[i].length > 0)
		{	
  			var no = new Option();
			no.value = thisBrandID;
			no.text	 = thisBrandName;
			mySel.options[mySel.options.length] = no;
  		}
	}  	

}


function getIndex(brandID)
{
  	for(i=1;i<arrBrands.length;i++)
  	{
  		var thisBrandID = arrBrands[i].brandID;
		if (thisBrandID == brandID) return i;
	}
	return 0;

}



