var texttemp = '<div class="replaceContainer"><select name="select2" id="select2" onchange="MM_jumpMenu(\'parent\',this,0)" style="font-size: 10px; font-face: Verdana, Arial, sans-serif;">' +
'<option value="nolink" selected>LIST OF ALL TSHIRTHELL.COM SHIRTS&nbsp;&nbsp;</option>' +
'<option value="-" style="BACKGROUND-COLOR: #F03028; COLOR: #FFFFFF"><b>T-SHIRTS</b></option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=711">...as a Kite</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=882">03687 Days Since the Last T...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=401">1f U C4n R34d Th15 U R34lly...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=846">420 - I Don\'t Smoke Pot</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1310">Accordion Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1328">Alice in Chains</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=302">Also Available in Sober</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1272">Am I Still Here?</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1325">Animal Slavery Still Cool</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1054">Any Way We Can Speed This Up?</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1217">Anyone Need to Earn Money F...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1330">Attention, Whore</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=492">Baaaaaa Means Nooooo</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=278">Bad Samaritan</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1320">Bagpipe Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1302">Banjo Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1301">Bassoon Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=805">Bitch Betta Have My Hunny</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1233">Bitches Ain\'t Shit but Hoe...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1190">Bling-Bling</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=656">Canadians Are Eh\'holes</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1306">Cello Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1318">Clarinet Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=422">Could You Come Back in a Fe...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1321">Cowbell Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1297">Democratic Donkey (Head Up ...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1231">Disney on Ice</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=773">Don\'t Bother Me - I\'m Was...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1323">Don\'t Curse</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1303">Drum-Line Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1313">Flute Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1214">Free Hugs (World Champion S...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1317">French Horn Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1289">Fuck Me It\'s Trendy</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=559">Fuck the Colorblind</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1020">Fuck Ye</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=692">Fucking Classy</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1307">Glockenspiel Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1083">Gluten for Punishment</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1324">God Gets Me Wet</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1277">Guess He Can\'t (Barack Obama)</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1015">Han Job (Han Solo Princess ...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=290">He Loves the Cock</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=985">Hobbes\' Revenge</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=599">Hopeless Romantic Seeks Fil...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1271">How Do I Block You in Real ...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=610">Hung Like a Horse</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1329">I Believe in Happy Endings</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=182">I Bring Nothing to the Table</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1286">I Could Use a Little Sexual...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1262">I Didn\'t Buy This Shirt Be...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1079">I Didn\'t Come Here to Impr...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1260">I Don\'t Need 140 Character...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=760">I Drink in Moderation</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1267">I Eat More Pussy Than Alf</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1092">I Fucking Love to Cuddle</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1263">I Hope I Don\'t Black Out, ...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=519">I Just Killed a Clown</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=597">I Know Violence Isn\'t the ...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1012">I Need a Girl Who Can Handl...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1327">I Put out for Santa</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1027">I Put the  in Lazy</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=868">I Put the Cute in Execute</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=393">I Saw Mommy Kissing Mrs. Claus</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=575">I Shaved My Balls for This?</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=423">I Should Be in the Kitchen</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=330">I Support Single Moms</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=439">I Taught Your Boyfriend Tha...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=445">I Taught Your Girlfriend Th...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1032">I Wanna Put My (Cock) in Yo...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=957">I\'d Rather Be Snorting Coc...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=434">I\'ll Be Using These to My ...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1287">I\'m All for Being Social B...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=625">I\'m Not a Full Blooded Jew...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=612">I\'m the One You Gotta Blow...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=202">I\'m What Willis Was Talkin...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=714">I\'ve Had It Up to Here Wit...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=618">If I Had Balls They Would B...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1265">If I Were a Dirty Skank I W...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1288">If You\'re Happy and You Kn...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1066">It\'s 1620 Somewhere</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=897">It\'s Good</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=433">It\'s Not Pms - It\'s You</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1290">John 4:20</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1311">Kazoo Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1191">Let\'s Get Fucked Up!  Like...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1304">Mandolin Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1279">Marshmallow Roast</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1280">Me So Holy Me Love You Long...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=745">Mexican\'t</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1259">My Dick is Bigger Than Your...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=982">My Life is a Very Complicat...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1049">Natural Redhead</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1074">Not an Accurate Representat...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1053">Not Tonight Ladies, I\'m Ju...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=457">Ob Gyn Kenobi</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1299">Oboe Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1295">Officer Down</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1296">Ok, but Wash It First</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1001">Only You Can Prevent Forest...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1266">Origasm</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1218">Pezbians</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1309">Piano Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1234">Pop a Smurf</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=538">Reminder - Buy More Beer</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1273">Sailor Trash</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1188">Santa Rubbed Your Toothbrus...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=696">Save Gas - Ride the Handicapped</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1315">Saxophone Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1308">Sitar Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=974">Slavery Gets Shit Done</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1037">Sorry About What Happens Later</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=578">Sorry for Being So Fucking Sexy</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1281">Sorry Ladies the Shirt is S...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1298">Sousaphone Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=386">Spin My Dreidel (And by Dre...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=472">Stop Clubbing Baby Seals</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=826">Straight</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1270">Suck All You Want, I\'ll Ma...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=719">Swallow or It\'s Going in Y...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=306">Swallows</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=42">Talk Nerdy to Me</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=926">The Kermit Dissection</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=112">There Are Two People Fuckin...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=565">This Orgy Sure is off to a ...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1002">This Shirt is 100% Organic ...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=676">Thousands of My Potential C...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=318">To Women from God</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=673">Tool (Not the Band, I\'m Ju...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1314">Triangle Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1319">Trombone Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1312">Trumpet Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1316">Ukulele Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1305">Viola Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1300">Violin Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=853">Wal-Marx - Always Corporate...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=812">What the Fuck Did You Call ...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=425">Who Needs Big Tits when You...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=64">WWJD for a Klondike Bar</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1038">Yes My T-Shirt Does Say Fuc...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1184">Yes We Can ...move to Canada</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=561">Yo Yo Yo - Merry Kwanzaa Bi...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=323">You Cant Have Manslaughter ...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1264">You Could Single-Handedly M...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=308">You Must Be This Long to Ride</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1326">Your Mom is a Whore - Merry...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=821">Youtube Myspace and I\'ll G...</option>' +
'<option value="-" style="BACKGROUND-COLOR: #ffae00; COLOR: #FFFFFF"><b>TORSOPANTS</b></option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1205">Ante, Christ</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1211">Ask Me About My Complete La...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1204">Atheist</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1245">Baseball </option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1322">During My Blackout I Saw My...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=476">Go Local Sports Team And/Or...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1195">Hey You. Yeah, You. No, Not...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=988">Home School Valedictorian</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=990">I Am Not an Ambulance</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=647">I Heart Transitive Pictogra...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1196">I Meet or Exceed Expectations</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=516">I Stole This Shirt from a H...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1206">I\'m an Animal in Bed</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1203">Is It Solipsistic in Here, ...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=227">IV:XX</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1200">Jesus Loves You</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1248">Let\'s Fight Some Ballerinas</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1197">Moo (Chicken)</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1199">My Marxist Feminist Dialect...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1293">Not Brad Pitt</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1249">Pancakes</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=668">Pimp</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=27">Plain Clothes Cop</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1201">Platypus of Death</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1202">Purples</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1275">Self-Parody</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=28">This is My Clone</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1274">This Renaissance Faire Sucks</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=722">This Shirt Doesn\'t Make Se...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1225">Tuba Hero</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1269">Voted \"Most Likely to Trav...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1268">When Life Hands You: High F...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=716">Words on a Shirt</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1198">Worlds\' Goodest Teecher</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1250">Yo, Where My Knickers At?</option>' +
'<option value="-" style="background-color:#2831f0; color: #ffffff;"><b>BABY HELL T-SHIRTS</b></option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1291">80 More Years of This Shit?</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=515">All Mommy Wanted Was a Backrub</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=81">Are You My Daddy?</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1070">Baby - Not Midget (Do Not Toss)</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=201">Daddy Drinks Because I Cry</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=289">Daddy\'s Lil\' Squirt</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=71">Fuck the Milk</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=370">Hung Like a Five Year Old</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=75">I Can Kick Your Baby\'s Ass</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=870">I Can\'t Even Walk Yet and ...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=82">I Enjoy a Good Spanking</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=669">I Spent 9 Months in the Hole</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=934">Kickin\' Ass & Takin\' Naps</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=363">My Other Car Seat is in a P...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=213">Playground Pimp</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=884">Pooping in Progress</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1044">Recently Evicted</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=1246">Too Cute to Play with Your ...</option>' +
'</select></div>';

//Original TSH Functionality
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
// EOF Original


// New Hottness

function selectReplacement(obj) {
  obj.className += ' replaced';
  //var div = document.createElement('<div style="height:300px; width:200px; overflow: scroll; background-color:#000;"></div>');
  var div = document.createElement('div');
  div.className = 'replaceContainer';
  div.id = obj.id+"-div";
  var ul = document.createElement('ul');
  ul.className = 'selectReplacement';
  ul.id = obj.id+"-new";
  var opts = obj.options;
  for (var i=0; i<opts.length; i++) {
    var selectedOpt;
    if (opts[i].selected) {
      selectedOpt = i;
      break;
    } else {
      selectedOpt = 0;
    }
  }
  for (var i=0; i<opts.length; i++) {
    var li = document.createElement('li');
	li.name = opts[i].value;
    var txt = document.createTextNode(opts[i].text);
    li.appendChild(txt);
    li.selIndex = opts[i].index;
    li.selectID = obj.id;
    li.onclick = function() {
      selectMe(this);
    }
	if(li.name == 'nolink'){
		li.className = 'liSeparator';
	}else{
		li.className = 'liReg';
	}
    if (i == selectedOpt) {
      li.className = 'selected';
      li.onclick = function() {
        this.parentNode.className += ' selectOpen';
		document.getElementById("select2-div").className = 'replaceContainerExpand';
        this.onclick = function() {
          selectMe(this);
        }
      }
    }
    if (window.attachEvent) {
      li.onmouseover = function() {
        this.className += ' hover';
      }
      li.onmouseout = function() {
        this.className = 
          this.className.replace(new RegExp(" hover\\b"), '');
      }
    }
    ul.appendChild(li);
	
  }
  div.appendChild(ul);
  obj.parentNode.insertBefore(div,obj);
}
function selectMe(obj) {
  document.getElementById("select2-div").className = 'replaceContainer';
  var lis = obj.parentNode.getElementsByTagName('li');
  for (var i=0; i<lis.length; i++) {
    if (lis[i] != obj) {
      lis[i].className='';
      lis[i].onclick = function() {
		selectMe(this);
      }
    } else {
	  if(lis[i].name != 'nolink') {
	    eval("window.location='"+lis[i].name+"'");
	  }
      setVal(obj.selectID, obj.selIndex);
      obj.className='selected';
      obj.parentNode.className = 
        obj.parentNode.className.replace(new RegExp(" selectOpen\\b"), '');
      obj.onclick = function() {
        obj.parentNode.className += ' selectOpen';
        this.onclick = function() {
         selectMe(this);
        }
      }
    }
  }
}
function setVal(objID, selIndex) {
  var obj = document.getElementById(objID);
  obj.selectedIndex = selIndex;
}
function setForm() {
  var s = document.getElementsByTagName('select');
  for (var i=0; i<s.length; i++) {
    selectReplacement(s[i]);
  }
}
function replaceSelectMenu() {
  document.write(texttemp);
  //selectReplacement(document.getElementById("select2"));
  //(document.all && !window.print) ? null : setForm();
}


// ]]>