//auto generates by the storecreator and templates
var storeName='4 Collectors of Wee Bears.';
var mainPage='intro.html';
var totalItems=98;
var ir = new Array(totalItems);
var mAlignStr='<Center>';
A(0, '310', ' Monte the Pineapple - Out of Stock', 0.00, 'Out of Stock Wee Bears - For Reference');
A(1, 'BUTTER_KID', 'A Butterfly Wee Kid', 6.99, ' Wee Kids ');
A(2, 'COW_KID', 'A Cow Wee Kid', 6.99, ' Wee Kids ');
A(3, 'DOGKID', 'A Dog Wee Kid', 6.99, ' Wee Kids ');
A(4, 'PANSY_KID', 'A Pansy Wee Kid', 6.99, ' Wee Kids ');
A(5, 'PIG_KID', 'A Pig Wee Kid', 6.99, ' Wee Kids ');
A(6, 'AMERICANA', 'Americana Wee Bear Collection of 6', 35.94, 'Americana USA Collection ');
A(7, 'AMORE', 'Amore the Love Cupid', 5.99, 'Holiday - Special Event Wee Bears');
A(8, 'BEARBOX', 'Bear-In-A-Box - A Great Gift Idea', 8.95, 'NEW: Bear-In-A-BoxPick-A-Bear  >> Select A Wee Bear <<Birthday: AquariusBirthday: Aries Birthday: CancerBirthday: Capricorn Birthday: GeminiBirthday: LeoBirthday: LibraBirthday: Pisces Birthday: SagittariusBirthday: ScorpioBirthday: TaurusBirthday: VirgoBreakfast: ChrunchyBreakfast: Squeeze Breakfast: StrawberryBugable: BellaBugable: BumbleBugable: LuckyEaster: Crackle Easter: CurleyEaster: Hopps Farm: CloverFarm: DoodleFarm: FriskyFarm: LeapFarm: MudfordFarm: PawsFlower: LiL PansyFlower: LiL Rose Flower: LiL SunflowerFruit/Veg: CarrotFruit/Veg: CobbFruit/Veg: DaiquiriFruit/Veg: MonteFruit/Veg: SplitzHalloween: EsmeraldaHalloween: Mr. BonesHalloween: PumpkinJungle: CongoJungle: JumboJungle: KingJungle: SaberJungle: StripesLiL Prof: Blaze LiL Prof: BusterLiL Prof: DoctorLiL Prof: NurseLiL Prof: PilotLiL Prof: SouffleSports: Cleats Sports: HuddlesSports: MulliganSports: SlapshotSports: SluggerSports: WimBearTonSt Patty: ShamrockTourist: FinzTourist: Hal E DayTourist: Kei KeiTourist: NeptuneTourist: ScubaValentine: Amore Wedding: BrideWedding: GroomWildlife: BaldwinWildlife: Bamboo Wildlife: BanditWildlife: ChocolateWildlife: DundeeWildlife: GrizzlieWildlife: Mr HowlWildlife: OatsWildlife: OzzieWildlife: PotamusWildlife: Sly Wildlife: WoodyXmas: Angel Xmas: BlizzardXmas: ChillyXmas: GingerXmas: KringleXmas: NicholasXmas: PeppermintXmas: RudyXmas: SleighterXmas: SqueeksXmas: TuxXmas: WaddlesXmas: Xmas Tree');
A(9, '261', 'Bee Mine - Bumble Bee - Sold Out do not order', 0.00, 'Out of Stock Wee Bears - For Reference');
A(10, '302', 'Billy Goat - Retired - Sold Out', 0.00, 'Out of Stock Wee Bears - For Reference');
A(11, '262', 'Birthday Bears- Astrological Set of 12', 71.88, 'Birthday Bears-Astrology Set');
A(12, 'BOO', 'Boo the Ghost', 5.99, 'Halloween Collection');
A(13, 'CAVERN', 'Cavern the Bat- SOLD OUT', 0.00, 'Out of Stock Wee Bears - For Reference');
A(14, 'XMASANGEL', 'Christmas Angel  DO NOT ORDER', 0.00, 'Out of Stock Wee Bears - For Reference');
A(15, 'CRACKLES', 'Crackles the Easter Egg Bear', 5.99, 'Easter  Wee Bear SetSellect a ColorCrackle - BlueCrackle - PurpleCrackle - Yellow');
A(16, '51', 'Dinos: Fossil - ', 5.95, 'Wildlife - Jungle Collection');
A(17, '52', 'Dinos: Sara -  Sold Out- Do Not Order', 0.00, 'Out of Stock Wee Bears - For Reference');
A(18, '53', 'Dinos: Spike - ', 0.00, 'Out of Stock Wee Bears - For Reference');
A(19, '74', 'Farm: Clover', 5.99, 'Farm Wee Bear Collection');
A(20, '75', 'Farm: Doodle', 5.99, 'Farm Wee Bear Collection');
A(21, '76', 'Farm: Frisky', 5.99, 'Farm Wee Bear Collection');
A(22, '77', 'Farm: Leap ', 5.99, 'Farm Wee Bear Collection');
A(23, '78', 'Farm: Mudford the Pig', 5.99, 'Farm Wee Bear Collection');
A(24, '79', 'Farm: Paws', 5.99, 'Farm Wee Bear Collection');
A(25, '313', 'Fruit/Veggie: Beta-Carrotine the Carrot', 5.99, 'Fruit and Veggie Collection');
A(26, '311', 'Fruit/Veggie: Splitz the Banana', 5.99, 'Fruit and Veggie Collection');
A(27, 'GRADSSET', 'Graduation Set of 2', 11.98, 'Holiday - Special Event Wee Bears');
A(28, 'GRADS', 'Graduation Wee Bears- Brainy', 5.99, 'Holiday - Special Event Wee BearsColorsBrainy - BlackBrainy - Blue');
A(29, '321', 'Hal E. Day the Tourist', 5.99, 'Hawaiian Tourist Collection');
A(30, '260', 'I Love You - Lady Bug SOLD OUT', 0.00, 'Out of Stock Wee Bears - For Reference');
A(31, 'POSTMAN', 'IM Letterman the Wee Bear ', 5.99, 'LiL Professionals - People Collection');
A(32, '104', 'Jungle: Stripes out of stock', 0.00, 'Out of Stock Wee Bears - For Reference');
A(33, '203', 'LiL Professional: Blaze the Fireman ', 5.99, 'LiL Professionals - People Collection');
A(34, '205', 'LiL Professional: Buster the Policeman', 5.99, 'LiL Professionals - People Collection');
A(35, '204', 'LiL Professional: Pilot named Wings -', 5.99, 'LiL Professionals - People Collection');
A(36, 'MUMMY', 'Long Ago the Mummy', 5.99, 'Halloween Collection');
A(37, '257', 'Mr Howl the Wolf SOLD OUT', 0.00, 'Out of Stock Wee Bears - For Reference');
A(38, '252', 'Ozzie the Koala', 5.99, 'Wildlife - Jungle Collection');
A(39, 'RODEO', 'Rodeo the Cowboy Wee Bear - Out of Stock', 0.00, 'Out of Stock Wee Bears - For Reference');
A(40, '322', 'Scuba Steve the Diver', 5.99, 'Hawaiian Tourist Collection');
A(41, 'SHAMROCK', 'Shamrock the Leprechaun- OUT OF STOCK', 0.00, 'Out of Stock Wee Bears - For Reference');
A(42, 'STRAWJAM', 'Strawberry Jam the Bear', 5.99, 'Bugables, Flowers and Clown Wee Bears');
A(43, 'CAT', 'Superstition the Black Cat', 5.99, 'Halloween Collection');
A(44, 'WRAPPER', 'Wrapper the Wee Bear', 5.99, 'Christmas Wee Bear Collection');
A(45, 'ANCHOR', 'Anchor the Navy Bear', 5.99, 'Americana USA Collection ');
A(46, '263', 'Aquarius the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(47, '264', 'Aries the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(48, '265', 'Cancer the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(49, '1266', 'Capricorn the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(50, 'CHICKPEA', 'Chickpea he Easter Bear Chick', 5.99, 'Easter  Wee Bear Set');
A(51, 'CLEATS', 'Cleats the Bear', 5.99, 'Sports Collection');
A(52, 'CORPORAL', 'Corporal USA bear', 5.99, 'Americana USA Collection ');
A(53, 'FATIGUES', 'Fatigues the Army Bear', 5.99, 'Americana USA Collection ');
A(54, '315', 'Fruit/Veggie: Sweetpea the Pea- OUT OF STOCK', 0.00, 'Out of Stock Wee Bears - For Reference');
A(55, '1267', 'Gemini the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(56, 'HUDDLE', 'Huddles SOLD OUT', 0.00, 'Out of Stock Wee Bears - For Reference');
A(57, '1268', 'Leo the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(58, '1269', 'Libra the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(59, 'MIG', 'Mig the Fighter Pilot', 5.99, 'Americana USA Collection ');
A(60, 'PEPPERMINT', 'Peppermint the Wee Bear', 5.99, 'Christmas Wee Bear Collection');
A(61, '1270', 'Pisces the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(62, '1271', 'Sagittarius the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(63, 'SAM', 'Sam the Uncle Bear', 5.99, 'Americana USA Collection ');
A(64, 'SANDY', 'Sandy the Turtle', 5.99, 'Wildlife - Jungle Collection');
A(65, '1272', 'Scorpio the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(66, 'SLAPSHOT', 'Slapshot the Bear', 5.99, 'Sports Collection');
A(67, 'SLUGGER', 'Slugger the Baseball Bear', 5.99, 'Sports Collection');
A(68, '1273', 'Taurus the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(69, '1274', 'Virgo the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(70, 'WIMBEARTON', 'WimBearTon the Tennis Bear', 5.99, 'Sports Collection');
A(71, '178', 'Xmas: Chilly SOLD OUT', 0.00, 'Out of Stock Wee Bears - For Reference');
A(72, '179', 'Xmas: Ginger', 5.99, 'Christmas Wee Bear Collection');
A(73, '182', 'Xmas: Squeeks', 5.99, 'Christmas Wee Bear Collection');
A(74, '200', 'Flower Bloosom: A  Collection Set of 3', 17.97, 'Bugables, Flowers and Clown Wee Bears');
A(75, '314', 'Fruit/Veggie: Cobb the Ear of Corn', 5.99, 'Fruit and Veggie Collection');
A(76, 'RAINDEER', 'Sleighter Raindeer SOLD OUT', 0.00, 'Out of Stock Wee Bears - For Reference');
A(77, '201', 'Valentine: Devil: :LiL`  Hot Stuff- Retired', 0.00, 'Out of Stock Wee Bears - For Reference');
A(78, '305', 'Wildlife: Potamus', 5.99, 'Wildlife - Jungle Collection');
A(79, '197', 'Flower Bloosom: LiL Pansy - ', 5.99, 'Bugables, Flowers and Clown Wee Bears');
A(80, '198', 'Flower Bloosom: LiL Rose ', 5.99, 'Bugables, Flowers and Clown Wee Bears');
A(81, '199', 'LiL Sunflower  Blossom', 5.99, 'Bugables, Flowers and Clown Wee Bears');
A(82, 'QEEEN', 'The Queen of Hearts - OUT OF STOCK', 0.00, 'Out of Stock Wee Bears - For Reference');
A(83, '89', 'Halloween: Esmeralda the Witch', 5.99, 'Halloween Collection');
A(84, '91', 'Halloween: PumpkinHead SOLD OUT', 0.00, 'Out of Stock Wee Bears - For Reference');
A(85, 'BETTYS', 'Betty the Cheerleader', 5.99, 'LiL Professionals - People CollectionSelect a School ColorBlack & GoldMaroon & GoldRed & BlackRoyal Blue & Red');
A(86, 'NOSEY', 'Nosey the  Clown Bear', 5.99, 'Bugables, Flowers and Clown Wee Bears');
A(87, 'SKIDS', 'Skids the Hobo Clown', 5.99, 'Bugables, Flowers and Clown Wee Bears');
A(88, 'BURLAP', 'Burlap the Scarecrow', 5.99, 'Holiday - Special Event Wee Bears');
A(89, 'JESTER1', 'Christmas Jester- Reference only', 0.00, 'Out of Stock Wee Bears - For Reference');
A(90, 'CURLY', 'Curly Joe the  Clown- Sold Out', 0.00, 'Out of Stock Wee Bears - For Reference');
A(91, '54', 'Dinos: T-Rex - SOLD OUT. DO NOT ORDER', 0.00, 'Out of Stock Wee Bears - For Reference');
A(92, 'TURKEY', 'Gobbles the Turkey- Sold Out', 0.00, 'Out of Stock Wee Bears - For Reference');
A(93, 'JESTER2', 'Jokey Jester-', 0.00, 'Out of Stock Wee Bears - For Reference');
A(94, 'TOYSOLD', 'Toy Christmas Soldier ', 0.00, 'Out of Stock Wee Bears - For Reference');
A(95, '25', 'Bride and Groom Set of 2', 11.98, 'Holiday - Special Event Wee Bears');
A(96, '266', 'Wedding : Bride', 5.99, 'Holiday - Special Event Wee Bears');
A(97, '267', 'Wedding : Groom', 5.99, 'Holiday - Special Event Wee Bears');
var disFont = "<font face='Arial, Helvetica, sans-serif'>";
var andSearch = 1;
function A(i, id, s, p, c)
{
	ir[i] = new RECORD();
	ir[i].itemID = id; 
	ir[i].catalog=c;
	ir[i].itemName = s; 
	ir[i].price = p;
}

function MakeArray(n) {
      this.length = n;
      for(var i = 0; i < n; i++){
            this[i] = 0;
      }
      return this;
}

function Currency(money)
{
	money =  parseFloat(money);
	money += 0.005;
	money +=  "";           
	var monLen = money.length;
	var digPos = money.indexOf(".");
	if(digPos == -1) {
		if (money <=0) {
			money ="0.00";
		} else {
			money += ".00";
		}
		return money;
	} else {
		if (digPos + 3 > monLen) {
			money += "0";
		} else if (digPos + 3 != monLen) {
			money = money.substring(0, digPos+3);
		} 
		return money;
	}     
}
function RECORD()
{
	this.itemID = 0;
	this.itemName="";
	this.price=0;
	this.match=0;
	this.catalog="";
	return this;
}



function CompareMatch(a, b) {
   return a.match < b.match;
}

function Search()
{
	Search_Start(parent.frames["cart"].document.forms[0]);
}

function NewSearch(theForm)
{
	Search_Start(theForm);
}


function Search_Start(theForm)
{
	var searchStr = theForm.keywords.value;
     searchStr=searchStr.toLowerCase();
	var space = " ";
	var searchWords = searchStr.split(space);

	searchWords.sort();
	var searchStart =0;

	
	for (var i=0; i < searchWords.length; i++) {
		if (searchWords[i].length == 0) {
			searchStart++;
		} else {
			break;
		}
	}
	var totalSearchWord = searchWords.length - searchStart;
	if (totalSearchWord <= 0) {
		return;
	}
	var totalFound=0;
	var j;

	for (j=0;j<totalItems;j++) {
		var totalMatch=0;
		var str = ir[j].itemName.toLowerCase();
		var sid=ir[j].itemID.toLowerCase();
		var c= ir[j].catalog.toLowerCase();
		for (var i=searchStart; i < searchWords.length; i++) {
			if (str.search(searchWords[i])>=0) totalMatch++; 
			else 
			if (c.search(searchWords[i])>=0) totalMatch++; 
			else 
			if (sid.search(searchWords[i])>=0) totalMatch++; 
		}
		if (andSearch) {
			if (totalMatch != searchWords.length - searchStart) {
				totalMatch=0;
			}
		} 
		if (totalMatch>0) totalFound++;
		ir[j].match=totalMatch;
	}
	ir.sort(CompareMatch);
	
	var cWin=parent.frames["shop"].document;
	
	cWin.open();
	cWin.write("<HTML><HEAD><TITLE> Zilron StoreCreator v5.x Shopping Cart Viewer</TITLE></HEAD>");
	cWin.write("<BODY BACKGROUND='"+parent.mCartBGImage+"' Text='"+parent.mCartText+"' BGCOLOR='"+parent.mCartBGColor+"' LINK='"+parent.mCartALink+"' VLINK='"+parent.mCartLink+"'  ALINK='"+parent.mCartALink+"' valign=top>");
	cWin.write(" "+mAlignStr+"<TABLE width=600 border=1 CELLSPACING=0 CELLPADDING=0>");
	cWin.write("<tr><td width=600 bgcolor=#666699 height=24><p align='center'><big><font color=#FFFFFF size=6><strong>"+disFont+parent.storeName+"</strong></font></big></td></tr>");
	cWin.write("<tr><td width=600 bgcolor=#ffffff><font color=#333333 size=2>"+disFont+"<strong>Contact Address:</strong><BLOCKQUOTE><font color=#333333 size=2>"+disFont+parent.storeContactAddress+"</font></td></tr>");
	cWin.write("<tr><td width=600 bgcolor=#666699><center><Strong><font color=#ffffff>"+disFont+"Search results are as shown in the following table:["+totalFound+"]</td></tr>");
	cWin.write("<tr><td width=600>");
	cWin.write("<TABLE width=600 border=2 CELLSPACING=0 CELLPADDING=0>");
	cWin.write("<tr bgcolor='"+parent.mCartTableHeaderBGColor+"'><td width=10%><b><strong><font size=2 color='"+parent.mCartTableHeaderColor+"'>"+disFont+"<center>Match#</center></td><td width=10%><b><strong><font size=2 color='"+parent.mCartTableHeaderColor+"'>"+disFont+"<center>ItemID</center></td><td width=50%><b><strong><font size=2 color='"+parent.mCartTableHeaderColor+"'>"+disFont+"<center>Item Name</center></td><td width=10%><b><strong><font size=2 color='"+parent.mCartTableHeaderColor+"'>"+disFont+"<center>Price</center></td></tr>");
	for (j=0;j<ir.length;j++) {
		if (ir[j].match>0) {
			cWin.write("<tr bgcolor='"+parent.mCartTableBodyBGColor+"'><td valign=top><font size=2 color='"+parent.mCartTableBodyColor+"'>"+disFont+"<strong><center>"+ir[j].match+"</strong></td><td valign=top><font size=2 color='"+parent.mCartTableBodyColor+"'>"+disFont+"<strong><center>"+ir[j].itemID+"</strong></td><td valign=top><font size=2 color='"+parent.mCartTableBodyColor+"'>"+disFont+"<strong><center><a href='item"+ir[j].itemID.toLowerCase()+".html'  target=shop>"+ir[j].itemName+"</a></strong></td><td align=right><font size=2 color='"+parent.mCartTableBodyColor+"'>"+disFont+"<strong><right>"+Currency(ir[j].price)+"</strong></td></tr>");
		}
	}
	cWin.write("</table></td></tr></table></body></html>");
	cWin.close();	
}


function PrintSearchPage()
{
	var cWin=parent.frames["shop"].document;
	cWin.open();
	cWin.write("<HTML><HEAD><TITLE> Zilron StoreCreator v5.x Shopping Cart Viewer</TITLE></HEAD>");
	cWin.write("<BODY Text=#000000 BGCOLOR=#ffffff LINK=#ff0000 VLINK=#ff0000 alink=#222222 valign=top OnLoad='document.forms[0].elements[0].focus()'>");
	cWin.write("<table border=0> <tr><td><a href='"+mainPage+"'>"+disFont+"<Strong>Main Page</strong></a></td><td>"+disFont+"<a href='"+parent.returnHtmlPath+"'><Strong>Back</strong></a></td></tr></table><hr size=1 width=50%>");
	cWin.write("<input type=button size=40 value='Submit' onClick='parent.frames[\"cart\"].Search()'>");
	cWin.write("</form></td></tr></table>");
	cWin.write("</body></html>");
	cWin.close();	
}


//===============================================================================================================================================
// Last Upgrade: 11 June 2001
//===============================================================================================================================================
