var arr_girls = [
["Graphic Tees","http://us.a1c.yahoofs.com/shopping/3113675/ppl1639742.jpg?pr_____DnC3.9L55","http://shopping.yahoo.com/s:Shirts:4601-Gender=Women%27s:4347-Style=T%2DShirts:ui=search:keyword=graphic;_ylt=AnJ46NIREpLku0.iO3.JDDPx2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Canvas Handbags","http://us.a1c.yahoofs.com/shopping/3112944/ppl1632779.jpg?pr_____D1w8oCtzd","http://shopping.yahoo.com/s:Bags%20%26%20Wallets:4601-Gender=Women%27s:4347-Style=Tote%20Bags:keyword=canvas;_ylt=AnJ46NIREpLku0.iO3.JDDPx2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Dark Wash Denim","http://us.a1c.yahoofs.com/shopping/3112944/ppl1632780.jpg?pr_____DRF.Db5G5","http://shopping.yahoo.com/s:Pants:y=g:4347-Style=Jeans:4601-Gender=Women%27s;_ylt=AnJ46NIREpLku0.iO3.JDDPx2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-?keyword=dark+wash"],
["Shoes by Ed Hardy","http://us.a1c.yahoofs.com/shopping/3112944/ppl1632775.jpg?pr_____DzKg2cnUT","http://shopping.yahoo.com/s:Casual%20Shoes:4168-Brand=Ed%20Hardy:4601-Gender=Women%27s;_ylt=AnJ46NIREpLku0.iO3.JDDPx2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Puff Sleeve Tops","http://us.a1c.yahoofs.com/shopping/3113136/ppl1636830.igw3lc?pr_____DZj4etTj6","http://shopping.yahoo.com/s:Shirts:4601-Gender=Women%27s:06-Category=238:keyword=puff%20sleeve;_ylt=AnJ46NIREpLku0.iO3.JDDPx2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Pastic Retro Sunglasses","http://us.a1c.yahoofs.com/shopping/3112944/ppl1632778.jpg?pr_____DE0hnU9Sv","http://shopping.yahoo.com/s:Sunglasses:4601-Gender=Women%27s:keyword=retro%20sunglasses;_ylt=AnJ46NIREpLku0.iO3.JDDPx2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Hoodie Sweatshirt","http://us.a1c.yahoofs.com/shopping/3112944/ppl1632776.jpg?pr_____Dvk6Bx0yg","http://shopping.yahoo.com/s:Sweaters:4601-Gender=Women%27s:06-Category=289:keyword=hoodie;_ylt=AnJ46NIREpLku0.iO3.JDDPx2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Canvas Flats","http://us.a1c.yahoofs.com/shopping/3112944/ppl1632774.jpg?pr_____DEWdkfr4W","http://shopping.yahoo.com/s:Casual%20Shoes:4601-Gender=Women%27s:134605-Style=Flats:browsename=Women%27s%20Flats:1561-Material=Canvas;_ylt=AgtQsyz3SfNamzfY3o2xmDnx2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Babydoll Dresses","http://us.a1c.yahoofs.com/shopping/3097273/ppl1427607.jpg?pr_____DEduBqg8.","http://shopping.yahoo.com/search;_ylt=AgtQsyz3SfNamzfY3o2xmDnx2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-?p=babydoll+dresses"],
["Betsey Johnson Watches","http://us.a1c.yahoofs.com/shopping/3112944/ppl1632782.jpg?pr_____DNqTz2yfb","http://shopping.yahoo.com/s:Watches:06-Category=882:06-Category=871:keyword=betsey%20johnson;_ylt=AgtQsyz3SfNamzfY3o2xmDnx2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"]
];

var arr_guys = [
["Hoodie Sweatshirts","http://us.a1c.yahoofs.com/shopping/3113004/ppl1634747.mt?pr_____DYH2sNI5I","http://shopping.yahoo.com/s:Sweaters:y=g:4601-Gender=Men%27s:4347-Style=Sweatshirts;_ylt=AgtQsyz3SfNamzfY3o2xmDkL5MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-?keyword=hoodie"],
["Dark Wash Jeans","http://us.a1c.yahoofs.com/shopping/3113004/ppl1634743.jpg?pr_____DtvGbAgp6","http://shopping.yahoo.com/s:Pants:y=g:4347-Style=Jeans:4601-Gender=Men%27s;_ylt=AgtQsyz3SfNamzfY3o2xmDkL5MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-?keyword=dark"],
["Graphic Tees","http://us.a1c.yahoofs.com/shopping/3113004/ppl1634742.uve?pr_____Dk.4iFSiF","http://shopping.yahoo.com/s:Shirts:4601-Gender=Men%27s:4347-Style=T%2DShirts:keyword=graphic;_ylt=AgtQsyz3SfNamzfY3o2xmDkL5MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Casual Shoes","http://us.a1c.yahoofs.com/shopping/3113004/ppl1634748.jpg?pr_____Dz2gN7MoW","http://shopping.yahoo.com/s:Casual%20Shoes:4601-Gender=Men%27s;_ylt=AgtQsyz3SfNamzfY3o2xmDkL5MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Fossil Watches","http://us.a1c.yahoofs.com/shopping/3113004/ppl1634749.jpg?pr_____DNYgh_JuX","http://shopping.yahoo.com/s:Casual%20Watches:4157-Gender=Men%27s::4168-Brand=Fossil;_ylt=AgtQsyz3SfNamzfY3o2xmDkL5MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Clothing by Ed Hardy","http://us.a1c.yahoofs.com/shopping/3113004/ppl1634744.jpg?pr_____Dg5Ce9EJE","http://shopping.yahoo.com/s:Clothing:4601-Gender=Men%27s:browsename=All%20Men%27s%20Clothing:4168-Brand=Ed%20Hardy;_ylt=AgtQsyz3SfNamzfY3o2xmDkL5MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Leather Jean Belts","http://us.a1c.yahoofs.com/shopping/3113004/ppl1634745.jpg?pr_____DFQqwkUMH","http://shopping.yahoo.com/s:Belts:4601-Gender=Men%27s:1561-Material=Leather;_ylt=AgtQsyz3SfNamzfY3o2xmDkL5MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Sunglasses","http://us.a1c.yahoofs.com/shopping/3113004/ppl1634751.jpg?pr_____DaC4NnrzK","http://shopping.yahoo.com/s:Sunglasses:4601-Gender=Men%27s:browsename=Men%27s%20Sunglasses;_ylt=AgtQsyz3SfNamzfY3o2xmDkL5MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Hats","http://us.a1c.yahoofs.com/shopping/3113004/ppl1634750.jpg?pr_____D2Mn_kBc6","http://shopping.yahoo.com/s:Hats:4601-Gender=Men%27s:browsename=Men%27s%20Hats;_ylt=AgtQsyz3SfNamzfY3o2xmDkL5MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Wallets","http://us.a1c.yahoofs.com/shopping/3113004/ppl1634752.jpg?pr_____D7ZMVt5YU","http://shopping.yahoo.com/s:Bags%20%26%20Wallets:4347-Style=Wallets:4601-Gender=Men%27s:browsename=Men%27s%20Wallets;_ylt=AgtQsyz3SfNamzfY3o2xmDkL5MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"]
];

var arr_dorm = [
["iPod Alarm Clock Dock","http://us.a1c.yahoofs.com/shopping/3113004/ppl1634768.jpg?pr_____Dr1DTPGgj","http://shopping.yahoo.com/search;_ylt=AgtQsyz3SfNamzfY3o2xmDnv2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-?p=ipod%20alarm%20clock&cat=mp3ZZZ5FplayerZZZ5Faccessories"],
["Comfy Bedding","http://us.a1c.yahoofs.com/shopping/3112944/ppl1632763.jpg?pr_____DCjOL2dKx","http://shopping.yahoo.com/s:Bedding;_ylt=AgtQsyz3SfNamzfY3o2xmDnv2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Cuisinart Toaster","http://us.a1c.yahoofs.com/shopping/3112944/ppl1632766.jpg?pr_____DGDw.D1UZ","http://shopping.yahoo.com/search;_ylt=AnJ46NIREpLku0.iO3.JDDPv2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-?p=Cuisinart+CPT-120+Toaster"],
["Kenmore Compact Fridge","http://us.a1c.yahoofs.com/shopping/3097274/ppl1427818.jpg?pr_____DdGstjRql","http://shopping.yahoo.com/s:Compact%20Refrigerators:4168-Brand=Kenmore;_ylt=AgtQsyz3SfNamzfY3o2xmDnv2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Umbra Crunch Can/Storage","http://us.a1c.yahoofs.com/shopping/3112944/ppl1632765.jpg?pr_____DipIxB_pe","http://shopping.yahoo.com/search;_ylt=AgtQsyz3SfNamzfY3o2xmDnv2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-?p=umbra+crunch+can"],
["Noise-Cancelling Headphones","http://us.a1c.yahoofs.com/shopping/3097274/ppl1427817.jpg?pr_____DfnXwUI69","http://shopping.yahoo.com/search;_ylt=AgtQsyz3SfNamzfY3o2xmDnv2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-?p=Noise+cancelling+headphones"],
["Dell XPS M1330","http://us.a1c.yahoofs.com/shopping/3112944/ppl1632768.jpg?pr_____D51jfK8DR","http://shopping.yahoo.com/search;_ylt=AgtQsyz3SfNamzfY3o2xmDnv2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-?p=dell+xps+m1330+laptop+computer"],
["Storage Cubes","http://us.a1c.yahoofs.com/shopping/3112944/ppl1632767.jpg?pr_____D1V7gTJwY","http://shopping.yahoo.com/search;_ylt=AgtQsyz3SfNamzfY3o2xmDnv2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-?p=storage+cubes"],
["Digital Photo Frame","http://us.a1c.yahoofs.com/shopping/3112944/ppl1632764.jpg?pr_____D4ncZcClJ","http://shopping.yahoo.com/s:Digital%20Photo%20Frames;_ylt=AgtQsyz3SfNamzfY3o2xmDnv2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Logo Sphere Chairs","http://us.a1c.yahoofs.com/shopping/3112944/ppl1632769.jpg?pr_____DGBxYiYHx","http://shopping.yahoo.com/s:Chairs;_ylt=AgtQsyz3SfNamzfY3o2xmDnv2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-?keyword=sphere"]
];


var arr_k6 = [
["School Backpacks","http://us.a1c.yahoofs.com/shopping/3112944/ppl1632758.jpg?pr_____D7xNfRgre","http://shopping.yahoo.com/s:Bags%20%26%20Wallets:browsename=All%20Accessories:4347-Style=Backpacks:4601-Gender=Unisex%20%28Kids%29:refspaceid=784707877;_ylt=AgtQsyz3SfNamzfY3o2xmDny2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Electric Scooter","http://us.a1c.yahoofs.com/shopping/3097274/ppl1427755.jpg?pr_____DIixc7M3u","http://shopping.yahoo.com/search;_ylt=AgtQsyz3SfNamzfY3o2xmDny2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-?p=electric+scooter"],
["Educational Toys","http://us.a1c.yahoofs.com/shopping/3112944/ppl1632759.jpg?pr_____DO5mq_rvj","http://shopping.yahoo.com/s:Educational%20Toys;_ylt=AgtQsyz3SfNamzfY3o2xmDny2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Bike Helmet","http://us.a1c.yahoofs.com/shopping/3097274/ppl1427752.jpg?pr_____DeoXu2NsU","http://shopping.yahoo.com/s:Cycling%20Equipment:y=gg:4551-Bike%20Equipment=Bike%20Helmets:ui=search;;_ylt=AgtQsyz3SfNamzfY3o2xmDny2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-?keyword=kid"],
["Educational Software","http://us.a1c.yahoofs.com/shopping/3112944/ppl1632762.jpg?pr_____DGoyeptbW","http://shopping.yahoo.com/s:Educational%20Software;_ylt=AgtQsyz3SfNamzfY3o2xmDny2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Fleece Jacket","http://us.a1c.yahoofs.com/shopping/3112944/ppl1632760.ukpr?pr_____D6XBgNjs9","http://shopping.yahoo.com/s:Outerwear:4601-Gender=Unisex%20%28Kids%29:4347-Style=Fleece%20Jackets:refspaceid=784704465;_ylt=AgtQsyz3SfNamzfY3o2xmDny2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Art Supplies","http://us.a1c.yahoofs.com/shopping/3097274/ppl1427757.3l6?pr_____D1olYYu.j","http://shopping.yahoo.com/s:Art%20Supplies;_ylt=AgtQsyz3SfNamzfY3o2xmDny2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Waterproof Boots","http://us.a1c.yahoofs.com/shopping/3112944/ppl1632757.ul9rni?pr_____DYxNs9gGZ","http://shopping.yahoo.com/s:Boots:4601-Gender=Unisex%20%28Kids%29:14605-Style=Waterproof%20Boots:refspaceid=784707809;_ylt=AgtQsyz3SfNamzfY3o2xmDny2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Stamp, Sticker, Stationery Sets","http://us.a1c.yahoofs.com/shopping/3097274/ppl1427756.jpg?pr_____DHIrwWbwd","http://shopping.yahoo.com/s:Arts%20%26%20Crafts:06-Category=748:keyword=stickers;_ylt=AgtQsyz3SfNamzfY3o2xmDny2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Pen &amp; Pencil Cases","http://us.a1c.yahoofs.com/shopping/3112944/ppl1632761.jpg?pr_____DPm.q.t93","http://shopping.yahoo.com/s:Pen%20%26%20Pencil%20Cases;_ylt=AgtQsyz3SfNamzfY3o2xmDny2MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"]
];

var arr_comp = [
["Apple MacBook Air 1.6 GHz Laptop","http://us.a1c.yahoofs.com/shopping/3113004/ppl1634771.jolrr?pr_____DhWVEyLoO","http://shopping.yahoo.com/p:Apple%20MacBook%20Air%201.6%20GHz%20Laptop%20Computer:1995282512;_ylt=AgtQsyz3SfNamzfY3o2xmDkO5MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Gateway GT5670 Desktop","http://us.a1c.yahoofs.com/shopping/3112194/ppl1627783.jpg?pr_____D4wZ.hf.L","http://shopping.yahoo.com/p:Gateway%20GT5670%20Desktop%20Computer:1995548454;_ylt=AgtQsyz3SfNamzfY3o2xmDkO5MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Dell XPS M1330 Laptop","http://us.a1c.yahoofs.com/shopping/3112944/ppl1632768.jpg?pr_____D51jfK8DR","http://shopping.yahoo.com/p:Dell%20XPS%20M1330%20Laptop%20Computer:1994816589;_ylt=AgtQsyz3SfNamzfY3o2xmDkO5MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Apple iMac 2.4GHz (20 inch) Desktop","http://us.a1c.yahoofs.com/shopping/3101336/ppl1459451.jpg?pr_____DgE71cTPM","http://shopping.yahoo.com/p:Apple%20iMac%202.4GHz%20%2820%20inch%29%20Desktop%20Computer:1994898647;_ylt=AgtQsyz3SfNamzfY3o2xmDkO5MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Toshiba Portege R500-S5001X Laptop","http://us.a1c.yahoofs.com/shopping/3112950/ppl1633770.jpg?pr_____DQW0gZQF3","http://shopping.yahoo.com/p:Toshiba%20Portege%20R500-S5001X%20Laptop%20Computer:1994835288;_ylt=AgtQsyz3SfNamzfY3o2xmDkO5MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Acer Aspire M5640-U5403A Desktop","http://us.a1c.yahoofs.com/shopping/3113004/ppl1634764.jpg?pr_____Dpm.x1veM","http://shopping.yahoo.com/p:Acer%20Aspire%20M5640-U5403A%20Desktop%20Computer:1995583442;_ylt=AgtQsyz3SfNamzfY3o2xmDkO5MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Sony VAIO FZ180E/B Laptop","http://us.a1c.yahoofs.com/shopping/3101638/ppl1474444.jpg?pr_____D1fHVPeeV","http://shopping.yahoo.com/p:Sony%20VAIO%20FZ180E%2FB%20Laptop%20Computer:1994789895;_ylt=AgtQsyz3SfNamzfY3o2xmDkO5MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["HP Pavilion Slimline s3400f Desktop","http://us.a1c.yahoofs.com/shopping/3113004/ppl1634763.jpg?pr_____Dym0H0rw7","http://shopping.yahoo.com/p:HP%20Pavilion%20Slimline%20s3400f%20Desktop%20Computer:1995518169;_ylt=AgtQsyz3SfNamzfY3o2xmDkO5MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Fujitsu LifeBook P8010 Laptop","http://us.a1c.yahoofs.com/shopping/3112950/ppl1633769.jpg?pr_____Dj27OKVzs","http://shopping.yahoo.com/p:Fujitsu%20LifeBook%20P8010%20Laptop%20Computer:1995384151;_ylt=AgtQsyz3SfNamzfY3o2xmDkO5MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"],
["Gateway GT5676 Desktop","http://us.a1c.yahoofs.com/shopping/3113004/ppl1634766.jpg?pr_____Do3Riczaw","http://shopping.yahoo.com/p:Gateway%20GT5676%20Desktop%20Computer:1995552084;_ylt=AgtQsyz3SfNamzfY3o2xmDkO5MUu;_ylu=X3oDMTBqdXY5dTAyBHNlYwNnaWZ0b2xvZ3lfcHJvZHM-"]
];









var arr_supplies = {
	girls:["Top 10 Girls' Fashion",arr_girls],
	guys:["Top 10 Guys' Fashion",arr_guys],
	dorm:["Top 10 Dorm Essentials",arr_dorm],
	k6:["Top 10 K-6 Essentials",arr_k6],
	comps:["Top 10 Computers",arr_comp]
};
	

function createDropDown() {
	
	var sel = document.getElementById("suppliesform");
	for (var item in arr_supplies) {
		var opt =document.createElement("option");
		opt.innerHTML = arr_supplies[item][0];
		opt.value = item;
		sel.appendChild(opt);
	}
	sel.onchange = function() {
		trackMisc('shop/select_'+this.options[this.options.selectedIndex].value);
		car_supplies.makeThumbs(this.options[this.options.selectedIndex].value);
	}


}

function loadCarousel() {
	car_supplies = new gwCarousel();
	createDropDown();
	car_supplies.makeThumbs("girls");
	YAHOO.util.Event.addListener(document.getElementById("next-arrow"), "click", function(){car_supplies.doNext()}); 
	YAHOO.util.Event.addListener(document.getElementById("prev-arrow"), "click", function(){car_supplies.doPrev()}); 
}

//gw carousel fxns
function gwCarousel() {
	this.thumbw = 105;
	this.thumbm = 10;
	this.thumbtotal = 0;//curArr.length-1;
	this.viewable = 575;
	this.divView = 	document.getElementById("thumbsview");
	this.divView.style.width = this.viewable+"px";
	this.totalwidth = 0;//(this.thumbw+this.thumbm)*this.thumbtotal - (this.viewable/2);
	this.totalpages=0;
	this.incr = this.viewable;  //px
	this.curPos = 0;
	this.curPage = 1;
	this.curSubj = "";
	
	this.doNext = function() {
		if(this.curPage < this.totalpages) {
			trackMisc("shop/"+this.curSubj+"/next");
			this.getPage(this.curPage+1);
		}
	};
	
	this.doPrev = function() {
		if(this.curPage >1) {
			trackMisc("shop/"+this.curSubj+"/prev");
			this.getPage(this.curPage-1);
		}
	};
	this.getPage = function(p) {
		this.curPos = 0-(this.incr*(p-1))
		var attributes = { left: { to: this.curPos } }
		var myAnim = new YAHOO.util.Anim("thumbs", attributes,.5,YAHOO.util.Easing.easeOut);
		myAnim.animate();
		document.getElementById("dot"+this.curPage).className = "dot";
		document.getElementById("dot"+p).className = "dot dot_on";
		this.doArrows(p);
		this.curPage = p;
		
	};
	this.doArrows = function(p) {
		if(p<=1)document.getElementById("prev-arrow").src="http://l.yimg.com/us.yimg.com/i/mntl/ww/events/08b2s//carousel_prev_0.gif";
		else document.getElementById("prev-arrow").src="http://l.yimg.com/us.yimg.com/i/mntl/ww/events/08b2s//carousel_prev.gif";
		
		if(p>=this.totalpages)document.getElementById("next-arrow").src="http://l.yimg.com/us.yimg.com/i/mntl/ww/events/08b2s//carousel_next_0.gif";
		else document.getElementById("next-arrow").src="http://l.yimg.com/us.yimg.com/i/mntl/ww/events/08b2s//carousel_next.gif";
	};
	this.reset = function() {
		this.curPos = 0;
		this.curPage =1;
		document.getElementById("thumbs").style.left = "0px";
	};
	this.makeThumbs = function(what) {
		var trk = "http://us.rd.yahoo.com/events/08b2s/shop/"+what;
		var arr = arr_supplies[what][1];
		this.curSubj = what;
		
		this.thumbtotal = arr.length;
		this.totalwidth = (this.thumbw+this.thumbm)*this.thumbtotal;
		var ul = document.getElementById("thumbs");
		
		ul.style.width= this.totalwidth + "px";
		
		ul.innerHTML='';
		for(var i=0;i<this.thumbtotal;i++) {
			ul.innerHTML += "<li><p class='img'><a href='"+trk+"/"+i+"/img/*"+arr[i][2]+"'><img src='"+arr[i][1]+"' alt='"+arr[i][0]+"'></a></p><p class='txt'><a href='"+trk+"/"+i+"/txt/*"+arr[i][2]+"'>"+arr[i][0]+"</a></p></li>";
		}
		this.reset();
		this.makeDots();
		this.doArrows(this.curPage);

	};
	this.makeDots = function() {
		this.totalpages = Math.ceil(this.totalwidth/this.viewable);
		var div = document.getElementById('carousel_dots');
		div.innerHTML = "";
		for(var i=1;i<=this.totalpages;i++) {
			var dot = document.createElement("div");
			dot.id="dot"+i;
			dot.num = i;
			dot.className = "dot";
			if(i==1) dot.className +=" dot_on";
			dot.onclick = function() {
				trackMisc("shop/"+car_supplies.curSubj+"/dot"+this.num);
				car_supplies.getPage(this.num);
			}
			div.appendChild(dot);
		}
		
	}
	
}

