MediaWiki:Monobook.js

/* */ /* Deprecated, add new stuff to MediaWiki:Common.js */

/* tooltips and access keys */ ta = new Object; ta['pt-userpage'] = new Array('.','My user page'); ta['pt-anonuserpage'] = new Array('.','The user page for the ip you\'re editing as'); ta['pt-mytalk'] = new Array('n','My talk page'); ta['pt-anontalk'] = new Array('n','Discussion about edits from this ip address'); ta['pt-preferences'] = new Array('','My preferences'); ta['pt-watchlist'] = new Array('l','The list of pages you\'re monitoring for changes.'); ta['pt-mycontris'] = new Array('y','List of my contributions'); ta['pt-login'] = new Array('o','You are encouraged to log in, it is not mandatory however.'); ta['pt-anonlogin'] = new Array('o','You are encouraged to log in, it is not mandatory however.'); ta['pt-logout'] = new Array('o','Log out'); ta['ca-talk'] = new Array('t','Discussion about the content page'); ta['ca-edit'] = new Array('e','You can edit this page. Please use the preview button before saving.'); ta['ca-addsection'] = new Array('+','Add a comment to this discussion.'); ta['ca-viewsource'] = new Array('e','This page is protected. You can view its source.'); ta['ca-history'] = new Array('h','Past versions of this page.'); ta['ca-protect'] = new Array('=','Protect this page'); ta['ca-delete'] = new Array('d','Delete this page'); ta['ca-undelete'] = new Array('d','Restore the edits done to this page before it was deleted'); ta['ca-move'] = new Array('m','Move this page'); ta['ca-watch'] = new Array('w','Add this page to your watchlist'); ta['ca-unwatch'] = new Array('w','Remove this page from your watchlist'); ta['search'] = new Array('f','Search this wiki'); ta['p-logo'] = new Array('','Main Page'); ta['n-mainpage'] = new Array('z','Visit the Main Page'); ta['n-senate'] = new Array('s','Discuss Wookieepedia topics'); ta['n-portal'] = new Array('','About the project, what you can do, where to find things'); ta['n-currentevents'] = new Array('','Find background information on current events'); ta['n-recentchanges'] = new Array('r','The list of recent changes in the wiki'); ta['n-randompage'] = new Array('x','Load a random page'); ta['n-help'] = new Array('','The place to find out'); ta['n-FAQ'] = new Array('','Frequently Asked Questions'); ta['n-chat'] = new Array('','Join the IRC channel'); ta['n-sitesupport'] = new Array('','Support us'); ta['t-whatlinkshere'] = new Array('j','List of all wiki pages that link here'); ta['t-recentchangeslinked'] = new Array('k','Recent changes in pages linked from this page'); ta['feed-rss'] = new Array('','RSS feed for this page'); ta['feed-atom'] = new Array('','Atom feed for this page'); ta['t-contributions'] = new Array('','View the list of contributions of this user'); ta['t-emailuser'] = new Array('','Send a mail to this user'); ta['t-upload'] = new Array('u','Upload images or media files'); ta['t-specialpages'] = new Array('q','List of all special pages'); ta['ca-nstab-main'] = new Array('c','View the content page'); ta['ca-nstab-user'] = new Array('c','View the user page'); ta['ca-nstab-media'] = new Array('c','View the media page'); ta['ca-nstab-special'] = new Array('','This is a special page, you can\'t edit the page itself.'); ta['ca-nstab-wp'] = new Array('a','View the project page'); ta['ca-nstab-image'] = new Array('c','View the image page'); ta['ca-nstab-mediawiki'] = new Array('c','View the system message'); ta['ca-nstab-template'] = new Array('c','View the template'); ta['ca-nstab-help'] = new Array('c','View the help page'); ta['ca-nstab-category'] = new Array('c','View the category page');

// Search icons function replaceSearchIcon { $("#searchBody").find("form").wrapInner(' ') var innerDiv;

var searchbox = document.getElementById( 'searchBody' );

if( searchbox ) { innerDiv = searchbox.getElementsByTagName('div')[0]; var link = innerDiv.getElementsByTagName('a')[0];

if( link ) { innerDiv.removeChild( link ); }   	}

onSearchIconsArrival( innerDiv ); }

function rand( n ) { return Math.round( Math.random * n ); }

// silly legacy name :P // Please note that defining the array here prevents us from having to fetch the article // and so is much faster. Plus, JS files are cached, which makes it even faster. Yay! // --TOR  function onSearchIconsArrival( searchDiv ) { var lines = new Array(		"http://images.wikia.com/starwars/images/2/2e/Searchicon1.png DRK-1 Dark Eye probe droid",		"http://images.wikia.com/starwars/images/5/5e/Searchicon2.png Viper probe droid",		"http://images.wikia.com/starwars/images/1/14/Searchicon7.png TIE/LN starfighter",		"http://images.wikia.com/starwars/images/f/f9/Searchicon26.png ASN-121",		"http://images.wikia.com/starwars/images/0/09/BrehaSearch.png Breha Organa",		"http://images.wikia.com/starwars/images/5/5c/OduminSearch.png Odumin",		"http://images.wikia.com/starwars/images/8/82/VaderSearch.png Darth Vader",		"http://images.wikia.com/starwars/images/8/8e/HanSearch.png Corellian",		"http://images.wikia.com/starwars/images/1/16/Eclipse-search.png Eclipse (starship)",		"http://images.wikia.com/starwars/images/f/f9/LAATsearch.png Low Altitude Assault Transport/infantry",		"http://images.wikia.com/starwars/images/e/e9/Podracer-search.png Podracer", "http://images.wikia.com/starwars/images/7/7e/Sandcrawler-search.png Sandcrawler", "http://images.wikia.com/starwars/images/b/b1/LadyLuck-search.png Lady Luck", "http://images.wikia.com/starwars/images/e/ee/OG9-search.png OG-9 homing spider droid", "http://images.wikia.com/starwars/images/d/da/Sentinel-search.png Sentinel-class landing craft", "http://images.wikia.com/starwars/images/e/e2/SPHA-search.png Self-Propelled Heavy Artillery", "http://images.wikia.com/starwars/images/1/1f/Droideka-search.png Droideka", "http://images.wikia.com/starwars/images/b/b9/NihilusSearch.png Darth Nihilus", "http://images.wikia.com/starwars/images/c/c8/ClawcraftSearch.png Nssis-class Clawcraft", "http://images.wikia.com/starwars/images/b/b0/QuinlanSearch.png Kiffar", "http://images.wikia.com/starwars/images/d/d9/AttonSearch.png Atton Rand", "http://images.wikia.com/starwars/images/f/f3/SearchSHolocron.png Sith holocron", "http://images.wikia.com/starwars/images/b/bd/SearchReek.png Reek", "http://images.wikia.com/starwars/images/1/1b/SearchMalak.png Darth Malak", "http://images.wikia.com/starwars/images/1/13/SearchLightsaber.png Lightsaber", "http://images.wikia.com/starwars/images/a/af/SearchJN66.png JN-66 analysis droid", "http://images.wikia.com/starwars/images/4/41/SearchGrievous.png Grievous", "http://images.wikia.com/starwars/images/5/55/SearchBasilisk.png Basilisk war droid", "http://images.wikia.com/starwars/images/e/e0/SearchT3.png T3-M4", "http://images.wikia.com/starwars/images/0/0f/StormieSearch.png Stormtrooper", "http://images.wikia.com/starwars/images/c/c0/Jollytrooper-search.png Stormtrooper", "http://images.wikia.com/starwars/images/f/fc/Maulhorny-search.png Sith", "http://images.wikia.com/starwars/images/3/37/Kueller-search.png Kueller", "http://images.wikia.com/starwars/images/1/1c/Searchdani.png Dani", "http://images.wikia.com/starwars/images/5/5e/Bothan-search.png Bothan", "http://images.wikia.com/starwars/images/f/f4/Electrobinocs-search.png Electrobinoculars", "http://images.wikia.com/starwars/images/1/15/Havoc-search.png Havoc (starfighter)", "http://images.wikia.com/starwars/images/c/c3/Ewing-search.png E-wing escort starfighter", "http://images.wikia.com/starwars/images/f/f1/Bwing-search.png B-wing starfighter", "http://images.wikia.com/starwars/images/3/34/Searchgeorge.png George Lucas", "http://images.wikia.com/starwars/images/8/81/Cloneph1-search.png Phase I clone trooper armor", "http://images.wikia.com/starwars/images/b/bc/Bowcaster-search.png Bowcaster", "http://images.wikia.com/starwars/images/6/6c/WESTAR34-search.png WESTAR-34 blaster pistol", "http://images.wikia.com/starwars/images/9/95/NSPSSSDsearch.png Nagai expeditionary force", "http://images.wikia.com/starwars/images/c/c6/TIEIntSearch.png TIE/In interceptor", "http://images.wikia.com/starwars/images/0/02/Search-spacer-aragones.png Spacer", "http://images.wikia.com/starwars/images/2/2a/Search-flower.png Veedo Vaocan", "http://images.wikia.com/starwars/images/8/83/MillenniumF.PNG Millennium Falcon", "http://images.wikia.com/starwars/images/6/64/CloudCarSearch.PNG Storm IV Twin-Pod cloud car", "http://images.wikia.com/starwars/images/6/62/Fordo-search.png ARC-77", "http://images.wikia.com/starwars/images/1/1f/GonkSearch.PNG GNK power droid", "http://images.wikia.com/starwars/images/7/72/SearchHolocron.png Holocron", "http://images.wikia.com/starwars/images/c/cb/Bryar-search.png Bryar pistol", "http://images.wikia.com/starwars/images/8/84/CadesBloodyBones-search.png Bloody Bones", "http://images.wikia.com/starwars/images/2/29/DH17-search.png DH-17 blaster pistol", "http://images.wikia.com/starwars/images/d/d5/Liberty-search.png Liberty", "http://images.wikia.com/starwars/images/4/4f/FreiTek-search.png FreiTek Incorporated", "http://images.wikia.com/starwars/images/9/9f/Incom-search.png Incom Corporation", "http://images.wikia.com/starwars/images/1/1d/Jabbatat-search.png Desilijic", "http://images.wikia.com/starwars/images/f/ff/N1-search.png Naboo Royal Space Fighter Corps", "http://images.wikia.com/starwars/images/c/c2/CloneCmdr-search.png Clone trooper commander", "http://images.wikia.com/starwars/images/e/e9/Immobilizer-search.png Immobilizer 418 cruiser", "http://images.wikia.com/starwars/images/5/52/ISD-search.png Imperial I-class Star Destroyer", "http://images.wikia.com/starwars/images/0/00/Jabitha-search.png Jabitha (starship)", "http://images.wikia.com/starwars/images/b/b3/Jetclone-search.png Clone jet trooper", "http://images.wikia.com/starwars/images/0/0f/JK13-search.png JK-13 security droid", "http://images.wikia.com/starwars/images/e/e6/Speederbike-search.png 74-Z speeder bike", "http://images.wikia.com/starwars/images/7/72/Z95-search.png Z-95 Headhunter", "http://images.wikia.com/starwars/images/7/70/Jag-search.png Jagged Fel", "http://images.wikia.com/starwars/images/a/a3/Jsfkoon-search.png Delta-7 Aethersprite-class light interceptor", "http://images.wikia.com/starwars/images/5/52/Icon3XJ.png XJ-6 airspeeder", "http://images.wikia.com/starwars/images/8/8f/Icon3Tholme.png Tholme", "http://images.wikia.com/starwars/images/c/c0/Icon3Speeder.png Koro-2 Exodrive airspeeder", "http://images.wikia.com/starwars/images/c/cf/Icon3Ravager.png Ravager", "http://images.wikia.com/starwars/images/a/a7/Icon3Panaka.png Quarsh Panaka", "http://images.wikia.com/starwars/images/9/95/Icon3Laigrek.png Laigrek", "http://images.wikia.com/starwars/images/1/17/Icon3Jon.png Jon (farmer)", "http://images.wikia.com/starwars/images/6/69/Icon3Jaina.png Jaina Solo", "http://images.wikia.com/starwars/images/a/a7/Icon3Corran.png Corran Horn", "http://images.wikia.com/starwars/images/3/3b/Icon3Cannok.png Cannok", "http://images.wikia.com/starwars/images/9/93/Icon3Atris.png Atris", "http://images.wikia.com/starwars/images/d/d9/Mandalorian-search.png Mandalorian", "http://images.wikia.com/starwars/images/8/8d/DL44-search.png DL-44 heavy blaster pistol", "http://images.wikia.com/starwars/images/a/ac/Clash-search.png Duel on Mustafar", "http://images.wikia.com/starwars/images/1/11/Emperor-search.png Palpatine", "http://images.wikia.com/starwars/images/d/dd/Hailfire-search.png IG-227 Hailfire-class droid tank", "http://images.wikia.com/starwars/images/0/0c/Jetpack-search.png JT-12 jetpack", "http://images.wikia.com/starwars/images/8/81/CalOmas-search.png Cal Omas", "http://images.wikia.com/starwars/images/b/b7/Durge-search.png Durge", "http://images.wikia.com/starwars/images/e/e0/Bloodfin-search.png Bloodfin (speeder)", "http://images.wikia.com/starwars/images/2/26/Varactyl-search.png Varactyl", "http://images.wikia.com/starwars/images/4/4c/Supbattledroid-search.png B2 super battle droid", "http://images.wikia.com/starwars/images/8/82/Quingun-search.png Quinlan Vos", "http://images.wikia.com/starwars/images/b/b9/Alex_search.png Alexandra Winger", "http://images.wikia.com/starwars/images/1/15/Hask_search.png Loka Hask", "http://images.wikia.com/starwars/images/0/09/Grunger_search.png Josef Grunger", "http://images.wikia.com/starwars/images/9/98/Corvette-search.png CR90 corvette", "http://images.wikia.com/starwars/images/9/99/Tarkin-search.png Wilhuff Tarkin", "http://images.wikia.com/starwars/images/6/69/Thrackan-search.png Thrackan Sal-Solo", "http://images.wikia.com/starwars/images/a/ac/Syal_search.png Syal Antilles Fel", "http://images.wikia.com/starwars/images/b/b2/Zsinj_search.png Zsinj", "http://images.wikia.com/starwars/images/2/29/Thon_search.png Thon", "http://images.wikia.com/starwars/images/0/01/Romeo_search.png Romeo Treblanc", "http://images.wikia.com/starwars/images/4/48/Kneesaa_search.png Kneesaa a Jari Kintaka", "http://images.wikia.com/starwars/images/5/5a/Melan_search.png Koth Melan", "http://images.wikia.com/starwars/images/e/e4/Aleema_search.png Aleema Keto", "http://images.wikia.com/starwars/images/0/0a/Satal_search.png Satal Keto", "http://images.wikia.com/starwars/images/e/e7/ArcaJeth_search.png Arca Jeth", "http://images.wikia.com/starwars/images/9/92/ExarKun_search.png Exar Kun", "http://images.wikia.com/starwars/images/4/4d/Han_search.png Han Solo", "http://images.wikia.com/starwars/images/6/61/SoontirFel_search.png Soontir Fel", "http://images.wikia.com/starwars/images/7/78/Wessel_search.png Redd Wessel", "http://images.wikia.com/starwars/images/9/90/Cracken_search.png Airen Cracken", "http://images.wikia.com/starwars/images/2/2f/Search_dunhaussen.png Dunhausen", "http://images.wikia.com/starwars/images/1/1e/Lowbacca_search.png Lowbacca", "http://images.wikia.com/starwars/images/2/2b/Wicket_moon_search.png Wicket Wystri Warrick", "http://images.wikia.com/starwars/images/d/df/Laboigg_search.png Laboi", "http://images.wikia.com/starwars/images/e/e6/Asha_search.png Asha", "http://images.wikia.com/starwars/images/b/b6/Rohlan-search.png Rohlan Dyre", "http://images.wikia.com/starwars/images/b/b6/Harkas_icon.png Ran Harkas", "http://images.wikia.com/starwars/images/b/bb/Matt_search.png Matt Talon", "http://images.wikia.com/starwars/images/2/2e/Rango_search.png Rango Tel", "http://images.wikia.com/starwars/images/7/77/Olana_search.png Olana Chion", "http://images.wikia.com/starwars/images/4/42/Search_Oicunn.png Barrow Oicunn", "http://images.wikia.com/starwars/images/9/90/Janus_search.png Janus Greejatus", "http://images.wikia.com/starwars/images/6/60/ODAN_sURRch.png Odan-Urr", "http://images.wikia.com/starwars/images/8/8b/Hissa_search.png Bertroff Hissa", "http://images.wikia.com/starwars/images/f/f2/Hissa_death_search.png Power chair", "http://images.wikia.com/starwars/images/9/9e/Squib_Search_logo.png Squib", "http://images.wikia.com/starwars/images/2/29/Umwak_search_logo.png Umwak", "http://images.wikia.com/starwars/images/2/26/Greedo_Search_logo.png Greedo", "http://images.wikia.com/starwars/images/e/e9/Bubo_search_logo.png Buboicullaar", "http://images.wikia.com/starwars/images/b/b9/Boushh_Search_logo.png Boushh", "http://images.wikia.com/starwars/images/d/d1/Figrin_Dan_Search_logo.png Figrin D'an", "http://images.wikia.com/starwars/images/b/ba/Gamorrean_Search_logo.png Gamorrean", "http://images.wikia.com/starwars/images/f/f3/Jawa_Search_logo.png Jawa", "http://images.wikia.com/starwars/images/3/35/Max_Rebo_Search_logo.png Nalargon", "http://images.wikia.com/starwars/images/d/df/R3_unit_Search_logo.png R3-series astromech droid", "http://images.wikia.com/starwars/images/1/1b/Trench-search.png Harch (species)", "http://images.wikia.com/starwars/images/c/c6/AAT-search.png Armored Assault Tank", "http://images.wikia.com/starwars/images/9/9e/ARC170-search.png Aggressive ReConnaissance-170 starfighter", "http://images.wikia.com/starwars/images/8/88/ATAT-search.png All Terrain Armored Transport", "http://images.wikia.com/starwars/images/e/e9/E11-search.png E-11 blaster rifle", "http://images.wikia.com/starwars/images/5/52/Consular-search.png Consular-class cruiser", "http://images.wikia.com/starwars/images/0/0c/Invincible-search.png Invincible (dreadnaught)", "http://images.wikia.com/starwars/images/4/48/Jtype-search.png J-type 327 Nubian royal starship", "http://images.wikia.com/starwars/images/4/4c/MTT-search.png Multi-Troop Transport", "http://images.wikia.com/starwars/images/d/d9/Argyus-search.png Faro Argyus", "http://images.wikia.com/starwars/images/0/0d/BoKatan-search.png Bo-Katan", "http://images.wikia.com/starwars/images/d/db/CadBane-search.png Cad Bane", "http://images.wikia.com/starwars/images/e/e6/BX-search.png BX-series droid commando", "http://images.wikia.com/starwars/images/b/b5/Embo-search.png Embo", "http://images.wikia.com/starwars/images/7/75/Fives-search.png CT-5555", "http://images.wikia.com/starwars/images/4/4a/PongKrell-search.png Pong Krell", "http://images.wikia.com/starwars/images/0/0c/PreVizsla-search.png Pre Vizsla", "http://images.wikia.com/starwars/images/e/e2/REXsearch.png CT-7567", "http://images.wikia.com/starwars/images/8/86/RiffTamson-search.png Riff Tamson", "http://images.wikia.com/starwars/images/9/93/Savage-search.png Savage Opress", "http://images.wikia.com/starwars/images/1/1e/Son-search.png Son", "http://images.wikia.com/starwars/images/c/c2/Tarfful-search.png Tarfful", "http://images.wikia.com/starwars/images/9/93/Tarpals-search.png Roos Tarpals", "http://images.wikia.com/starwars/images/b/ba/Ventress-search.png Asajj Ventress", "http://images.wikia.com/starwars/images/a/a8/Yaddle-search.png Yaddle", "http://images.wikia.com/starwars/images/6/66/Clones-search.png Clone trooper", "http://images.wikia.com/starwars/images/a/a6/DeathWatch-search.png Death Watch", "http://images.wikia.com/starwars/images/0/05/Twileks-search.png Twi'lek", "http://images.wikia.com/starwars/images/4/46/JohnWilliams-search.png John Williams", "http://images.wikia.com/starwars/images/2/2c/Yoda-search.png Yoda", "http://images.wikia.com/starwars/images/f/f3/DS1-search.png DS-1 Orbital Battle Station", "http://images.wikia.com/starwars/images/1/14/DS2-search.png Death Star II", "http://images.wikia.com/starwars/images/3/34/AdiGallia-search.png Adi Gallia", "http://images.wikia.com/starwars/images/3/3c/CaptObvious-search.png Ric Olié", "http://images.wikia.com/starwars/images/b/b2/Dooku-search.png Dooku", "http://images.wikia.com/starwars/images/d/d8/Fodesinbeed-search.png Fodesinbeed Annodue", "http://images.wikia.com/starwars/images/9/9d/Garnac-search.png Garnac", "http://images.wikia.com/starwars/images/d/d8/Jango-search.png Jango Fett", "http://images.wikia.com/starwars/images/0/03/JarJar-search.png Jar Jar Binks", "http://images.wikia.com/starwars/images/f/ff/KitFisto-search.png Kit Fisto", "http://images.wikia.com/starwars/images/7/74/Lando-search.png Lando Calrissian", "http://images.wikia.com/starwars/images/f/f4/Luminara-search.png Luminara Unduli", "http://images.wikia.com/starwars/images/3/38/NienNunb-search.png Nien Nunb", "http://images.wikia.com/starwars/images/f/ff/PloKoon-search.png Plo Koon", "http://images.wikia.com/starwars/images/8/81/QGJ-search.png Qui-Gon Jinn", "http://images.wikia.com/starwars/images/8/81/Sabe-search.png Sabé", "http://images.wikia.com/starwars/images/3/30/Snootles-search.png Sy Snootles", "http://images.wikia.com/starwars/images/6/65/NuvoVindi-search.png Nuvo Vindi", "http://images.wikia.com/starwars/images/8/82/Ziro-search.png Ziro Desilijic Tiure", "http://images.wikia.com/starwars/images/b/b2/BookOfSith-search.png Book of Sith: Secrets from the Dark Side (real-life book)", "http://images.wikia.com/starwars/images/0/0e/Sedriss-search.png Sedriss QL", "http://images.wikia.com/starwars/images/0/09/XanatosJATM-search.png Xanatos", "http://images.wikia.com/starwars/images/f/f2/Booster-search.png Booster Terrik", "http://images.wikia.com/starwars/images/6/6c/YlenicItkla-search.png Ylenic It'kla", "http://images.wikia.com/starwars/images/2/2b/DarthMalgus-search.png Darth Malgus", "http://images.wikia.com/starwars/images/1/1f/SithImpSoldier-search.png Imperial soldier", "http://images.wikia.com/starwars/images/8/86/CHA-search.png Coruscant Health Administration", "http://images.wikia.com/starwars/images/9/97/HaloTooka-search.png Tooka doll", "http://images.wikia.com/starwars/images/2/26/KiffuGuardians-search.png Kiffu Guardians", "http://images.wikia.com/starwars/images/a/aa/LokaHask-search.png Corellian limpet", "http://images.wikia.com/starwars/images/6/60/PlosBros-search.png Plo's Bros", "http://images.wikia.com/starwars/images/0/01/RepublicTOR-search.png Galactic Republic", "http://images.wikia.com/starwars/images/d/dd/SithEmpireTOR-search.png Sith Empire (Post–Great Hyperspace War)", "http://images.wikia.com/starwars/images/e/ed/RogueSquadron-search.png Rogue Squadron", "http://images.wikia.com/starwars/images/0/06/SepNightmare-search.png Separatist Nightmare", "http://images.wikia.com/starwars/images/3/34/Stohkli-search.png Stokhli spray stick", "http://images.wikia.com/starwars/images/c/ca/TrenchSymbol-search.png Trench (Admiral)", "http://images.wikia.com/starwars/images/6/6c/VongBugs-search.png Razor bug", "http://images.wikia.com/starwars/images/6/6d/Vongerella-search.png Vongerella", "http://images.wikia.com/starwars/images/4/41/Wolfpack-search.png Wolfpack", "http://images.wikia.com/starwars/images/c/c9/WraithSquadron-search.png Wraith Squadron", "http://images.wikia.com/starwars/images/7/73/Scimitar-search.png Scimitar", "http://images.wikia.com/starwars/images/6/63/BossNass-search.png Rugor Nass", "http://images.wikia.com/starwars/images/d/da/Neimoidians-search.png Neimoidian", "http://images.wikia.com/starwars/images/4/48/SioBibble-search.png Sio Bibble", "http://images.wikia.com/starwars/images/e/e2/BelGuapo-search.png Garm Bel Iblis", "http://images.wikia.com/starwars/images/c/c8/Garaint-search.png Noval Garaint", "http://images.wikia.com/starwars/images/8/8a/TORBountyHunter-search.png Bounty hunter", "http://images.wikia.com/starwars/images/b/b3/TORDarthJadus-search.png Darth Jadus", "http://images.wikia.com/starwars/images/1/1c/TORJediKnight-search.png Jedi Knight", "http://images.wikia.com/starwars/images/3/3b/TORJewlaNightbringer-search.png Jewl'a Nightbringer", "http://images.wikia.com/starwars/images/f/f4/TORKeeper-search.png Keeper (Imperial Intelligence)", "http://images.wikia.com/starwars/images/c/c9/TORMandaloreTheVindicated-search.png Mandalore the Vindicated", "http://images.wikia.com/starwars/images/9/96/TORSateleShan-search.png Satele Shan", "http://images.wikia.com/starwars/images/7/71/TORSithImperialAgent-search.png Imperial Intelligence (Sith Empire)", "http://images.wikia.com/starwars/images/a/ad/TORSithInquisitor-search.png Sith Inquisitor", "http://images.wikia.com/starwars/images/d/d1/TORSithWarrior-search.png Sith Warrior", "http://images.wikia.com/starwars/images/1/1e/TORVette-search.png Vette", "http://images.wikia.com/starwars/images/c/cc/TORnexu-search.png Nexu", "http://images.wikia.com/starwars/images/8/82/TORHoloNetTerminal-search.png HoloNet", "http://images.wikia.com/starwars/images/c/c2/AurraSing-search.png Aurra Sing", "http://images.wikia.com/starwars/images/7/79/DexterJettster-search.png Dexter Jettster", "http://images.wikia.com/starwars/images/5/52/ShadowStormtrooper-search.png Shadow stormtrooper", "http://images.wikia.com/starwars/images/f/f4/TauntaunSearch.png Tauntaun", "http://images.wikia.com/starwars/images/b/b9/WookieeTrio-search.png Wookiee", "http://images.wikia.com/starwars/images/0/0c/SlyMooreIsWatchingWookieepediaPoop.png Sly Moore", "http://images.wikia.com/starwars/images/b/bf/Muk-muk_Search_logo.png Pilf Mukmuk", "http://images.wikia.com/starwars/images/0/08/AbomidableWookiee-search.png Chewbacca", "http://images.wikia.com/starwars/images/d/d1/Acclamator-search.png Acclamator-class assault ship", "http://images.wikia.com/starwars/images/1/14/B2HAsbd-search.png B2-HA series super battle droid", "http://images.wikia.com/starwars/images/d/d1/Draethos-search.png Draethos", "http://images.wikia.com/starwars/images/9/91/IG86Sentinel-search.png IG-86 sentinel droid", "http://images.wikia.com/starwars/images/9/9f/KwazelMaw-search.png Kwazel Maw", "http://images.wikia.com/starwars/images/d/d4/MagnaGuard-search.png IG-100 MagnaGuard", "http://images.wikia.com/starwars/images/4/44/Seripas-search.png Seripas", "http://images.wikia.com/starwars/images/9/99/TacticalDroid-search.png T-series tactical droid", "http://images.wikia.com/starwars/images/a/a2/Zlato-search.png Zlato", "http://images.wikia.com/starwars/images/5/57/ELG3A-search.png ELG-3A blaster pistol", "http://images.wikia.com/starwars/images/2/24/AA1VerboBrain-search.png AA-1 VerboBrain", "http://images.wikia.com/starwars/images/0/03/C3PX-search.png C-3PX", "http://images.wikia.com/starwars/images/6/67/Cronal-search.png Cronal", "http://images.wikia.com/starwars/images/6/6b/Kallidahin-search.png Kallidahin", "http://images.wikia.com/starwars/images/3/33/Sluissi-search.png Sluissi", "http://images.wikia.com/starwars/images/4/44/Togorian-search.png Togorian", "http://images.wikia.com/starwars/images/5/53/Ysalamir-search.png Ysalamir", "http://images.wikia.com/starwars/images/b/b3/BocAseca-search.png Boc Aseca", "http://images.wikia.com/starwars/images/a/a0/Quarren-search.png Quarren", "http://images.wikia.com/starwars/images/f/f7/BobaFett-search.png Boba Fett", "http://images.wikia.com/starwars/images/4/40/Brakiss-search.png Brakiss", "http://images.wikia.com/starwars/images/0/05/Callista-search.png Callista Ming", "http://images.wikia.com/starwars/images/7/77/Droma-search.png Droma", "http://images.wikia.com/starwars/images/6/63/Durga-search.png Durga Besadii Tai", "http://images.wikia.com/starwars/images/5/52/LordHoth-search.png Hoth (Jedi Lord)", "http://images.wikia.com/starwars/images/1/15/NomAnor-search.png Nom Anor", "http://images.wikia.com/starwars/images/4/45/YsanneIsard-search.png Ysanne Isard", "http://images.wikia.com/starwars/images/0/0d/ScottHepburnVsTheArtWorld-Search.png Celeste Morne", "http://images.wikia.com/starwars/images/d/d7/Ackbar-search.png Gial Ackbar", "http://images.wikia.com/starwars/images/8/85/Bossk-search.png Bossk", "http://images.wikia.com/starwars/images/0/09/Brezak-search.png Brezak", "http://images.wikia.com/starwars/images/b/b6/LSW3-search.png LEGO Star Wars III: The Clone Wars", "http://images.wikia.com/starwars/images/2/27/OpeeSeaKiller-search.png Opee sea killer", "http://images.wikia.com/starwars/images/e/e3/ATTE-search.png All Terrain Tactical Enforcer", "http://images.wikia.com/starwars/images/c/c3/B1-search.png B1 battle droid", "http://images.wikia.com/starwars/images/6/67/BladeOfDorin-search.png Blade of Dorin", "http://images.wikia.com/starwars/images/4/4f/Delta7B-search.png Delta-7B Aethersprite-class light interceptor", "http://images.wikia.com/starwars/images/d/d6/FlashSpeeder-search.png Seraph-class urban landspeeder", "http://images.wikia.com/starwars/images/2/26/LambdaShuttle-search.png Lambda-class T-4a shuttle", "http://images.wikia.com/starwars/images/b/b9/Malevolence-search.png Malevolence", "http://images.wikia.com/starwars/images/c/c1/N1Starfighter-search.png N-1 starfighter", "http://images.wikia.com/starwars/images/d/da/SlaveI-search.png Slave I", "http://images.wikia.com/starwars/images/9/90/StealthShip-search.png Stealth ship", "http://images.wikia.com/starwars/images/3/3c/Trident-search.png Trident-class assault ship", "http://images.wikia.com/starwars/images/5/5a/Venator-search.png Venator-class Star Destroyer", "http://images.wikia.com/starwars/images/5/56/VocalEmulator-search.png Vocal emulator", "http://images.wikia.com/starwars/images/1/1a/Watto-search.png Watto", "http://images.wikia.com/starwars/images/a/a3/Xwing-search.png T-65 X-wing starfighter", "http://images.wikia.com/starwars/images/9/98/Ywing-search.png BTL Y-wing starfighter", "http://images.wikia.com/starwars/images/6/63/Merciless-Search.png Merciless (Aggressor-class destroyer)", "http://images.wikia.com/starwars/images/c/c4/Kuat-Search.png Kuat", "http://images.wikia.com/starwars/images/f/fc/BARC-search.png BARC speeder", "http://images.wikia.com/starwars/images/b/b4/CmdrCody-search.png CC-2224", "http://images.wikia.com/starwars/images/8/89/DarthBane-search.png Darth Bane", "http://images.wikia.com/starwars/images/0/06/DuchessSatine-search.png Satine Kryze", "http://images.wikia.com/starwars/images/e/e3/EasyRide-search.png EasyRide passenger airspeeder", "http://images.wikia.com/starwars/images/f/fe/EethKoth-search.png Eeth Koth", "http://images.wikia.com/starwars/images/8/84/EvenPiell-search.png Even Piell", "http://images.wikia.com/starwars/images/6/6d/HondoOhnaka-search.png Hondo Ohnaka", "http://images.wikia.com/starwars/images/3/3c/Katuunko-search.png Katuunko", "http://images.wikia.com/starwars/images/b/b9/KiAdiMundi-search.png Ki-Adi-Mundi", "http://images.wikia.com/starwars/images/b/be/Kitster-search.png Kitster Chanchani Banai", "http://images.wikia.com/starwars/images/f/f4/MonCalamari-search.png Mon Calamari", "http://images.wikia.com/starwars/images/9/97/Neeyutnee-search.png Neeyutnee", "http://images.wikia.com/starwars/images/1/13/Numa-search.png Numa", "http://images.wikia.com/starwars/images/b/bd/SaeseeTiin-search.png Saesee Tiin", "http://images.wikia.com/starwars/images/c/c8/Sebulba-search.png Sebulba", "http://images.wikia.com/starwars/images/b/bf/Sugi-search.png Sugi", "http://images.wikia.com/starwars/images/8/85/Talzin-search.png Talzin", "http://images.wikia.com/starwars/images/b/bf/Talz-search.png Talz", "http://images.wikia.com/starwars/images/7/71/TuskenRaiders-search.png Tusken Raider", "http://images.wikia.com/starwars/images/e/e3/Valorum-search.png Finis Valorum", "http://images.wikia.com/starwars/images/d/dc/Wald-search.png W. Wald", "http://images.wikia.com/starwars/images/0/0b/WatTambor-search.png Wat Tambor", "http://images.wikia.com/starwars/images/9/96/Zygerrians-search.png Zygerrian", "http://images.wikia.com/starwars/images/d/d5/Jabba-search.png Jabba Desilijic Tiure", "http://images.wikia.com/starwars/images/f/f4/A5Juggernaut-search.png Heavy Assault Vehicle/wheeled A5 Juggernaut", "http://images.wikia.com/starwars/images/4/47/Acklay-search.png Acklay", "http://images.wikia.com/starwars/images/8/82/Boots-search.png Boot", "http://images.wikia.com/starwars/images/0/03/CK6swoop-search.png CK-6 swoop", "http://images.wikia.com/starwars/images/f/f8/Eta2-search.png Eta-2 Actis-class light interceptor", "http://images.wikia.com/starwars/images/a/ac/Holoprojector-search.png Holoprojector", "http://images.wikia.com/starwars/images/7/7b/MandoRoyalGuard-search.png Mandalorian Royal Guard", "http://images.wikia.com/starwars/images/5/5d/Pie-search.png Pie", "http://images.wikia.com/starwars/images/f/f0/ProtocolDroid-search.png Protocol droid", "http://images.wikia.com/starwars/images/d/d8/Rystall-search.png Rystáll Sant", "http://images.wikia.com/starwars/images/9/90/WampaClaws-search.png Claw", "http://images.wikia.com/starwars/images/a/a0/X34Landspeeder-search.png X-34 landspeeder", "http://images.wikia.com/starwars/images/c/c8/YodaAtaru-search.png Form IV: Ataru", "http://images.wikia.com/starwars/images/2/25/Yuuzhantar-search.png Yuuzhan'tar (Original)", "http://images.wikia.com/starwars/images/6/62/Nelvaanian-search.png Nelvaanian", "http://images.wikia.com/starwars/images/4/4d/Fosh-search.png Fosh", "http://images.wikia.com/starwars/images/6/67/Noghri-search.png Noghri", "http://images.wikia.com/starwars/images/f/ff/Trill-search.png Trill (Force Hound)", "http://images.wikia.com/starwars/images/e/e7/AhsokaShien-search.png Form V: Shien / Djem So", "http://images.wikia.com/starwars/images/9/9d/Ewoks-search.png Ewok", "http://images.wikia.com/starwars/images/8/80/ImpedingAssaultTank-search.png Impeding Assault Tank", "http://images.wikia.com/starwars/images/e/e2/KarinaTheGreat-search.png Karina the Great", "http://images.wikia.com/starwars/images/6/68/SandSloth-search.png Sand Sloth", "http://images.wikia.com/starwars/images/e/eb/ShockWhip-search.png Shock whip", "http://images.wikia.com/starwars/images/e/e6/SilverSpeeder-search.png Silver Speeder", "http://images.wikia.com/starwars/images/6/68/WhiteWitch-search.png White Witch", "http://images.wikia.com/starwars/images/d/df/YodaForceStance-search.png Force form", "http://images.wikia.com/starwars/images/2/26/Vima-search.png Vima Sunrider", "http://images.wikia.com/starwars/images/a/a2/Tahl-search.png Tahl", "http://images.wikia.com/starwars/images/a/a6/C9979-search.png C-9979 landing craft", "http://images.wikia.com/starwars/images/7/7a/DaultayDofine-search.png Daultay Dofine", "http://images.wikia.com/starwars/images/b/b1/DDT-search.png Defoliator Deployment Tank", "http://images.wikia.com/starwars/images/2/2b/HyenaBomber-search.png Hyena-class bomber", "http://images.wikia.com/starwars/images/c/ce/RuneHaako-search.png Rune Haako", "http://images.wikia.com/starwars/images/2/28/VultureDroid-search.png Variable Geometry Self-Propelled Battle Droid, Mark I", "http://images.wikia.com/starwars/images/0/07/Zombie-search.png Zombie", "http://images.wikia.com/starwars/images/6/6a/CmdrFox-search.png CC-1010", "http://images.wikia.com/starwars/images/8/86/DroidTriFighter-search.png Droid tri-fighter", "http://images.wikia.com/starwars/images/a/a3/FlitknotSpeeder-search.png Flitknot speeder", "http://images.wikia.com/starwars/images/9/9b/GalenMarek-search.png Galen Marek", "http://images.wikia.com/starwars/images/6/6a/HK47-search.png HK-47", "http://images.wikia.com/starwars/images/3/39/MarisBrood-search.png Maris Brood", "http://images.wikia.com/starwars/images/1/13/Munificent-search.png Munificent-class star frigate", "http://images.wikia.com/starwars/images/4/49/PROXY-search.png PROXY", "http://images.wikia.com/starwars/images/a/a6/RahmKota-search.png Rahm Kota", "http://images.wikia.com/starwars/images/0/0d/T47-search.png T-47 airspeeder", "http://images.wikia.com/starwars/images/3/34/Blistmok-search.png Blistmok", "http://images.wikia.com/starwars/images/6/64/Nomi-search.png Nomi Sunrider", "http://images.wikia.com/starwars/images/8/80/O%27cerry-search.png O'cerry", "http://images.wikia.com/starwars/images/b/bb/Norky-search.png Norky", "http://images.wikia.com/starwars/images/e/e6/AntaresDraco-search.png Antares Draco", "http://images.wikia.com/starwars/images/7/76/BarrissOffee-search.png Barriss Offee", "http://images.wikia.com/starwars/images/b/b2/JariahSyn-search.png Jariah Syn", "http://images.wikia.com/starwars/images/6/67/L8L9-search.png L8-L9", "http://images.wikia.com/starwars/images/1/12/RoanFel-search.png Roan Fel", "http://images.wikia.com/starwars/images/b/ba/RoronCorobb-search.png Roron Corobb", "http://images.wikia.com/starwars/images/9/9f/WolfSazenNew-search.png Wolf Sazen", "http://images.wikia.com/starwars/images/9/9f/FirefighterDroid-search.png Firefighter droid", "http://images.wikia.com/starwars/images/e/e6/LuckyLekku-search.png Lucky Lekku", "http://images.wikia.com/starwars/images/1/1e/R2KT-search.png R2-KT", "http://images.wikia.com/starwars/images/0/0b/HavenClassMedicalStation-search.png Haven-class medical station", "http://images.wikia.com/starwars/images/b/b8/Punworcca-search.png Punworcca 116-class interstellar sloop", "http://images.wikia.com/starwars/images/7/73/Roggwart-search.png Roggwart", "http://images.wikia.com/starwars/images/5/57/V19Torrent-search.png V-19 Torrent starfighter", "http://images.wikia.com/starwars/images/6/64/HoundsTooth-search.png Hound's Tooth", "http://images.wikia.com/starwars/images/5/5e/Jarael-search.png Jarael", "http://images.wikia.com/starwars/images/9/92/Gryph-search.png Marn Hierogryph", "http://images.wikia.com/starwars/images/7/7c/Zayne-search.png Zayne Carrick", "http://images.wikia.com/starwars/images/d/d7/JagJaina-search.png Human", "http://images.wikia.com/starwars/images/c/c1/TIEPredator-search.png Predator-class fighter", "http://images.wikia.com/starwars/images/5/57/Dominator-search.png Interdictor-class Star Destroyer", "http://images.wikia.com/starwars/images/2/27/AllahuWokbar-Search.png Ewok Handler", "http://images.wikia.com/starwars/images/e/e6/SithDreadnought-Search.png Harrower-class dreadnought", "http://images.wikia.com/starwars/images/b/bf/Helmsman-search.png Helmsman (battlecruiser)", "http://images.wikia.com/starwars/images/d/dd/Searchicon22.png Voren Na'al", "http://images.wikia.com/starwars/images/3/30/NebulaClass-search.png Nebula-class Star Destroyer", "http://images.wikia.com/starwars/images/c/c9/Togruta-search.png Togruta", "http://images.wikia.com/starwars/images/c/c6/Tenelka-search.png Tenel Ka Djo", "http://images.wikia.com/starwars/images/c/c1/EE3-search.png EE-3 carbine rifle", "http://images.wikia.com/starwars/images/d/d5/21B-search.png 2-1B surgical droid", "http://images.wikia.com/starwars/images/7/76/CZ3-search.png CZ-3", "http://images.wikia.com/starwars/images/a/a0/Minimech-search.png Minimech CE", "http://images.wikia.com/starwars/images/e/e8/MSE-search.png MSE-6-series repair droid", "http://images.wikia.com/starwars/images/2/21/Vuffi-search.png Vuffi Raa", "http://images.wikia.com/starwars/images/0/03/Xim-bot-search.png Guardian Corps", "http://images.wikia.com/starwars/images/1/12/Adasca-search.png Arkoh Adasca", "http://images.wikia.com/starwars/images/2/24/Bendix_Fust-search.png Bendix Fust", "http://images.wikia.com/starwars/images/8/8c/Deliah-search.png Deliah Blue", "http://images.wikia.com/starwars/images/a/a8/Papanoida-search.png N. Papanoida", "http://images.wikia.com/starwars/images/f/f2/Plooz-search.png Plooz", "http://images.wikia.com/starwars/images/a/ac/Riyo_Chuchi-search.png Riyo Chuchi", "http://images.wikia.com/starwars/images/4/4f/Herasearch.png Hera Syndulla", "http://images.wikia.com/starwars/images/1/12/Sabinesearch.png Sabine Wren", "http://images.wikia.com/starwars/images/e/ec/Kanansearch.png Kanan Jarrus", "http://images.wikia.com/starwars/images/c/c6/Ezrasearch.png Ezra Bridger", "http://images.wikia.com/starwars/images/0/0b/Choppersearch.png C1-10P", "http://images.wikia.com/starwars/images/5/52/C-3PO_Search_logo.png C-3PO", "http://images.wikia.com/starwars/images/1/1c/R2-D2_Search_logo.png R2-D2", "http://images.wikia.com/starwars/images/e/ea/Falcon-search.png YT-1300 light freighter", "http://images.wikia.com/starwars/images/9/90/Maul2-search.png Darth Maul", "http://images.wikia.com/starwars/images/a/a9/Anakin-search.png Anakin Skywalker", "http://images.wikia.com/starwars/images/5/50/PaxiSylo-search.png Paxi Sylo", "http://images.wikia.com/starwars/images/4/47/Syal-search.png Syal Antilles", "http://images.wikia.com/starwars/images/3/3c/Pellaeon-search.png Gilad Pellaeon", "http://images.wikia.com/starwars/images/6/61/NuClassAttackShuttle-search.png Nu-class attack shuttle", "http://images.wikia.com/starwars/images/d/d6/DwarfSpiderDroid-search.png DSD1 dwarf spider droid", "http://images.wikia.com/starwars/images/1/12/Awing-search.png RZ-1 A-wing interceptor", "http://images.wikia.com/starwars/images/8/87/ATST-search.png All Terrain Scout Transport", "http://images.wikia.com/starwars/images/c/cb/Jacensearch.png Jacen Solo", "http://images.wikia.com/starwars/images/7/7f/Executoraltsearch.png Executor", "http://images.wikia.com/starwars/images/3/3b/Lukesearch.png Luke Skywalker", "http://images.wikia.com/starwars/images/b/b5/TORknightsearch.png Star Wars: The Old Republic", "http://images.wikia.com/starwars/images/0/05/Wedgesearch.png Wedge Antilles", "http://images.wikia.com/starwars/images/e/ea/Tenenielsearch.png Teneniel Djo", "http://images.wikia.com/starwars/images/e/e7/Wolff-search.png CC-3636", "http://images.wikia.com/starwars/images/a/ae/UMHC-search.png Umbaran mobile heavy cannon", "http://images.wikia.com/starwars/images/e/e6/UmbaranStarfighter-search.png Umbaran starfighter", "http://images.wikia.com/starwars/images/2/2d/RaymusAntilles-search.png Raymus Antilles", "http://images.wikia.com/starwars/images/f/f5/RakoHardeen-search.png Rako Hardeen", "http://images.wikia.com/starwars/images/6/64/Orphne-search.png Orphne", "http://images.wikia.com/starwars/images/b/bc/RNSF-search.png Royal Naboo Security Forces", "http://images.wikia.com/starwars/images/6/67/NossorRi-search.png Nossor Ri", "http://images.wikia.com/starwars/images/0/06/MaulCybernetics-search.png Cybernetics", "http://images.wikia.com/starwars/images/8/89/MasAmedda-search.png Mas Amedda", "http://images.wikia.com/starwars/images/9/9a/Lobot-search.png Lobot", "http://images.wikia.com/starwars/images/f/fe/JocastaNu-search.png Jocasta Nu", "http://images.wikia.com/starwars/images/5/55/Gree-search.png CC-1004", "http://images.wikia.com/starwars/images/2/26/Father-search.png Father (Mortis)", "http://images.wikia.com/starwars/images/6/65/Daughter-search.png Daughter", "http://images.wikia.com/starwars/images/b/b0/CutLawquane-search.png Cut Lawquane", "http://images.wikia.com/starwars/images/2/21/ClieggLars-search.png Cliegg Lars", "http://images.wikia.com/starwars/images/0/0f/Boga-search.png Boga", "http://images.wikia.com/starwars/images/a/a6/BibFortuna-search.png Bib Fortuna", "http://images.wikia.com/starwars/images/7/78/Belugan-search.png Belugan", "http://images.wikia.com/starwars/images/e/e9/Anacondan-search.png Anacondan", "http://images.wikia.com/starwars/images/5/59/M-TD-search.png M-TD", "http://images.wikia.com/starwars/images/8/81/BailLeia-search.png Alderaanian", "http://images.wikia.com/starwars/images/7/75/Bail-search.png Bail Prestor Organa", "http://images.wikia.com/starwars/images/6/62/Depa-search.png Depa Billaba", "http://images.wikia.com/starwars/images/b/b3/DE10-search.png DE-10 blaster pistol" "http://images.wikia.com/starwars/images/9/92/Windu-search.png Mace Windu" "http://images.wikia.com/starwars/images/f/f7/MaceWindu-search.png Master of the Order" "http://images.wikia.com/starwars/images/4/4b/AnakinPadawan-search.png Padawan" "http://images.wikia.com/starwars/images/a/a7/AnakinSkywalker-search.png Jedi Commander" "http://images.wikia.com/starwars/images/b/bb/ObiWanCW-search.png Jedi General" "http://images.wikia.com/starwars/images/1/15/PadmeCW-search.png Senator" );

var line = lines[rand( lines.length - 1 )]; var pos = line.indexOf(' ');

var link = document.createElement( 'div' ); link.id = 'search-icon-wrapper'; var img = document.createElement( 'img' ); img.alt = 'Search'; img.src = ( pos == -1 ) ? line : line.substring( 0, pos ); link.appendChild( img );

searchDiv.insertBefore( link, searchDiv.firstChild );

var div = document.createElement( 'div' ); div.id = 'search-popup'; div.style.display = 'none'; var ul = document.createElement( 'ul' );

var li; var a;

li = document.createElement( 'li' ); a = document.createElement( 'a' ); a.href = wgScriptPath + '/index.php?title=Special:Search&adv=1'; a.appendChild( document.createTextNode( 'Advanced search' ) ); li.appendChild( a ); ul.appendChild( li );

li = document.createElement( 'li' ); a = document.createElement( 'a' ); a.href = ( pos == -1 ) ? 'javascript:emptySearchDesc' : '/wiki/' + line.substring( pos + 1 ); a.appendChild( document.createTextNode( "What's this? (" + ( ( pos == -1 ) ? 'NO DESCRIPTION' : line.substring( pos + 1 ) ) + ')' ) ); li.appendChild( a ); ul.appendChild( li );

li = document.createElement( 'li' ); a = document.createElement( 'a' ); a.href = 'javascript:closeSearchPopup'; a.appendChild( document.createTextNode( 'Close' ) ); li.appendChild( a ); ul.appendChild( li );

var container = document.getElementById( 'globalWrapper' ); if( !container ) { container = document.getElementById( 'container' ); }

div.appendChild( ul ); container.appendChild( div );

link.onclick = openSearchPopup; }

function openSearchPopup( event ) { var div = document.getElementById( 'search-popup' ); var e = event || window.event;

div.style.display = ( div.style.display == 'none' ) ? 'block' : 'none'; div.style.left = e.clientX + 'px'; div.style.top = ( e.clientY + document.documentElement.scrollTop ) + 'px'; }

function closeSearchPopup { document.getElementById( 'search-popup' ).style.display = 'none'; }

function emptySearchDesc { alert( 'No description exists for this search icon. Please contact the administrators to resolve this problem.' ); }

addOnloadHook( replaceSearchIcon );

// Patch for MWSggest, broken by Wikia $(function {	if (!window.os_MWSuggestInit) {		importScriptURI(stylepath+'/common/mwsuggest.js?'+wgStyleVersion);	} });

// Move interwiki language links template to sidebar $(document).ready( function {	if( document.getElementById("p-lang") ) {		document.getElementById("column-one").appendChild(document.getElementById("p-lang"));		// Replace div with h5 to pick up formatting		var pLangContent = $("#p-lang").children.first.html;		$("#p-lang").children.first.replaceWith(" " + pLangContent + " ");	} } );

/* */