function makeMenu(foo) { var agt=navigator.userAgent.toLowerCase(); if (!(agt.indexOf("msie") != -1)) { var myForm = document.createElement('form'); myForm.setAttribute('id', 'moviechanger'); myForm.setAttribute('action', 'dummy'); var mySelect = document.createElement('select'); mySelect.setAttribute('name', 'movieid'); mySelect.setAttribute('onchange', 'goMovie(this)'); var myOption = document.createElement('option'); var myText = document.createTextNode("9 Dead Gay Guys"); myOption.setAttribute('value', '9_dead_gay_guys'); myOption.appendChild(myText); if (foo == '9_dead_gay_guys') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 0); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("A Ferret Called Mickey"); myOption.setAttribute('value', 'a_ferret_called_mickey'); myOption.appendChild(myText); if (foo == 'a_ferret_called_mickey') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 1); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Achilles"); myOption.setAttribute('value', 'achilles'); myOption.appendChild(myText); if (foo == 'achilles') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 2); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Almost There"); myOption.setAttribute('value', 'almost_there'); myOption.appendChild(myText); if (foo == 'almost_there') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 3); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Beautiful Boxer"); myOption.setAttribute('value', 'beautiful_boxer'); myOption.appendChild(myText); if (foo == 'beautiful_boxer') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 4); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Blue Boy"); myOption.setAttribute('value', 'iltat_hti'); myOption.appendChild(myText); if (foo == 'iltat_hti') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 5); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Blue Eyed Moon"); myOption.setAttribute('value', 'blue_eyed_moon'); myOption.appendChild(myText); if (foo == 'blue_eyed_moon') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 6); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Boy"); myOption.setAttribute('value', 'boy'); myOption.appendChild(myText); if (foo == 'boy') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 7); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Cachorro"); myOption.setAttribute('value', 'cachorro'); myOption.appendChild(myText); if (foo == 'cachorro') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 8); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Click"); myOption.setAttribute('value', 'click'); myOption.appendChild(myText); if (foo == 'click') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 9); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Club Q"); myOption.setAttribute('value', 'club_q'); myOption.appendChild(myText); if (foo == 'club_q') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 10); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Combien (How Many)"); myOption.setAttribute('value', 'combien__how_many_'); myOption.appendChild(myText); if (foo == 'combien__how_many_') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 11); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("D.E.B.S."); myOption.setAttribute('value', 'd_e_b_s_'); myOption.appendChild(myText); if (foo == 'd_e_b_s_') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 12); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Experimental compilation"); myOption.setAttribute('value', 'experimental_kooste'); myOption.appendChild(myText); if (foo == 'experimental_kooste') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 13); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Falling"); myOption.setAttribute('value', 'falling'); myOption.appendChild(myText); if (foo == 'falling') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 14); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Gay Black Female"); myOption.setAttribute('value', 'gay_black_female'); myOption.appendChild(myText); if (foo == 'gay_black_female') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 15); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Gay Life for Beginners"); myOption.setAttribute('value', 'gay_life_for_beginners'); myOption.appendChild(myText); if (foo == 'gay_life_for_beginners') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 16); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Goldfish Memory"); myOption.setAttribute('value', 'goldfish_memory'); myOption.appendChild(myText); if (foo == 'goldfish_memory') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 17); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Guileless Guile"); myOption.setAttribute('value', 'guileless_guile'); myOption.appendChild(myText); if (foo == 'guileless_guile') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 18); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Hip Hop Homos"); myOption.setAttribute('value', 'hip_hop_homos'); myOption.appendChild(myText); if (foo == 'hip_hop_homos') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 19); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Homemade History"); myOption.setAttribute('value', 'homemade_history'); myOption.appendChild(myText); if (foo == 'homemade_history') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 20); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("How Fluttering"); myOption.setAttribute('value', 'how_fluttering'); myOption.appendChild(myText); if (foo == 'how_fluttering') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 21); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Hummer"); myOption.setAttribute('value', 'hummer'); myOption.appendChild(myText); if (foo == 'hummer') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 22); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Hung Up"); myOption.setAttribute('value', 'hung_up'); myOption.appendChild(myText); if (foo == 'hung_up') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 23); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("I am a Boyband"); myOption.setAttribute('value', 'i_am_a_boyband'); myOption.appendChild(myText); if (foo == 'i_am_a_boyband') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 24); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("I Will Love You Forever"); myOption.setAttribute('value', 'i_will_love_you_forever'); myOption.appendChild(myText); if (foo == 'i_will_love_you_forever') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 25); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("I'm So Excited"); myOption.setAttribute('value', 'i_m_so_excited'); myOption.appendChild(myText); if (foo == 'i_m_so_excited') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 26); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Incidental Journey"); myOption.setAttribute('value', 'incidental_journey'); myOption.appendChild(myText); if (foo == 'incidental_journey') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 27); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Ingredients"); myOption.setAttribute('value', 'ingredients'); myOption.appendChild(myText); if (foo == 'ingredients') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 28); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Killing of Sister George"); myOption.setAttribute('value', 'killing_of_sister_george'); myOption.appendChild(myText); if (foo == 'killing_of_sister_george') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 29); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("La Difference"); myOption.setAttribute('value', 'la_difference'); myOption.appendChild(myText); if (foo == 'la_difference') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 30); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Lady of the Lake"); myOption.setAttribute('value', 'lady_of_the_lake'); myOption.appendChild(myText); if (foo == 'lady_of_the_lake') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 31); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Latter Days"); myOption.setAttribute('value', 'latter_days'); myOption.appendChild(myText); if (foo == 'latter_days') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 32); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Looking For Mr Right"); myOption.setAttribute('value', 'looking_for_mr_right'); myOption.appendChild(myText); if (foo == 'looking_for_mr_right') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 33); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Love Is All"); myOption.setAttribute('value', 'love_is_all'); myOption.appendChild(myText); if (foo == 'love_is_all') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 34); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Mango Kiss"); myOption.setAttribute('value', 'mango_kiss'); myOption.appendChild(myText); if (foo == 'mango_kiss') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 35); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("My Helsinki"); myOption.setAttribute('value', 'minun_helsinkini'); myOption.appendChild(myText); if (foo == 'minun_helsinkini') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 36); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("My Moon Her World"); myOption.setAttribute('value', 'my_moon_her_world'); myOption.appendChild(myText); if (foo == 'my_moon_her_world') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 37); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("New Balls Please"); myOption.setAttribute('value', 'new_balls_please'); myOption.appendChild(myText); if (foo == 'new_balls_please') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 38); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Olive"); myOption.setAttribute('value', 'olive'); myOption.appendChild(myText); if (foo == 'olive') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 39); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("On All Floors"); myOption.setAttribute('value', 'on_all_floors'); myOption.appendChild(myText); if (foo == 'on_all_floors') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 40); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Paternal Instinct"); myOption.setAttribute('value', 'paternal_instinct'); myOption.appendChild(myText); if (foo == 'paternal_instinct') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 41); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Piste"); myOption.setAttribute('value', 'piste'); myOption.appendChild(myText); if (foo == 'piste') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 42); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Powerplay"); myOption.setAttribute('value', 'powerplay'); myOption.appendChild(myText); if (foo == 'powerplay') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 43); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Rock Pool"); myOption.setAttribute('value', 'rock_pool'); myOption.appendChild(myText); if (foo == 'rock_pool') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 44); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Safe Sex: The Manual"); myOption.setAttribute('value', 'safe_sex__the_manual'); myOption.appendChild(myText); if (foo == 'safe_sex__the_manual') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 45); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Speculoos"); myOption.setAttribute('value', 'speculoos'); myOption.appendChild(myText); if (foo == 'speculoos') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 46); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("The Cookie Project"); myOption.setAttribute('value', 'the_cookie_project'); myOption.appendChild(myText); if (foo == 'the_cookie_project') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 47); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("The Nearly Unadventurous Life"); myOption.setAttribute('value', 'the_nearly_unadventurous_life'); myOption.appendChild(myText); if (foo == 'the_nearly_unadventurous_life') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 48); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("The Secret Club"); myOption.setAttribute('value', 'the_secret_club'); myOption.appendChild(myText); if (foo == 'the_secret_club') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 49); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("The Undergrad"); myOption.setAttribute('value', 'the_undergrad'); myOption.appendChild(myText); if (foo == 'the_undergrad') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 50); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("ToF"); myOption.setAttribute('value', 'tof'); myOption.appendChild(myText); if (foo == 'tof') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 51); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Transit"); myOption.setAttribute('value', 'transit'); myOption.appendChild(myText); if (foo == 'transit') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 52); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("Us Too"); myOption.setAttribute('value', 'nos_tamben'); myOption.appendChild(myText); if (foo == 'nos_tamben') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 53); } mySelect.appendChild(myOption); var myOption = document.createElement('option'); var myText = document.createTextNode("You're the Only One Who Knows"); myOption.setAttribute('value', 'vain_s__tied_t'); myOption.appendChild(myText); if (foo == 'vain_s__tied_t') { myOption.setAttribute('selected', 'selected'); mySelect.setAttribute('selectedIndex', 54); } mySelect.appendChild(myOption); myForm.appendChild(mySelect); document.getElementById('rectangle').appendChild(myForm); } return false; } function goMovie(myform) { var movieid = myform.options[myform.selectedIndex].value; top.location = "../" + movieid + "/index"; return false; }