//auto generates by the storecreator and templates
var storeName='4 Collectors of Wee Bears.';
var mainPage='intro.html';
var totalItems=94;
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, 'AMORE', 'Amore the Love Cupid', 5.99, 'Holiday - Special Event Wee Bears');
A(7, '261', 'Bee Mine - Bumble Bee - Sold Out do not order', 0.00, 'Out of Stock Wee Bears - For Reference');
A(8, '302', 'Billy Goat - Retired - Sold Out', 0.00, 'Out of Stock Wee Bears - For Reference');
A(9, '262', 'Birthday Bears- Astrological Set of 12', 71.88, 'Birthday Bears-Astrology Set');
A(10, 'BOO', 'Boo the Ghost', 5.99, 'Halloween Collection');
A(11, 'CAVERN', 'Cavern the Bat- SOLD OUT', 0.00, 'Out of Stock Wee Bears - For Reference');
A(12, 'XMASANGEL', 'Christmas Angel  DO NOT ORDER', 0.00, 'Out of Stock Wee Bears - For Reference');
A(13, 'CRACKLES', 'Crackles the Easter Egg Bear', 5.99, 'Easter  Wee Bear SetSellect a ColorCrackle - BlueCrackle - PurpleCrackle - Yellow');
A(14, '51', 'Dinos: Fossil - ', 5.95, 'Wildlife - Jungle Collection');
A(15, '52', 'Dinos: Sara -  Sold Out- Do Not Order', 0.00, 'Out of Stock Wee Bears - For Reference');
A(16, '53', 'Dinos: Spike - ', 0.00, 'Out of Stock Wee Bears - For Reference');
A(17, '74', 'Farm: Clover', 5.99, 'Farm Wee Bear Collection');
A(18, '75', 'Farm: Doodle', 5.99, 'Farm Wee Bear Collection');
A(19, '76', 'Farm: Frisky', 5.99, 'Farm Wee Bear Collection');
A(20, '77', 'Farm: Leap ', 5.99, 'Farm Wee Bear Collection');
A(21, '78', 'Farm: Mudford the Pig', 5.99, 'Farm Wee Bear Collection');
A(22, '79', 'Farm: Paws', 5.99, 'Farm Wee Bear Collection');
A(23, '313', 'Fruit/Veggie: Beta-Carrotine the Carrot', 5.99, 'Fruit and Veggie Collection');
A(24, '311', 'Fruit/Veggie: Splitz the Banana', 5.99, 'Fruit and Veggie Collection');
A(25, 'GRADSSET', 'Graduation Set of 2', 11.98, 'Holiday - Special Event Wee Bears');
A(26, 'GRADS', 'Graduation Wee Bears- Brainy', 5.99, 'Holiday - Special Event Wee BearsColorsBrainy - BlackBrainy - Blue');
A(27, '321', 'Hal E. Day the Tourist', 5.99, 'Hawaiian Tourist Collection');
A(28, '260', 'I Love You - Lady Bug SOLD OUT', 0.00, 'Out of Stock Wee Bears - For Reference');
A(29, 'POSTMAN', 'IM Letterman the Wee Bear ', 5.99, 'LiL Professionals - People Collection');
A(30, '104', 'Jungle: Stripes out of stock', 0.00, 'Out of Stock Wee Bears - For Reference');
A(31, '203', 'LiL Professional: Blaze the Fireman ', 5.99, 'LiL Professionals - People Collection');
A(32, '205', 'LiL Professional: Buster the Policeman', 5.99, 'LiL Professionals - People Collection');
A(33, '204', 'LiL Professional: Pilot named Wings -', 5.99, 'LiL Professionals - People Collection');
A(34, 'MUMMY', 'Long Ago the Mummy', 5.99, 'Halloween Collection');
A(35, '257', 'Mr Howl the Wolf SOLD OUT', 0.00, 'Out of Stock Wee Bears - For Reference');
A(36, 'RODEO', 'Rodeo the Cowboy Wee Bear - Out of Stock', 0.00, 'Out of Stock Wee Bears - For Reference');
A(37, '322', 'Scuba Steve the Diver', 5.99, 'Hawaiian Tourist Collection');
A(38, 'SHAMROCK', 'Shamrock the Leprechaun- OUT OF STOCK', 0.00, 'Out of Stock Wee Bears - For Reference');
A(39, 'STRAWJAM', 'Strawberry Jam the Bear', 5.99, 'Bugables, Flowers and Clown Wee Bears');
A(40, 'CAT', 'Superstition the Black Cat', 5.99, 'Halloween Collection');
A(41, 'WRAPPER', 'Wrapper the Wee Bear', 5.99, 'Christmas Wee Bear Collection');
A(42, 'ANCHOR', 'Anchor the Navy Bear', 5.99, 'Americana USA Collection ');
A(43, '263', 'Aquarius the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(44, '264', 'Aries the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(45, '265', 'Cancer the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(46, '1266', 'Capricorn the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(47, 'CHICKPEA', 'Chickpea he Easter Bear Chick', 5.99, 'Easter  Wee Bear Set');
A(48, 'CLEATS', 'Cleats the Bear', 5.99, 'Sports Collection');
A(49, 'CORPORAL', 'Corporal USA bear', 5.99, 'Americana USA Collection ');
A(50, 'FATIGUES', 'Fatigues the Army Bear', 5.99, 'Americana USA Collection ');
A(51, '315', 'Fruit/Veggie: Sweetpea the Pea- OUT OF STOCK', 0.00, 'Out of Stock Wee Bears - For Reference');
A(52, '1267', 'Gemini the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(53, 'HUDDLE', 'Huddles SOLD OUT', 0.00, 'Out of Stock Wee Bears - For Reference');
A(54, '1268', 'Leo the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(55, '1269', 'Libra the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(56, 'MIG', 'Mig the Fighter Pilot', 5.99, 'Americana USA Collection ');
A(57, 'PEPPERMINT', 'Peppermint the Wee Bear', 5.99, 'Christmas Wee Bear Collection');
A(58, '1270', 'Pisces the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(59, '1271', 'Sagittarius the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(60, 'SAM', 'Sam the Uncle Bear', 5.99, 'Americana USA Collection ');
A(61, 'SANDY', 'Sandy the Turtle', 5.99, 'Wildlife - Jungle Collection');
A(62, '1272', 'Scorpio the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(63, 'SLUGGER', 'Slugger the Baseball Bear', 5.99, 'Sports Collection');
A(64, '1273', 'Taurus the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(65, '1274', 'Virgo the Wee Bear', 5.99, 'Birthday Bears-Astrology Set');
A(66, 'WIMBEARTON', 'WimBearTon the Tennis Bear', 5.99, 'Sports Collection');
A(67, '178', 'Xmas: Chilly SOLD OUT', 0.00, 'Out of Stock Wee Bears - For Reference');
A(68, '179', 'Xmas: Ginger', 5.99, 'Christmas Wee Bear Collection');
A(69, '182', 'Xmas: Squeeks', 5.99, 'Christmas Wee Bear Collection');
A(70, '200', 'Flower Bloosom: A  Collection Set of 3', 17.97, 'Bugables, Flowers and Clown Wee Bears');
A(71, '314', 'Fruit/Veggie: Cobb the Ear of Corn', 5.99, 'Fruit and Veggie Collection');
A(72, 'RAINDEER', 'Sleighter Raindeer SOLD OUT', 0.00, 'Out of Stock Wee Bears - For Reference');
A(73, '201', 'Valentine: Devil: :LiL`  Hot Stuff- Retired', 0.00, 'Out of Stock Wee Bears - For Reference');
A(74, '305', 'Wildlife: Potamus', 5.99, 'Wildlife - Jungle Collection');
A(75, '197', 'Flower Bloosom: LiL Pansy - ', 5.99, 'Bugables, Flowers and Clown Wee Bears');
A(76, '198', 'Flower Bloosom: LiL Rose ', 5.99, 'Bugables, Flowers and Clown Wee Bears');
A(77, '199', 'LiL Sunflower  Blossom', 5.99, 'Bugables, Flowers and Clown Wee Bears');
A(78, 'QEEEN', 'The Queen of Hearts - OUT OF STOCK', 0.00, 'Out of Stock Wee Bears - For Reference');
A(79, '89', 'Halloween: Esmeralda the Witch', 5.99, 'Halloween Collection');
A(80, '91', 'Halloween: PumpkinHead SOLD OUT', 0.00, 'Out of Stock Wee Bears - For Reference');
A(81, 'BETTYS', 'Betty the Cheerleader', 5.99, 'LiL Professionals - People CollectionSelect a School ColorBlack & GoldRed & BlackRoyal Blue & Red');
A(82, 'NOSEY', 'Nosey the  Clown Bear', 5.99, 'Bugables, Flowers and Clown Wee Bears');
A(83, 'SKIDS', 'Skids the Hobo Clown', 5.99, 'Bugables, Flowers and Clown Wee Bears');
A(84, 'BURLAP', 'Burlap the Scarecrow', 5.99, 'Holiday - Special Event Wee Bears');
A(85, 'JESTER1', 'Christmas Jester- Reference only', 0.00, 'Out of Stock Wee Bears - For Reference');
A(86, 'CURLY', 'Curly Joe the  Clown- Sold Out', 0.00, 'Out of Stock Wee Bears - For Reference');
A(87, '54', 'Dinos: T-Rex - SOLD OUT. DO NOT ORDER', 0.00, 'Out of Stock Wee Bears - For Reference');
A(88, 'TURKEY', 'Gobbles the Turkey- Sold Out', 0.00, 'Out of Stock Wee Bears - For Reference');
A(89, 'JESTER2', 'Jokey Jester-', 0.00, 'Out of Stock Wee Bears - For Reference');
A(90, 'TOYSOLD', 'Toy Christmas Soldier ', 0.00, 'Out of Stock Wee Bears - For Reference');
A(91, '25', 'Bride and Groom Set of 2', 11.98, 'Holiday - Special Event Wee Bears');
A(92, '266', 'Wedding : Bride', 5.99, 'Holiday - Special Event Wee Bears');
A(93, '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
//===============================================================================================================================================
