
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=882">03687 Days Since The Last Time...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=639">2 Drinks Away From Girl On Girl Action</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=634">999 - Evil When I Do Handstands</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=609">Abracadabra! Fuck You\'re Still Ugly</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=967">Al Gore Didn\'t Invent The Internet...</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=969">Are You Tighter Than A 5th Grader?</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=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=917">Barack Obama - Half Honkey...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=678">Barry Takes It In The Ass</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=828">Blue Trash</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=902">Bros Before Hoes</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=907">Bush - Love Him Or Hate Him...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=769">Canadians Like It On Top</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=918">Can\'t We Just Fuck For Once?</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=973">Catfights Are Better Than Dogfights</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=729">Cookie Cutter</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=941">Dick In A Box 1933-2007</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=926">Dissecting Kermit</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=929">Donkey Show</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=725">Do Something With Your Life...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=704">Don\'t Mess With Texas - It\s Not Nice...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=268">East Coast Lawnmowers</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=768">Everytime You See A Rainbow...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=796">First One To Puke Drives</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=893">For English, Press 1.  Para Espaņol...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=925">For A Guilt-Free Fuck Tap Here</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=948">Fuck Buddy</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=692">Fucking Classy</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=841">Global Warming Is Awesome</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=380">Go Fuck Yourself</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=955">God Made Your Favorite Team Lose</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=911">Green Party</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=965">Guys Like You Make Me Want To...</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=691">Holy Fucking Shit</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=644">How Dare I Wear This Goddamn Shirt...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=610">Hung Horse</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=374">I Bet You\'ll Vote Next Time Hippie</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=938">I Drink I Can I Drink I Can</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=519">I Just Killed A Clown</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=597">I Know Violence Isn\'t The Answer...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=945">I Like All That Shit You Like Too!</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=891">I Like Chick Flicks</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=800">I Like Long Walks on the Beach - After Anal</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=950">I Look Like Marcia But I Fuck Like Jan</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=748">I Love Watermelon &amp; Fried Chicken Too!</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=286">I Only Support Gay Marriage If...</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=916">I Ruined It For Everyone</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 That Thing...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=445">I Taught Your Girlfriend That Thing...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=943">I Use My Huge Dick To Compensate...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=749">I Want Two In The Pink...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=961">I Wear This Just To Piss Off The Midgets</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=341">I\'d Rather Be Fighting The Man</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=957">I\'d Rather Be Snorting Cocaine...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=671">If A Fat Girl Falls In The Woods...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=618">If I Had Balls They Would Be Bigger...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=723">If I Have To Find Jesus Does That Mean...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=958">If There\'s Grass On The Field...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=527">If This is on Your Floor Tomorrow...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=434">I\'ll Be Using These To My Advantage</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=964">I\'m Crying On The Inside...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=187">I\'m Cute? No Shit.</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=924">I\'m Doing God\'s Work...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=292">I\'m Huge In Japan</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=517">I\'m Just In It For the Parking</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=734">I\'m My Own Wingman</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=867">I\'m Never Wearing This In A Bar Again</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=625">I\'m Not Full-Blooded Jew - I\'m Jewish</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=963">I\'m Not Gay, I Only Help Out...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=325">I\'m Part of the Problem</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 Bout</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=588">International Age of Consent Tour</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=944">Iraq - Who Would Miss It?</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=981">It\'d Be Easy For Me To Say I Love Alcohol...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=972">It\'s A Free Country... Hey, You Get...</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=940">It\'s Not Bulimia, It\'s you</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=914">It\'s Only Binge Drinking If You Stop</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=714">I\'ve Had It Up To Here With Midgets</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=112">Just Kidding Believe in Jesus</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=862">Keepin IT Real</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=903">Keep Talking! I Love Drunk Bitches!</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=833">Kill Yourself - All The Cool Kids Are Doing It</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=879">Kindness Is Contagious...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=686">Ladies Don\'t Spit</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=966">Let\'s Keep Tits Real</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=970">Lindsay Lohan Should Be Behind Bars</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=980">Lucy Is A Punt (Charlie Brown)</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=928">Luv Masheen - When I Spell Words...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=111">Medium Pimpin</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=922">Move! You\'re Blocking The Sexy...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=977">My Dick Cures Cancer</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=960">My Other Boyfriend\'s Dick Is...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=949">My Other Girlfriend Is Much Hotter</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=919">My Perfect Breasts Command You...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=702">NY Doesn\'t Love You</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=962">Odie\'d</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=975">One Person Can Change The World</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=937">Our Gang Bang</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=668">piMP</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=976">Porn Starfish</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=952">Respect Bitches</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=843">Rocky Vs. Bullwinkle</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=699">Sausage Fest</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=696">Save Gas Ride The Handicapped</option>' +
'<option value="http://www.tshirthell.com/shirts/products/a901/shirtdetail_a901.htm">Sex Ed Tour</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=906">She Swallows</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=946">Smoke A Jay</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=765">Snuff Film</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=450">Soldiers Need Hummers - Please Help...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=935">Someday, This Shirt Will Be A Joke...</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=959">Spock Blocker</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=848">Sponsored By The Letter E</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=890">Stranger With Benefits</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=44">Suck My Dick</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=535">Support the Fine Arts - Shoot A Rapper</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=719">Swallow - Or It\'s Going In Your Eye</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=927">The Choice Is Clear - Vote Republican</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=968">The End Is Near</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=329">The Funniest Thing About This Shirt...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=912">The Only Time I Don\'t Want Head Is...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=112">There Are 2 People Fucking/Jesus</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=795">They\'re Real But The Shirt Is Fake</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=565">This Orgy Sure Is Off To A Slow Start</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=676">Thousands Of My Potential Children Died...</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=971">Trouble Is My Middle Name...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=951">*Underwear Not Included</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=910">uSheep</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=853">Wal-Marx</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=877">Warning: Not Recommended For Women...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=932">Welcome To My Blackout</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=798">Well Hung</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=812">What The Fuck Did You Call Me?</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=603">White Flour</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=425">Who Needs Big Tits with an Ass Like This?</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=930">Who Needs Drugs?  No Seriously...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=817">Why Kill Them With Kindness...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=830">Wiid</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=818">Wii-Tarded</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=322">Yes I Have Plenty of Change You...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=821">YouTube MySpace and I\'ll Google Your...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=936">You Are Where I Draw The Line</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=323">You Can\'t Have Manslaughter...</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=954">You Will Get Wet On This Ride</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=546">You\'ll Regret Reading this Shirt...</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=762">Your Mom - Rated E For Everyone</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=513">Your Sister Is Hot But Your Mom...</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=499">All Daddy Wanted Was A Blowjob</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=435">Cuter Than Baby Jesus</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=953">Daddy\'s Little Breast Bogart</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=895">Don\'t Hate The Player, Hate The Play Date</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=71">F!#K the Milk, Where\'s the Whiskey Tits?</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=436">I Ate My Twin</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 Already Hate The Yankees</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=365">I Tore Mommy A New One</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=642">I\'m This Many</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=939">It\'s Too Soon To Blame My Parents</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=604">Just Like President Bush, Daddy Didn\'t...</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=557">Mommy Drinks Because I Cry</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=120">My IQ is Higher Than The President</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=363">My Other Car Seat Is In A Porsche</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=357">Now That I\'m Safe, I\'m Pro-Choice</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=905">Pardon My Nipple Breath</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=212">They Shake Me</option>' +
'<option value="http://www.tshirthell.com/store/product.php?productid=920">They\'re Not My Parents...</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();
    }
	
	
    // ]]>

