// Copyright 2004-2008 Protopage Ltd.  All rights reserved.
var helpCardSections = [{"label":"Basic","cards":[{"id":"setHomePage","title":"Set your home page","browser":"firefox","registeredOnly":true,"image":"basic/13a.png","html":"\nTo see your Protopage every time\nyou open your web browser,\ndrag the Protopage icon to\nthe 'Home' icon in Firefox, and then\nclick 'Yes'.\t\t\t\t"},{"id":"setHomePage","title":"Set your home page\t","browser":"ie","registeredOnly":true,"image":"basic/13b.png","html":"\n\t\t\t\tTo see your Protopage every time\nyou open your web browser, <span style=\"cursor:pointer\"><u><b><a href onClick=\"this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.protopage.com/${protopagePath}');\">click here<\/a><\/b><\/u><\/span>\n\t\t\t\t"},{"loggedInOnly":true,"title":"Getting started","image":"basic/1.png","html":"\n\t\t\t\tProtopage is your own personal page, which you can access from any computer or mobile phone.\n\t\t\t\t<br /><br />\n\t\t\t\tUse it to read your own selection of news and blogs, keep bookmarks, to-do lists, sticky notes, and much more\n\t\t\t\t"},{"title":"Getting started","image":"basic/1.png","html":"\n\t\t\t\tProtopage is your own personal page, which you can access from any computer or mobile phone.\n\t\t\t\t<br /><br />\n\t\t\t\tTo try Protopage, <b><a href=\"http://www.protopage.com\">click here<\/a><\/b> to create your own page\n\t\t\t\t","loggedOutOnly":true},{"title":"Reading news","image":"basic/2.png","html":"\n\t\t\t\tYou can choose your own selection\n\t\t\t\tof news from thousands of sources.\n\t\t\t\t<br /><br />\n\t\t\t\tTo read a news article, click the headline\n\t\t\t\tinside the news widget.\n\t\t\t\t"},{"title":"Adding widgets","image":"basic/3.png","html":"\n\t\t\t\tThere are thousands of different\n\t\t\t\twidgets that you can add to your\n\t\t\t\tpage.\n\t\t\t\t<br /><br />\n\t\t\t\tTo see the list of available widgets,\n\t\t\t\tclick the 'Add widgets' button at\n\t\t\t\tthe top of the page\n\t\t\t\t"},{"title":"Adding RSS News feeds","image":"basic/8.png","html":"\n\t\t\t\tIf you see an orange 'RSS' icon in your\nweb browser when you visit a web site,\nit means you can subscribe to it with Protopage.\n                    <br /><br />\nTo add it to your Protopage, simply click\nthe 'Add widgets' button, enter the\nweb address, and click 'Go',\n\t\t\t\t"},{"title":"Arranging widgets","image":"basic/4.png","html":"\n\t\t\tYour widgets are arranged into\n\t\t\tcolumns. You can drag and drop\n\t\t\twidgets to re-arrange them by\n\t\t\tclicking and dragging the title bar.\n\t\t\t\t\t\t\t<br /><br />\n\t\t\tYou can resize a widget by dragging\n\t\t\tthe corner.\n\t\t\t\t"},{"title":"Editing widgets","image":"basic/5.png","html":"\n\t\t\t\tSome widgets have settings that\nyou can edit. For example, a\nweather widget will let you choose\nyour city by clicking 'edit'.\n\t\t\t\t\t\t\t<br /><br />\nYou can remove a widget from your\npage by clicking the 'x' button.\n\t\t\t\t"},{"title":"Bookmarks widgets","image":"basic/6.png","html":"\nUse bookmark widgets for fast\naccess to all of the web sites\nyou go to most.\n                    <br /><br />\nClick the 'edit' button on a\nbookmarks widget to enter your\nfavorite web site addresses.\t\t\t\t"},{"title":"Sticky notes and more","image":"basic/7.png","html":"\n\t\t\t\tYou can add sticky notes on your\npage. To edit the text, simply click\ninside the widget and start typing.\n                                <br /><br />\nYou can also add to-do lists,\ncalendars, photos, and much more.\n\t\t\t\t"},{"id":"mobile","title":"Protopage Mobile","image":"basic/12.png","html":"\n\t\t\t\tAccess your page from most phones,\nincluding the iPhone, Blackberry, Nokia,\nSamsung, Siemens, Palm, LG, Motorola,\nSony Ericsson and Windows Mobile.\n<br /><br />\nAfter you've registered your page, access\n<b>protopage.com/mobile<\/b> from your phone.\n\t\t\t\t"},{"title":"Web browsers","image":"basic/18.png","html":"\n\t\t\t\tFor best results, use Firefox 3 or Internet Explorer 7 (Protopage also works with Opera and Safari).\n                <br /><br />\nTo download the latest Firefox web browser (for PC or Mac), <u><b><a href=\"http://www.getfirefox.com\" target=\"_NEW\">click here<\/a><\/b><\/u>\n\t\t\t\t"},{"title":"Have fun!","unregisteredOnly":true,"image":"basic/1.png","html":"\n\t\t\t\tNow you know the basics, you can start\nbuilding your personalised page.\n                     <br /><br />\n<u><b><a onmousedown=\"registerClicked(); return true;\" href=\"/${protopagePath}/_api/register\">Click here<\/a><\/b><\/u> to register your page so that your\npage settings are safe.\n\t\t\t\t"}]},{"label":"Advanced","cards":[{"title":"Working with tabs","image":"basic/9.png","html":"\n\t\t\t\tYou can organize your widgets\nunder different tabs.\n                                       <br /><br />\nTo add a tab, click 'New tab'. To rename the currently selected\ntab, simply click it and start typing. Drag tabs to re-order them.\n\t\t\t\t"},{"title":"Dragging to tabs","image":"basic/17.png","html":"\n\t\t\t\tIf you want to move a widget to a different tab, simply drag it to the new tab.\n\t\t\t\t"},{"title":"Tab options","image":"basic/10.png","html":"\nClick the arrow on the currently\nselected tab to see options.\n                                       <br /><br />\nYou can make your tabs different colors,\nchange the way widgets are arranged\nwithin the tab, or delete the tab.\n\n\t\t\t\t"},{"title":"Tabs and categories","image":"basic/11.png","html":"\n\t\t\t\tClick the double arrow on the far\nright of your page to see the advanced\n'category' view.\n                <br /><br />\nYou can organize your tabs into\ncategories, and either keep categories\nprviate or share them with the world.\n\t\t\t\t"},{"title":"Shift and Ctrl clicking","browser":"ctrlshiftclick","image":"basic/14.png","html":"\n\t\t\t\tTo view a news headline, simply\nclick it.\n                <br /><br />\nHowever, you can also Shift-click\nor Ctrl-click the headline to make\nthe news story open in a new window.\n\t\t\t\t"},{"title":"Keyboard shortcuts","image":"basic/19.png","html":"\n\t\t\t\tWhen reading news stories, you can press the 'Z' key to skip to the next unread story.\n                <br /><br />\nTo see the entire list of shortcuts, hover over the 'keyboard shortcuts' text in the top right corner of the news reader.\n\t\t\t\t"},{"title":"Colors and settings","image":"basic/15.png","html":"\nClick the 'Colors/Settings'\nbutton to customize your\npage with your own choice of\ncolors and wallpaper.\n\t\t\t\t"},{"title":"Quick searches","image":"basic/16.png","html":"\n\t\t\t\tHover over the search area\nin the top right of your page\nto quickly search hundreds\nof popular search engines.\n\t\t\t\t"}]}];var feedList = [["Audio podcasts",[["BBC Podcasts : Entertainment","http://www.bbc.co.uk/radio/downloadtrial/",["http://downloads.bbc.co.uk/rmhttp/downloadtrial/radio1/scottmillsdaily/rss.xml","http://downloads.bbc.co.uk/rmhttp/downloadtrial/radio1/bestofmoyles/rss.xml","http://downloads.bbc.co.uk/rmhttp/downloadtrial/fivelive/thedailymayo/rss.xml","http://downloads.bbc.co.uk/rmhttp/downloadtrial/fivelive/markkermodesfilmreviews/rss.xml","http://downloads.bbc.co.uk/rmhttp/downloadtrial/radioulster/thestephennolanshow/rss.xml"],272,304,"regular",1],["BBC Podcasts : Factual","http://www.bbc.co.uk/radio/downloadtrial/",["http://downloads.bbc.co.uk/rmhttp/downloadtrial/radio4/inbusiness/rss.xml","http://downloads.bbc.co.uk/rmhttp/downloadtrial/radio4/womanshourchoice/rss.xml","http://downloads.bbc.co.uk/rmhttp/downloadtrial/radio4/radio4choice/rss.xml","http://downloads.bbc.co.uk/rmhttp/downloadtrial/fivelive/wakeuptomoney/rss.xml","http://downloads.bbc.co.uk/rmhttp/downloadtrial/worldservice/digitalplanet/rss.xml"],272,304,"regular",1],["BBC Podcasts : Music","http://www.bbc.co.uk/radio/downloadtrial/",["http://downloads.bbc.co.uk/rmhttp/downloadtrial/radio1/radio1sbestofunsigned/rss.xml","http://downloads.bbc.co.uk/rmhttp/downloadtrial/1xtra/homegrownmix/rss.xml","http://downloads.bbc.co.uk/rmhttp/downloadtrial/radio3/discoveringmusic/rss.xml"],272,304,"regular",1],["BBC Podcasts : News","http://www.bbc.co.uk/radio/downloadtrial/",["http://downloads.bbc.co.uk/rmhttp/downloadtrial/radio1/radio1sentertainmentnews/rss.xml","http://downloads.bbc.co.uk/rmhttp/downloadtrial/radio4/todayleadinterviews/rss.xml","http://downloads.bbc.co.uk/rmhttp/downloadtrial/radio4/broadcastinghouse/rss.xml","http://downloads.bbc.co.uk/rmhttp/downloadtrial/radio4/today/rss.xml","http://downloads.bbc.co.uk/rmhttp/downloadtrial/radio4/fromourowncorrespondent/rss.xml","http://downloads.bbc.co.uk/rmhttp/downloadtrial/radionews/bbcradionewspod/rss.xml","http://downloads.bbc.co.uk/rmhttp/downloadtrial/worldservice/worldtodayselect/rss.xml","http://downloads.bbc.co.uk/rmhttp/downloadtrial/worldservice/documentaryarchive/rss.xml","http://downloads.bbc.co.uk/rmhttp/downloadtrial/radioulster/thestephennolanshow/rss.xml"],272,304,"regular",1],["BBC Radio Newspod","http://www.bbc.co.uk/radio/downloadtrial/","http://downloads.bbc.co.uk/rmhttp/downloadtrial/radionews/bbcradionewspod/rss.xml"],["BBC World News Bulletin","http://www.bbc.co.uk/radio/downloadtrial/","http://downloads.bbc.co.uk/rmhttp/downloadtrial/worldservice/summary/rss.xml"],["CNN Business Update","http://www.cnn.com/services/podcasting/","http://rss.cnn.com/services/podcasting/marketplace/rss.xml"],["CNN Hourly News Update","http://www.cnn.com/services/podcasting/","http://rss.cnn.com/services/podcasting/newscast/rss.xml"],["Daily Giz Wiz","http://www.twit.tv/DGW","http://leoville.tv/podcasts/dgw.xml"],["Inside the Net","http://www.twit.tv/ITN","http://leoville.tv/podcasts/itn.xml"],["Reel Reviews Radio","http://reelreviewsradio.com","http://reelreviewsradio.com/podcast.xml"],["Security Now","http://www.twit.tv/SN","http://leoville.tv/podcasts/sn.xml"],["TalkCrunch","http://talkcrunch.com","http://talkcrunch.com"],["This Week in Tech","http://www.twit.tv/TWiT","http://leoville.tv/podcasts/twit.xml"]]],["Cartoon feeds",[["Being Five","http://beingfive.com",null,538,321,"singleImage"],["Dilbert","http://feeds.feedburner.com/DilbertDailyStrip",null,641,277,"singleImage"],["Gapingvoid","http://feeds.feedburner.com/gapingvoid-widget",null,438,298,"singleImage"],["Over compensating","http://overcompensating.com/xml/atom.xml",null,737,369,"singleImage"],["Savage Chickens","http://www.savagechickens.com/blog/atom.xml",null,428,483,"singleImage"]]],["News feeds",[["Blogs - Non-Tech",[["Autoblog","http://www.autoblog.com/"],["CNN Anderson Cooper 360 Blog","http://www.cnn.com/CNN/Programs/anderson.cooper.360/blog/","http://rss.cnn.com/rss/cnn_ac360blog.rss"],["Church of the Customer Blog","http://customerevangelists.typepad.com/blog/"],["Defamer","http://www.defamer.com/"],["Fark.com","http://www.fark.com/"],["FreshArrival","http://www.fresharrival.com/"],["Gapingvoid","http://www.gapingvoid.com/"],["Gawker","http://www.gawker.com/","http://feeds.gawker.com/gawker/excerpts.xml"],["GridSkipper","http://www.gridskipper.com/"],["Metafilter","http://www.metafilter.com"],["Pop Sugar","http://popsugar.com/"],["Seth Godin's Blog","http://sethgodin.typepad.com/seths_blog/"],["Work Happy","http://www.workhappy.net/"]]],["Blogs - Politics",[["Andrew Sullivan","http://www.andrewsullivan.com/"],["Daily Kos: State of the Nation","http://www.dailykos.com/"],["Huffington Post","http://www.huffingtonpost.com/"],["Instapundit","http://instapundit.com/"],["Michelle Malkin","http://michellemalkin.com/"],["Wonkette","http://www.wonkette.com/"]]],["Blogs - Tech Related",[["A Gonzo Journal","http://cowboycaleb.liquidblade.com/"],["A List Apart","http://www.alistapart.com/"],["A Venture Forth","http://www.aventureforth.com/"],["ARS Technica","http://arstechnica.com/index.ars"],["Amber MacArthur","http://www.ambermac.com/"],["Boing Boing ","http://boingboing.net/"],["BusinessWeek Tech Beat","http://www.businessweek.com/the_thread/techbeat/"],["CommandN Internet TV","http://commandn.typepad.com/"],["Dion Hichcliffe's Web 2.0 Blog","http://web2.wsj2.com/"],["Dion Hinchcliffe - Enterprise Web 2.0","http://blogs.zdnet.com/Hinchcliffe/"],["Dion and Ben's Ajaxian","http://www.ajaxian.com"],["Download Squad","http://www.downloadsquad.com/"],["Dwight Silverman's TechBlog","http://blogs.chron.com/techblog/"],["Emily Chang","http://www.emilychang.com/go/ehub/"],["Engadget","http://www.engadget.com/"],["Fosfor Gadgets","http://gadgets.fosfor.se/","http://feeds.feedburner.com/fosfor/kYcM"],["GigaOM","http://gigaom.com/"],["Gizmodo","http://www.gizmodo.com/","http://feeds.gawker.com/gizmodo/excerpts.xml"],["Hack a Day","http://www.hackaday.com/"],["I, Cringely","http://www.pbs.org/cringely/"],["Jeremy Zawodny's blog","http://jeremy.zawodny.com/blog/"],["Joel on Software","http://www.joelonsoftware.com/"],["John Battelle's Searchblog","http://battellemedia.com/"],["Joi Ito's Web","http://joi.ito.com/"],["Kevin Kelly - Cool Tools","http://www.kk.org/cooltools/"],["Leo Laporte","http://leoville.vox.com/"],["Lifehacker","http://www.lifehacker.com/"],["MacRumors.com","http://www.macrumors.com/"],["Micro Persuasion","http://www.micropersuasion.com/"],["O'Reilly Radar","http://radar.oreilly.com/"],["PC Mike's e-Journal","http://pcmike.com/"],["PVR Blog","http://www.pvrblog.com/pvr/"],["Read Write Web","http://www.readwriteweb.com/"],["Rev2.org","http://www.rev2.org/"],["Scobleizer","http://scobleizer.wordpress.com/","http://scobleizer.wordpress.com/feed/"],["Scripting News","http://www.scripting.com/"],["Style Gala","http://www.stylegala.com/"],["Techcrunch","http://www.techcrunch.com/"],["Techdirt","http://www.techdirt.com/"],["The Chris Pirillo Show","http://www.thechrispirilloshow.com/"],["The Red Ferret Journal","http://www.redferret.net/"],["The Social Software Blog","http://socialsoftware.weblogsinc.com/"],["The Unofficial Apple Weblog","http://www.tuaw.com/"],["This Week in Tech","http://www.thisweekintech.com/"],["Tip Monkies","http://blogs.tech-recipes.com/tipmonkies/"],["ValleyWag","http://valleywag.com/"],["VentureBlog","http://www.ventureblog.com/"],["Waxy Links","http://waxy.org/links/"]]],["Business",[["ABC News - Business","http://abcnews.go.com/Business/","http://my.abcnews.go.com/rsspublic/business_rss20.xml"],["BBC News - Business","http://news.bbc.co.uk/1/hi/business/default.stm"],["BusinessWeek","http://www.businessweek.com/","http://rss.businessweek.com/bw_rss/topstories"],["CBS News - Business","http://www.cbsnews.com/sections/business/main500395.shtml","http://www.cbsnews.com/feeds/rss/business.rss"],["CNN Money","http://money.cnn.com/index.html"],["Economist","http://www.economist.com/index.html","http://www.economist.com/rss/news_analysis_and_views_rss.xml"],["FT.com Asia (Subs. Reqd.)","http://news.ft.com/home/asia"],["FT.com Europe (Subs. Reqd.)","http://news.ft.com/home/europe"],["FT.com UK (Subs. Reqd.)","http://news.ft.com/home/uk"],["FT.com US (Subs. Reqd.)","http://news.ft.com/home/us"],["Fast Company","http://www.fastcompany.com/homepage/index.html","http://www.fastcompany.com/blogs/recent/feed"],["Forbes","http://www.forbes.com/"],["Fortune","http://money.cnn.com/magazines/fortune/"],["Kiplinger Personal Finance","http://www.kiplinger.com/","http://kiplinger.com/rss/s.php/k473bc67746e30/headlines.rss"],["MSNBC Business","http://www.msnbc.msn.com/id/3032072/"],["MarketWatch","http://www.marketwatch.com","http://www.marketwatch.com/rss/topstories"],["Motley Fool","http://www.fool.com/"],["New York Times - Business","http://www.nytimes.com/pages/business/","http://www.nytimes.com/services/xml/rss/nyt/Business.xml"],["Reuters - Business","http://today.reuters.com/news/newsChannel.aspx?type=businessNews","http://feeds.reuters.com/reuters/businessNews"],["USA Today - Money","http://www.usatoday.com/money/front.htm","http://rssfeeds.usatoday.com/UsatodaycomMoney-TopStories"],["Wall St. Journal (Subs. Reqd.)","http://online.wsj.com/public/us"]]],["Canada",[["CBC News","http://www.cbc.ca/news/","http://www.cbc.ca/rss/"]]],["Education",[["BBC News - Health","http://news.bbc.co.uk/1/hi/education/default.stm"],["New York Times - Education","http://www.nytimes.com/pages/education/index.html"]]],["Entertainment",[["ABC News - Entertainment","http://abcnews.go.com/Entertainment/","http://my.abcnews.go.com/rsspublic/entertainment_rss20.xml"],["BBC News - Entertainment","http://news.bbc.co.uk/1/hi/entertainment/default.stm"],["CBS News - Entertainment","http://www.cbsnews.com/sections/entertainment/main207.shtml","http://www.cbsnews.com/feeds/rss/entertainment.rss"],["CNN.com - Entertainment","http://www.cnn.com/SHOWBIZ/"],["Country Music Television News","http://www.cmt.com/news/","http://www.cmt.com/rss/news/latest.jhtml"],["E! online","http://www.eonline.com/"],["Gamespot News","http://www.gamespot.com/news/index.html","http://www.gamespot.com/misc/rss/gamespot_updates_news.xml"],["Hello! Magazine","http://www.hellomagazine.com/","http://ap.hellomagazine.com/feeds/hello_atom.xml"],["MSNBC - Entertainment","http://www.msnbc.msn.com/id/3032084/"],["MTV News","http://www.mtv.com/news/","http://www.mtv.com/rss/news/latestcached.jhtml"],["Rolling Stone","http://www.rollingstone.com/"],["Rotten Tomatoes - Top Movies","http://www.rottentomatoes.com/movies/box_office.php","http://i.rottentomatoes.com/syndication/rss/top_movies.xml"],["TV Squad","http://www.tvsquad.com/"],["VH1 News","http://www.vh1.com/news/","http://www.vh1.com/rss/news/latestcached.jhtml"],["Variety","http://www.variety.com/"]]],["Health",[["ABC News - Health","http://abcnews.go.com/Health/","http://my.abcnews.go.com/rsspublic/health_rss20.xml"],["BBC News - Health","http://news.bbc.co.uk/1/hi/health/default.stm"],["CBS News - HealthWatch","http://www.cbsnews.com/sections/health/main204.shtml","http://www.cbsnews.com/feeds/rss/health.rss"],["CNN.com - Health","http://www.cnn.com/HEALTH/"],["MSNBC - Health","http://www.msnbc.msn.com/id/3032076/"],["Medical News Today","http://www.medicalnewstoday.com/"],["New York Times - Health","http://www.nytimes.com/pages/health/index.html"]]],["Humor",[["Comedy Central - Joke of the Day","http://www.comedycentral.com/jokes/index.jhtml?rsspartner=rssMozilla","http://www.comedycentral.com/rss/jokes/index.jhtml"],["Comedy Central - The Daily Show Clips","http://www.comedycentral.com/shows/the_daily_show/videos/most_recent/index.jhtml?rsspartner=rssMozilla","http://www.comedycentral.com/rss/tdsvideos.jhtml"],["The Onion","http://www.theonion.com/content/index","http://www.theonion.com/content/feeds/daily"]]],["Languages",[["BBC World Service - Albanian","http://www.bbc.co.uk/albanian/"],["BBC World Service - Arabic","http://www.bbc.co.uk/arabic/"],["BBC World Service - Azeri","http://www.bbc.co.uk/azeri/"],["BBC World Service - Bengali","http://www.bbc.co.uk/bengali/"],["BBC World Service - Bulgarian","http://www.bbc.co.uk/bulgarian/"],["BBC World Service - Burmese","http://www.bbc.co.uk/burmese/"],["BBC World Service - Caribbean","http://www.bbc.co.uk/caribbean/"],["BBC World Service - Chinese","http://www.bbc.co.uk/chinese/"],["BBC World Service - Croatian","http://www.bbc.co.uk/croatian/"],["BBC World Service - Czech","http://www.bbc.co.uk/czech/"],["BBC World Service - French","http://www.bbc.co.uk/french/"],["BBC World Service - Great Lakes","http://www.bbc.co.uk/greatlakes/"],["BBC World Service - Greek","http://www.bbc.co.uk/greek/"],["BBC World Service - Hausa","http://www.bbc.co.uk/hausa/"],["BBC World Service - Hindi","http://www.bbc.co.uk/hindi/"],["BBC World Service - Hungarian","http://www.bbc.co.uk/hungarian/"],["BBC World Service - Indonesian","http://www.bbc.co.uk/indonesian/"],["BBC World Service - Kazakh","http://www.bbc.co.uk/kazakh/"],["BBC World Service - Kyrgyz","http://www.bbc.co.uk/kyrgyz/"],["BBC World Service - Macedonian","http://www.bbc.co.uk/macedonian/"],["BBC World Service - Nepali","http://www.bbc.co.uk/nepali/"],["BBC World Service - Pashto","http://www.bbc.co.uk/pashto/"],["BBC World Service - Persian","http://www.bbc.co.uk/persian/"],["BBC World Service - Polish","http://www.bbc.co.uk/polish/"],["BBC World Service - Portuguese","http://www.bbc.co.uk/portuguese/"],["BBC World Service - Portuguese Africa","http://www.bbc.co.uk/portugueseafrica/"],["BBC World Service - Russian","http://www.bbc.co.uk/russian/"],["BBC World Service - Serbian","http://www.bbc.co.uk/serbian/"],["BBC World Service - Sinhala","http://www.bbc.co.uk/sinhala/"],["BBC World Service - Slovak","http://www.bbc.co.uk/slovak/"],["BBC World Service - Slovene","http://www.bbc.co.uk/slovene/"],["BBC World Service - Somali","http://www.bbc.co.uk/somali/"],["BBC World Service - Spanish","http://www.bbc.co.uk/spanish/"],["BBC World Service - Swahili","http://www.bbc.co.uk/swahili/"],["BBC World Service - Tamil","http://www.bbc.co.uk/tamil/"],["BBC World Service - Thai","http://www.bbc.co.uk/thai/"],["BBC World Service - Turkish","http://www.bbc.co.uk/turkish/"],["BBC World Service - Ukranian","http://www.bbc.co.uk/ukrainian/"],["BBC World Service - Urdu","http://www.bbc.co.uk/urdu/"],["BBC World Service - Uzbek","http://www.bbc.co.uk/uzbek/"],["BBC World Service - Vietnamese","http://www.bbc.co.uk/vietnamese/"],["L'Express (French)","http://www.lexpress.presse.fr/info/"],["La Tribune (French)","http://www.latribune.fr/"],["Le Figaro (French)","http://www.lefigaro.fr/","http://www.lefigaro.fr/rss/figaro_actualites.xml"],["Le Monde (French)","http://www.lemonde.fr/"],["Le Soir (Belgian)","http://www.lesoir.be/"],["Les Echoes (French)","http://www.lesechos.fr/"],["Nouvel Obs (French)","http://permanent.nouvelobs.com/","http://permanent.nouvelobs.com/rss_permanent.xml"]]],["Law",[["CNN.com - Law","http://www.cnn.com/LAW/"],["Lawrence Lessig","http://www.lessig.org/blog/"]]],["Lifestyle & Fashion",[["New York Times - Fashion & Style","http://www.nytimes.com/pages/fashion/index.html","http://www.nytimes.com/services/xml/rss/nyt/FashionandStyle.xml"],["Reuters - Lifestyle","http://features.us.reuters.com/","http://feeds.reuters.com/reuters/Lifestyle"]]],["Misc",[["Dictionary.com Word of the Day","http://dictionary.reference.com/wordoftheday/wotd.rss"],["New Urban Legends","http://www.snopes.com/info/whatsnew.asp"],["Quotes of the Day","http://www.quotationspage.com/qotd.html"],["Simply Recipies","http://www.elise.com/recipes/"],["The Food Section","http://www.thefoodsection.com/foodsection/"]]],["Most Emailed/Popular",[["New York Times - Most Emailed","http://www.nytimes.com/gst/mostemailed.html?partner=rssnyt","http://www.nytimes.com/services/xml/rss/nyt/pop_top.xml"],["Yahoo! News - Most Emailed","http://news.yahoo.com/i/964","http://rss.news.yahoo.com/rss/mostemailed"]]],["News - Top Stories",[["ABC News - Top Stories","http://abcnews.go.com/"],["BBC World News","http://news.bbc.co.uk/1/hi/world/default.stm"],["CBS News - Top Stories","http://www.cbsnews.com/sections/home/main100.shtml","http://www.cbsnews.com/feeds/rss/main.rss"],["CNN.com - Top Stories","http://www.cnn.com/"],["MSNBC - Top Stories","http://www.msnbc.msn.com/"],["New York Times - Top Stories","http://www.nytimes.com/"],["Reuters - Top Stories","http://today.reuters.com/news/default.aspx","http://feeds.reuters.com/reuters/topNews"],["Washington Post - Top Stories","http://www.washingtonpost.com","http://www.washingtonpost.com/wp-dyn/rss/linkset/2005/03/24/LI2005032400102.xml"]]],["Politics",[["ABC News - Politics","http://abcnews.go.com/Politics/","http://my.abcnews.go.com/rsspublic/politics_rss20.xml"],["BBC News - Politics","http://news.bbc.co.uk/1/hi/uk_politics/default.stm"],["CBS News - Politics","http://www.cbsnews.com/sections/politics/main250.shtml","http://www.cbsnews.com/feeds/rss/politics.rss"],["CNN.com - Politics","http://www.cnn.com/POLITICS/"],["New York Times - Politics","http://www.nytimes.com/pages/politics/index.html"],["Salon","http://www.salon.com/","http://www.salon.com/rss/salon.rss"],["Slate","http://www.slate.com/"]]],["Protopage",[["Protopage News Blog","http://blog.protopage.com/"]]],["Regional",[["BBC News - Africa","http://news.bbc.co.uk/1/hi/world/africa/default.stm"],["BBC News - Americas","http://news.bbc.co.uk/1/hi/world/americas/default.stm"],["BBC News - Asia Pacific","http://news.bbc.co.uk/1/hi/world/asia-pacific/default.stm"],["BBC News - Europe","http://news.bbc.co.uk/1/hi/world/europe/default.stm"],["BBC News - Middle East","http://news.bbc.co.uk/1/hi/world/middle_east/default.stm"],["BBC News - South Asia","http://news.bbc.co.uk/1/hi/world/south_asia/default.stm"]]],["Science / Nature",[["About.com Animals & Wildlife News","http://animals.about.com/","http://z.about.com/6/g/animals/b/rss2.xml"],["BBC News - Science/Nature","http://news.bbc.co.uk/1/hi/sci/tech/default.stm"],["CBS News - Sci-Tech","http://www.cbsnews.com/sections/tech/main205.shtml","http://www.cbsnews.com/feeds/rss/scitech.rss"],["CNN.com - Science & Space","http://www.cnn.com/TECH/space/","http://rss.cnn.com/rss/edition_space.rss"],["National Geographic News","http://news.nationalgeographic.com/","http://news.nationalgeographic.com/index.rss"],["Nature","http://www.nature.com/index.html","http://www.nature.com/nature/current_issue/rss"],["New York Times - Science","http://www.nytimes.com/pages/science/index.html"],["Scientific American","http://www.sciam.com/","http://rss.sciam.com/ScientificAmerican-Global"]]],["Sports",[["BBC Sport","http://news.bbc.co.uk/sport/"],["BBC Sport - American Football","http://news.bbc.co.uk/sport1/hi/other_sports/american_football/default.stm"],["BBC Sport - Athletics","http://news.bbc.co.uk/sport1/hi/athletics/default.stm"],["BBC Sport - Baseball","http://news.bbc.co.uk/sport1/hi/other_sports/baseball/default.stm"],["BBC Sport - Boxing","http://news.bbc.co.uk/sport1/hi/boxing/default.stm"],["BBC Sport - Cricket","http://news.bbc.co.uk/sport1/hi/cricket/default.stm"],["BBC Sport - Cycling","http://news.bbc.co.uk/sport1/hi/other_sports/cycling/default.stm"],["BBC Sport - Football (Soccer)","http://news.bbc.co.uk/sport1/hi/football/default.stm"],["BBC Sport - Golf","http://news.bbc.co.uk/sport1/hi/golf/default.stm"],["BBC Sport - Horse Racing","http://news.bbc.co.uk/sport1/hi/other_sports/horse_racing/default.stm"],["BBC Sport - Motorsport","http://news.bbc.co.uk/sport1/hi/motorsport/default.stm"],["BBC Sport - Rugby League","http://news.bbc.co.uk/sport1/hi/rugby_league/default.stm"],["BBC Sport - Rugby Union","http://news.bbc.co.uk/sport1/hi/rugby_union/default.stm"],["BBC Sport - Sailing","http://news.bbc.co.uk/sport1/hi/other_sports/sailing/default.stm"],["BBC Sport - Snooker","http://news.bbc.co.uk/sport1/hi/other_sports/snooker/default.stm"],["BBC Sport - Swimming","http://news.bbc.co.uk/sport1/hi/other_sports/swimming/default.stm"],["BBC Sport - Tennis","http://news.bbc.co.uk/sport1/hi/tennis/default.stm"],["BBC Sport - Winter Sports","http://news.bbc.co.uk/sport1/hi/other_sports/winter_sports/default.stm"],["CBS SportsLine - Auto Racing","http://www.sportsline.com/autoracing","http://www.sportsline.com/partners/feeds/rss/auto_news"],["CBS SportsLine - Boxing ","http://www.sportsline.com/boxing","http://www.sportsline.com/partners/feeds/rss/boxing_news"],["CBS SportsLine - College Football","http://www.sportsline.com/collegefootball","http://cbs.sportsline.com/partners/feeds/rss/cfb_news"],["CBS SportsLine - College Hoops","http://www.sportsline.com/collegebasketball","http://cbs.sportsline.com/partners/feeds/rss/cb_news"],["CBS SportsLine - MLB","http://www.sportsline.com/mlb","http://cbs.sportsline.com/partners/feeds/rss/mlb_news"],["CBS SportsLine - NBA","http://www.sportsline.com/nba","http://cbs.sportsline.com/partners/feeds/rss/nba_news"],["CBS SportsLine - NFL","http://www.sportsline.com/nfl","http://cbs.sportsline.com/partners/feeds/rss/nfl_news"],["CBS SportsLine - NHL","http://www.sportsline.com/nhl","http://cbs.sportsline.com/partners/feeds/rss/nhl_news"],["CBS SportsLine - Soccer","http://www.sportsline.com/soccer","http://www.sportsline.com/partners/feeds/rss/soccer_news"],["CBS SportsLine - Tennis","http://www.sportsline.com/tennis","http://www.sportsline.com/partners/feeds/rss/tennis_news"],["CBS SportsLine - Top Stories","http://www.sportsline.com/"],["CBS SportsLine - WNBA","http://www.sportsline.com/wnba","http://www.sportsline.com/partners/feeds/rss/wnba_news"],["CBS SportsLine - Women's College Hoops","http://www.sportsline.com/ncaawbasketball","http://www.sportsline.com/partners/feeds/rss/cbw_news"],["ESPN - College Basketball","http://sports.espn.go.com/ncb/index"],["ESPN - College Football","http://sports.espn.go.com/ncf/index"],["ESPN - Golf","http://sports.espn.go.com/golf/index"],["ESPN - MLB","http://sports.espn.go.com/mlb/index"],["ESPN - Motorsports","http://sports.espn.go.com/rpm/index","http://sports.espn.go.com/espn/rss/rpm/news"],["ESPN - NBA","http://sports.espn.go.com/nba/index"],["ESPN - NFL","http://sports-att.espn.go.com/nfl/index"],["ESPN - NHL","http://sports.espn.go.com/nhl/index"],["ESPN - Soccer","http://soccernet.espn.go.com/","http://rss.feedsportal.com/c/668/f/8493/index.rss"],["ESPN - Top Stories","http://sports.espn.go.com","http://sports.espn.go.com/espn/rss/news"],["FOX Sports - College Basketball","http://msn.foxsports.com/cbk"],["FOX Sports - College Football","http://msn.foxsports.com/cfb"],["FOX Sports - Golf","http://msn.foxsports.com/golf"],["FOX Sports - Horseracing","http://msn.foxsports.com/horseracing","http://msn.foxsports.com/feedout/syndicatedContent?categoryId=241"],["FOX Sports - MLB","http://msn.foxsports.com/mlb"],["FOX Sports - NBA","http://msn.foxsports.com/nba"],["FOX Sports - NFL","http://msn.foxsports.com/nfl"],["FOX Sports - NHL","http://msn.foxsports.com/nhl"],["FOX Sports - Nascar","http://msn.foxsports.com/name/public/NASCAR/Chase","http://msn.foxsports.com/feedout/syndicatedContent?categoryId=142"],["FOX Sports - Soccer","http://msn.foxsports.com/foxsoccer","http://msn.foxsports.com/feedout/syndicatedContent?categoryId=176"],["FOX Sports - Tennis","http://msn.foxsports.com/tennis","http://msn.foxsports.com/feedout/syndicatedContent?categoryId=199"],["FOX Sports - WNBA","http://msn.foxsports.com/wnba","http://msn.foxsports.com/feedout/syndicatedContent?categoryId=90"],["MSNBC Sports","http://www.msnbc.msn.com/id/3032113/"],["NBA Basketball","http://www.nba.com/","http://www.nba.com/rss/nba_rss.xml"],["New York Times - Sports","http://www.nytimes.com/pages/sports/index.html"],["Sports Illustrated - Golf","http://sportsillustrated.cnn.com/golf/","http://rss.cnn.com/rss/si_golf.rss"],["Sports Illustrated - MLB","http://sportsillustrated.cnn.com/baseball/mlb/","http://rss.cnn.com/rss/si_mlb.rss"],["Sports Illustrated - NBA","http://sportsillustrated.cnn.com/basketball/nba/","http://rss.cnn.com/rss/si_nba.rss"],["Sports Illustrated - NCAAB","http://sportsillustrated.cnn.com/basketball/ncaa/","http://rss.cnn.com/rss/si_ncaab.rss"],["Sports Illustrated - NCAAF","http://sportsillustrated.cnn.com/football/ncaa/","http://rss.cnn.com/rss/si_ncaaf.rss"],["Sports Illustrated - NFL","http://sportsillustrated.cnn.com/hockey/nhl/","http://rss.cnn.com/rss/si_nfl.rss"],["Sports Illustrated - Racing","http://sportsillustrated.cnn.com/racing/","http://rss.cnn.com/rss/si_motorsports.rss"],["Sports Illustrated - Top Stories","http://sportsillustrated.cnn.com/index.html"],["USA Today - Sports","http://www.usatoday.com/sports/front.htm","http://asp.usatoday.com/marketing/rss/rsstrans.aspx?feedId=sports1"],["WNBA Basketball","http://www.wnba.com","http://www.wnba.com/rss/wnba_rss.xml"]]],["Tech Categories",[["BBC News - Tech","http://news.bbc.co.uk/1/hi/technology/default.stm"],["BetaNews","http://www.betanews.com/"],["CNET News.com - Access","http://news.com.com/2001-1035_3-0.html?tag=ne.tab.hd","http://news.com.com/2547-1035_3-0-5.xml"],["CNET News.com - Business Tech","http://news.com.com/2001-1001_3-0.html?tag=ne.tab.hd","http://news.com.com/2547-1001_3-0-5.xml"],["CNET News.com - Digital Life","http://news.com.com/2001-1040_3-0.html?tag=ne.tab.hd","http://news.com.com/2547-1040_3-0-5.xml"],["CNET News.com - Media 2.0","http://news.com.com/2001-1023_3-0.html?tag=ne.tab.hd","http://news.com.com/2547-1023_3-0-5.xml"],["CNET News.com - Threats","http://news.com.com/2001-1009_3-0.html?tag=ne.tab.hd","http://news.com.com/2547-1009_3-0-5.xml"],["CNET News.com - Top Stories","http://news.com.com/"],["CNN.com - Tech","http://www.cnn.com/TECH/"],["Del.icio.us - Popular","http://del.icio.us/popular/"],["Digg.com - Front page","http://www.digg.com/","http://www.digg.com/rss/indexnews.xml"],["ExtremeTech","http://www.extremetech.com/"],["InfoWorld","http://www.infoworld.com/"],["MSNBC Tech / Science","http://www.msnbc.msn.com/id/3032118/"],["Macworld","http://www.macworld.com/"],["New York Times - Tech","http://tech.nytimes.com/pages/technology/index.html","http://www.nytimes.com/services/xml/rss/nyt/Technology.xml"],["PC World - Latest News","http://www.pcworld.com/","http://rss.pcworld.com/rss/latestnews.rss"],["PC World - Staff Blog","http://blogs.pcworld.com/staffblog/","http://blogs.pcworld.com/staffblog/index.rss"],["PC World - Techlog","http://blogs.pcworld.com/techlog/","http://blogs.pcworld.com/techlog/index.rss"],["Reuters - Tech and Science","http://today.reuters.com/news/newsSciTech.aspx"],["Tom's Hardware","http://www.tomshardware.com/index.html","http://www.tomshardware.com/us/"],["USA Today - Tech","http://www.usatoday.com/tech/front.htm","http://rssfeeds.usatoday.com/usatoday-TechTopStories"],["Wired News - Culture","http://www.wired.com/news/culture/","http://feeds.wired.com/wired/culture"],["Wired News - Politics","http://www.wired.com/news/politics/","http://feeds.wired.com/wired/politics"],["Wired News - Tech Biz","http://www.wired.com/techbiz/","http://feeds.wired.com/wired/techbiz"],["Wired News - Top Stories","http://www.wired.com/","http://feeds.wired.com/wired/index"],["ZDNet - Application Development","http://news.zdnet.com/2001-9593_22-0.html","http://news.zdnet.com/2509-9593_22-0-10.xml"],["ZDNet - Data Management","http://news.zdnet.com/2001-9592_22-0.html","http://news.zdnet.com/2509-9592_22-0-10.xml"],["ZDNet - Hardware Upgrades","http://news.zdnet.com/2001-9584_22-0.html","http://news.zdnet.com/2509-9584_22-0-10.xml"],["ZDNet - IT Management","http://news.zdnet.com/2001-9589_22-0.html","http://news.zdnet.com/2509-9589_22-0-10.xml"],["ZDNet - Security","http://news.zdnet.com/2001-1009_22-0.html","http://news.zdnet.com/2509-1009_22-0-10.xml"],["ZDNet - Software Infrastructure","http://news.zdnet.com/2001-3513_22-0.html","http://news.zdnet.com/2509-3513_22-0-10.xml"],["ZDNet - Top Stories","http://news.zdnet.com/2001-1_22-0.html"],["ZDNet - Web Technology","http://news.zdnet.com/2001-9588_22-0.html","http://news.zdnet.com/2509-9588_22-0-10.xml"],["eWeek","http://www.eweek.com/"]]],["Technology",[["ABC News - Tech","http://abcnews.go.com/Business/","http://my.abcnews.go.com/rsspublic/scitech_rss20.xml"],["BBC News - Tech","http://news.bbc.co.uk/1/hi/technology/default.stm"],["CNET News.com - Top Stories","http://news.com.com/"],["CNN.com - Tech","http://www.cnn.com/TECH/"],["Computerworld","http://www.computerworld.com/","http://feeds.computerworld.com/Computerworld/News"],["InfoWorld","http://www.infoworld.com/"],["MSNBC Tech / Science","http://www.msnbc.msn.com/id/3032118/"],["New York Times - Tech","http://tech.nytimes.com/pages/technology/index.html","http://www.nytimes.com/services/xml/rss/nyt/Technology.xml"],["PC World - Latest News","http://www.pcworld.com/","http://rss.pcworld.com/rss/latestnews.rss"],["Reuters - Tech and Science","http://today.reuters.com/news/newsSciTech.aspx"],["The Register","http://www.theregister.com/"],["USA Today - Tech","http://www.usatoday.com/tech/front.htm","http://asp.usatoday.com/marketing/rss/rsstrans.aspx?feedId=tech1"],["Wired News - Top Stories","http://www.wired.com/","http://feeds.wired.com/wired/index"],["ZDNet - Top Stories","http://news.zdnet.com/2001-1_22-0.html"],["eWeek","http://www.eweek.com/"]]],["Travel",[["ABC News - Travel","http://abcnews.go.com/Travel/","http://my.abcnews.go.com/rsspublic/travel_rss20.xml"],["CNN.com - Travel","http://www.cnn.com/TRAVEL/"],["MSNBC - Travel","http://www.msnbc.msn.com/id/3032123/"],["USA Today - Travel","http://www.usatoday.com/travel/front.htm","http://rssfeeds.usatoday.com/UsatodaycomTravel-TopStories"]]],["U.K.",[["BBC News - England","http://news.bbc.co.uk/1/hi/england/default.stm"],["BBC News - N. Ireland","http://news.bbc.co.uk/1/hi/northern_ireland/default.stm"],["BBC News - Scotland","http://news.bbc.co.uk/1/hi/scotland/default.stm"],["BBC News - UK","http://news.bbc.co.uk/1/hi/uk/default.stm"],["BBC News - Wales","http://news.bbc.co.uk/1/hi/wales/default.stm"],["Daily Mail","http://www.dailymail.co.uk"],["Financial Times","http://news.ft.com/home/uk"],["Guardian Unlimited","http://www.guardian.co.uk/"],["Independent","http://www.independent.co.uk/","http://news.independent.co.uk/uk/index.jsp?service=rss"],["Mirror","http://www.mirror.co.uk/"],["Scotsman","http://www.scotsman.com/","http://www.scotsman.com/getFeed.aspx?Format=rss&sectionid=5908"],["Sky News","http://www.sky.com/skynews/home","http://news.sky.com/sky-news/rss/home/rss.xml"],["Telegraph","http://news.telegraph.co.uk","http://www.telegraph.co.uk/newsfeed/rss/news_main.xml"]]],["U.S.",[["ABC News - US","http://abcnews.go.com/US/","http://my.abcnews.go.com/rsspublic/us_rss20.xml"],["BBC News - Americas","http://news.bbc.co.uk/1/hi/world/americas/default.stm"],["CBS News - US","http://www.cbsnews.com/sections/national/main201.shtml","http://www.cbsnews.com/feeds/rss/national.rss"],["CNN.com - US","http://www.cnn.com/US/"],["MSNBC - US","http://www.msnbc.msn.com/id/3032525/"],["New York Times - NY/Region","http://www.nytimes.com/pages/nyregion/index.html","http://www.nytimes.com/services/xml/rss/nyt/NYRegion.xml"],["New York Times - National","http://www.nytimes.com/pages/national/index.html"],["USA Today","http://www.usatoday.com/","http://rssfeeds.usatoday.com/usatoday-NewsTopStories"],["Washington Post","http://www.washingtonpost.com/","http://www.washingtonpost.com/wp-dyn/rss/linkset/2005/03/24/LI2005032400102.xml"]]],["U.S. Papers",[["Arizona Republic","http://www.azcentral.com/news/","http://www.azcentral.com/rss/feeds/news.xml"],["Baltimore Sun","http://www.baltimoresun.com/","http://feeds.baltimoresun.com/baltimoresun/news/rss2"],["Cincinnati Enquirer","http://news.enquirer.com","http://news.enquirer.com/apps/pbcs.dll/section?category=rss&mime=xml"],["Dallas Morning News","http://www.dallasnews.com/","http://www.dallasnews.com/newskiosk/rss/dallasnewslatestnews.xml"],["Detroit Free Press","http://www.freep.com/index.htm","http://www.freep.com/avantgo_detroit/index.xml"],["Detroit News ","http://www.detnews.com","http://www.detnews.com/apps/pbcs.dll/section?category=rss&mime=xml"],["Honolulu Star Bulletin","http://www.starbulletin.com/"],["Houston Chronicle","http://www.chron.com/","http://www.chron.com/rss/chronicle/index.rss"],["Milwaukee-Journal Sentinel","http://www.jsonline.com/","http://www.jsonline.com/rss/frontpage.xml"],["Minneapolis-St. Paul Star Tribune","http://www.startribune.com/"],["New York Times","http://www.nytimes.com/"],["Philadelphia Inquirer, The","http://www.philly.com/mld/inquirer/","http://go.philly.com/rss/www-philly-com-mld-inquirer-news-front-rss.xml"],["Pittsburgh Tribune-Review","http://www.pittsburghlive.com/x/tribune-review/trib/","http://feeds.feedburner.com/alltribstories"],["Providence Journal-Bulletin","http://www.projo.com/","http://www.projo.com/newskiosk/rss/projolocalnews.xml"],["San Francisco Chronicle","http://www.sfgate.com/chronicle/","http://www.sfgate.com/rss/feeds/news.xml"],["San Jose Mercury News","http://www.mercurynews.com/mld/mercurynews/","http://rss.mnginteractive.com/live/sanjose/SanJose_1923271.xml"],["Seattle Times","http://seattletimes.nwsource.com/html/home/index.html"],["St. Louis Post-Dispatch","http://www.stltoday.com/"],["The Christian Science Monitor","http://www.csmonitor.com/"],["USA Today","http://usatoday.com/","http://rssfeeds.usatoday.com/usatoday-NewsTopStories"],["Wall Street Journal","http://online.wsj.com","http://online.wsj.com/xml/rss/3_7011.xml"],["Washington Post - Top Stories","http://www.washingtonpost.com","http://www.washingtonpost.com/wp-dyn/rss/linkset/2005/03/24/LI2005032400102.xml"],["Washington Times","http://www.washtimes.com/","http://feeds.feedburner.com/Nation-TheWashingtonTimesAmericasNewspaper"]]],["World",[["ABC World News","http://abcnews.go.com/International/","http://my.abcnews.go.com/rsspublic/world_rss20.xml"],["BBC World News","http://news.bbc.co.uk/1/hi/world/default.stm"],["CBS World News","http://www.cbsnews.com/sections/world/main202.shtml","http://www.cbsnews.com/feeds/rss/national.rss"],["CNN.com World News","http://www.cnn.com/WORLD/"],["Int'l Herald Tribune","http://www.iht.com/"],["MSNBC - World News","http://www.msnbc.msn.com/id/3032507/"],["New York Times - Int'l","http://www.nytimes.com/pages/world/index.html"]]]]],["Popular stories / videos",[["Del.icio.us Popular","http://del.icio.us/popular/"],["Digg Popular","http://digg.com/view/all/popular/today","http://www.digg.com/rss/indexnews.xml"],["Reddit Hot","http://reddit.com/"],["Viral video chart","http://www.viralvideochart.com"],["YouTube Recently Featured","http://www.youtube.com","http://youtube.com/rss/global/recently_featured.rss",350,285,"thumbnails",9],["YouTube Top Favorites","http://www.youtube.com","http://youtube.com/rss/global/top_favorites.rss",350,285,"thumbnails",9]]],["Video podcasts",[["Ask a Ninja","http://www.askaninja.com.com","http://feeds.feedburner.com/AskANinja",400,340,"singleImage",9],["Channel Frederator - Cartoons","http://www.channelfrederator.com","http://www.channelfrederator.com/rss",400,340,"singleImage",9],["Comedy Central Motherload","http://www.comedycentral.com/podcasts/index.jhtml","http://feeds.feedburner.com/comedycentral/motherload",400,340,"singleImage",9],["Comedy Central Stand-Up","http://www.comedycentral.com/podcasts/index.jhtml","http://feeds.feedburner.com/comedycentral/standup",400,340,"singleImage",9],["CommandN","http://commandn.typepad.com/","http://feeds.feedburner.com/commandN_pod",400,340,"singleImage",9],["Diggnation","http://revision3.com/diggnation/","http://revision3.com/diggnation/feed/quicktime-large",400,340,"singleImage",9],["GETV","http://www.geekentertainment.tv/","http://feeds.feedburner.com/getv",400,340,"singleImage",9],["How-To with Madeline Merced","http://www.howtogirl.com/howtogirl/how_to_index.html","http://feeds.feedburner.com/howtogirl",400,340,"singleImage",9],["MTV News Daily","http://www.mtv.com","http://feeds.feedburner.com/mtvnews/DailyHeadlines/Video",400,340,"singleImage",9],["MobuzzTV - Daily Buzz","http://www.mobuzztv.com","http://feeds.feedburner.com/MobuzztvDailyBuzz-quicktime",400,340,"singleImage",9],["Rocketboom","http://www.rocketboom.com/vlog/","http://www.rocketboom.com/vlog/index.xml",400,340,"singleImage",9],["Tiki Bar TV","http://www.tikibartv.com","http://feeds.feedburner.com/tikibartv",400,340,"singleImage",9],["Washingtonpost.com Video Podcast","http://www.washingtonpost.com/wp-srv/mmedia/podcastfront.htm","http://www.washingtonpost.com/wp-srv/mmedia/vipod.xml",400,340,"singleImage",9]]]];var searchEngineDirectory = [["Amazon",[[3406,"Amazon - Canada","http://www.amazon.ca","http://www.amazon.ca/gp/associates/link-types/searchbox.html?tag=a09213-20&mode=blended&keyword="],[3403,"Amazon - France","http://www.amazon.fr","http://www.amazon.fr/gp/associates/link-types/searchbox.html?tag=protopage-21&mode=blended&keyword="],[3404,"Amazon - Germany","http://www.amazon.de","http://www.amazon.de/gp/associates/link-types/searchbox.html?tag=protopage0b-21&mode=blended&keyword="],[3405,"Amazon - Japan","http://www.amazon.co.jp","http://www.amazon.co.jp/gp/associates/link-types/searchbox.html?tag=a08ca-22&mode=blended&keyword="],[3402,"Amazon - U.K.","http://www.amazon.co.uk","http://www.amazon.co.uk/gp/associates/link-types/searchbox.html?tag=protopage-21&mode=blended&keyword="],[3401,"Amazon - U.S.","http://www.amazon.com","http://www.amazon.com/gp/associates/link-types/searchbox.html?tag=protopage-20&mode=blended&keyword="]]],["Art, Literature, Hobbies",[[310,"AboutStone","http://aboutstone.org/","http://aboutstone.org.master.com/texis/master/search/?xsubmit=Search+all+of+About+Stone&s=SS&q="],[304,"Art - Bridge","http://www.art-bridge.com/","http://www.art-bridge.com/cgi-art-bridge/abdir_search.pl?h=All+Categories&m=t&search="],[305,"Art - Bridge - Image","http://www.art-bridge.com/","http://www.art-bridge.com/cgi-art-bridge/abdir_search.pl?h=All+Categories&m=v&search="],[301,"Artcyclopedia - Artist","http://www.artcyclopedia.com/","http://www.artcyclopedia.com/scripts/tsearch.pl?type=1&t=test"],[303,"Artcyclopedia - Museum","http://www.artcyclopedia.com/","http://www.artcyclopedia.com/scripts/tsearch.pl?type=3&t=test"],[302,"Artcyclopedia - Title","http://www.artcyclopedia.com/","http://www.artcyclopedia.com/scripts/tsearch.pl?type=2&t=test"],[318,"Bookhive - Author","http://www.bookhive.org/","http://www.bookhive.org/books/results.asp?searchType=author&keyword="],[317,"Bookhive - Title","http://www.bookhive.org/","http://www.bookhive.org/books/results.asp?searchType=title&keyword="],[311,"ClayZee","http://www.clayzee.com/","http://www.clayzee.com/cgibin/links/search.cgi?submit2=Search&query="],[309,"Dart - Community","http://dart.fine-art.com/","http://dart.fine-art.com/BoardSearch2.asp?posttype=all&DatePosted=all&BSearch="],[306,"Dart - Marketplace","http://dart.fine-art.com/","http://dart.fine-art.com/smquery.asp?BSearch="],[307,"Dart - Poster","http://dart.fine-art.com/","http://www.fine-art.com/posters/default_fr.asp?affcomp=Select&hsearch="],[308,"Dart - Webdir","http://dart.fine-art.com/","http://dart.fine-art.com/artlinks/smartsearch.asp?namesearch="],[315,"ELiterature","http://www.eliterature.org/","http://www.eliterature.org/index.php?s="],[312,"Informotions - Literature","http://www.infomotions.com/alex/","http://www.infomotions.com/alex/cgi-bin/search.pl?database=Alex+Catalogue+of+Electronic+Texts&caseful=off&caseful=off&templatetype=ALL&stemming=on&view=authors&ranking=on&rankingalg=alpha%3ATitle&query="],[316,"LiteraturePage","http://www.literaturepage.com/","http://www.literaturepage.com/search.php?startsearch=Search&titlesearch="],[314,"Nimble Books","http://www.nimblebooks.com","http://www.nimblebooks.com/wordpress/index.php?s="],[313,"Pantheon(Mythology)","http://www.pantheon.org/","http://www.pantheon.org/cgi-bin/search.pl?nocpp=1&Realm=mythica&fa=0&Terms="]]],["Blogs",[[1016,"Blog Flux","http://dir.blogflux.com/","http://dir.blogflux.com/search.php?q=paper&search="],[1017,"Blog Hub","http://www.bloghub.com/","http://www.bloghub.com/cgi-bin/search.cgi?catid=All+Categories&submit=Search%21&query="],[1019,"Blog Pulse","http://www.blogpulse.com/index.html","http://www.blogpulse.com/search?image22.x=0&image22.y=0&query="],[1010,"Blogger","http://www.blogger.com/start","http://search.blogger.com/?ui=blg&q="],[1013,"Bloggernity","http://www.bloggernity.com/","http://www.bloggernity.com/cgi-bin/search.cgi?Submit=Search&query="],[1005,"Blogit","http://www.blogit.com/Blogs/General/PostSearch.aspx","http://www.blogit.com/Blogs/General/Search.aspx?q="],[1006,"BlogLines","http://bloglines.com/search","http://bloglines.com/search?r=0&submit=Search&q="],[1002,"BlogSE","http://www.blogsearchengine.com/","http://www.blogsearchengine.com/search.php?tab=blog&q="],[1003,"BlogWise","http://www.blogwise.com/","http://www.blogwise.com/search?q="],[1001,"Blogz","http://www.bloogz.com/","http://www.bloogz.com/cerca2.php?found_in=blog&submit=Search&n_ricerca=1&tipo=1&lingua_sel2=EN&lingua_sel=ALL&option_sel=data_ins&q="],[1008,"Complete RSS","http://www.completerss.com/","http://www.completerss.com/FeedResults.aspx?q="],[1011,"DonBusca","http://www.donbusca.com","http://www.donbusca.com/cgi-bin/nph-donbusca.pl?where=weblogs&submit=Search&terms="],[1004,"KBCafe","http://www.kbcafe.com/blogs.aspx/blogs","http://www.kbcafe.com/blogs.aspx?q="],[1015,"NYC Bloggers","http://www.nycbloggers.com/","http://www.nycbloggers.com/alphabetcity.asp?search=search&searchstring="],[1007,"QPR","http://www.qpr.org/blogs/search.php","http://www.qpr.org/blogs/search.php?search_method=enteries&search_criteria="],[1018,"Spaces - Msn","http://spaces.msn.com","http://spaces.msn.com/default.aspx?FORM=SPACES&page=searchresults&ss=true&tp=1&sc=0&submit.x=0&submit.y=0&submit=submit&qn="],[1009,"Technorati","http://www.technorati.com/","http://www.technorati.com/search/"],[1012,"Travel Pod","http://www.travelpod.com/","http://www.travelpod.com/cgi-bin/keyword2.pl?tweb_PID=tpod&tweb_keyword="],[1014,"Xanga","http://www.xanga.com/","http://search.xanga.com/searchxanga.aspx?q="]]],["Books",[[2408,"1Bookstreet","http://www.1bookstreet.com/","http://www.1bookstreet.com/index.php?Operation=ItemSearch&SearchIndex=Books&Keywords="],[2410,"AbeBooks - author","http://dogbert.abebooks.com","http://dogbert.abebooks.com/servlet/SearchResults?sts=t&y=0&x=0&an="],[2412,"AbeBooks - isbn","http://dogbert.abebooks.com","http://dogbert.abebooks.com/servlet/SearchEntry?sts=t&errorcode=8&y=0&x=0&isbn="],[2411,"AbeBooks - keywords","http://dogbert.abebooks.com","http://dogbert.abebooks.com/servlet/SearchResults?sts=t&y=0&x=0&kn="],[2413,"AbeBooks - publisher","http://dogbert.abebooks.com","http://dogbert.abebooks.com/servlet/SearchResults?sts=t&y=0&x=0&pn="],[2409,"AbeBooks - Title","http://dogbert.abebooks.com","http://dogbert.abebooks.com/servlet/SearchResults?sts=t&y=0&x=0&tn="],[2407,"AddAll","http://www.addall.com/","http://www3.addall.com/New/submitNew.cgi?type=Title&location=&state=&dispCurr=USD&query="],[2406,"AwesomeLibrary","http://www.awesomelibrary.org/","http://www.awesomelibrary.org/cgi-bin/search-aw1-e.cgi?search=Go&terms="],[2402,"BestBookBuys - author","http://www.bestwebbuys.com/books","http://www.bestwebbuys.com/books/search.jsp?isrc=b-search-srchbox&N=0&Ntk=P_Author&=Search&Ntt="],[2405,"BestBookBuys - ISBN","http://www.bestwebbuys.com/books","http://www.bestwebbuys.com/books/search.jsp?isrc=b-compare-srchbox&N=0&Ntk=P_Title&Ntt="],[2404,"BestBookBuys - Keyword","http://www.bestwebbuys.com/books","http://www.bestwebbuys.com/books/search.jsp?isrc=b-search-srchbox&N=0&Ntk=All&=Search&Ntt="],[2401,"BestBookBuys - Title","http://www.bestwebbuys.com/books","http://www.bestwebbuys.com/books/search.jsp?isrc=b-home-search&N=0&x=0&y=0&Ntk=P_Title&Ntt="],[2403,"BestBooksBuys - subject","http://www.bestwebbuys.com/books","http://www.bestwebbuys.com/books/search.jsp?isrc=b-search-srchbox&N=0&Ntk=Subject+Category&=Search&Ntt="],[2416,"LiteraryLeaps","http://www.literaryleaps.com/","http://www.literaryleaps.com/leapsearch.cfm?search=search&keyword="],[2414,"OnlineBooks - author","http://onlinebooks.library.upenn.edu/search.html","http://onlinebooks.library.upenn.edu/webbin/book/search?amode=words&title=&tmode=words&author="],[2415,"OnlineBooks - Title","http://onlinebooks.library.upenn.edu/search.html","http://onlinebooks.library.upenn.edu/webbin/book/search?author=&amode=words&tmode=words&title="],[2417,"SearchEBooks","http://www.searchebooks.com/","http://www.searchebooks.com/cgi-bin/search.dll?x=0&y=0&q="]]],["Business",[[508,"Adage","http://www.adage.com/","http://www.adage.com/results?search_offset=0&search_order_by=score&searcha-btn.x=&searcha-btn.y=&search_phrase="],[503,"Australian Financial Review","http://afr.com/","http://newsstore.fairfax.com.au/apps/newsSearch.ac?ac=search&sy=afr&ss=AFR&dt=selectRange&so=relevance&sp=0&rc=10&dr=1month&pb=fin&sf=article&go=go&kw="],[509,"Business Publication","http://www.bpubs.com/","http://www.bpubs.com/cgi/search.cgi?bool=or&query="],[504,"Business Week","http://www.businessweek.com/","http://search.businessweek.com/Search?skin=BusinessWeek&x=&y=&searchTerm="],[505,"CNN (Money)","http://money.cnn.com/","http://search.money.cnn.com/pages/search.jsp?Coll=moneymag_xml&QuerySubmit=true&Page=1&LastQuery=&magazine=fort&QueryText="],[510,"Competitive Intelligence","http://www.bidigital.com/ci/","http://www.bidigital.com/cgi-bin/links/search.cgi?submit=Search&query="],[511,"Corporate Information","http://www.corporateinformation.com/","http://www.corporateinformation.com/cosearch.asp?search_button=Name&submit.x=0&submit.y=0&terms="],[507,"Financial Times","http://news.ft.com/","http://search.ft.com/search/totalSearch_Form.html?vsc_appId=ts&symb=&ftsite=FTCOM&searchtype=equity&x=&y=&searchOption=news&vsc_query="],[506,"Fool","http://www.fool.com/","http://www.fool.com/search/search.htm?go=1&mbbid=BoardID&mbmid=MessageID&tn-search-btn=Go&query="],[512,"GuideLine","http://www.guideline.com/","http://guideline.master.com/texis/master/search/mysite.html?q="],[502,"INO (Quotes)","http://news.ino.com/","http://quotes.ino.com/search/?search="],[501,"Usa Today","http://www.usatoday.com/money/front.htm","http://asp.usatoday.com/search/yahoo/search.aspx?qt=both&goBtn2.x=&goBtn2.y=&kw="]]],["Autos",[[1704,"AntiqueAuto - US","http://www.aaca.org/","http://www.aaca.org/search.aspx?x=0&y=0&keyword="],[1703,"Auto - Engineers","http://automobile.sae.org/","http://www.sae.org/servlets/SiteSearch?charset=iso-8859-1&ht=0&qp=&col=portal&qs=&sae_qt1=&qc=&pw=100%2525&ws=0&la=en&qm=0&st=1&nh=25&lk=1&rf=0&oq=&rq=0&si=1&ql=&jsp_name=simplesearch.jsp&ofType=ALL&x=0&y=0&&qt="],[1705,"Auto Alliance","http://www.autoalliance.org","http://www.autoalliance.org/search/search.php?x=0&y=0&query="],[1706,"Automobile Mag","http://www.automobilemag.com/","http://www.automobilemag.com/searchresults/?x=0&y=0&terms="],[1708,"Carpages - UK","http://www.carpages.co.uk/","http://www.carpages.co.uk/results.asp?go.x=0&go.y=0&search"],[1701,"Motor Trend","http://www.motortrend.com/","http://www.motortrend.com/searchresults/?x=0&y=0&terms="],[1707,"SuperCars","http://www.supercars.net/","http://www.supercars.net/Search2?searchType=cars&INPUT="],[1702,"The Auto Channel","http://www.theautochannel.com/","http://www.theautochannel.com/search/search.html?method=and&format=TachNet&restrict=&exclude=&config=htdig&x=0&y=0&words="]]],["Celebrities",[[2603,"Star Seeker","http://www.starseeker.com/","http://www.search-starseeker.com/scripts/search/query.idq?CiMaxRecordsPerPage=10&CiScope=%2F&TemplateName=query&CiSort=rank%5Bd%5D&CiRestriction="],[2601,"StarPages","http://www.starpages.net","http://www.starpages.net/search/index.html?st=sites&search="],[2602,"Super Top Model","http://www.supertopmodel.com/","http://www.supertopmodel.com/search/search.cgi?submit=Search&query="],[2604,"who2","http://www.who2.com/","http://www.who2.com/cgi-bin/swish.pl?swishindex=%2Fwho2%2Fswish-e%2Findex.swish&metaName=Keywords&detail=yes&maxresults=1000&maxdisplay=20&search_submit=Search+Who2&keywords="]]],["Dictionary",[[1106,"ACRONYM","http://www.acronymfinder.com/","http://www.acronymfinder.com/af-query.asp?Find=find&string=exact&Acronym="],[1101,"Dictionary","http://dictionary.reference.com/","http://dictionary.reference.com/search?q="],[1105,"FOLDOC","http://foldoc.org/","http://foldoc.org/foldoc.cgi?action=Search&query="],[1109,"Quotations","http://www.quotationspage.com","http://www.quotationspage.com/search.php3?startsearch=Search&Author=&C=mgm&C=motivate&C=classic&C=coles&C=poorc&C=lindsly&Search="],[1103,"Reference - Encyclopedia","http://www.reference.com/","http://www.reference.com/search?q="],[1104,"Reference - web","http://www.reference.com/","http://www.reference.com/search?q="],[1108,"Rhyme Zone","http://www.rhymezone.com","http://www.rhymezone.com/r/rhyme.cgi?typeofrhyme=perfect&org1=syl&org2=l&Word="],[1102,"Thesaurus","http://thesaurus.reference.com/search?q=","http://thesaurus.reference.com/search?q="],[1107,"Word Smyth","http://www.wordsmyth.net/","http://www.wordsmyth.net/live/home.php?script=search&matchtype=exact&&matchent="]]],["eBay",[[3302,"eBay - Argentina","http://www.mercadolibre.com.ar/home_visitor.html","http://listado.mercadolibre.com.ar/"],[3303,"eBay - Australia","http://www.ebay.com.au/","http://search.ebay.com.au/search/search.dll?from=R40&satitle="],[3304,"eBay - Austria ","http://www.ebay.at/","http://search.ebay.at/search/search.dll?from=R40&satitle="],[3305,"eBay - Belgium ","http://www.ebay.be/","http://search.benl.ebay.be/search/search.dll?from=R40&satitle="],[3306,"eBay - Brazil ","http://www.mercadolivre.com.br/home_visitor.html","http://lista.mercadolivre.com.br/"],[3307,"eBay - Canada ","http://www.ebay.ca/","http://search.ebay.ca/search/search.dll?from=R40&satitle="],[3308,"eBay - China ","http://www.ebay.com.cn/","http://search.ebay.com.cn/search/search.dll?from=R40&satitle="],[3309,"eBay - France ","http://www.ebay.fr/","http://search.ebay.fr/search/search.dll?from=R40&satitle="],[3310,"eBay - Germany ","http://www.ebay.de/","http://search.ebay.de/search/search.dll?from=R40&satitle="],[3311,"eBay - Hong Kong","http://www.ebay.com.hk/","http://search.ebay.com.hk/search/search.dll?from=R40&satitle="],[3312,"eBay - India ","http://www.ebay.in/","http://search.ebay.in/search/search.dll?from=R40&satitle="],[3313,"eBay - Ireland ","http://www.ebay.ie/","http://search.ebay.ie/search/search.dll?from=R40&satitle="],[3314,"eBay - Italy ","http://www.ebay.it/","http://search.ebay.it/search/search.dll?from=R40&satitle="],[3315,"eBay - Korea ","http://www.auction.co.kr/default.html","http://www.auction.co.kr/default.html?keyword=&itemno=&seller=&dom=auction&isSuggestion=No&optSection=%C5%EB%C7%D5%B0%CB%BB%F6&x=19&y=9&txtKeyword="],[3316,"eBay - Malaysia ","http://www.ebay.com.my/home","http://www.ebay.com.my/listResults?browse=0&Submit=Search&Query="],[3317,"eBay - Mexico ","http://www.mercadolibre.com.mx/home_visitor.html","http://listado.mercadolibre.com.mx/"],[3318,"eBay - Netherlands ","http://www.ebay.nl/","http://search.ebay.nl/search/search.dll?from=R40&satitle="],[3319,"eBay - New Zealand","http://pages.ebay.com/nz/","http://search.ebay.com//search/search.dll?salic=149&sojs=1&from=R40&satitle="],[3320,"eBay - Philippines ","http://www.ebay.ph/home","http://www.ebay.ph/listResults?browse=0&Submit=Search&Query="],[3321,"eBay - Poland ","http://www.ebay.pl/","http://search.ebay.pl/search/search.dll?from=R40&satitle="],[3322,"eBay - Singapore ","http://www.ebay.com.sg/","http://search.ebay.com.sg/search/search.dll?from=R40&satitle="],[3323,"eBay - Spain ","http://www.ebay.es/","http://search.ebay.es/search/search.dll?from=R40&satitle="],[3324,"eBay - Sweden ","http://www.ebay.se/home","http://www.ebay.se/listResults?browse=0&Submit=S%C3%B6k&Query="],[3325,"eBay - Switzerland ","http://www.ebay.ch/","http://search.ebay.ch/search/search.dll?from=R40&satitle="],[3326,"eBay - Taiwan ","http://www.tw.ebay.com/","http://search.tw.ebay.com/search/search.dll?from=R40&satitle="],[3301,"eBay - U.S","http://www.ebay.com","http://search.ebay.com/search/search.dll?from=R40&satitle="],[3327,"eBay - United Kingdom","http://www.ebay.co.uk/","http://search.ebay.co.uk/search/search.dll?from=R40&satitle="]]],["Finance",[[2504,"Business Finance Mag","http://www.businessfinancemag.com/","http://www.businessfinancemag.com/site/search/search.cfm?site=BF&qs="],[2511,"Campaign Finance Institute","http://www.cfinst.org/index.html","http://search.cfinst.org/search/searchresults.asp?srcriteria=any&searchField="],[2506,"CNN Money","http://money.cnn.com/pf/","http://search.money.cnn.com/pages/search.jsp?search.x=0&search.y=0&magazine=web&source=money&query=&invocationType=search%252Ftop&QueryText="],[2505,"CNN Money (get quotes)","http://money.cnn.com/pf/","http://money.cnn.com/quote/quote.html?symb="],[2519,"Economist","http://www.economist.com/finance/","http://www.economist.com/search/search.cfm?area=5&page=index&qr="],[2512,"Epinions Finance","http://www.epinions.com/finc","http://www.epinions.com/search/?submitted_form=searchbar&no_results_vertical=2522726&no_results_vertical_name=&search_string="],[2515,"Finance Glossary","http://www.finance-glossary.com/pages/home.htm","http://www.finance-glossary.com/pages/glossary.htm?PopupMode=false&ginPtrCode=00000&Search="],[2514,"Forbes","http://www.forbes.com/home/","http://search.forbes.com/search/find?sort=&aname=&author=&date=&pub=forbes.com%2Cmagazine%2Cglobal%2Cfyi%2Casap%2Cbest%2Cbow%2Cap%2Cpinnacor%2Cafx&MT="],[2503,"Globe Investor","http://www.globeinvestor.com/","http://investdb.theglobeandmail.com/invest/investSQL/gx.symbol_rep?iaction.x=0&iaction.y=0&iaction=Go&pi_symblist="],[2502,"International Finance Corporation","http://www.ifc.org/","http://ifcgoogle.ifc.org/search?ie=&site=IFCext&output=xml_no_dtd&client=IFCext&lr=&proxystylesheet=IFCext&oe=&=go&q="],[2518,"Latgin Finance","http://www.latinfinance.com/","http://www.latinfinance.com/default.asp?SM=ALL&DatePeriod=0&OB=R&Catalog=LF&Page=1113&x=0&y=0&SearchStr="],[2507,"MSN Money","http://moneycentral.msn.com/investor/home.asp","http://moneycentral.msn.com/money.search?q="],[2516,"Planet Finance - French","http://www.planetfinance.org/","http://search.atomz.com/search/?sp-a=sp10035510&sp-p=all&sp-f=ISO-8859-1&bton_ok.x=0&bton_ok.y=0&sp-q="],[2513,"Pro2Net - Accounting","http://www.pro2net.com/","http://search.smartpros.com/query.html?qp=sector%3Aaccounting&col=smartpro&bsec=SmartPros+Accounting%3A+Articles%2C+CPE+and+Career+Resources.&image.x=0&image.y=0&qt="],[2522,"Project Finance Magazine","http://www.projectfinancemagazine.com/","http://www.projectfinancemagazine.com/default.asp?SM=ALL&DatePeriod=0&OB=D&Catalog=PF&Page=1113&x=0&y=0&searchstr="],[2509,"Qualisteam - Banking and Finance","http://www.qualisteam.com/","http://www.qualisteam.com/links/search.cgi?query="],[2508,"Reuters Finance Glossary","http://glossary.reuters.com/index.php/Main_Page","http://glossary.reuters.com/index.php/Special:Search?go=Go&search="],[2521,"The Street","http://www.thestreet.com/","http://find.thestreet.com/cgi-bin/texis/find/results.html?nh=10&x=0&y=0&qt="],[2520,"The Street (Quotes) ","http://www.thestreet.com/funds/","http://tools.thestreet.com/tsc/quotes.html?pg=qcn&x=0&y=0&symb="],[2510,"TradingRoom (Australian Quotes)","http://tradingroom.com.au/","http://tradingroom.com.au/apps/qt/quote.ac?submit.x=0&submit.y=0&code="],[2517,"Wharton Finance Department","http://finance.wharton.upenn.edu/","http://google.wharton.upenn.edu/search?as_sitesearch=finance.wharton.upenn.edu&client=WH-Public-Web&proxystylesheet=WH-Public-Web&output=xml_no_dtd&site=WH-Public-Web&q="],[2501,"Yahoo Finance (Quote lookup)","http://finance.yahoo.com/","http://finance.yahoo.com/q?s="],[2523,"Yahoo Finance U.K. (Quote lookup)","http://uk.finance.yahoo.com","http://uk.finance.yahoo.com/q?d=t&p=&q=q&m=L&s="]]],["Food, Recipies, Drinks",[[1206,"Asia Recipe","http://asiarecipe.com/","http://www.asiarecipe.com/search/search.pl?Match=1&Terms="],[1213,"Bawarchi","http://food.sify.com/","http://food.sify.com/keyword_recipe_search.php?keywords="],[1205,"Cooking","http://www.cooking.com","http://www.cooking.com/recipes/researre.asp?Keywords="],[1210,"Epicurious","http://www.epicurious.com/","http://www.epicurious.com/recipes/find/results?x=0&y=0&search="],[1211,"Fat Free","http://www.fatfree.com/","http://www.fatfree.com/cgi-bin/recipes.cgi?"],[1209,"Food TV","http://www.foodtv.com/","http://web.foodnetwork.com/food/web/searchResults?site=FOOD&searchType=Recipe&searchString="],[1208,"Kraft Foods","http://www.kraftfoods.com","http://www.kraftfoods.com/main.aspx?s=recipe&m=recipe%2Fknet_recipe_grid&u1=keyword&u2="],[1212,"Real Beer","http://www.realbeer.com/","http://www.realbeer.com/search/search.php?db=rbp&query="],[1202,"Recipe Land","http://www.recipeland.com/index_full.epl","http://www.recipeland.com/search/?q="],[1201,"Recipe Link","http://www.recipelink.com/search.html","http://www.recipelink.com/cgi/c.cgi?ps=20&s=&ul=http%3A%2F%2Fwww.recipelink.com%2F%25&q="],[1204,"Recipes","http://www.recipes.com/","http://www.recipes.com/?HomeSearch=1t&submit=Search&show="],[1203,"Recipezaar","http://www.recipezaar.com","http://www.recipezaar.com/r/q="],[1207,"Webtender (drinks)","http://www.webtender.com/","http://www.webtender.com/cgi-bin/search?verbose=on&name="]]],["Forums",[[2103,"Board Tracker","http://www.boardtracker.com/","http://www.boardtracker.com/search/?cat=1&filter=1&search="],[2101,"Boardreader","http://www.boardreader.com/","http://www.boardreader.com/scripts/texis.exe/search/?btnSearch=Search&query="],[2102,"Speegle - UK","http://www.speegle.co.uk/","http://www.speegle.co.uk/search.php?voice=1&v=1&q="]]],["Gadgets",[[1607,"EnGadget","http://www.engadget.com/","http://www.engadget.com/search/?q="],[1608,"Gadget - Fosfor","http://gadgets.fosfor.se/","http://gadgets.fosfor.se/?s="],[1609,"Gadget Spy - UK","http://www.gadgetspy.co.uk/","http://www.gadgetspy.co.uk/index.php?s="],[1603,"Kyocera","http://www.kyocera-wireless.com/","http://www.kyocera-wireless.com/search/query.html?x=0&y=0&qt="],[1606,"Laptop Mag","http://laptopmag.com",""],[1602,"Mobile Tracker","http://www.mobiletracker.net/","http://www.mobiletracker.net/cgi-bin/mt/mt-search.cgi?search="],[1604,"Mobile Whack","http://www.mobilewhack.com/","http://www.mobilewhack.com/cgi-bin/move/mt-search.cgi?IncludeBlogs=2&search="],[1601,"Phonescoop","http://www.phonescoop.com/","http://www.phonescoop.com/search/jump_search.php?j.x=0&j.y=0&q="],[1605,"T - Mobile","http://www.t-mobile.com/","http://search.t-mobile.com/inquiraapp/ui.jsp?ui_mode=question&question_box="],[1610,"UberGizmo","http://www.ubergizmo.com/","http://www.ubergizmo.com/search/?q="]]],["Geography",[[1902,"Geography - UK","http://www.geography.org.uk/","http://www.geography.org.uk/search.asp?searchin=all+areas&x=0&y=0&searchfor="],[1901,"Geography Network","http://www.geographynetwork.com/","http://www.geographynetwork.com/explorer/gnsite/find_place.jsp?goTo=findPlace&x=0&y=0&place="]]],["Google, Yahoo!",[[2701,"Google","http://www.google.com/","http://www.google.com/search?hl=en&q="],[2709,"Google - Answers","http://answers.google.com/answers/","http://answers.google.com/answers/search?qtype=all&btnG=Google+Search&q="],[2723,"Google - Australia","http://www.google.com.au/","http://www.google.com.au/search?hl=en&btnG=Google+Search&meta=&q="],[2728,"Google - Australia - Books","http://books.google.com.au/","http://books.google.com.au/books?btnG=Search+Books&as_brr=0&q="],[2725,"Google - Australia - Groups","http://groups.google.com.au","http://groups.google.com.au/groups?hl=en&btnG=Google+Search&sa=N&tab=ig&q="],[2724,"Google - Australia - Images","http://images.google.com.au","http://images.google.com.au/images?hl=en&btnG=Google+Search&sa=N&tab=wi&q="],[2726,"Google - Australia - news","http://news.google.com.au","http://news.google.com.au/news?hl=en&btnG=Google+Search&sa=N&tab=gn&q="],[2727,"Google - Australia_blogs","http://www.google.com.au/blogsearch?hl=en","http://www.google.com.au/blogsearch?hl=en&btnG=Search+Blogs&q="],[2729,"Google - Australia_dir","http://www.google.com.au/dirhp?hl=en","http://www.google.com.au/search?btnG=Search+Directory&hl=en&cat=gwd%2FTop&q="],[2702,"Google - BlogSearch","http://blogsearch.google.com","http://blogsearch.google.com/blogsearch?hl=en&btnG=Search+Blogs&q="],[2703,"Google - Books","http://books.google.com/","http://books.google.com/books?btnG=Search+Books&as_brr=0&q="],[2714,"Google - BSD","http://www.google.com/bsd","http://www.google.com/bsd?hl=en&lr=&btnG=Search&q="],[2730,"Google - Canada","http://www.google.ca/","http://www.google.ca/search?hl=en&btnG=Google+Search&meta=&q="],[2734,"Google - Canada - Blogs","http://www.google.ca/blogsearch?hl=en","http://www.google.ca/blogsearch?hl=en&btnG=Search+Blogs&q="],[2735,"Google - Canada - Books","http://books.google.ca/","http://books.google.ca/books?btnG=Search+Books&as_brr=0&q="],[2732,"Google - Canada - Groups","http://groups.google.ca","http://groups.google.ca/groups?hl=en&btnG=Google+Search&sa=N&tab=ig&q="],[2731,"Google - Canada - Images","http://images.google.ca","http://images.google.ca/images?hl=en&btnG=Google+Search&sa=N&tab=wi&q="],[2733,"Google - Canada - News","http://news.google.ca","http://news.google.ca/news?hl=en&btnG=Google+Search&sa=N&tab=gn&q="],[2704,"Google - Catalogs","http://catalogs.google.com/","http://catalogs.google.com/catalogs?btnG=Search+Catalogs&q="],[2705,"Google - Directory","http://www.google.com/dirhp","http://www.google.com/search?btnG=Search+Directory&hl=en&cat=gwd%2FTop&q="],[2706,"Google - Finance","http://finance.google.com/finance","http://finance.google.com/finance?btnG=Search&q="],[2718,"Google - France","http://www.google.fr/","http://www.google.fr/search?hl=fr&btnG=Recherche+Google&meta=&q="],[2721,"Google - France -  Directories","http://www.google.fr/dirhp?hl=fr","http://www.google.fr/search?hl=fr&btnG=Recherche+Google&sa=N&cat=gwd/Top&tab=gd&q="],[2720,"Google - France - Groups","http://groups.google.fr","http://groups.google.fr/groups?hl=fr&btnG=Recherche+Google&sa=N&tab=ig&q="],[2719,"Google - France - Images","http://images.google.fr","http://images.google.fr/images?hl=fr&btnG=Recherche+Google&sa=N&tab=wi&&q="],[2722,"Google - France - News","http://news.google.fr","http://news.google.fr/news?hl=fr&btnG=Recherche+Google&sa=N&tab=dn&q="],[2707,"Google - Froogle","http://froogle.google.com/","http://froogle.google.com/froogle?btnG=Search+Froogle&q="],[2712,"Google - groups","http://groups.google.com/","http://groups.google.com/groups/search?qt_s=Search&q="],[2713,"Google - Linux","http://www.google.com/linux","http://www.google.com/linux?hl=en&lr=&btnG=Search&q="],[2716,"Google - Mac","http://www.google.com/mac.html","http://www.google.com/mac?btnG=Google+Search&q="],[2715,"Google - Microsoft","http://www.google.com/microsoft.html","http://www.google.com/microsoft?hq=microsoft&btnG=Google+Search&q="],[2708,"Google - News","http://news.google.com/","http://news.google.com/news?hl=en&ned=us&btnG=Search+News&q="],[2710,"Google - Scholar","http://scholar.google.com/","http://scholar.google.com/scholar?ie=UTF-8&oe=UTF-8&hl=en&btnG=Search&q="],[2717,"Google - UncleSam","http://www.google.com/unclesam","http://www.google.com/unclesam?hl=en&lr=&btnG=Search&q="],[2711,"Google - Video","http://video.google.com/","http://video.google.com/videosearch?q="],[2736,"Google - Canada - Dir","http://www.google.ca/dirhp?hl=en","http://www.google.ca/search?btnG=Search+Directory&hl=en&cat=gwd%2FTop&q="],[2737,"Google - India","http://www.google.co.in/","http://www.google.co.in/search?hl=en&btnG=Google+Search&meta=&q="],[2738,"Google - India - Images","http://images.google.co.in","http://images.google.co.in/images?hl=en&btnG=Google+Search&sa=N&tab=wi&q="],[2739,"Google - India - Groups","http://groups.google.co.in","http://groups.google.co.in/groups?hl=en&btnG=Google+Search&sa=N&tab=ig&q="],[2740,"Google - India - News","http://news.google.co.in","http://news.google.co.in/news?hl=en&btnG=Google+Search&sa=N&tab=gn&q="],[2741,"Google - India - Blogs","http://www.google.co.in/blogsearch?hl=en","http://www.google.co.in/blogsearch?hl=en&btnG=Search+Blogs&q="],[2742,"Google - India - Books","http://books.google.co.in/","http://books.google.co.in/books?btnG=Search+Books&as_brr=0&q="],[2743,"Google - India - Dir","http://www.google.co.in/dirhp?hl=en","http://www.google.co.in/search?btnG=Search+Directory&hl=en&cat=gwd%2FTop&q="],[2744,"Google - New Zealand","http://www.google.co.nz/","http://www.google.co.nz/search?hl=en&btnG=Google+Search&meta=&q="],[2745,"Google - New Zealand - Images","http://images.google.co.nz","http://images.google.co.nz/images?hl=en&btnG=Google+Search&sa=N&tab=wi&q="],[2746,"Google - New Zealand - Groups","http://groups.google.co.nz","http://groups.google.co.nz/groups?hl=en&btnG=Google+Search&sa=N&tab=ig&q="],[2747,"Google - New Zealand - News","http://news.google.co.nz","http://news.google.co.nz/news?hl=en&btnG=Google+Search&sa=N&tab=gn&q="],[2748,"Google - New Zealand - Blogs","http://www.google.co.nz/blogsearch?hl=en","http://www.google.co.nz/blogsearch?hl=en&btnG=Search+Blogs&q="],[2749,"Google - New Zealand - Books","http://books.google.co.nz/","http://books.google.co.nz/books?btnG=Search+Books&as_brr=0&q="],[2750,"Google - New Zealand - Dir","http://www.google.co.nz/dirhp?hl=en","http://www.google.co.nz/search?btnG=Search+Directory&hl=en&cat=gwd%2FTop&q="],[2751,"Google - UK","http://www.google.co.uk/","http://www.google.co.uk/search?hl=en&btnG=Google+Search&meta=&q="],[2752,"Google - UK - Images","http://images.google.co.uk","http://images.google.co.uk/images?hl=en&btnG=Google+Search&sa=N&tab=wi&q="],[2753,"Google - UK - Groups","http://groups.google.co.uk","http://groups.google.co.uk/groups?hl=en&btnG=Google+Search&sa=N&tab=ig&q="],[2754,"Google - Uk - News","http://news.google.co.uk","http://news.google.co.uk/news?hl=en&btnG=Google+Search&sa=N&tab=gn&q="],[2755,"Google - Uk - Froogle","http://froogle.google.co.uk","http://froogle.google.co.uk/froogle?hl=en&ie=UTF-8&sa=N&tab=nf&q="],[2756,"Google - Uk_blogs","http://www.google.co.uk/blogsearch?hl=en","http://www.google.co.uk/blogsearch?hl=en&btnG=Search+Blogs&q="],[2757,"Google - Uk - Books","http://books.google.co.uk/","http://books.google.co.uk/books?btnG=Search+Books&as_brr=0&q="],[2758,"Google - UK - Dirs","http://www.google.co.uk/dirhp?hl=en","http://www.google.co.uk/search?btnG=Search+Directory&hl=en&cat=gwd%2FTop&q="],[2759,"Google - Singapore","http://www.google.com.sg","http://www.google.com.sg/search?hl=en&q="],[2760,"Google - Singapore - Images","http://www.google.com.sg","http://images.google.com.sg/images?hl=en&ie=UTF-8&sa=N&tab=wi&q="],[2761,"Google - Singapore - groups","http://www.google.com.sg","http://groups.google.com.sg/groups?hl=en&ie=UTF-8&sa=N&tab=ig&q="],[2762,"Google - Singapore - News","http://www.google.com.sg","http://news.google.com.sg/news?hl=en&ie=UTF-8&sa=N&tab=gn&q="],[2763,"Google - Argentina","http://www.google.com.ar/","http://www.google.com.ar/search?hl=es&btnG=B%C3%BAsqueda+en+Google&meta=&q="],[2764,"Google - Argentina - Images","http://images.google.com.ar","http://images.google.com.ar/images?hl=es&btnG=B%C3%BAsqueda+en+Google&sa=N&tab=wi&q="],[2765,"Google - Argentina - Groups","http://groups.google.com.ar/grphp?hl=es&tab=dg&q=","http://groups.google.com.ar/groups?hl=es&btnG=B%C3%BAsqueda+en+Google&sa=N&tab=wg&q="],[2766,"Google - Argentina - Directories","http://www.google.com.ar/dirhp?hl=es","http://www.google.com.ar/search?hl=es&cat=gwd%2FTopbtnG=B%C3%BAsqueda&q="],[2767,"Google - Belgium","http://www.google.be","http://www.google.be/search?hl=nl&btnG=Google+zoeken&meta=&q="],[2768,"Google - Belgium - Images","http://images.google.be","http://images.google.be/images?hl=nl&btnG=Afbeeldingen+zoeken&q="],[2769,"Google - Belgium - Groups","http://groups.google.be","http://groups.google.be/groups?hl=nl&btnG=Afbeeldingen+zoeken&sa=N&tab=ig&q="],[2770,"Google - Belgium - Directories","http://www.google.be/dirhp?hl=nl","http://www.google.be/search?hl=nl&btnG=Afbeeldingen+zoeken&sa=N&cat=gwd/Top&tab=gd&q="],[2771,"Google - Belgium - News","http://news.google.be","http://news.google.be/news?hl=nl&btnG=Afbeeldingen+zoeken&sa=N&tab=dn&q="],[2772,"Google - Brazil","http://www.google.com.br/","http://www.google.com.br/search?hl=pt-BR&btnG=Pesquisa+Google&meta=&q="],[2773,"Google - Brazil - Images","http://images.google.com.br","http://images.google.com.br/images?hl=pt-BR&btnG=Pesquisar+imagens.&q="],[2774,"Google - Brazil - groups","http://groups.google.com.br","http://groups.google.com.br/groups?hl=pt-BR&btnG=Pesquisar+imagens.&sa=N&tab=ig&q="],[2775,"Google - Brazil - Directory","http://www.google.com.br/dirhp?hl=pt-BR","http://www.google.com.br/search?hl=pt-BR&btnG=Pesquisar+imagens.&sa=N&cat=gwd/Top&tab=gd&q="],[2776,"Google - Chile","http://www.google.cl","http://www.google.cl/search?btnG=B%C3%BAsqueda+de+directorio&hl=es&sa=N&tab=dw&q="],[2777,"Google - Chile - Images","http://images.google.cl","http://images.google.cl/images?hl=es&btnG=B%C3%BAsqueda+de+im%C3%A1genes&q="],[2778,"Google - Chile - Groups","http://groups.google.cl","http://groups.google.cl/grphp?hl=es&tab=ig&q="],[2779,"Google - Chile - Directories","http://www.google.cl/dirhp?hl=es","http://www.google.cl/dirhp?hl=es&tab=gd&q="],[2780,"Google - Germany","http://www.google.de/","http://www.google.de/search?hl=de&btnG=Google-Suche&meta=&q="],[2781,"Google - Germany - Images","http://images.google.de","http://images.google.de/images?hl=de&btnG=Bilder-Suche&q="],[2782,"Google - Germany - Groups","http://groups.google.de","http://groups.google.de/groups?hl=de&btnG=Bilder-Suche&sa=N&tab=ig&q="],[2783,"Google - Germany - News","http://news.google.de","http://news.google.de/news?hl=de&btnG=Bilder-Suche&sa=N&tab=gn&q="],[2784,"Google - Spain","http://www.google.es/","http://www.google.es/search?hl=es&btnG=B%C3%BAsqueda+en+Google&meta=&q="],[2785,"Google - Spain - Images","http://images.google.es","http://images.google.es/images?hl=es&btnG=B%C3%BAsqueda+en+Google&sa=N&tab=wi&q="],[2786,"Google - Spain - Groups","http://groups.google.es","http://groups.google.es/grphp?hl=es&tab=ig&q="],[2787,"Google - Spain - Directory","http://www.google.es/dirhp?hl=es","http://www.google.es/dirhp?hl=es&tab=gd&q="],[2788,"Google - Spain - News","http://news.google.es","http://news.google.es/news?hl=es&ned=es&btnG=Buscar+en+Noticias&q="],[2789,"Google - Italy","http://www.google.it/","http://www.google.it/search?hl=it&btnG=Cerca+con+Google&meta=&q="],[2790,"Google - Italy - Images","http://images.google.it","http://images.google.it/images?hl=it&btnG=Cerca+con+Google&sa=N&tab=wi&q="],[2791,"Google - Italy - Groups","http://groups.google.it","http://groups.google.it/groups?hl=it&btnG=Cerca+con+Google&sa=N&tab=ig&q="],[2792,"Google - Italy - Directory","http://www.google.it/dirhp?hl=it","http://www.google.it/search?hl=it&btnG=Cerca+con+Google&sa=N&cat=gwd/Top&tab=gd&q="],[2793,"Google - Italy - News","http://news.google.it","http://news.google.it/news?hl=it&btnG=Cerca+con+Google&sa=N&tab=dn&q="],[2794,"Google - Luxemburg","http://www.google.lu/","http://www.google.lu/search?hl=de&btnG=Google-Suche&meta=&q="],[2795,"Google - Luxemburg - Images","http://images.google.lu","http://images.google.lu/images?hl=de&btnG=Google-Suche&sa=N&tab=wi&q="],[2796,"Google - Luxemburg - Groups","http://groups.google.lu","http://groups.google.lu/groups?hl=de&btnG=Google-Suche&sa=N&tab=ig&q="],[2797,"Google - Luxemburg - Directory","http://www.google.lu/dirhp?hl=de","http://www.google.lu/search?hl=de&btnG=Google-Suche&sa=N&cat=gwd/Top&tab=gd&q="],[2798,"Google - Luxemburg - News","http://news.google.lu","http://news.google.lu/news?hl=de&btnG=Google-Suche&sa=N&tab=dn&q="],[2799,"Google - Mexico","http://www.google.com.mx/","http://www.google.com.mx/search?hl=es&btnG=B%C3%BAsqueda+de+im%C3%A1genes&q=china&sa=N&tab=iw&q="],[2800,"Google - Mexico - Images","http://images.google.com.mx","http://images.google.com.mx/images?hl=es&btnG=B%C3%BAsqueda+de+im%C3%A1genes&q="],[2801,"Google - Mexico - Groups","http://groups.google.com.mx/","http://groups.google.com.mx/groups?hl=es&btnG=B%C3%BAsqueda+de+im%C3%A1genes&sa=N&tab=ig&q="],[2802,"Google - Mexico - Directory","http://www.google.com.mx/dirhp?hl=es","http://www.google.com.mx/search?hl=es&btnG=B%C3%BAsqueda+de+im%C3%A1genes&sa=N&cat=gwd/Top&tab=gd&q="],[2803,"Google - Mexico - News","http://news.google.com.mx","http://news.google.com.mx/news?hl=es&btnG=B%C3%BAsqueda+de+im%C3%A1genes&sa=N&tab=dn&q="],[2804,"Google - Portugal","http://www.google.pt","http://www.google.pt/search?hl=pt-PT&btnG=Pesquisa+Google&meta=&q="],[2805,"Google - Portugal - Images","http://images.google.pt","http://images.google.pt/images?hl=pt-PT&btnG=Pesquisa+Google&sa=N&tab=wi&q="],[2806,"Google - Portugal - Groups","http://groups.google.pt","http://groups.google.pt/groups?hl=pt-PT&btnG=Pesquisa+Google&sa=N&tab=ig&q="],[2807,"Google - Portugal - Directory","http://www.google.pt/dirhp?hl=pt-PT","http://www.google.pt/search?hl=pt-PT&btnG=Pesquisa+Google&sa=N&cat=gwd/Top&tab=gd&q="],[2808,"Google - Portugal - News","http://news.google.pt","http://news.google.pt/news?hl=pt-PT&btnG=Pesquisa+Google&sa=N&tab=dn&q="],[2809,"Google - Switzerland","http://www.google.ch/","http://www.google.ch/search?hl=de&btnG=Google-Suche&meta=&q="],[2810,"Google - Switzerland - Images","http://images.google.ch","http://images.google.ch/images?hl=de&btnG=Google-Suche&sa=N&tab=wi&q="],[2811,"Google - Switzerland - Groups","http://groups.google.ch","http://groups.google.ch/groups?hl=de&btnG=Google-Suche&sa=N&tab=ig&q="],[2812,"Google - Switzerland - Directory","http://www.google.ch/dirhp?hl=de","http://www.google.ch/search?hl=de&btnG=Google-Suche&sa=N&cat=gwd/Top&tab=gd&q="],[2813,"Google - Switzerland - News","http://news.google.ch","http://news.google.ch/news?hl=de&btnG=Google-Suche&sa=N&tab=dn&q="],[2814,"Google - Japan","http://www.google.co.jp","http://www.google.co.jp/search?hl=ja&btnG=Google+%E6%A4%9C%E7%B4%A2&lr=&q="],[2815,"Google - Japan - Images","http://images.google.co.jp","http://images.google.co.jp/images?hl=ja&btnG=Google+%E6%A4%9C%E7%B4%A2&lr=&sa=N&tab=wi&q="],[2816,"Google - Japan - News","http://news.google.co.jp","http://news.google.co.jp/news?hl=ja&btnG=Google+%E6%A4%9C%E7%B4%A2&lr=&sa=N&tab=in&q="],[2817,"Google - Japan - Groups","http://groups.google.co.jp","http://groups.google.co.jp/groups?hl=ja&lr=&ie=UTF-8&sa=N&tab=ng&q="],[2818,"Yahoo","http://www.yahoo.com/","http://search.yahoo.com/search?p="],[2819,"Yahoo - Argentina","http://ar.yahoo.com/","http://ar.search.yahoo.com/search?p="],[2820,"Yahoo - Brazil","http://br.yahoo.com/","http://br.search.yahoo.com/search?p="],[2821,"Yahoo - Canada","http://ca.yahoo.com/","http://ca.search.yahoo.com/search?vc=&p="],[2822,"Yahoo - France","http://cf.yahoo.com/","http://cf.search.yahoo.com/search?p="],[2823,"Yahoo - Mexico","http://mx.yahoo.com/","http://mx.search.yahoo.com/search?p="],[2824,"Yahoo - China","http://chinese.yahoo.com/","http://chinese.yahoo.com/?p="],[2825,"Yahoo - Russia","http://ru.yahoo.com/","http://ru.search.yahoo.com/search?p="],[2826,"Yahoo - Spain","http://espanol.yahoo.com/","http://espanol.search.yahoo.com/search?p="],[2827,"Yahoo - Asia","http://asia.yahoo.com/","http://asia.search.yahoo.com//search?p="],[2828,"Yahoo - Australia/New Zealand","http://au.yahoo.com/","http://au.search.yahoo.com/search?p="],[2829,"Yahoo - India","http://in.yahoo.com/","http://in.search.yahoo.com/search?p="],[2830,"Yahoo - Indonesia","http://id.yahoo.com","http://id.search.yahoo.com/search?p="],[2831,"Yahoo - Malaysia","http://malaysia.yahoo.com/","http://malaysia.search.yahoo.com/search?p="],[2832,"Yahoo - Phillipines","http://ph.yahoo.com","http://ph.search.yahoo.com/search?p="],[2833,"Yahoo - Singapore","http://sg.yahoo.com/","http://sg.search.yahoo.com/search?p="]]],["Health",[[111,"AskAlice","http://www.goaskalice.columbia.edu/","http://usearch.cc.columbia.edu/goaskalice/query.html?col=cuweb&col=cuweb&qp=%2Bsite%3Awww.goaskalice.columbia.edu&qs=&qc=&pw=100%25&ws=0&la=&qm=0&st=1&nh=10&lk=1&rf=0&oq=&rq=0&qt="],[101,"Guideline","http://www.guideline.gov","http://www.guideline.gov/search/searchresults.aspx?Type=3&num=20&txtSearch="],[108,"Health","http://www.health.com/","http://www.health.com/health/search/1,23810,,00.html?query="],[110,"Healthy","http://www.healthy.net/","http://www.healthy.net/search/qryResult.asp?x=0&y=0&mh=300&sd=Hitcount&ae=1&ct=xxSearchxx&qu="],[107,"InteliHealth","http://www.intelihealth.com/","http://search.intelihealth.com/cgi-bin/avsearch.mpl?index=ICN&nxt=1&adv=t&WEB_HOME=%2FIH%2F&WEB_HOST=http%3A%2F%2Fwww.intelihealth.com&MIVAL=ihtIH&P=%7Ebr%2CIHW%7C%7Est%2C333%7C%7Er%2CWSIHW000%7C%7Eb%2C*%7C&T=408&ST=333&SearchTopics=408&Submit.x=&Submit.y"],[109,"iVillage - Women's Health Issues","http://www.ivillage.com/","http://search.ivillage.com/search/ivillage?sk=ivi&restrict=ivillage&q="],[100,"Kosmix","http://www.kosmix.com/","http://www.kosmix.com/search?t-vhealth.all.x=0&t-vhealth.all.y=0&out=health&q="],[102,"MedlinePlus","http://www.medlineplus.gov/","http://search.nlm.nih.gov/medlineplus/query?DISAMBIGUATION=true&FUNCTION=search&SERVER2=server2&SERVER1=server1&x=0&y=0&PARAMETER="],[103,"MedScape","http://www.medscape.com/","http://search.medscape.com/uslclient/searchAll.do?queryText="],[112,"netWellness - Consumer Health Info","http://www.netwellness.org/","http://www.netwellness.org/search/listall.cfm?x=0&y=0&searchstring="],[104,"New England Journal of Medicine","http://content.nejm.org/","http://content.nejm.org/cgi/search?sortspec=Score%2Bdesc%2BPUBDATE_SORTDATE%2Bdesc&andorexactfulltext=and&where=fulltext&excludeflag=TWEEK_element&hits=20&searchterm="],[105,"RxList - Internet Drug Index","http://www.rxlist.com","http://www.rxlist.com/cgi/rxlist.cgi?drug="],[106,"WebMD","http://www.webmd.com/","http://www.webmd.com/search/search_results/default.aspx?x=0&y=0&query="]]],["History",[[1801,"American History","http://americanhistory.si.edu/","http://americanhistory.si.edu.master.com/texis/master/search/?s=SS&submit.x=0&submit.y=0&q="],[1807,"British History","http://www.british-history.ac.uk/","http://www.british-history.ac.uk/results.asp?query1="],[1812,"Computer History","http://www.computerhistory.org/","http://search.computerhistory.org/search?submit.x=0&submit.y=0&site=chm_collection&client=chm_collection&proxystylesheet=chm_collection&output=xml_no_dtd&q="],[1802,"Field Museum","http://www.fieldmuseum.org/","http://search.fmnh.org/query.html?col=fm&col=store&charset=iso-8859-1&&qt=+"],[1806,"History - Journals(germany)","http://www.history-journals.de/","http://www.nfhdata.de/cgi-local/spider-hjg/search.pl?nocpp=1&Match=1&Realm=include-by-name&maxhits=10&&Terms="],[1809,"History - UK","http://www.history.uk.com/","http://www.history.uk.com/listings/index.php?x=0&y=0&search="],[1810,"History Channel","http://www.historychannel.com/","http://www.historychannel.com/thcsearch/thc_search.do?networkCode=THC&x=0&y=0&keywords="],[1804,"History Cooperative","http://www.historycooperative.org/","http://www.historycooperative.org/cgi-bin/search.cgi?searchButton.x=0&searchButton.y=0&Journal=all&form=any&Search="],[1805,"History TV","http://www.historytelevision.ca/","http://www.historytelevision.ca/search/searchResults.aspx?Query="],[1813,"History World","http://www.historyworld.net/","http://www.historyworld.net/?indexsearch="],[1808,"Literary History","http://www.literaryhistory.com/","http://search.atomz.com/search/?sp-a=sp10032f86&sp-p=all&sp-f=ISO-8859-1&sp-q="],[1803,"Picture History","http://www.picturehistory.com/","http://www.picturehistory.com/search?submit.x=0&submit.y=0&word1="],[1811,"Web Exhibits","http://webexhibits.org/","http://webexhibits.org/query.html?tem=webexhibits&col=webx&x=Search&qt=china"]]],["Lifestyle",[[1403,"Collecting Channel","http://www.collectingchannel.com/","http://www.collectingchannel.com/cdsadvsearchres.asp?class=&x=0&y=0&phrase="],[1402,"Discovery","http://dsc.discovery.com/","http://search.discovery.com/search?proxystylesheet=dscMain&site=dscContent%7CdscNews&client=dscMain&output=xml_no_dtd&filter=0&getfields=*&go.x=&go.y=&q="],[1407,"DIY","http://www.doityourself.com/","http://search.doityourself.com/texis/doityourself/search/?pr=base&prox=page&rorder=500&rprox=500&rdfreq=500&rwfreq=500&rlead=500&sufs=0&cq=&submit=Search&query="],[1408,"Extate UK property search","http://www.extate.co.uk","http://www.extate.co.uk/search?q="],[1406,"Garden","http://www.garden.org/","http://www.garden.org/search?q=search&submit.x=0&submit.y=0&submit=search&keyword="],[1401,"National Geographic","http://www.nationalgeographic.com/","http://google.nationalgeographic.com/search?site=default_collection&client=default_frontend&proxystylesheet=default_frontend&output=xml_no_dtd&oe=UTF-8&q="],[1405,"Salon","http://www.salon.com/","http://ww7.salon.com/salonsearch.php?breadth=salon&search="],[1404,"Utne","http://www.utne.com/","http://www.utne.com/cgi-bin/texis/scripts/utne-search/search.html?x=&y=&query="]]],["Music, Lyrics and Movies",[[226,"AbsLyrics","http://www.absolutelyrics.com/","http://www.absolutelyrics.com/lyrics/search/?q="],[231,"ActiveLyrics","http://www.activelyrics.com/","http://www.activelyrics.com/search/search.cgi?Submit=Search&Terms="],[217,"AstraWeb","http://lyrics.astraweb.com/","http://search.lyrics.astraweb.com/?word="],[225,"AZLyrics","http://www.azlyrics.com/","http://search.azlyrics.com/cgi-bin/azseek.cgi?q="],[232,"Buy","http://www.buy.com/","http://www.buy.com/retail/searchResults.aspx?querytype=6&loc=18250&dclksa=1&searchquery="],[234,"Buy - album","http://www.buy.com/","http://www.buy.com/retail/searchResults.aspx?queryType=music_album&skdbg=12&search_store=6&loc=18250&searchquery="],[233,"Buy - Artist","http://www.buy.com/","http://www.buy.com/retail/searchResults.aspx?queryType=music_artist&skdbg=12&search_store=6&loc=18250&searchquery="],[235,"Buy - Song","http://www.buy.com/","http://www.buy.com/retail/searchResults.aspx?queryType=music_song&skdbg=12&search_store=6&loc=18250&searchquery="],[221,"Find Me a Tune","http://findmeatune.com/","http://findmeatune.com/songsearch.php?page=1&query="],[201,"IMDB - All","http://imdb.com/","http://imdb.com/find?s=all&q="],[208,"IMDB - Bios","http://imdb.com/","http://us.imdb.com/Find?select=Bios&for="],[206,"IMDB - Characters","http://imdb.com/","http://imdb.com/Find?select=Characters&for="],[204,"IMDB - Companies","http://imdb.com/","http://imdb.com/find?s=co&q="],[205,"IMDB - Keywords","http://imdb.com/","http://imdb.com/find?s=kw&q="],[203,"IMDB - Names","http://imdb.com/","http://imdb.com/find?s=nm&q="],[209,"IMDB - Plots","http://imdb.com/","http://us.imdb.com/Find?select=Plots&for="],[207,"IMDB - Quotes","http://imdb.com/","http://us.imdb.com/Find?select=Quotes&for="],[202,"IMDB - Titles","http://imdb.com/","http://imdb.com/find?s=tt&q="],[230,"Love Lyrics","http://www.lovelyrics.com/","http://www.lovelyrics.com/lyrics_search/lyrics_search.php?Terms="],[220,"Lyrics and Songs","http://www.lyricsandsongs.com/","http://www.lyricsandsongs.com/search.php?srchdom=all&Search=Search&searchstr="],[223,"Lyrics Mansion","http://www.lyricsmansion.com","http://www.lyricsmansion.com/search.php?by=all&x=0&y=0&searchname="],[222,"Lyrics Robot","http://www.lyricsrobot.com/","http://www.lyricsrobot.com/cgi-bin/lsearch.pl?mode=name&terms="],[218,"LyricsDot","http://lyricsdot.com/","http://lyricsdot.com/fulltext.html?query="],[224,"Lyricz","http://www.lyricz.net","http://www.lyricz.net/search/search.php?type=Song&main_r2_c4=Search&page=1&max=1&search="],[211,"Metacritic - All","http://www.metacritic.com/","http://www.metacritic.com/search/process?sort=relevance&termType=all&ty=0&x=13&y=10&ts="],[215,"Metacritic - Books","http://www.metacritic.com/","http://www.metacritic.com/search/process?sort=relevance&termType=all&ty=4&x=23&y=8&ts="],[212,"Metacritic - Film&video","http://www.metacritic.com/","http://www.metacritic.com/search/process?sort=relevance&termType=all&ty=1&x=0&y=0&ts="],[214,"Metacritic - Games","http://www.metacritic.com/","http://www.metacritic.com/search/process?sort=relevance&termType=all&ty=3&x=21&y=9&ts="],[213,"Metacritic - Music","http://www.metacritic.com/","http://www.metacritic.com/search/process?sort=relevance&termType=all&ty=2&x=18&y=9&ts="],[216,"Metacritic - Tv","http://www.metacritic.com/","http://www.metacritic.com/search/process?sort=relevance&termType=all&ty=6&x=22&y=10&ts="],[210,"Netflix","http://www.netflix.com","http://www.netflix.com/Search?ff2_submit.x=0&ff2_submit.y=0&hnjr=1&v1="],[219,"Rap Lyrics","http://www.raplyricssearch.com/","http://www.raplyricssearch.com/search?q="],[228,"SearchLyrics - Artist","http://www.searchlyrics.org/","http://www.searchlyrics.org/?song=&lyric=&artist="],[227,"SearchLyrics - Lyrics","http://www.searchlyrics.org/","http://www.searchlyrics.org/?artist=&song=&lyric="],[229,"SearchLyrics - Song","http://www.searchlyrics.org/","http://www.searchlyrics.org/?lyric=&artist=&song="],[236,"Mp3 - Artist","http://www.mp3.com/","http://www.mp3.com/search.php?action=Search&stype=artist&x=0&y=0&query="],[237,"Mp3 - Album","http://www.mp3.com/","http://www.mp3.com/search.php?action=Search&stype=album&x=0&y=0&query="],[238,"Mp3 - Song","http://www.mp3.com/","http://www.mp3.com/search.php?action=Search&stype=song&x=27&y=10&query="],[239,"MusicSearcher - Artist","http://www.musicsearcher.com/","http://www.musicsearcher.com/SearchResults.aspx?src=F&s="],[240,"CMT - Artist","http://www.cmt.com/","http://www.cmt.com/search/index.jhtml?searchtype=artists&x=0&y=0&searchterm="],[241,"CMT - Shows","http://www.cmt.com/","http://www.cmt.com/search/index.jhtml?searchtype=shows&x=13&y=11&searchterm="],[242,"CMT - News","http://www.cmt.com/","http://www.cmt.com/search/index.jhtml?searchtype=news&x=0&y=0&searchterm="],[243,"ArtistDirect - Artist","http://www.artistdirect.com/","http://www.artistdirect.com/cgi-bin/gx.cgi/AppLogic+Search?select=MusicArtist&searchtype=NormalSearch&start=1&submit.x=&submit.y=&searchstr="],[244,"ArtistDirect - Album","http://www.artistdirect.com/","http://www.artistdirect.com/cgi-bin/gx.cgi/AppLogic+Search?select=MusicTitle&searchtype=NormalSearch&start=1&submit.x=&submit.y=&searchstr="],[245,"ArtistDirect - Songs","http://www.artistdirect.com/","http://www.artistdirect.com/cgi-bin/gx.cgi/AppLogic+Search?select=Songs&searchtype=NormalSearch&start=1&submit.x=&submit.y=&searchstr="],[246,"ArtistDirect - Movie Title","http://www.artistdirect.com/","http://www.artistdirect.com/cgi-bin/gx.cgi/AppLogic+Search?select=MovieTitle&searchtype=NormalSearch&start=1&submit.x=&submit.y=&searchstr="],[247,"ArtistDirect -  Movie cast/crew","http://www.artistdirect.com/","http://www.artistdirect.com/cgi-bin/gx.cgi/AppLogic+Search?select=MoviePrinc&searchtype=NormalSearch&start=1&submit.x=&submit.y=&searchstr="],[248,"MTV","http://www.mtv.com","http://www.mtv.com/search/index.jhtml?searchtype=all&searchterm="],[249,"BillBoard","http://www.billboard.com","http://www.billboard.com/bbcom/search/google/search_results_taxo.jsp?configType=BBCOM_SIMPLEDEFAULT&startDate=&endDate=false&pubList=Billboard&au=&mt=&mv=&esindct=false&kw="],[250,"VH1","http://www.vh1.com","http://www.vh1.com/search/search.jhtml?searchType=vh1&searchterm="],[251,"MusciMoz - Band or Artist","http://musicmoz.org/","http://musicmoz.org/search/mms.cgi?mode=artist&search="],[252,"MusicMoz -Title","http://musicmoz.org/","http://musicmoz.org/search/mms.cgi?mode=song&search="],[253,"MusicMoz - Album","http://musicmoz.org/","http://musicmoz.org/search/mms.cgi?mode=album&search="],[254,"MusicMoz - All","http://musicmoz.org/","http://musicmoz.org/search/search.cgi?search="],[255,"Singing Fish","http://search.singingfish.com/sfw/home.jsp","http://search.singingfish.com/sfw/search?a_submit=1&aw=1&sfor=av&dur=a&fmp3=1&freal=1&favi=1&fmpeg=1&fwin=1&fqt=1&fflash=1&call=1&cmus=1&cmov=1&crad=1&coth=1&ctv=1&cnews=1&cspt=1&cfin=1&rpp=10&persist=1&exp=0&x=0&y=0&a_eml_search=1&email_type=2&query="]]],["News",[[429,"Anorak(tabloid) - UK","http://www.anorak.co.uk/","http://www.anorak.co.uk/search_result.cfm?x=0&y=0&qu="],[416,"Arabicnews","http://www.arabicnews.com/","http://www.arabicnews.com/search/results.php?x=0&y=0&fm_query="],[413,"BBC","http://news.bbc.co.uk/","http://newssearch.bbc.co.uk/cgi-bin/search/results.pl?scope=newsifs&tab=news&edition=i&go.x=&go.y=&go=go&q="],[421,"Belfast Telegraph","http://www.belfasttelegraph.co.uk/","http://www.belfasttelegraph.co.uk/search/search.jsp?submit=Go&keywords="],[401,"CNN","http://www.cnn.com/","http://websearch.cnn.com/websearch/search?source=cnn&invocationType=search%2Ftop&sites=web&query="],[402,"CNN(site search)","http://www.cnn.com/","http://search.cnn.com/pages/search.jsp?query="],[426,"Daily Record - UK","http://www.dailyrecord.co.uk/","http://www.dailyrecord.co.uk/search.cfm?searchscope=66633&num=10&image2.x=&image2.y=&image2=Search&&query="],[414,"Dailystar - Lebanon","http://www.dailystar.com.lb/","http://www.dailystar.com.lb/results.asp?simplequery="],[410,"Debka","http://www.debka.com/","http://www.debka.com/search.php?submit.x=0&submit.y=0&words="],[411,"Debka - Headlines","http://www.debka.com/","http://www.debka.com/searchh.php?submit.x=0&submit.y=0&words="],[404,"Democracy","http://www.democracynow.org/","http://www.democracynow.org/search.pl?query="],[427,"Direct Marketing News","http://www.dmnews.com/","http://www.dmnews.com/cgi-bin/artsearchfp.cgi?search=search&searchnews="],[412,"Guardian - uk","http://www.guardian.co.uk/","http://browse.guardian.co.uk/search?search="],[428,"IC Huddersfield - UK","http://ichuddersfield.icnetwork.co.uk/","http://ichuddersfield.icnetwork.co.uk/search.cfm?searchscope=50060&gobut.x=&gobut.y=&num=10&start=0&query="],[420,"Iceland Review","http://icelandreview.com/","http://icelandreview.com/icelandreview/search/?x=0&y=0&search="],[419,"MG - South Africa","http://www.mg.co.za/","http://www.mg.co.za/mg_search_results.aspx?PrintEdition=PrintEdition&DailyNews=DailyNews&SearchSection=&StartDay=&StartMonth=&StartYear=&EndDay=&EndMonth=&EndYear=&keywords="],[425,"One World","http://www.oneworld.net/","http://www.oneworld.net/article/searchswitch/?Search.x=&Search.y=&Search=Go&SearchText="],[406,"PBS","http://www.pbs.org/newshour/newshour_index.html","http://www.pbs.org/newshour/search_results.html?submit=Go&q="],[424,"Post Zambia","http://www.postzambia.com/","http://www.postzambia.com/post-searchresults.php?x=&y=&where=articles&words="],[403,"Reuters","http://today.reuters.com/","http://today.reuters.com/news/newssearchresults.aspx?searchtype=a&srch="],[415,"SMH - Australia","http://www.smh.com.au/","http://search.smh.com.au/siteSearch.ac?ss=smh&x=&y=&q="],[417,"SpTimes - Russia","http://www.sptimes.ru/","http://www.sptimes.ru/index.php?action_id=15&method=1&in_title=1&i_number=1161&search_str="],[423,"Stuff - New Zealand","http://www.stuff.co.nz","http://www.stuff.co.nz/stuff/search/1,1441,0a6009,00.html?search_text="],[408,"Sumanasa - India","http://www.sumanasa.com/india/main.html","http://www.sumanasa.com/india-news/newsSearch.php?query="],[418,"TheAge - Australia","http://www.theage.com.au/news/","http://search.theage.com.au/siteSearch.ac?ss=age&x=&y=&q="],[409,"This Is London","http://www.thisislondon.com/","http://www.thisislondon.com/search/?ength=0&siteOr=&query="],[407,"Time","http://www.time.com/","http://www.time.com/time/searchresults?query="],[405,"USNews","http://www.usnews.com/usnews/home.htm","http://search.usnews.com/search?output=xml_no_dtd&client=default_frontend&proxystylesheet=default_frontend&filter=0&btnG.x=0&btnG.y=0&btnG=Go&q="],[422,"Washington Times","http://www.washingtontimes.com/","http://search.washtimes.com/vivisimo/cgi-bin/query-meta?input-form=simple&v%3Asources=washtimes&v%3Aproject=washtimes&x=&y=&query="]]],["Open source",[[2002,"FreshMeat","http://freshmeat.net/","http://freshmeat.net/search/?section=projects&Go.x=0&Go.y=0&q="],[2001,"SourceForge","http://sourceforge.net/","http://sourceforge.net/search/?type_of_search=soft&words="]]],["Other general",[[3030,"Accoona","http://www.accoona.com/","http://www.accoona.com/search.jsp?col=wc&charset=utf-8&la=en&qt="],[3005,"All The Web","http://www.alltheweb.com/","http://www.alltheweb.com/search?cat=web&cs=iso88591&rys=0&itag=crv&_sb_lang=pref&q="],[3002,"Altavista","http://www.altavista.com/","http://www.altavista.com/web/results?itag=ody&kgs=1&kls=0&q="],[3009,"AOL","http://search.aol.com/","http://search.aol.com/aolcom/search?invocationType=topsearchbox.webhome&query="],[3003,"Ask","http://www.ask.com/","http://www.ask.com/web?q="],[3027,"Best of the web","http://botw.org/","http://botw.org/search.aspx?q="],[3006,"Dmoz","http://www.dmoz.org/","http://search.dmoz.org/cgi-bin/search?search="],[3023,"Espotting.","http://www.espotting.com/","http://www.espotting.com/espottingresults.asp?keyword="],[3018,"Galaxy","http://www.galaxy.com/","http://www.galaxy.com/view/search.gst?rid=0&cid=0&cat=0&submit=Search&k="],[3015,"Gigablast","http://www.gigablast.com/","http://www.gigablast.com/search?k8c=769749&q="],[3004,"Hotbot","http://www.hotbot.com/","http://www.hotbot.com/default.asp?query="],[3019,"hotsheet","http://www.hotsheet.com/","http://search.findtarget.com/cb/hotsheet.php?style=hs_1&q="],[3024,"Infotigerï¿½","http://www.infotiger.com/","http://www.infotiger.com/search?qs="],[3020,"Kanoodle","http://www.kanoodle.com/","http://www.kanoodle.com/results.html?query="],[3007,"Looksmart","http://www.looksmart.com","http://www.looksmart.com/r_search?key="],[3008,"MSN Search","http://search.msn.com/","http://search.msn.com/results.aspx?FORM=QBHP&q="],[3011,"Netscape","http://www.netscape.com/","http://search.netscape.com/ns/search?x=0&y=0&st=webresults&fromPage=NSCPIndex&query="],[3025,"Openfind","http://www.openfind.com/","http://oes.openfind.com/cgi-bin/search/query.cgi?dbs=www&fdate=&fsize=&fpath=&enc=&del=0&sortby=score&n=10&q="],[3033,"Pepesearch","http://www.pepesearch.com/","http://search.pepesearch.com/search/search.asp?query="],[3026,"Prefound","http://www.prefound.com/","http://www.prefound.com/search.php?submit=Search&term="],[3013,"Scrub The Web","http://www.scrubtheweb.com/","http://www.scrubtheweb.com/cgi-bin/search.cgi?x=0&y=0&keyword="],[3017,"Search Hippo","http://www.searchhippo.com/","http://www.searchhippo.com/q.php?q="],[3022,"SearchIt","http://www.searchit.com/","http://www.searchit.com/search.php?keywords="],[3016,"SplatSearch.com","http://www.splatsearch.com/","http://www.splatsearch.com/cgi-bin/splatsearch?searchstring="],[3034,"SunSteam ","http://www.sunsteam.com/","http://www.sunsteam.com/cgi-bin/search/hyperseek.cgi?Terms="],[3031,"Surfy","http://www.surfy.com/","http://www.surfy.com/cgi-bin/search?key="],[3012,"The WWW Virtual Library","http://vlib.org/","http://vlsearch.org/VLsearch?q="],[3029,"Thisisouryear","http://www.thisisouryear.com/","http://www.thisisouryear.com/index.html?p=search&search.x=34&search.y=15&searchcountry=0&q="],[3028,"Thunderstone","http://search.thunderstone.com/","http://search.thunderstone.com/texis/websearch/?q="],[3032,"Tygo","http://www.tygo.com/","http://www.tygo.com/search/?s="],[3021,"Voila - France","http://www.voila.com/","http://search.ke.voila.fr/S/voila?lg=fr&profil=geeks&rtype=kw&bhv=web_mondial&rdata="],[3035,"Webs - Best - Directory","http://www.webs-best-directory.com/","http://www.webs-best-directory.com/search.php?query="],[3014,"What - U - Seek","http://www.whatuseek.com/","http://dir.whatuseek.com/search.go?search_type=dir&query="],[3010,"WiseNut","http://www.wisenut.com/","http://www.wisenut.com/search/query.dll?q="],[3001,"Yahooligans","http://yahooligans.yahoo.com/","http://search.yahooligans.yahoo.com/search/ligans?p="],[3036,"Link - pimp","http://www.link-pimp.com/","http://www.link-pimp.com/search.php?query="],[3037,"Wotbox","http://www.wotbox.com/","http://www.wotbox.com/search?q="],[3038,"Wotbox - Australia","http://www.wotbox.com.au/","http://www.wotbox.com.au/search?a=true&s=au&q="],[3039,"Wotbox - Spain","http://es.wotbox.com/","http://www.wotbox.com.es/search?a=true&s=es&q="],[3040,"Wotbox - New Zealand","http://www.wotbox.co.nz/","http://www.wotbox.com.nz/search?a=true&s=nz&q="],[3041,"Wotbox - Canada","http://ca.wotbox.com/","http://www.wotbox.com.ca/search?a=true&s=ca&q="],[3042,"Wotbox - France","http://fr.wotbox.com/","http://fr.wotbox.com/search?a=true&s=fr&q="],[3043,"Wotbox - UK","http://www.wotbox.co.uk/","http://www.wotbox.co.uk/search?a=true&s=uk&q="],[3044,"Wotbox - Germany","http://www.wotbox.de/","http://www.wotbox.de/search?a=true&s=de&q="],[3045,"Wotbox - Italy","http://www.wotbox.it/","http://www.wotbox.it/search?a=true&s=it&q="],[3046,"Wotbox - US","http://www.wotbox.us/","http://www.wotbox.us/search?a=true&s=us&q="],[3047,"Objects Search","http://www.objectssearch.com/","http://www.objectssearch.com/search.jsp?query="],[3048,"Haddock","http://www.haddock.org/","http://www.haddock.org/directory/search/?s="],[3049,"Azoos","http://www.azoos.com/","http://search.azoos.com/azoos/search.html?quant=9&action.x=0&action.y=0&search="],[3050,"kazazz","http://www.kazazz.com/","http://www.kazazz.com/cgi-bin/cgsearch/cgsearch.cgi?query="],[3051,"Cyber Web Search","http://www.cyberwebsearch.com/","http://www.cyberwebsearch.com/cgi-bin/search.cgi?submit=Cyber+Search&t=and&source=index&q="],[3052,"Arielis Web Directory","http://www.arielis.com/","http://www.arielis.com/search.php?terms="],[3053,"Locators Search Engine","http://www.locators.com/","http://www.locators.com/search.php?que="],[3054,"GenieKnows","http://www.genieknows.com/","http://www.genieknows.com/search.asp?keywords="],[3055,"Ajdee","http://www.ajdee.com/","http://www.ajdee.com/cgi-bin/LinksSQL/search.cgi?query=india&submit=Search%21&query="],[3056,"Smart Puppy","http://www.smartpuppy.com/","http://www.smartpuppy.com/cgi-bin/search/smartsearch.cgi?keywords="],[3057,"SolveYourProblem","http://www.solveyourproblem.com/","http://www.solveyourproblem.com/searchdsx/search.php?cb=&type=&app=hyperseek&submit=Go&Terms="],[3058,"Pocketflier","http://www.pocketflier.com/","http://www.pocketflier.com/index.htm?imageField.x=0&imageField.y=0&keywords="],[3059,"Going Into","http://www.goinginto.com/","http://www.goinginto.com/find?submit=Search&keywords="],[3060,"CategoryWEB","http://www.categoryweb.com/","http://www.categoryweb.com/search.shtml?ps=10&o=0&m=all&wm=wrd&ul=&wf=222210&keywords="],[3061,"Web's Biggest","http://www.websbiggest.com/","http://www.websbiggest.com/dir-se.cfm?Submit=WebsBiggest&keyword="],[3062,"EvoSearch","http://evosearch.com/","http://evosearch.com/cgi-bin/links/search.cgi?query="],[3063,"Hunt It Out","http://www.huntitout.com/","http://www.huntitout.com/cgi-bin/hunt.cgi?query="],[3064,"Zniff","http://www.zniff.com/","http://www.zniff.com/?scope=xx&q="],[3065,"DONE","http://www.done.com/","http://www.done.com/search.php?Submit=Done.com&keyword="],[3066,"PolyBot","http://www.polybot.com/","http://www.polybot.com/search.asp?x=0&y=0&query="],[3067,"Search the Index","http://www.searchtheindex.com/","http://www.searchtheindex.com/search-results.php?search_text="],[3068,"Jeteye","http://www.jeteye.com/","http://www.jeteye.com/?f=webjeteye&re=home&q="],[3069,"Cosmicclick","http://www.cosmicclick.com/","http://www.cosmicclick.com/Default.aspx?cmdSearch.x=0&cmdSearch.y=0&tsearch="],[3070,"TopiaWebSearch","http://www.topiawebsearch.com/","http://www.topiawebsearch.com/find.htm?query="],[3071,"Beacon Post","http://www.beaconpost.com/","http://www.beaconpost.com/index.php?ds=Search&q="],[3072,"HoundIt","http://www.houndit.com/","http://www.houndit.com/index.php?ds.x=0&ds.y=0&q="],[3073,"WizDirectory","http://www.wizdirectory.com/","http://www.wizdirectory.com/index.php?q="],[3074,"SeeDirectory","http://www.seedirectory.com/","http://www.seedirectory.com/index.php?ds=Search&q="],[3075,"Use","http://www.use.com/","http://www.use.com/search.cgi?q="],[3076,"A1DirectorySearch","http://www.a1directorysearch.com/","http://www.a1directorysearch.com/cgi-bin/dir/search.cgi?Go=Go&query="],[3077,"Lycos","http://search.lycos.com/","http://search.lycos.com/?loc=searchbox&tab=web&submit.x=0&submit.y=0&submit=image&query="],[3078,"BrowseQuick","http://www.browsequick.com/","http://www.browsequick.com/cgi-bin/smartsearch/smartsearch.cgi?search=SEARCH%21&keywords="],[3079,"SkiBop","http://www.skibop.com/","http://www.skibop.com/site_search.asp?submit=Search+%3E%3E&mode=allwords&search="],[3080,"Biznetic","http://www.biznetic.com/","http://www.biznetic.com/?query="],[3081,"DooGate","http://www.doogate.com/","http://www.doogate.com/search?q="],[3082,"WebCrawler","http://www.webcrawler.com/","http://msxml.webcrawler.com/info.wbcrwl/search/web/"],[3083,"Search","http://www.search.com/","http://www.search.com/search?tag=se.fd.box.main.search&q="],[3084,"DogPile","http://www.dogpile.com/","http://www.dogpile.com/info.dogpl/search/web/"],[3085,"Highway61","http://www.highway61.com","http://www.highway61.com:8080/Meta/HoldMeta.jsp?search.x=0&search.y=0&query="],[3086,"Mamma","http://www.mamma.com/","http://www.mamma.com/Mamma?qtype=0&Submit=%A0%A0Search%A0%A0&query="],[3087,"Web - Search","http://www.web-search.com/","http://www.web-search.com/cgi-bin/person2.cgi?link1=2&1sp-license=websearch&all="],[3088,"Isleuth","http://www.isleuth.com/","http://www.isleuth.com/wbsearch.htm?q="],[3089,"DevSearch","http://www.devsearch.com/","http://search.devx.com/search.cfm?a=1&f=1&s=0&sa.x=0&sa.y=0&q="],[3090,"A1Search","http://www.a1search.net/","http://www.a1search.net/A/?submit=Go%21&q="],[3091,"Black World","http://www.blackworld.com/","http://www.blackworld.com/cgi-bin/apexec.pl?etype=odp&template=afdtemplate.html&passurl=&submit=Search&search="],[3092,"Click 4 Choice","http://www.click4choice.com/","http://www.click4choice.com/cgi-bin/meta/metasearch.cgi?x=0&y=0&keywords="],[3093,"Complete Planet","http://aip.completeplanet.com","http://aip.completeplanet.com/aip-engines/browse?thisPage=%2Fbrowse%2Fbrowse.jsp&successPage=%2Fbrowse%2FlocalSearchResults.jsp&errorFlag=&errorMsg=&event=searchAllDocsEvent&nodePath=%2FTop%2FmyDQM%2FStructure+Reports&nodeHarvestName=&directPage=&directSe"],[3094,"Miva - US","http://www.miva.com/us/","http://www.miva.com/us/content/search/ussearch.asp?DC=25&filter_pref=0&MT="],[3095,"Improve My Search","http://www.improvemysearch.com/","http://www.improvemysearch.com/Default.aspx?ref=pragyanet.com&cmdSearch.x=0&cmdSearch.y=0&tsearch="],[3096,"Jumpcity","http://www.jumpcity.com/","http://www.jumpcity.com/jump_frames_search.shtml?"],[3097,"Search Lynx","http://www.searchlynx.com/","http://searchlynx.com/cgi-bin/search.cgi?submit=Search%21&query="],[3098,"Sight Quest","http://www.sightquest.com/","http://www.sightquest.com/search-results.htm?page=0&submit=+Search+&keywords=china"],[3099,"Infogrid","http://www.infogrid.com/","http://scan.infogrid.com/scripts/my/apexec.pl?template=search.htm&etype=web&search="],[3100,"Insider","http://www.insider.com/","http://www.insider.com/search/?x=0&y=0&t="],[3101,"Linkopedia","http://www.linkopedia.com/","http://www.linkopedia.com/cgi-bin/search.cgi?I2.x=0&I2.y=0&query="],[3102,"netndx","http://www.netndx.com/","http://www.netndx.com/SearchNews.asp?p=1&B1=Submit&q="],[3103,"Search Galore","http://www.searchgalore.com/","http://www.searchgalore.com/cgi-bin/sgsearch.cgi?submit=Search&search="],[3104,"MoJeek","http://www.mojeek.com/","http://www.mojeek.com/search?q="],[3105,"Iwon","http://home.iwon.com/","http://iwon.ask.com/web?q="],[3106,"Seekport - UK","http://www.seekport.co.uk/","http://www.seekport.co.uk/q?xml=1&dt=&cpics=&prev=0&www=on&domain=all&eulang=0&showscopes=on&query="],[3107,"SearchUk","http://www.searchuk.com/","http://www.searchuk.com/default.asp?sb=1&d=&searchButton.x=0&searchButton.y=0&search="],[3108,"Aesop","http://www.aesop.com/","http://www.aesop.com/cgi-bin/a-search.cgi?term="],[3109,"Fyber Search","http://www.fybersearch.com/","http://www.fybersearch.com/search.php?q="],[3110,"Factbites","http://www.factbites.com","http://www.factbites.com/search.php?kp="],[3111,"Amfibi","http://www.amfibi.com/","http://www.amfibi.com/search?query="],[3112,"DumbFind","http://www.dumbfind.com/","http://www.dumbfind.com/search.jsp?search="],[3113,"Entireweb","http://www.entireweb.com/","http://www.entireweb.com/query?q="],[3114,"PipeLine Search","http://www.pipeline-search.com/","http://www.pipeline-search.com/results.jsp?hitsPerPage=10&searchButton=Search&query="],[3115,"Three Mice","http://www.threemice.com/","http://www.threemice.com/Search.aspx?format=B&question="],[3116,"Ulysseek","http://www.ulysseek.com/","http://www.ulysseek.com/search?query="],[3117,"IXQuick","http://www.ixquick.com/","http://us.ixquick.com/do/metasearch.pl?cat=web&cmd=process_search&language=english&query="],[3118,"Vivisimo","http://vivisimo.com/","http://vivisimo.com/search?tb=homepage&v%3Asources=Web&query="],[3119,"Clusty","http://clusty.com/","http://clusty.com/search?query="],[3120,"InfonetWare","http://www.infonetware.com/","http://www.infonetware.com/rtbin/psearch.pl?power+search.x=0&power+search.y=0&power+search=Search&ndocs=700&timeout=8&base=infonetware&xbase=inw&html_base=inw&page=infonetware.html&izgui=nav_frame&pref=std&query="],[3121,"Ithaki","http://www.ithaki.net/","http://www.ithaki.net/metasearch.cgi?where=web&submit=Search%21&query="],[3122,"KillerInfo","http://www.killerinfo.com/","http://search.killerinfo.com/search/?v%3Asources=SearchUS&Image1.x=0&Image1.y=0&query="],[3123,"MetaEureka","http://www.metaeureka.com/","http://www.metaeureka.com/cgi-bin/nph-metaeureka.pl?where=worldweb&submit.x=0&submit.y=0&submit=Search&terms="],[3124,"MetaStrike","http://www.metastrike.com/","http://www.metastrike.com/Top/web/"],[3125,"Myriad","http://www.myriadsearch.com/","http://www.myriadsearch.com/myriad.php?query="],[3126,"Onimeta","http://www.onimeta.com/","http://www.onimeta.com/search/search.cgi?query="],[3127,"Search66","http://search66.com/","http://search66.com/search.php?search.x=0&search.y=0&c=w&q="],[3128,"Searchy","http://www.searchy.com/","http://www.searchy.com/index.html?search_term="],[3129,"Seekz","http://www.seekz.com/","http://www.seekz.com/search/?page=1&amount=10&q="],[3130,"Sitehunting","http://www.sitehunting.com/","http://www.sitehunting.com/cgi-bin/search.cgi?msmod=Web&submit=Search&keywords="],[3131,"Surfwax","http://www.surfwax.com/","http://www.surfwax.com/servlet/com.surfwax.FrontEnd.home?cmd=frames&x=0&y=0&max=100&sort=relevance&search="],[3132,"Ubbo","http://www.ubbo.com/","http://www.ubbo.com/results.php?x=0&y=0&q="],[3133,"WindSeek","http://www.windseek.com/","http://www.windseek.com/query?se=w&submit.x=0&submit.y=0&q="],[3134,"Yocci - English","http://www.yooci.com/","http://www.yooci.com/cgi-bin/search.pl?lang=en&submit=Search&query="],[3135,"Yocci - Any","http://www.yooci.com/","http://www.yooci.com/cgi-bin/search.pl?lang=any&submit=Search&query="],[3136,"Yocci - German","http://www.yooci.com/","http://www.yooci.com/cgi-bin/search.pl?lang=de&submit=Search&query="],[3137,"Yocci - Italian","http://www.yooci.com/","http://www.yooci.com/cgi-bin/search.pl?lang=it&submit=Search&query="],[3138,"Yocci - French","http://www.yooci.com/","http://www.yooci.com/cgi-bin/search.pl?lang=fr&submit=Search&query="],[3139,"Yocci - Spanish","http://www.yooci.com/","http://www.yooci.com/cgi-bin/search.pl?lang=es&submit=Search&query="],[3140,"Yocci - Portuguese","http://www.yooci.com/","http://www.yooci.com/cgi-bin/search.pl?lang=pt&submit=Search&query="],[3141,"Yocci - Danish","http://www.yooci.com/","http://www.yooci.com/cgi-bin/search.pl?lang=da&submit=Search&query="],[3142,"Yocci - Norwegian","http://www.yooci.com/"," http://www.yooci.com/cgi-bin/search.pl?lang=no&submit=Search&query="],[3143,"Yocci - Swiss","http://www.yooci.com/","http://www.yooci.com/cgi-bin/search.pl?lang=sv&submit=Search&query="],[3144,"Yocci - Finnish","http://www.yooci.com/","http://www.yooci.com/cgi-bin/search.pl?lang=fi&submit=Search&query="],[3145,"Yocci - Dutch","http://www.yooci.com/","http://www.yooci.com/cgi-bin/search.pl?lang=nl&submit=Search&query="],[3146,"Zworks","http://www.zworks.com/","http://www.zworks.com/srch/srch.cgi?mod=modules&flt=yes&pwrs=pwrsrch2.html&tmpl=templ2a.html&sim_srch=0&what="],[3147,"UkPLus","http://www.ukplus.co.uk/","http://www.ukplus.co.uk/results.asp?key2=&x=0&y=0&key="],[3148,"GoGuides","http://www.goguides.org/","http://www.goguides.org/DIR/search.php?q="],[3149,"Common Content","http://www.commoncontent.org/","http://www.commoncontent.org/search/?x=0&y=0&terms="],[3150,"DateDex","http://www.datedex.com/","http://www.datedex.com/results.asp?go=Search&query="],[3151,"MassiveLinks","http://www.massivelinks.com/","http://www.massivelinks.com/cgi-bin/search2.cgi?cat_search=&keywords="],[3152,"Pile It On","http://www.pileiton.com/","http://www.pileiton.com/dispresults.asp?Submit=Search&query="],[3153,"1st - Spot","http://1st-spot.net/","http://1st-spot.net/cgi-sys/entropysearch.cgi?user=stspot&basehref=http%3A%2F%2F1st-spot.net&template=default&query="],[3154,"Uncover The Net","http://www.uncoverthenet.com/","http://www.uncoverthenet.com/search/?q="],[3155,"Visiobrand","http://www.visiobrand.com/","http://www.visiobrand.com/index.jsp?catID=0&rub=SITE&byAll=1&searchpage=0&pagerstart=0&searchwords="],[3156,"Search Monster","http://www.searchmonster.org","http://www.searchmonster.org/index.php?srch=1&phr="],[3157,"Search Engine Links - UK","http://www.searchenginelinks.co.uk/","http://www.searchenginelinks.co.uk/modules.php?name=Web_Links&l_op=search&query="],[3158,"Exalead","http://www.exalead.com/","http://www.exalead.com/search/C=0/?U=&C=0&2q=&htarget.x=0&htarget.y=0&htarget=Ok&q=singapore"],[3159,"Accumo","http://www.accumo.com","http://www.accumo.com/search?target=web&category=0&query="],[3160,"IceRocket","http://www.icerocket.com ","http://blogs.icerocket.com/search?q="],[3161,"All In One","http://www.searchallinone.com//","http://all4one.searchallinone.com/cgi-bin/cgi/nph-x.cgi?submit=Search&select=all&safe=1&per_page=10&timeout=10&depth=1&category=web&modules=aol.pm&modules=alltheweb.pm&modules=yahoo.pm&qry_str="],[3162,"Cacti","http://www.cactisearch.com/","http://www.cactisearch.com/search.php?num_results=10&results_per=1&google=0&google_mode=&yahoo=0&yahoo_mode=&msn=0&msn_mode=&jeeves=0&jeeves_mode=&query="],[3163,"Chubba","http://www.chubba.com/","http://chubba2.whatuseek.com/cgi-bin/texis/scripts/search4?group=1&weather_on=0&B1=Search&source=engine&arg="],[3164,"DonBusca","http://www.donbusca.com/ ","http://www.donbusca.com/cgi-bin/nph-donbusca.pl?where=worldweb&submit=Search&terms="],[3165,"iBoogie","http://www.iboogie.com","http://www.iboogie.com/searchtree.asp?name_tab=0&name_do_search=1&name_query="],[3166,"Zapmeta","http://www.zapmeta.com/","http://www.zapmeta.com/search/meta/zapfor.pl?B3=%A0Search%A0&search=web&match=all&query="],[3167,"Mirago - UK","http://www.mirago.co.uk/","http://www.mirago.co.uk/scripts/qhandler.aspx?x=0&y=0&qry="],[3168,"Search Found","http://www.searchfound.com/","http://www.searchfound.com/index.php?domain_name=SEARCHFOUND.COM&sumbit.x=&sumbit.y=&sx="],[3169,"Snap","http://www.snap.com/","http://www.snap.com/us/userp.php?query="],[3170,"Femail - Australia","http://www.femail.com.au/","http://www.femail.com.au/search.html?o=&s=&x=9&y=12&q="],[3171,"Admcity","http://www.admcity.com/","http://www.adfree4u.com/search/search.cgi?keywords="],[3172,"Ananzi","http://www.ananzi.co.za/","http://www.ananzi.co.za/cgi-bin/ananzi/ananzi-apisearch2.pl?page=1&col=saweb5&qt="],[3173,"Axis Online","http://www.axis-online.net/","http://www.axis-online.net/crawler/search.cgi?Match=1&p%3Alang=english&nocpp=1&maxhits=10&Realm=All&x=36&y=7&Terms="],[3174,"BataViaNet","http://www.batavianet.com/","http://www.batavianet.com/Content/Superlink_Search.asp?SearchMethod=keyword&SearchBool=OR&Button_Search.x=0&Button_Search.y=0&SearchKey="],[3175,"EuroSeek","http://euroseek.net/","http://euroseek.com/system/search.cgi?mode=internet&language=en&string="],[3176,"FindLink - Germany","http://www.findlink.gr/","http://www.findlink.gr/searching.asp?B1=Search&logic=any&key=china"],[3177,"Indocenter - Indonesia","http://www.indocenter.co.id/","http://www.indocenter.co.id/search.php?send=Search&q=   [indoensia]"],[3178,"Earthlink","http://www.earthlink.net/","http://search.earthlink.net/search?area=earthlink-ws&channel=www&q="],[3179,"Khoj - India","http://www.khoj.com/ ","http://search.sify.com/fsindex.php?keyword="],[3180,"Nepal Search","http://www.nepalsearch.com/","http://www.nepalsearch.com/index.php?action=search&s="],[3181,"NetSearch","http://netsearch.org/","http://www.netsearch.org/ns/q/search.cgi?per_page=10&qry_str="],[3182,"Search Europe","http://www.searcheurope.com/","http://www.searcheurope.com/cgi-bin/links/search.cgi?mh=25&bool=and&d=1&From=Search&type=keyword&query="],[3183,"Search New Zealand","http://www.searchnz.co.nz/","http://www.searchnz.co.nz/search.aspx?search.x=0&search.y=0&q="],[3184,"Search CH - Switzerland","http://www.search.ch/","http://www.search.ch/search.html?loc=ch&q="],[3185,"Surf Gopher","http://www.surfgopher.com/","http://www.surfgopher.com/search.cgi?query="],[3186,"WebTrawler","http://www.webtrawler.com/","http://www.webtrawler.com/cgi-bin/websearch/index.cgi?search="],[3187,"VirtualFlagStaff","http://virtualflagstaff.com/","http://www.searchwords.com/find/search.cgi?d=1&x=0&y=0&query="],[3188,"Anzwers - Australia","http://www.anzwers.com.au/ ","http://www.anzwers.com.au/search?x=0&y=0&cc=au&search="],[3189,"Anzwers - New Zealand","http://www.anzwers.com.au/ ","http://www.anzwers.com.au/search?cc=nz&search="],[3190,"Anzwers","http://www.anzwers.com.au/ ","http://www.anzwers.com.au/search?cc=com&search="],[3191,"MySearch7","http://www.mysearch7.com/","http://www.mysearch7.com/index.php?page=search&search=Go&q="],[3192,"1do3","http://www.1do3.com/","http://www.1do3.com/uk/page.php?query="],[3193,"Allestra","http://www.allestra.com/","http://www.allestra.com/search/?q="],[3194,"Answersleuth","http://www.answersleuth.org/","http://www.answersleuth.org/result.php?host=www.answersleuth.org&search=Y&Submit=Search&original=&Keywords="],[3195,"Suite101","http://www.suite101.com/","http://www.suite101.com/query.cfm?col=t+a&qc=t+a+l+d+h&Go.x=0&Go.y=0&qt="],[3196,"Uproar","http://www.uproar.com/","http://up.qsrch.com/dpark?prt=up02&s="],[3197,"Abrexa-UK","http://www.abrexa.co.uk/","http://www.abrexa.co.uk/search.php?submit=Search&type=uk&q="]]],["Pets",[[2202,"Care 4 Pets","http://www.avma.org/care4pets/","http://search.avma.org/search?&btnG=Search+AVMA&site=avma_index&client=avma_index&proxystylesheet=avma_index&output=xml_no_dtd&q="],[2203,"Central Pets","http://centralpets.com","http://centralpets.com/pages/search.php?cmd=Search%21&m=all&q=dogs"],[2201,"Dog","http://www.dog.com/","http://www.dog.com/search.asp?searchcat=&x=0&y=0&SKW="],[2205,"Pets - Canada","http://www.pets.ca/","http://www.pets.ca/search/?q="],[2204,"Pets at Home","http://www.petsathome.co.uk/","http://www.petsathome.com/bin/venda?ex=co_wizr-xapian&threshold=30&bsref=petsathome&searchfld=&searchpage=&searchinvt=1&searchstry=&searchlike=1&itemsperpage=4&ARG_DEFAULTOP=AND&x=0&y=0&searchex="]]],["Photography",[[1511,"Androsace - Wildflower","http://androsace.com/","http://androsace.com/?sticky=Search&Search="],[1513,"Complete Digital Photography","http://www.completedigitalphotography.com/","http://www.completedigitalphotography.com/index.php?submit=Search&s="],[1501,"Digital Photography Review","http://www.dpreview.com/","http://www.dpreview.com/news/search.asp?sort=&allwords=on&detail=on&query="],[1512,"EPhotozine","http://www.ephotozine.com/","http://search.ephotozine.com/?search=Go&area=forum&query="],[1503,"MountainLight Photography","http://www.mountainlight.com/","http://mlstock.com/fs.shtml?bin/Search2?Keywords="],[1506,"Photo Inf","http://photoinf.com/","http://photoinf.com/search.php?BSearch.x=0&BSearch.y=0&BSearch=Search&Query="],[1510,"Photo Secrets","http://www.photosecrets.com/","http://www.photosecrets.com/cgi-bin/search_form.cgi?KEYWORDS="],[1502,"Photography Review","http://www.photographyreview.com/","http://www.photographyreview.com/searchresultscrx.aspx?searchterm="],[1508,"Pinhole Photography","http://www.pinhole.com/","http://www.pinhole.com/index.php?pid=search&text="],[1505,"Shutter Bug","http://www.shutterbug.com/","http://www.shutterbug.com/searchresults/index.html?stype=X&x=0&y=0&terms="],[1507,"Shutter Point","http://www.shutterpoint.com/","http://www.shutterpoint.com/Photos-Search.cfm?Submit=Find+Photos&q="],[1504,"Terra Galleria","http://www.terragalleria.com","http://www.terragalleria.com/scripts/dbsearch.php?row=4&col=5&s=1&d=tiny&t=allp1&submit.x=0&submit.y=0&q="],[1509,"WildLife Photo","http://www.wildlifephoto.net/","http://www.wildlifephoto.net/search/search.php?submit=Go&zoom_query="]]],["Reference, Research, Academic",[[1334,"Aboriginal Connections","http://directory.aboriginalconnections.com/","http://www.aboriginalconnections.com/cgi-bin/search.cgi?query="],[1320,"About","http://www.about.com/","http://search.about.com/fullsearch.htm?terms="],[1330,"Agric","http://www.agnic.org/","http://www.agnic.org/Search/?searchtype=Resource&submitted=1&format=brief&go=Search&searchterms="],[1333,"Anthri - Tech","http://vlib.anthrotech.com/","http://vlib.anthrotech.com/bin/search.cgi?bool=OR&format=full&catid=&query="],[1335,"Archiseek","http://www.archiseek.com/","http://www.archiseek.com/search/search.php?template_demo=&site=&path=&result_page=search.php&search.x=0&search.y=0&query_string="],[1317,"Brainboost","http://www.brainboost.com/","http://www.brainboost.com/search.asp?Submit=Ask&Q="],[1324,"Citeseer - MIT","http://citeseer.csail.mit.edu/","http://citeseer.csail.mit.edu/cs?submit=Search+Documents&cs=1&q="],[1325,"Citeseer - NUS","http://citeseer.comp.nus.edu.sg/cs","http://citeseer.comp.nus.edu.sg/cs?submit=Search+Documents&cs=1&q="],[1323,"Citeseer - PSU","http://citeseer.ist.psu.edu/","http://citeseer.ist.psu.edu/cis?submit=Search+Documents&cs=1&q="],[1329,"Columbia Encyclopedia","http://www.bartleby.com/65/","http://www.bartleby.com/cgi-bin/texis/webinator/sitesearch?filter=col65&x=9&y=15&SSub=Search&query="],[1313,"Encyclopedia","http://www.encyclopedia.com/","http://www.encyclopedia.com/SearchResults.aspx?Q="],[1328,"Encyclopedia of Astronomy and Astrophysics","http://eaa.iop.org/index.cfm?action=home","http://eaa.iop.org/index.cfm?action=search.home&quick=1&field1=&newsearch=1&coll=ft&query1="],[1331,"Food &Agriculture Organization","http://www.fao.org/","http://search.fao.org/opensearch?Search=Search&lang=en&query="],[1322,"High Beam","http://www.highbeam.com/","http://www.highbeam.com/library/search.asp?FN=HP&ctrlInfo=Round19%3AMode19a%3AHP%3ASearch&submit.x=0&submit.y=0&submit=submit&search_documents=on&search_images=on&search_reference=on&q="],[1332,"History & Politics","http://www.hpol.org/","http://www.hpol.org/master.php?t=search&type=any&Submit=Submit&value="],[1326,"InfoPlease","http://www.infoplease.com/","http://www.infoplease.com/search?fr=iptn&in=all&x=16&y=12&query="],[1327,"Internet Public Library","http://www.ipl.org","http://www.ipl.org/div/searchresults/?where=all&words="],[1319,"Librarians' Internet Index (LII)","http://www.lii.org/","http://www.lii.org/pub/htdocs/search?action=show;searchtype=keywords;search="],[1315,"Library of Congress","http://www.loc.gov/index.html","http://search.loc.gov:8765/query.html?col=loc&sc=0&ws=0&la=en&qm=0&st=1&nh=10&lk=1&rf=0&oq=&si=0&rq=0&qc=&search_button=SEARCH&qt="],[1311,"Merriam - Webster","http://m-w.com/","http://m-w.com/dictionary/"],[1312,"Merriam - Webster - Thesaurus","http://m-w.com/","http://m-w.com/cgi-bin/thesaurus?book=Thesaurus&x=0&y=0&va="],[1314,"Open Site","http://open-site.org/","http://open-site.org/search.cgi?search="],[1321,"PharmWeb (World Wide List of Pharmacy Schools)","http://www.pharmweb.net/cgi-bin/pharmwebs1","http://www.pharmweb.net/cgi-bin/pharmwebs1?"],[1318,"Re - Quest","http://www.re-quest.net/","http://www.re-quest.net/cgi-bin/search?factor=all&view=normal&query="],[1316,"SMEALSearchï¿½( Academic Business Literature)","http://smealsearch1.psu.edu/","http://smealsearch1.psu.edu/cs?submit=Search+Documents&q="],[1309,"Wikipedia - Dutch","http://nl.wikipedia.org/","http://nl.wikipedia.org/wiki/Special:Search?go=Go&search="],[1301,"Wikipedia - English","http://en.wikipedia.org","http://en.wikipedia.org/wiki/Special:Search?go=Go&search="],[1304,"Wikipedia - Espanol","http://es.wikipedia.org/","http://es.wikipedia.org/wiki/Special:Search?go=Go&search="],[1308,"Wikipedia - France","http://fr.wikipedia.org/","http://fr.wikipedia.org/wiki/Special:Search?go=Go&search="],[1307,"Wikipedia - German","http://de.wikipedia.org/","http://de.wikipedia.org/wiki/Special:Search?go=Go&search="],[1303,"Wikipedia - Italian","http://it.wikipedia.org/","http://it.wikipedia.org/wiki/Special:Search?go=Go&search="],[1310,"Wikipedia - Japanese","http://ja.wikipedia.org/","http://ja.wikipedia.org/wiki/Special:Search?go=Go&search="],[1306,"Wikipedia - Polish","http://pl.wikipedia.org/","http://pl.wikipedia.org/wiki/Special:Search?go=Go&search="],[1302,"Wikipedia - Portuguese","http://pt.wikipedia.org/","http://pt.wikipedia.org/wiki/Special:Search?go=Go&search="],[1305,"Wikipedia - Svenska","http://sv.wikipedia.org/","http://sv.wikipedia.org/wiki/Special:Search?go=Go&search="],[1336,"Astroweb","http://www.stsci.edu/astroweb/astronomy.html","http://www.stsci.edu/cgi-bin/search-master?isindex="],[1337,"Biocrawler","http://www.biocrawler.com/","http://www.biocrawler.com/search.jsp?query="],[1338,"BitPipe","http://www.bitpipe.com/","http://www.bitpipe.com/data/search?site=bp&qp=site_abbrev%3Abp&cp=bpres&cr=bpres&qg=VENDOR&st=1&Search2.x=0&Search2.y=0&qt="],[1339,"Knowledge Base","http://kb.iu.edu/","http://kb.iu.edu/index.cgi?Search=Search&maxdocs=15&search="],[1340,"Trade Pub","http://www.tradepub.com","http://www.tradepub.com/c/search.mpl?x=0&y=0&keyword="],[1341,"Biochemia","http://biochemie.net/","http://biochemie.net/cgi-bin/ilink/ilink.cgi?action=Search&Terms="]]],["Science",[[712,"Chemie - germany","http://www.chemie.de/","http://www.chemie.de/search/index.php3?language=e&domain=chem&doanno=0&benchmark=0&scheme=default&searchbutton=%24msgs%5B%40key%3D%27suchen%27%5D&selmedia%5Ball%5D=1&sellang=&selrank=auto&vkid=1&pattern="],[706,"EarthSky","http://www.earthsky.com","http://www.earthsky.org/search/?searchgo=search&searchval="],[714,"Economic Papers","http://econpapers.repec.org/","http://econpapers.repec.org/scripts/search.asp?ft="],[711,"EEVL - UK","http://www.eevl.ac.uk/eese/","http://www.eevl.ac.uk/eese/eese-eevl.html?tab=search&eevl_sect=0&exact=on&submit=Search&method=All&searchst="],[713,"Enviro Link","http://www.envirolink.org/","http://www.envirolink.org/newsearch.html?x=0&y=0&searchfor="],[707,"Eureka","http://www.eurekalert.org","http://search.eurekalert.org/e3/query.html?col=ev3rel&qc=ev3rel&x=0&y=0&qt="],[702,"Hubble Site","http://hubblesite.org/newscenter/","http://hubblesite.org/cgi-bin/search?Submit=Go&method=and&format=normal&sort=score&config=hubble&restrict=&exclude=&words="],[709,"NASA","http://www.nasa.gov/home/","http://search.nasa.gov/nasasearch/search/search.jsp?nasaInclude="],[704,"Nature","http://www.nature.com/","http://search.nature.com/search/?sp-x-9=cat&sp-s=date&submit=go&sp_a=sp1001702d&sp_sfvl_field=subject%7Cujournal&sp_t=results&sp_x_1=ujournal&sp_p_1=phrase&sp-q="],[710,"NSF","http://www.nsf.gov/","http://search.nsf.gov/search?access=p&output=xml_no_dtd&sort=date%3AD%3AL%3Ad1&ie=UTF-8&btnG=Google+Search&client=NSF&oe=UTF-8&proxystylesheet=NSF2&site=NSF&q="],[701,"Quake (Earthquake Related Search)","http://quake.wr.usgs.gov","http://search.atomz.com/search/?submit=Search&sp-a=000802c0-sp00000001&sp-q="],[705,"Science Daily","http://www.sciencedaily.com/","http://www.sciencedaily.com/search/?keyword="],[708,"Science Frontiers","http://www.science-frontiers.com/sfonline.htm","http://www.science-frontiers.com/online/search.cgi?zoom_per_page=50&zoom_and=1&zoom_sort=0&zoom_query="],[715,"Science Seek","http://www.sciseek.com/","http://www.sciseek.com/search/search.php?Terms="],[703,"Scientific American","http://www.sciam.com/","http://www.sciam.com/search/index.cfm?QT=Q&SCC=Q&x=0&y=0&Q="]]],["Software",[[921,"Astalavista","http://astalavista.box.sk","http://astalavista.box.sk/cgi-bin/robot?submit=+search+&srch="],[926,"AVP","http://www.avp.ch/avpve/","http://www.avp.ch/cgi-bin/searchx.plx?Range=All&Format=Standard&Terms=   [note the search seems to bd down butthe site is up]"],[924,"Computer Associates","http://www3.ca.com/securityadvisor/virusinfo/browse.aspx","http://search.ca.com/search/ca?col=&qp=&qs=&qc=&pw=730&ws=0&qm=0&st=1&nh=10&lk=1&rf=0&rq=0&image1.x=0&image1.y=0&qt="],[905,"Download","http://www.download.com","http://www.download.com/3120-20_4-0.html?tg=dl-20&tag=srch&qt="],[906,"Download - Games","http://www.download.com","http://www.download.com/3120-20_4-0.html?tg=dl-2012&tag=srch&qt="],[907,"Download - Video","http://www.download.com","http://video.download.com/3804-1_53-0.html?tag=srch&qt="],[908,"Download - Windows","http://www.download.com","http://www.download.com/3120-20_4-0.html?tg=dl-2001&tag=srch&qt="],[919,"Mac On Call","http://www.maconcall.com","http://www.maconcall.com/maclink/search.cgi?query="],[925,"Mc Afee","http://mcafee.com/us/","http://search.mcafee.com/search?getfields=description&site=AllTopics&output=xml_no_dtd&proxystylesheet=default_frontend&client=default_frontend&q="],[928,"Mozilla - Extensions","https://addons.mozilla.org","https://addons.mozilla.org/search.php?app=mozilla&q="],[927,"Mozilla - Firefox","https://addons.mozilla.org","https://addons.mozilla.org/search.php?app=firefox&q="],[917,"NeoSeeker","http://www.neoseeker.com/","http://www.neoseeker.com/seeker.php?searchgroup=all&x=0&y=0&keywords="],[918,"NewOrder","http://neworder.box.sk/","http://neworder.box.sk/search.php?srch="],[920,"Review Booth","http://www.reviewbooth.com/","http://www.reviewbooth.com/index.php?s="],[915,"Script Search"," http://www.scriptsearch.com/","http://www.scriptsearch.com/cgi-bin/search.cgi?searchfrom=left&submit=Go%21&q="],[909,"Shareware","http://shareware.search.com","http://shareware.search.com/search?cat=247&tag=ex.sa.fd.srch.sa_all&q="],[912,"Shareware - Linux","http://shareware.search.com","http://shareware.search.com/search?cat=93&tag=ex.sa.fd.srch.sa_lx&q="],[911,"Shareware - Mac","http://shareware.search.com","http://shareware.search.com/search?cat=238&tag=ex.sa.fd.srch.sa_mac&q="],[913,"Shareware - Palm","http://shareware.search.com","http://shareware.search.com/search?cat=239&tag=ex.sa.fd.srch.sa_palm&q="],[914,"Shareware - WinCE","http://shareware.search.com","http://shareware.search.com/search?cat=240&tag=ex.sa.fd.srch.sa_ce&q="],[910,"Shareware - Windows","http://shareware.search.com","http://shareware.search.com/search?cat=237&tag=ex.sa.fd.srch.sa_win&q="],[923,"Symantec","http://www.symantec.com/","http://search.symantec.com/custom/update/query.html?filter=all&nh=10&hitsceil=100&st=1&context=ent&x=0&y=0&qt="],[904,"TUCOWS - All","http://www.tucows.com/","http://www.tucows.com/search?search_scope=*&search_adv=0&search_size=&search_size_multi=b&search_terms="],[902,"TUCOWS - Linux","http://www.tucows.com/","http://www.tucows.com/search?search_scope=lin&search_adv=0&search_size=&search_size_multi=b&search_terms="],[903,"TUCOWS - Mac","http://www.tucows.com/","http://www.tucows.com/search?search_scope=mac&search_adv=0&search_size=&search_size_multi=b&search_terms="],[901,"TUCOWS - Windows","http://www.tucows.com/","http://www.tucows.com/search?&search_scope=win&search_adv=0&search_size=&search_size_multi=b&search_terms="],[922,"Windows Security","http://www.windowsecurity.com","http://www.windowsecurity.com/pages/search.asp?query="],[916,"ZDNet","http://www.zdnet.com/","http://downloads-zdnet.com.com/3120-20-0.html?&tg=dl-2001&qt="]]],["Sports",[[602,"ESPN","http://espn.go.com/","http://search.espn.go.com/keyword/search?Find.x=&Find.y=&searchString="],[608,"Fox Sports","http://msn.foxsports.com/","http://msn.foxsports.com/search?sp-q="],[607,"Mikasa","http://www.mikasasports.com","http://www.mikasasports.com/search/search.php?q="],[610,"Nascar","http://www.nascar.com/","http://search.nascar.com/pages/search/advanced.jsp?Coll=nascar_xml&QuerySubmit=true&Page=1&LastQuery=&x=0&y=0&QueryText="],[609,"National Hockey League","http://www.nhl.com/","http://search.nhl.com/search?client=NHLSearch&output=xml_no_dtd&proxystylesheet=NHLSearch&site=NHLSearch&btnG.x=0&btnG.y=0&btnG=Search+NHL.com&q="],[603,"NBA","http://www.nba.com","http://search.nba.com/search/promosearch?sp_a=sp10033e5e&sp_f=ISO-8859-1&sp-t=nba&sp_advanced=&x=0&y=0&sp_q="],[606,"Outdoor Channel","http://www.outdoorchannel.com","http://www.outdoorchannel.com/search.cfm?zoom_per_page=3&zoom_and=0&zoom_sort=0&site=1&zoom_query="],[604,"Sports Critic","http://www.thesportscritics.com/","http://www.thesportscritics.com/keywordsearch.asp?search=1&x=0&y=0&keyword="],[601,"Sports IIlustrated","http://sportsillustrated.cnn.com/","http://search.sportsillustrated.cnn.com/pages/search.jsp?query="],[605,"TSN - Canada","http://www.tsn.ca/","http://www.tsn.ca/search/?target="]]],["Technology",[[812,"Deal Link","http://dealink.com/","http://dealink.com/search.php?btnOEM.x=0&btnOEM.y=0&btnOEM=Go&mfgList=&s="],[810,"Deal Mac","http://dealmac.com/","http://dealmac.com/search.html?x=0&y=0&search="],[811,"Deal News","http://dealnews.com/","http://dealnews.com/search.html?x=12&y=11&search="],[803,"Eweek","http://www.eweek.com/","http://www.eweek.com/search_results/0%2C1208%2C%2C00.asp?filterapp=&site=7&qry="],[808,"InfoWorld","http://www.infoworld.com/","http://search.infoworld.com/query.html?rq=0&col=ifwspid&charset=iso-8859-1&htvalue%3D%220%22=&qp=&qs=&qcvalue%3D%22%22=&pw=100%25&ws=0&la=en&qm=0&st=1&nh=10&lk=1&rf=0&oq=&rq=0&si=1&qt="],[807,"Linux Today","http://www.linuxtoday.com/","http://www.linuxtoday.com/search.php3?Go.x=0&Go.y=0&Go=Go&query="],[813,"Mac Fixit","http://www.macfixit.com/","http://www.macfixit.com/search.php?mode=search&type=stories&keyType=all&platform=Mac+OSX&query="],[805,"News","http://news.com.com/","http://search.news.com/search?q="],[802,"PC Mag","http://www.pcmag.com/","http://www.pcmag.com/search_results/0%2C1208%2C%2C00.asp?filterapp=&site=3&qry="],[801,"PC World","http://www.pcworld.com/pcwtoday/","http://search.pcworld.com/query.html?col=all&inthe=315360000&ws=0&nh=10&rf=0&lk=1&qm=0&st=1&rq=0&ql=a&si=0&dt=an&ht=0&la=en&fl0=&op0=&qt="],[809,"Popular Mechanics","http://www.popularmechanics.com/technology/","http://www.popularmechanics.com/search?x=0&y=0&searchKeywords="],[814,"SemiSeek (Semiconductor related search)","http://www.semiseek.com/","http://www.semiseek.com/cgi-bin/SEMISEEK.exe?p2=1&p3=1&p1="],[804,"Wired","http://www.wired.com/","http://www.wired.com/support/search.html?query="],[806,"ZDNet","http://www.zdnet.com/","http://zdnet.search.com/search?cat=230&q="]]],["Torrents",[[2319,"Aplus","http://aplus-torrent.com/","http://aplus-torrent.com/search.php?q="],[2301,"Bitoogle","http://www.bitoogle.com/","http://search.bitoogle.com/search.php?st=t&q="],[2312,"BitTorrent","http://www.bittorrent.com","http://www.bittorrent.com/search_result.myt?search="],[2316,"Btbot","http://www.btbot.com","http://www.btbot.com/search.bt?q="],[2303,"Btjunkie","http://btjunkie.org/","http://btjunkie.org/search?query="],[2304,"Download Anime","http://downloadanime.org/","http://www.downloadanime.org/?q="],[2317,"Ktorrents","http://www.ktorrents.com/","http://www.ktorrents.com/search.php?lg=0&f=0&ex=&mins=&maxs=&q="],[2305,"Meganova","http://www.meganova.org/","http://www.meganova.org/search.html?search=&sugo="],[2306,"Mininova","http://www.mininova.org/","http://www.mininova.org/search/?search="],[2323,"Monova","http://monova.org/","http://monova.org/search/?search="],[2322,"My BitTorrent","http://www.mybittorrent.com/","http://www.mybittorrent.com/?do=search&keywords="],[2307,"New Torrents","http://www.newtorrents.info","http://www.newtorrents.info/?q="],[2320,"Peerbone","http://www.peerbone.org/","http://www.peerbone.org/search.php?q="],[2308,"The Pirate Bay","http://thepiratebay.org/","http://thepiratebay.org/search.php?q="],[2314,"Torinium","http://www.torinium.com","http://www.torinium.com/index.php?Submit=Search&voteid=0&score=0&find="],[2318,"Torrent Crawler","http://www.torrentcrawler.com/","http://www.torrentcrawler.com/torrent_search?keys="],[2311,"Torrent Portal","http://www.torrentportal.com/","http://tp.searching.com/torrents-search.php?incall=1&search="],[2313,"Torrent Valley","http://www.torrentvalley.com","http://www.torrentvalley.com/search.php?cat=0&act=1&incldead=1&search="],[2309,"TorrentReactor","http://torrentreactor.net/","http://tr.searching.com/search.php?search=&_br=tr&cid=&words=china"],[2315,"Torrents - Niue","http://torrents.nu/","ttp://torrents.nu/search.php?Search="],[2302,"Torrentspy","http://www.torrentspy.com/","http://ts.searching.com/search.asp?h=&submit.x=0&submit.y=0&query="],[2321,"Tracktrap","http://www.tracktrap.com","http://www.tracktrap.com/search.php?type=on&submit=Torrent+Search&str="],[2310,"Yoyoshi","http://www.yotoshi.com/","http://search.yotoshi.com/search.php?st=t&q=china"]]]];function ZX(Vok,dqX,IcB,Lqq){ var VT=new Object(); VT['at']=Vok; VT['ast']=dqX; if(!dqX) VT['ast']=null; VT['si']=sessionId; VT['ts']=Sm()+''; VT['e']=IcB; if(!IcB) VT['e']=null; VT['pid']=protopageId+''; VT['pp']=protopagePath; VT['iu']=UC(); var HK=bM.stringify(VT); if(!Lqq){ setTimeout(function(){ DL("/"+protopagePath+"/_api/activity",HK,function(wT){}); },1); }else{ DL("/"+protopagePath+"/_api/activity",HK,function(wT){}); }};function Fb(){ }Fb.prototype.IE=function(){ var JA=this; this.AsV=728; this.TSL=90; this.wOV=58; this.lQs=36; if(!window['dispAds']) return; var LD=this.pR(); var wZ=this.BM(); Uq.jT('ads',this.TSL+15); Uq.bv(); var bs=new QF(this.Uk(),this.Hh(),false,JN+2,'00',LD,true,true,null,uH(),null,null,!true,false,false,false,null,true,false); this.bs=bs; var Bi=true; if(Bi){ var WM=new QF(this.Uk(true,this.wOV),this.Hh(),false,JN+2,'00',wZ,true,true,null,uH(),null,null,!true,false,false,false,null,true,false); this.WM=WM; }var Mh=function(){ bs.hide(); if(JA.WM) WM.hide(); JA.wRw=false; Uq.jT('ads',0); Uq.bv(); }; bs.eV(Mh); if(this.WM) WM.eV(Mh); var iN=new Object(); iN.ZP=function(uB,Zq){ if(uB){ if(!cP){ JA.bs.hide(); if(JA.WM) JA.WM.hide(); }}}; iN.KL=function(uB,Zq){ if(uB){ if(!cP){ JA.Uw(); }}}; dX.push(iN); this.wRw=true; }; Fb.prototype.Uk=function(QHd,AsV){ var CU=QHd?ge()-(AsV+42)-32:20; return CU; }; Fb.prototype.Hh=function(){ var cn=Oc(mK.VQq.LD); var cD=cn.y+mK.VQq.Na.el()+10; if(enableCompactTopArea&&!Sr){ cD=10; }return cD; }; Fb.prototype.position=function(){ if(!window['dispAds']) return; this.bs.position(this.Uk(),this.Hh()); if(this.WM) this.WM.position(this.Uk(true,this.wOV),this.Hh()); this.wRw=true; }; Fb.prototype.hide=function(){ if(!window['dispAds']) return; this.bs.hide(); if(this.WM) this.WM.hide(); this.wRw=false; }; Fb.prototype.Nh=function(){ if(!window['dispAds']) return; this.wRw=true; this.Uw(); }; Fb.prototype.Uw=function(){ if(!window['dispAds']) return; if(this.wRw) this.position(); }; Fb.prototype.pR=function(){ var LD=document.createElement('div'); LD.style.width=(this.AsV+42)+'px'; LD.style.height=this.TSL+'px'; var gF=document.getElementById('ad-0'); gF.style.left='9px'; gF.style.top='0px'; gF.style.position='relative'; LD.appendChild(gF); return LD; }; Fb.prototype.BM=function(){ var LD=document.createElement('div'); LD.style.width=(this.wOV+42)+'px'; LD.style.height=this.lQs+'px'; LD.style.paddingLeft=12+'px'; LD.className='scheme-body-text'; LD.style.fontSize='11px'; var sS=document.createElement('a'); sS.style.color='#0000ff'; sS.href='/'+protopagePath+'/_api/subscribe'; sS.appendChild(document.createTextNode('Remove ads')); sS.appendChild(document.createElement('br')); sS.appendChild(document.createTextNode('for $2.49/mo')); LD.appendChild(sS); return LD; }; function Su(Ogx){ var LD=document.createElement('div'); bb=LD; LD.style.position='absolute'; LD.style.left='500px'; LD.style.top='0px'; LD.style.width='468px'; LD.style.height='60px'; LD.style.backgroundImage='url('+Ogx+')'; LD.style.zIndex=1000; Sw(); uH().appendChild(LD); }function Sw(){ bb.style.left=(ge()-(468))+'px'; }function SN(){ }function kP(xO,Hg,Mn){ var Pl=new Array(); Pl.push(new VD('protopageId',protopageId)); Pl.push(new VD('virtualPage',Mn)); var rm=new Re(accountId,protopageId,xO['id'],protopagePath,'move-tab-to-category',Pl,Hg['id']); commandProcessor.xA(rm); }function ES(xO,Hg,Mn){ var Pl=new Array(); Pl.push(new VD('protopageId',protopageId)); Pl.push(new VD('virtualPage',Mn)); var rm=new Re(accountId,protopageId,xO['id'],protopagePath,'add-tab-to-category',Pl,Hg['id']); commandProcessor.xA(rm); ZX('tab_add_to_category'); }function CW(){ var HC=new Array(); for(var gv in categories){ HC.push(categories[gv]['id']); }var Pl=new Array(); Pl.push(new VD('protopageId',protopageId)); Pl.push(new VD('orderedCategoryIds',bM.stringify(HC))); var rm=new Re(accountId,protopageId,null,protopagePath,'save-categories-order',Pl); commandProcessor.xA(rm); ZX('category_reorder'); }SN.prototype.Ce=function(){ var Pl=new Array(); Pl.push(new VD('protopageId',protopageId )); Pl.push(new VD('categoryId',this['id'])); var rm=new Re(accountId,protopageId,null,protopagePath,'remove-category',Pl); commandProcessor.xA(rm); for(var gv=0;gv<categories.length;gv++){ if(categories[gv]['id']==this['id']){ categories.splice(gv,1); }}ZX('category_remove'); }; SN.prototype.xv=function(){ for(var gv in categories){ if(this==categories[gv]) return parseInt(gv)+1; }}; SN.prototype.Fc=function(){ return this['sharing']['type']=='imported'; }; SN.prototype.SY=function(){ return this['sharing']['type']=='public'; }; SN.prototype.ed=function(){ return this['sharing']['type']=='restricted'; }; SN.prototype.IH=function(){ return(this['accessType']=='modify'||this['accessType']=='admin'); }; SN.prototype.gJ=function(){ return(this['accessType']=='admin'); }; SN.prototype.Lf=function(){ var kl=this['sharing']; if(kl['type']=='imported') return kl['granterAccountId']; else return accountId; }; SN.prototype.tG=function(){ var kl=this['sharing']; if(kl['type']=='imported') return kl['granterProtopageId']; else return protopageId; }; SN.prototype.xu=function(OJu){ var Pl=new Array(); Pl.push(new VD('protopageId',protopageId )); Pl.push(new VD('categoryId',this['id'])); Pl.push(new VD('schemeOffset',this['schemeOffset'])); Pl.push(new VD('label',this['label'])); Pl.push(new VD('sharing',bM.stringify(this['sharing']))); var rm=new Re(accountId ,protopageId ,null ,protopagePath,'save-category-settings',Pl); if(OJu){ rm.IT=function(){ OJu(); }; }commandProcessor.xA(rm); ZX('category_tab_settings_save'); }; SN.prototype.AW=function(){ var Pl=new Array(); Pl.push(new VD('protopageId',this.tG())); Pl.push(new VD('virtualPages',bM.stringify(this.Zj()))); var rm=new Re(this.Lf(),this.tG(),this['id'],protopagePath,'save-category-tab-order',Pl); commandProcessor.xA(rm); ZX('tab_reorder'); }; SN.prototype.Zj=function(){ var qA=new Array(); for(var gv in this['virtualPages']){ var KO=this['virtualPages'][gv]; qA.push(TH.iR(KO)); }return qA; }; SN.cR=function(SY,ed,UcF){ var Pl=new Array(); Pl.push(new VD('protopageId',protopageId)); var rm=new Re(accountId,protopageId,null,protopagePath,'request-new-category-id',Pl); rm.IT=function(rm,wT){ var vM=parseInt(wT); var lH=new SN(); lH['id']=vM; lH['label']=ac(); var XG='00'; lH['schemeOffset']=SY?'04':'06'; lH['virtualPages']=[]; lH['sharing']=new Object(); if(SY){ lH['sharing']['type']='public'; }else if(ed){ lH['sharing']['type']='restricted'; }else{ lH['sharing']['type']='private'; }lH['accessType']='admin'; categories.push(lH); lH.xu(); UcF(); }; commandProcessor.xA(rm); }; function TH(){ }TH.prototype.xu=function(){ var Pl=new Array(); Pl.push(new VD('protopageId',this.tG())); Pl.push(new VD('virtualPage',this.RH())); Pl.push(new VD('schemeOffset',this['schemeOffset'])); Pl.push(new VD('positioning',this['positioning'])); Pl.push(new VD('label',this['label'])); var rm=new Re(this.Lf(),this.tG(),this.qK(),protopagePath,'save-tab-settings',Pl); commandProcessor.xA(rm); ZX('tab_settings_save'); }; TH.prototype.ZO=function(){ var Pl=new Array(); Pl.push(new VD('protopageId',this.tG())); Pl.push(new VD('virtualPage',this.RH())); var rm=new Re(this.Lf(),this.tG(),this.qK(),protopagePath,'remove-virtual-page',Pl); commandProcessor.xA(rm); Tb(this['id']); for(var gv=0;gv<virtualPages.length;gv++){ if(virtualPages[gv]['id']==this['id']){ virtualPages.splice(gv,1); break; }}for(var gv in categories){ var tb=categories[gv]; for(var fJ in tb['virtualPages']){ if(tb['virtualPages'][fJ]==this['id']){ tb['virtualPages'].splice(fJ,1); break; }}}ZX('tab_remove'); }; TH.prototype.wG=function(bP){ var Pl=new Array(); Pl.push(new VD('protopageId',this.tG())); Pl.push(new VD('virtualPage',this.RH())); var rm=new Re(this.Lf(),this.tG(),bP['id'],protopagePath,'remove-virtual-page-copy',Pl); commandProcessor.xA(rm); Tb(this['id']); for(var fJ in bP['virtualPages']){ if(bP['virtualPages'][fJ]==this['id']){ bP['virtualPages'].splice(fJ,1); break; }}ZX('tab_copy_remove'); }; TH.prototype.lE=function(){ return this['id']==XE; }; TH.prototype.io=function(){ var Jk=this.Jb(); for(var gv in Jk){ if(Jk[gv].io()) return true; }return false; }; TH.prototype.Fc=function(){ return this['imported']==true; }; TH.prototype.IH=function(){ var tb=this.AL(); return tb.IH(); }; TH.prototype.eZ=function(){ var PR=0; for(var gv in categories){ var tb=categories[gv]; if(!tb.Fc()){ for(var fJ in tb['virtualPages']){ var KO=tb['virtualPages'][fJ]; if(KO==this['id']) PR++; }}}return PR; }; TH.prototype.Lf=function(){ var tb=this.AL(); return tb.Lf(); }; TH.prototype.tG=function(){ var tb=this.AL(); return tb.tG(); }; TH.prototype.qK=function(){ return this.AL()['id']; }; TH.prototype.AL=function(){ var tS=null; var Jk=this.Jb(); for(var gv in Jk) if(Jk[gv]['accessType']=='none') tS=Jk[gv]; for(var gv in Jk) if(Jk[gv]['accessType']=='view') tS=Jk[gv]; for(var gv in Jk) if(Jk[gv]['accessType']=='modify') tS=Jk[gv]; for(var gv in Jk) if(Jk[gv]['accessType']=='admin') tS=Jk[gv]; return tS; }; TH.iR=function(MWr){ var hl=MWr+''; if(hl.indexOf('-')==-1) return hl; else return parseInt(hl.substring(hl.lastIndexOf('-')+1)); }; TH.prototype.RH=function(){ if((this.Lf()==accountId)&&(this.tG()==protopageId)) return this['id']; else return TH.iR(this['id']); }; TH.prototype.Jb=function(){ var Jk=new Array(); for(var gv in categories){ for(var fJ in categories[gv].virtualPages){ if(categories[gv].virtualPages[fJ]==this['id']) Jk.push(categories[gv]); }}return Jk; }; function jc(id){ for(var gv in virtualPages){ if(virtualPages[gv]['id']==id) return virtualPages[gv]; }return null; }function Dm(label){ for(var gv in virtualPages){ if(virtualPages[gv]['label']==label) return virtualPages[gv]['id']; }return false; }function dI(label){ for(var gv in virtualPages){ if(virtualPages[gv]['label']==label) return true; }return false; }function dT(){ var bk=1; var kd='Untitled tab'+' '; while(true){ if(dI(kd+bk)){ bk++; }else break; }return kd+bk; }function Ho(label){ for(var gv in categories){ if(categories[gv]['label']==label) return true; }return false; }function ac(){ var Ze=1; var kd='Untitled'+' '; while(true){ if(Ho(kd+Ze)){ Ze++; }else break; }return kd+Ze; }function bm(){ GA(categories,SN); GA(virtualPages,TH); }function RJ(IO){ return IO.replace(/%20/g,'_').replace(/ /g,'_').replace(/\//g,'_'); }function Mk(tb,tD){ return RJ(tb['label'])+'/'+RJ(tD['label']); }function kr(hash){ var dg=new Object(); dg.tb=null; dg.tD=null; dg.GjW=true; for(var gv in categories){ var tb=categories[gv]; if(tb['virtualPages'].length==0) continue; dg.tb=tb; dg.tD=jc(tb['virtualPages'][0]); break; }hash=hash+''; if(!hash||hash.length==0) return dg; if(hash.charAt(0)=='#') hash=hash.substring(1,hash.length); var Bh=hash.split('/'); if(!Bh[0]||!Bh[1]) return dg; for(var gv in categories){ var tb=categories[gv]; var UA=RJ(tb['label']); if(tb['virtualPages'].length==0) continue; if(UA.toLowerCase()!=Bh[0].toLowerCase()) continue; for(var fJ in tb['virtualPages']){ var Mn=tb['virtualPages'][fJ]; var tD=jc(tb['virtualPages'][fJ]); if(RJ(tD['label']).toLowerCase()==Bh[1].toLowerCase()){ dg.GjW=false; dg.tb=tb; dg.tD=tD; return dg; }}}return dg; }var Xg=null; function qj(){ Xg=null; try{ Xg=new ActiveXObject("Msxml2.XMLHTTP"); }catch(eu){ try{ Xg=new ActiveXObject("Microsoft.XMLHTTP"); }catch(EM){ Xg=false; }}if(!Xg&&typeof XMLHttpRequest!='undefined'){ Xg=new XMLHttpRequest(); }}qj(); var commandProcessor=new up(); var Ld=false; function oN(){ var qH; try{ if(isSafari!=undefined&&!isSafari) qH=((Xg.readyState==4)&&(Xg.status==200)); else qH=(Xg.readyState==4); }catch(eu){}var cv=((Xg.readyState==4)&&(Xg.status==401)); if(cv){ if(ET!=null){ clearTimeout(ET); ET=null; }Us(6); alert('WARNING: You appear to have logged out (perhaps you had two browser windows open, and logged out from one of them while leaving this one open?). We cannot save your changes after you log out. The change you just made will not be saved.'); }if(qH){ if(ET!=null){ clearTimeout(ET); ET=null; }var rm=commandProcessor.qDj[0]; var wT=Xg.responseText; commandProcessor.qDj.shift(); xV=setTimeout(co(pD),350); rm.IT(rm,wT); setTimeout("commandProcessor.processQueuedCommands()",10); }}var ET=null; var xV=null; var Ff=20000; function up(){ this.qDj=new Array(); this.ZpX=new Array(); this.processQueuedCommands=function(){ if(this.qDj.length==0){ return; }var rm=this.qDj[0]; rm.GV(rm); var HD=''; var Ri=''; if(rm.sVY!=null&&rm.sVY!=undefined) Ri+=' categoryId="'+rm.sVY+'"'; if(rm.AGJ!=null&&rm.AGJ!=undefined) Ri+=' secondaryCategoryId="'+rm.AGJ+'"'; HD+='<command v="3" originatingAccountId="'+rm.kMj+'" originatingProtopageId="'+rm.lMF+'" accountId="'+rm.accountId+'" protopageId="'+rm.protopageId+'" protopagePath="'+rm.protopagePath+'" name="'+rm.name+'" '+Ri+'>'; for(var gv in rm.KRp){ HD+='<param name="'+rm.KRp[gv].name+'">'+rm.KRp[gv].value+'</param>'; }HD+='</command>'; Xg.open("POST",("/"+protopagePath+"/_api/command"),true); Xg.setRequestHeader("Content-Type","text/xml"); Xg.onreadystatechange=oN; if(xV!=null){ clearTimeout(xV); xV=null; }Us(1); ET=setTimeout(co(ZR),Ff); Xg.send(HD); }; this.FM=function(TK){ var JA=this; for(var gv in commandProcessor.ZpX){ var rm=commandProcessor.ZpX[gv]; if(rm.NY==TK){ commandProcessor.qDj.push(rm); }}commandProcessor.ZpX=new Array(); commandProcessor.processQueuedCommands(); }; this.El=function(){ this.ZpX=new Array(); }; var Uf=['save-multiple-panel-geometry','save-panel-geometry','add-feed-history-item','remove-feed-history-item']; this.wj=function(rm){ for(var gv in Uf){ if(rm.name==Uf[gv]) return false; }return true; }; this.xA=function(rm){ if(!loggedIn&&!loggedInAsGuest){ if(protopagePath!='widget-test') Us(3); if(this.wj(rm)){ alert('WARNING: You are not logged in, so any changes will be lost. Please log in BEFORE making changes, or create a new untitled page to start experimenting (No registration required).'); }return; }if(rm.NY&&rm.NY.GJ){ this.ZpX.push(rm); }else{ this.qDj.push(rm); if(this.qDj.length==1){ this.processQueuedCommands(); }}}; }function ZR(){ if(!Ld){ Ld=true; try{Xg.abort();}catch(eu){ if(sa) alert("pp error 725: "+eu); }sO(); return; }else{ Ld=false; }Us(2); try{Xg.abort();}catch(eu){ if(sa) alert("pp error 724: "+eu); }}function sO(){ setTimeout("commandProcessor.processQueuedCommands()",250); }var Hn=null; function Us(state){ if(qT&&(state==3)) return; if(Hn==4) return; if(Hn==5&&state==1) state=5; Hn=state; var dS=document.getElementById('status-indicator'); dS.style.right='8px'; dS.style.bottom='62px'; switch(state){ case 0: dS.style.visibility='hidden'; break; case 1: dS.style.visibility='visible'; dS.innerHTML='Saving...'; break; case 2: dS.style.visibility='visible'; dS.innerHTML='        <div style="border:1px solid #000000; padding:3px;" class="scheme-body-text">          <div style="font-size:14px">            Could not establish a connection to the '+Zv.vsf+' server - <br>            please check your internet connection.             <br>To try saving your changes again,             <a href="" onClick="'+gI(sO)+'(); return false;"><u><b>click here</b></u></a>.          </div>        </div>'; break; case 3: dS.style.visibility='hidden'; break; case 4: dS.style.visibility='hidden'; break; case 5: dS.style.visibility='visible'; dS.innerHTML='<div style="font-size:20px;">Saving and Logging out...</div>'; break; case 6: dS.style.visibility='visible'; dS.innerHTML='        <div style="border:1px solid #000000; padding:3px;" class="scheme-body-text">          <div style="font-size:14px">            Could not save your changes because you logged out with a different browser window.<br>            <br>To try again, press CTRL-N to open a new browser window, log in, and then,             <a href="" onClick="'+gI(sO)+'(); return false;"><u><b>click here</b></u></a>.          </div>        </div>'; break; }}function WU(lUj){ aR(); if(!checkCookiesEnabled()){ return false; }else{ vO(); if(lUj){ document.location.href='/_api/newUntitledPage?mark=true'; }else{ document.location.href='/_api/newUntitledPage'; }return false; }}function vO(){ var Pl=new Object(); for(var gv in pageParams){ var name=gv; if(NH(name,'import')) name=name.substring('import'.length); name='import'+name.charAt(0).toUpperCase()+name.substring(1); Pl[name]=pageParams[gv]; }Yt('relayedPageParams',escape(bM.stringify(Pl)),'/'); }function pD(){ Us(0); }function Re(HXB,iEB,sVY,protopagePath,name,KRp,AGJ){ this.accountId=HXB; this.protopageId=iEB; this.kMj=accountId; this.lMF=protopageId; this.sVY=sVY; this.AGJ=AGJ; this.protopagePath=protopagePath; this.name=name; this.KRp=KRp; this.IT=function(){return;}; this.GV=function(){return;}; this.UK=function(kxU){ for(var gv in this.KRp){ var LL=this.KRp[gv]; if(LL.name==kxU) return LL.value; }}; this.tq=function(kxU,XEf){ for(var gv in this.KRp){ var LL=this.KRp[gv]; if(LL.name==kxU){ LL.value=XEf; break; }}}; }function VD(name,value){ this.name=name; this.value=escape(value); }function IC(rm){ var jO=rm.UK('id'); if(rm.NY.nkq==null) return; rm.tq('id',rm.NY.nkq); }var UB=''; function ne(bnL,EId,VuB,aGp,FtM,bhf){ this.bnL=bnL; this.EId=EId; this.VuB=VuB; this.aGp=aGp; this.FtM=FtM; this.bhf=bhf; this.tqU=new Array(); this.lnZ=18; this.LD=document.createElement('div'); this.rqF=document.createElement('div'); this.bZp=GP(); this.bZp.style.position='relative'; this.bZp.style.left=0+'px'; this.bZp.style.top=0+'px'; this.bZp.style.cursor='w-resize'; this.Xbe=GP(); this.bZp.width=this.lnZ; this.bZp.height=9; this.bZp.src=UB+'/web/dynamicImages/'+SH+'/horiz-adjust-handle.gif'; this.Xbe.width=this.bnL+this.lnZ; this.Xbe.height=1; this.Xbe.src=UB+'/web/dynamicImages/'+SH+'/horiz-adjust-track.gif'; this.rqF.appendChild(this.Xbe); this.LD.appendChild(this.bZp); this.LD.appendChild(this.rqF); var JA=this; this.bZp.onmousedown=function(eu){ hW(eu,JA.bZp,null,function(sS,FH,LL,Ko){JA.MG(sS,FH,LL,Ko);},function(sS,FH,LL,Ko,eu,OU){JA.Ui(sS,FH,LL,Ko,eu,OU);},function(sS,FH,LL,Ko,eu,OU){JA.fY(sS,FH,LL,Ko,eu,OU);}); }; }ne.prototype.PC=function(){ this.bZp.src=UB+'/web/dynamicImages/'+SH+'/horiz-adjust-handle.gif'; this.Xbe.src=UB+'/web/dynamicImages/'+SH+'/horiz-adjust-track.gif'; }; ne.prototype.MG=function(lXm,mVY,xqM,xct){ this.Rjb=parseInt(this.bZp.style.left); if(this.aGp) this.aGp(this.LT()); }; ne.prototype.Ui=function(lXm,mVY,jw,jP,xqM,xct){ this.Ks(jw); if(this.FtM) this.FtM(this.LT()); }; ne.prototype.fY=function(lXm,mVY,jw,jP,xqM,xct){ this.Ks(jw); if(this.bhf) this.bhf(this.LT()); }; ne.prototype.ja=function(EId,VuB){ this.EId=EId; this.VuB=VuB; }; ne.prototype.KH=function(no){ this.value=no; var Fg=Math.round(((no-this.EId)/(this.VuB-this.EId))*this.bnL); this.bZp.style.left=Fg+'px'; this.RZ(); }; ne.prototype.Ks=function(jw){ var x=this.Rjb+jw; if(x<0) x=0; if(x>this.bnL) x=this.bnL; this.bZp.style.left=x+'px'; this.value=((x/this.bnL)*(this.VuB-this.EId))+this.EId; this.RZ(); }; ne.prototype.LT=function(){ return this.value; }; ne.prototype.iq=function(hCu){ this.tqU.push(hCu); }; ne.prototype.RZ=function(){ var no=this.LT(); for(var gv in this.tqU){ this.tqU[gv](no); }}; function Zc(YoG,lDU,ADt){ this.YoG=YoG; this.lDU=lDU; this.ADt=ADt; var JA=this; this.jL=document.createElement('select'); for(var gv in this.lDU){ var ms=this.YoG[gv]; var no=this.lDU[gv]; var kp=document.createElement('option'); kp.value=no; kp.innerHTML=ms; this.jL.appendChild(kp); }this.jL.onchange=function(){ ADt(lDU[JA.jL.selectedIndex]); }; this.jL.style.width='198px'; this.jL.style.margin='0px'; }Zc.prototype.KH=function(no){ for(var gv in this.lDU){ if(no==this.lDU[gv]) this.jL.selectedIndex=gv; }}; function gu(YoG,lDU,ADt,sxG){ this.YoG=YoG; this.lDU=lDU; this.cLx=new Array(); this.ADt=ADt; var JA=this; this.jL=document.createElement('div'); this.AkP=uid(); var Yd=''; var JQ=sxG?'<br>':'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'; for(var gv in this.lDU){ Yd+='<input type="radio" name="'+this.AkP+'" value="'+this.lDU[gv]+'">'+JQ+''; }this.jL.innerHTML=Yd; this.jL.style.textAlign='left'; this.jL.style.whiteSpace='nowrap'; var lL=this.jL.getElementsByTagName('INPUT'); for(var gv=0;gv<lL.length;gv++){ this.cLx[gv]=lL[gv]; this.cLx[gv].style.position='relative'; if(!isIE) this.cLx[gv].style.top='2px'; this.cLx[gv].style.margin='0px'; this.cLx[gv].style.padding='0px'; this.cLx[gv].style.width='3ex'; this.cLx[gv].onclick=function(){JA.Ih();}; }for(var gv in this.cLx){ var label=document.createElement('div'); label.style.display='inline'; label.className='scheme-body-text'; label.style.paddingLeft='5px'; label.innerHTML=this.YoG[gv]+''; label.style.cursor='pointer'; label.style.whiteSpace='nowrap'; label.onmousedown=function(Dpx){ return function(){ Dpx.click(); }}(this.cLx[gv]); this.jL.replaceChild(label,this.cLx[gv]); this.jL.insertBefore(this.cLx[gv],label); }}gu.prototype.Ih=function(){ for(var gv in this.cLx){ if(this.cLx[gv].checked){ this.ADt(this.lDU[gv]); break; }}}; gu.prototype.KH=function(no){ for(var gv in this.cLx){ this.cLx[gv].checked=(this.lDU[gv]==no); }}; function Nj(label,ADt){ this.label=label; this.ADt=ADt; var JA=this; this.jL=document.createElement('div'); this.SL=document.createElement('input'); this.SL.type='checkbox'; this.SL.onclick=function(){JA.Rw();}; this.SL.style.margin='1px'; this.SL.style.width='4ex'; var text=document.createElement('span'); text.className='scheme-body-text'; text.innerHTML=label; text.style.paddingLeft='6px'; this.jL.appendChild(this.SL); this.jL.appendChild(text); }Nj.prototype.Rw=function(){ if(this.SL.checked) this.ADt(true); else this.ADt(false); }; Nj.prototype.KH=function(no){ this.SL.checked=no; }; function Eh(ADt){ this.jL=document.createElement('input'); this.jL.type='text'; this.jL.style.width='194px'; this.jL.style.margin='0px'; this.jL.style.padding='0px'; var JA=this; this.jL.onchange=function(){ ADt(JA.jL.value); }; this.jL.onblur=this.jL.onchange; }Eh.prototype.KH=function(no){ this.jL.value=no; }; Eh.prototype.LT=function(){ return this.jL.value; };var mX=new Array(); function BG(jL,oLs,okp,RIO,ULD,Bpm,tYk){ this.jL=jL; this.oLs=oLs; this.RIO=RIO; this.okp=okp; this.ULD=ULD; this.Bpm=Bpm; this.tYk=tYk; this.fCI=null; this.DLU=null; this.HTb='4x-sw.png'; this.fnC='4x-s.png'; this.VON='4x-se.png'; this.AeT='4x-e.png'; this.oIR='4x-ne.png'; this.rJp='4x-nw.png'; this.tND='4x-n.png'; this.UcO='4x-w.png'; if(!oLs){ this.oIR='4x-ne-c.png'; this.VON='4x-se-c.png'; }this.xxS=13; this.Okv=13; this.RfJ=5; this.swa=-5; var aN=RIO; this.hLF=document.createElement('div'); this.hLF.style.position='absolute'; this.hLF.style.overflow='visible'; this.hLF.style.left='0px'; this.hLF.style.top='0px'; this.rL(); if(!Bpm||!tYk){ this.Cog=this.DP(this.oIR); this.RfR=this.DP(this.rJp); this.EbB=this.DP(this.tND); }if(!Bpm||tYk){ this.DVR=this.DP(this.HTb); this.imD=this.DP(this.fnC); this.xbb=this.DP(this.VON); }if(oLs){ this.gLd=this.DP(this.AeT); }this.pBO=this.DP(this.UcO); if(colorsAndSettings.panelDropShadowPreference!='NEVER'){ okp.appendChild(this.hLF); }this.xI(this.RIO); this.position(); mX.push(this); }BG.prototype.remove=function(){ this.okp.removeChild(this.hLF); var LL=null; for(var gv in mX) if(mX[gv]==this) LL=gv; if(LL){ if(LL==0) mX.shift(); else mX=mX.slice(0,LL).concat(mX.slice(LL+1)); }}; BG.prototype.xI=function(state){ this.wRw=state; if(state==false){ this.fCI=this.hLF.style.left; this.DLU=this.hLF.style.top; this.hLF.style.left='-10000px'; this.hLF.style.top='-10000px'; }else{ if(this.fCI!=undefined) this.hLF.style.left=this.fCI+'px'; if(this.DLU!=undefined)this.hLF.style.top=this.DLU+'px'; }}; BG.prototype.LF=function(PB){ LF(this.hLF,PB); }; BG.prototype.rL=function(){ if(this.ULD) this.hLF.style.zIndex=parseInt(this.jL.style.zIndex)-1; }; BG.prototype.nf=function(lKv){ this.okp.removeChild(this.hLF); lKv.appendChild(this.hLF); this.okp=lKv; }; BG.prototype.cf=function(hOP){ if(hOP){ try{ this.okp.appendChild(this.hLF); }catch(eu){}}else{ try{ this.okp.removeChild(this.hLF); }catch(eu){}}}; BG.prototype.position=function(Ati){ var LD=this.jL; var qN=parseInt(LD.style.left); var Li=parseInt(LD.style.top); this.hLF.style.left=qN+'px'; this.hLF.style.top=Li+'px'; var qM=parseInt(LD.style.width); if(isNaN(qM)) qM=LD.offsetWidth; var Ov=parseInt(LD.style.height); if(isNaN(Ov)) Ov=LD.offsetHeight; if(!this.Bpm||!this.tYk){ this.RfR.style.left=this.swa+'px'; this.RfR.style.top=this.swa+'px'; this.EbB.style.top=this.swa+'px'; this.EbB.style.left=(this.Okv+this.swa)+'px'; this.EbB.style.width=(qM-this.Okv)+'px'; this.Cog.style.left=qM+this.swa+'px'; this.Cog.style.top=this.swa+'px'; }if(!this.Bpm||this.tYk){ this.DVR.style.left=this.swa+'px'; this.DVR.style.top=Ov+this.swa+'px'; this.imD.style.left=this.Okv+this.swa+'px'; this.imD.style.top=Ov+this.swa+'px'; this.imD.style.width=(qM-this.Okv)+'px'; this.xbb.style.left=qM+this.swa+'px'; this.xbb.style.top=Ov+this.swa+'px'; }if(this.oLs){ if(this.Bpm&&this.tYk){ this.gLd.style.top=0+'px'; this.gLd.style.height=Ov+this.swa+'px'; }else if(this.Bpm&&!this.tYk){ this.gLd.style.top=this.xxS+this.swa+'px'; this.gLd.style.height=(Ov-(this.xxS+this.swa))+'px'; }else{ this.gLd.style.top=this.xxS+this.swa+'px'; this.gLd.style.height=(Ov-this.xxS)+'px'; }this.gLd.style.left=qM+this.swa+'px'; }if(this.Bpm&&this.tYk){ this.pBO.style.top=0+'px'; this.pBO.style.height=Ov+this.swa+'px'; }else if(this.Bpm&&!this.tYk){ this.pBO.style.top=this.xxS+this.swa+'px'; this.pBO.style.height=(Ov-(this.xxS+this.swa))+'px'; }else{ this.pBO.style.top=this.xxS+this.swa+'px'; this.pBO.style.height=(Ov-this.xxS)+'px'; }this.pBO.style.left=this.swa+'px'; }; BG.prototype.DP=function(DxO){ var LD=document.createElement('div'); var Bw=DxO.indexOf('-c.png')!=-1; this.Ed(LD,Bw); this.VI(LD,DxO); this.hLF.appendChild(LD); return LD; }; BG.prototype.Ed=function(jL,Bw){ jL.style.position='absolute'; jL.style.top='0px'; jL.style.left='0px'; jL.style.width=(Bw?this.RfJ:this.Okv)+'px'; jL.style.height=this.xxS+'px'; jL.style.fontSize='1px'; }; BG.prototype.VI=function(jL,MIZ){ if(NB){ jL.style.backgroundImage='url(/web/images/'+MIZ+')'; jL.style.backgroundRepeat='repeat'; }if(isIE){ jL.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/web/images/"+MIZ+"', sizingMethod='scale')"; jL.style.backgroundRepeat='no-repeat'; }}; function aS(){ for(var gv in panelDatas){ if(panelDatas[gv].tD==XE) panelDatas[gv].GB(); }}; function Fd(){ this.LH=new Object(); }Fd.prototype.SR=function(){ return this.CK(XE); }; Fd.prototype.CK=function(TtW){ if(!this.LH[TtW]) this.LH[TtW]=new Sc(); return this.LH[TtW]; }; function Sc(){ this.il=new Array(); }Sc.prototype.Rp=function(Mo,XJr,OJu){ if(Mo.Fdk&&!Mo.GIs){ return false; }for(var gv=0;gv<this.il.length;gv++){ var Iw=this.il[gv]; if(Iw.locatorUrl==Mo.locatorUrl&&Iw.feedContentRequest.includeFullEntryBodies&&Iw.feedContentRequest.maxEntries==XJr){ if(OJu) OJu(Mo); return true; }}Mo.Fdk=true; var HD=new Db(); HD.locatorUrl=Mo.feedContentRequest.locatorUrl; HD.includeBylines=true; HD.includeFullEntryBodies=true; HD.maxEntries=XJr; HD.lastReadTimestamp=0; uE([HD],function(feeds,error){ Mo.GIs=true; if(OJu) OJu(feeds[0]); }); return false; }; Sc.prototype.qa=function(feeds){ for(var gv in feeds){ var Mo=feeds[gv]; this.bV(Mo); }}; Sc.prototype.bV=function(Mo){ var pq=(!Mo.state); if(!pq) return; var mQ=false; for(var gv=0;gv<this.il.length;gv++){ var Iw=this.il[gv]; if(Iw.locatorUrl==Mo.locatorUrl){ this.il.splice(gv,1,Mo); mQ=true; }}if(!mQ) this.il.push(Mo); if(mQ){ if(!Mo.Fdk){ this.Rp(Mo,100); }}if(tm.hOP){ tm.oY(true); }else{ tm.reset(); }}; Sc.sR=function(sS,FH){ var IK=sS.locatorUrl; var Qw=FH.locatorUrl; var Xs=sS.title; var nS=FH.title; var kw=YR.SA(IK); var Be=YR.SA(Qw); if(kw==Be){ try{ return Xs.localeCompare(nS); }catch(eu){ }if(Xs<nS) return-1; if(Xs>nS) return 1; return 0; }else{ if(kw>Be) return-1; else return 1; }}; function YR(){ }YR.tj=function(pHT,pPT){ if(feedHistory[pHT]){ for(var gv in feedHistory[pHT]['readArticles']){ if(feedHistory[pHT]['readArticles'][gv]==pPT) return true; }}return false; }; YR.kW=function(pHT){ if(!feedHistory[pHT]){ feedHistory[pHT]=new Object(); }if(!feedHistory[pHT]['readArticles']){ feedHistory[pHT]['readArticles']=new Array(); }var readArticles=feedHistory[pHT]['readArticles']; return readArticles; }; YR.YQ=function(pHT,pPT){ var readArticles=YR.kW(pHT); readArticles.push(pPT); if(loggedIn){ var Pl=new Array(); Pl.push(new VD('feedLocatorUrl',pHT)); Pl.push(new VD('articleGuid',pPT)); var rm=new Re(accountId,protopageId,null,protopagePath,'add-feed-history-item',Pl); commandProcessor.xA(rm); }}; YR.Yv=function(pHT,pPT){ var readArticles=YR.kW(pHT); Lb(pPT,readArticles); if(loggedIn){ var Pl=new Array(); Pl.push(new VD('feedLocatorUrl',pHT)); Pl.push(new VD('articleGuid',pPT)); var rm=new Re(accountId,protopageId,null,protopagePath,'remove-feed-history-item',Pl); commandProcessor.xA(rm); }}; YR.SA=function(pHT){ if(feedHistory[pHT]) return feedHistory[pHT]['totalArticlesRead']; else return 0; };var OS=false; var NK=true; var HY; var sm; var dK; var Wk; var Xw; var FJ; var mf; var vX; var Sr=false; var enableCompactTopArea=false; var cP=false; var sa=false; sa=true; var wallpaperChoices; var Zv=new Object(); var XT='not set'; var hK; var Vc=false; var XR='not set'; var Ij=false; var xJ=true; var useRoundedCorners; var OF; var XD=true; var QE=XD; var MU=XD; var eR=XD; var ab=XD?'header-gradient4.gif':'header-gradient1.gif'; var TT=false; var BI=(new Date()).getTime(); Is=''; var Da=new ae(); var fl='cookies-enabled-test'; var ke=null; var fv=false; var removedPanelDatas=new Array(); var maxPanelZIndex; var te=null; CO=navigator.userAgent.indexOf("Opera")!=-1; isSafari=navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1; xx=false; CO=CO||isSafari; isIE=((gv=navigator.userAgent.indexOf("MSIE"))>=0); Kd=isIE&&((parseInt(navigator.userAgent.substring(gv+('MSIE '.length),navigator.userAgent.indexOf('.',gv)))<7)); qE=isIE&&((parseInt(navigator.userAgent.substring(gv+('MSIE '.length),navigator.userAgent.indexOf('.',gv)))>=7)); NB=isIE?false:true; FA=navigator.userAgent.indexOf("Firefox")!=-1; sn=FA&&(navigator.userAgent.match("Firefox/3")); gv=navigator.userAgent.indexOf("Firefox/"); ba=FA&&((parseInt(navigator.userAgent.substring(gv+('Firefox/'.length),navigator.userAgent.indexOf('.',gv)))>=3)); lj=navigator.userAgent.indexOf("Chrome")!=-1; var IN=null; var Tp=false; var ds=null; var Im; var oF; var jp=null; var LQ=null; var jj; var nI; var Uq; var Sl; var VQ; var TE; var hQ=false; var qT=false; var wY=0; var UL=0; var XE=null; var Ax=null; var IZ=null; var Dt=8; var Ob=4; var Gc=0; var UZ=0; var Es=127; var Cd=39; var YH=2; var Pc=-101; var In=-102; var FT_ARCHIVE_ZVe=-103; var kU=-104; var ck="onmousemove"; var vG="onmousedown"; var Bb="onmouseover"; var Pr="onmouseup"; var kH="onmouseout"; var AR="onclick"; var Yo="ondblclick"; var bl="onmouseleave"; var Et="mousemove"; var mu="mousedown"; var tc="mouseover"; var Yi="mouseup"; var SK="mouseout"; var kI="click"; var Fh="dblclick"; var Fm=30; var ah=25; var bb=null; var YG=0; var vC=0; var KQ=0; var aA=new Array(); var pT; var tm; var il; var feedHistory; var lp; var Pd=isIE?400:250; var BU=null; var Bv=null; Ie=100200; vb=100100; qh=100006; en=100004; MT=100010; Yg=100004; vs=101002; Rb=100100; At=90200; Ew=90100; OV=90096; ue=90092; sh=90090; JN=90085; nG=90080; tk=90072; PD=90070; Gw=90060; qS=90050; var AP=false; var vk=false; var bE=['cnn.com','reuters.com']; function eW(id,title,Yd,Vkh,eiq,jMU,XK){ if(Yd==null) Yd=''; var LD=document.createElement('div'); LD.id=id; LD.className='panel'; LD.style.display='none'; var WT=document.createElement('div'); WT.className='panel-header scheme-header scheme-header-text'; if(Vkh){ LD.style.left=eiq+'px'; LD.style.top=jMU+'px'; WT.style.cursor='Move'; WT.onmousedown=function(eu){ hW(eu,LD,null,Id,Dh,rD); }; }else{ WT.style.cursor='default'; }WT.innerHTML='<div class="panel-title" style="padding: 2px 4px 2px 4px;">'+title+'</div>'; LD.appendChild(WT); var Rm=document.createElement('div'); Rm.innerHTML=Yd; if(XK){ Rm.appendChild(XK); }LD.appendChild(Rm); uH().appendChild(LD); }function ot(id,hOP){ var xw=document.getElementById(id); xw.style.display=hOP?'block':'none'; }var tl,NP; function Id(dj,CQ,QH,uK){ tl=parseInt(dj.style.left); NP=parseInt(dj.style.top); }function Dh(dj,CQ,jw,jP,QH,uK){ dj.style.left=(tl+jw)+'px'; dj.style.top=(NP+jP)+'px'; }function rD(){ }function Jq(){ this.wRw=false; }Jq.prototype.kV=function(){ var JA=this; this.XK=document.createElement('div'); this.XK.style.paddingLeft='16px'; this.XK.style.paddingRight='16px'; this.XK.style.paddingTop='12px'; this.XK.style.paddingBottom='4px'; this.XK.appendChild(this.dO('Add a news feed directly')); this.XK.appendChild(this.sA()); this.XK.appendChild(this.bo()); this.XK.appendChild(this.dO('Add a news feed from our directory')); this.XK.appendChild(this.IG()); this.XK.appendChild(this.dO('Add a widget')); this.XK.appendChild(this.Vs()); this.XK.appendChild(this.dO('Add a user contributed widget')); this.XK.appendChild(this.iG()); this.XK.appendChild(this.dO('Advanced')); this.XK.appendChild(this.Fl()); this.tD=XE; var ad=Rd(this.tD); this.GO=new QF(-100000,-100000,false,sh,'00',this.XK,true,true,null,ad); this.GO.GZ=function(){ JA.xI(false); }; }; Jq.prototype.kE=function(eE,text,lX){ var LD=document.createElement('div'); LD.className='scheme-body-text'; LD.style.whiteSpace='nowrap'; LD.style.fontSize='12px'; LD.style.fontWeight=lX?'bold':'normal'; LD.appendChild(document.createTextNode(text)); AS(LD,eE); return LD; }; Jq.prototype.hf=function(){ var LD=document.createElement('div'); LD.style.paddingTop='5px'; LD.style.paddingBottom='12px'; LD.style.paddingLeft='8px'; LD.style.paddingRight='8px'; LD.style.whiteSpace='nowrap'; return LD; }; Jq.prototype.dO=function(text){ var LD=document.createElement('div'); LD.style.paddingBottom='7px'; LD.className='scheme-body-text'; LD.style.fontSize='12px'; LD.style.whiteSpace='nowrap'; LD.appendChild(document.createTextNode(text)); return LD; }; Jq.prototype.ru=function(wRw){ this.xI(!this.wRw); }; Jq.prototype.Wd=function(wRw){ for(var gv in panelDatas){ var TK=panelDatas[gv]; if(TK.GJ) TK.wl(); }commandProcessor.El(); }; Jq.prototype.xI=function(wRw,OEg){ if(!this.wRw&&!wRw) return; if(this.XK){ if(this.tD!=XE) this.tD=XE; var ad=Rd(this.tD); this.GO.nf(ad); if(this.MbY) this.MbY.nf(ad); }this.wRw=wRw; if(wRw==true){ Uv(); if(!this.XK){ this.kV(); }else{ }this.position(8,Math.max(uS()+8-vC ,8-vC )); }else{ GU(); this.position(-100000,-100000); if(this.MbY) this.MbY.position(-100000,-100000); if(!OEg) this.Wd(); }this.wRw=wRw; }; Jq.prototype.position=function(x,y){ this.GO.position(x,y); }; Jq.prototype.kY=function(content,paddingLeft,paddingRight,paddingTop,paddingBottom){ var LD=document.createElement('div'); LD.style.paddingLeft=paddingLeft+'px'; LD.style.paddingRight=paddingRight+'px'; LD.style.paddingTop=paddingTop+'px'; LD.style.paddingBottom=paddingBottom+'px'; LD.appendChild(content); return LD; }; Jq.prototype.bo=function(){ var JA=this; var DR=this.hf(); var lc=function(){JA.Cw()}; var entries=new Array(); var cd=new Array(); entries.push(new aM(false,function(){return JA.kE(null,'Add a photo / cartoon / video feed directly',!true);},cd,lc)); cd.push(new aM(false,function(){ var vU=document.createElement('div'); var fj=document.createElement('div'); fj.appendChild(JA.kY(JA.dO('Add a photo thumbnail feed directly'),0,0,5,0)); fj.appendChild(JA.kY(JA.Te(true),0,0,0,7)); var En=document.createElement('div'); En.appendChild(JA.dO('Add a cartoon or video feed directly')); En.appendChild(JA.Te(false,true)); vU.appendChild(fj); vU.appendChild(En); return vU; },[],lc)); var LX=new sp(entries); LX.kV(); DR.appendChild(LX.LD); return DR; }; Jq.prototype.sA=function(OUe,HYg){ var DR=this.hf(); DR.appendChild(this.Te(OUe,HYg)); DR.style.paddingBottom='4px'; return DR; }; Jq.prototype.Te=function(OUe,HYg){ var JA=this; var lc=function(){JA.Cw()}; var DR=document.createElement('div'); var dZ=function(){ var lv=document.createElement('div'); var Yh=document.createElement('div'); Yh.appendChild(document.createTextNode('Go')); Yh.className='scheme-body-text'; Yh.style.fontSize='12px'; Yh.style.fontWeight='bold'; Yh.style.paddingLeft=4+'px'; var Hu=new Object(); var cV=function(dsU,value){ Hu.esm=value; if(dsU){ Yh.onmousedown(); }}; var aH=OUe?(Zv.GPA!=null?'e.g. '+Zv.GPA:''):(Zv.AGp!=null?'e.g. '+Zv.AGp:''); if(HYg)aH='e.g. savagechickens.com'; var EH; var ll=eT(aH,170,OJ,cV,function(BxY){ EH=BxY; }); var table=Fk([xZ('/web/images/icons/feed.gif',21,16),ll,Yh]); lv.appendChild(table); Yh.onmousedown=function(eu){ if(OUe){ JA.JD(JA.KI(null,Hu.esm,'thumbnails'),560,130)(eu); ZX('feed_search','thumbnails',{'url':Hu.esm}); }else if(HYg){ JA.JD(JA.KI(null,Hu.esm,'singleImage'),426,480)(eu); ZX('feed_search','singleImage',{'url':Hu.esm}); }else{ JA.JD(JA.KI(null,Hu.esm,'regular'),320,180)(eu); ZX('feed_search','regular',{'url':Hu.esm}); }}; if(!OUe&&!HYg){ JA.Wn=function(Wc){ EH.value=Wc; Hu.esm=Wc; Yh.onmousedown(); }; }return lv; }; var entries=new Array(); entries.push(new aM(false,dZ,[],lc)); var LX=new sp(entries); LX.kV(); DR.appendChild(LX.LD); return DR; }; Jq.prototype.Cw=function(){ var JA=this; setTimeout(function(){ JA.GO.Cw(); },1); }; Jq.prototype.IG=function(){ var JA=this; var DR=this.hf(); var lc=function(){JA.Cw()}; var iQ=function(feedList){ var entries=new Array(); for(var gv in feedList){ var LK=feedList[gv]; var label=LK[0]; var aF=LK[1]; var Wc=LK[2]; if(typeof aF=='string'){ var PF=aF; var width=LK[3]?LK[3]:320; var height=LK[4]?LK[4]:180; var iD=LK[5]?LK[5]:'regular'; var maxHeadlinesPerFeed=LK[6]?LK[6]:null; if(!Wc) Wc=PF; var dZ=function(Wc,label,PF){ return function(){return JA.kE(lA(PF),label);}; }(Wc,label,PF); var MH=function(Wc,label,iD,width,height,maxHeadlinesPerFeed){ return function(eu){ JA.JD(JA.KI(label,Wc,iD,maxHeadlinesPerFeed),width,height)(eu); }}(Wc,label,iD,width,height,maxHeadlinesPerFeed); entries.push(new aM(false,dZ,[],lc,MH)); }else{ if(typeof aF=='object'&&aF instanceof Array){ var dZ=function(label){ return function(){return JA.kE(null,label);}; }(label); entries.push(new aM(false,dZ,iQ(aF),lc)); }}}return entries; }; var LX=new sp(iQ(feedList)); LX.kV(); DR.appendChild(LX.LD); return DR; }; Jq.prototype.JD=function(LsQ,JO,XB,eo){ var JA=this; return function(event){ var top; if(event||isIE||CO){ if(isIE||CO){ try{ top=window.event.clientY+(CO?0:document.documentElement.scrollTop)+document.body.scrollTop; }catch(eu){ top=(CO?0:document.documentElement.scrollTop)+document.body.scrollTop; }}else{ top=event.clientY+window.scrollY; }}else top=JA.GO.top; top=top-YG; top=top-vC; top=top-Math.round(XB/2); top=Math.max(JA.GO.top+10,top); JA.sj(JO,XB,top,eo); var TK=LsQ(JA.MbY.Rcp+30,top+30,JO,XB); }; }; Jq.prototype.SZ=function(pH,oLb,mC){ return function(left,top,width,height){ mC=mC?mC:new Object(); return bn('widget',oLb,left,top,width,height,'00',false,pH,'',mC,null,null,null,true); }; }; Jq.prototype.IL=function(pH){ return function(left,top,width,height){ var RP=new Object(); RP['widgetId']=pH; lM('/_api/widgetKeyGen',RP,function(aD){ var Ei=aD['readKey']; var fN=aD['writeKey']; var hM=aD['thirdPartyUserIdentifier']; var eo=aD['widgetInfo']; var mC=new Object(); var YX=bn('widget',eo['widgetTitle'],left,top,width,height,'00',false,pH,'',mC,null,null,null,true,Ei,fN,hM,eo); }); }; }; Jq.prototype.KI=function(oLb,pHT,iD,maxHeadlinesPerFeed){ if(pHT&&(!(pHT instanceof Array))&&pHT.indexOf('e.g. ')==0) pHT=pHT.substring('e.g. '.length); if(pHT&&(pHT=='http://www.ft.com'||pHT=='www.ft.com'||pHT=='ft.com')) pHT='http://www.ft.com/home/uk'; return function(left,top,width,height){ var mC=new Object(); mC['mode']=iD; mC['headlinesOnly']=true; mC['maxHeadlinesPerFeed']=(iD=='thumbnails'?5:7); if(maxHeadlinesPerFeed) mC['maxHeadlinesPerFeed']=maxHeadlinesPerFeed; mC['feeds']=new Array(); if(typeof pHT=='object'&&pHT instanceof Array){ for(var gv in pHT) mC.feeds.push([pHT[gv]]); }else{ mC.feeds.push([pHT]); }if(!oLb) oLb='News feed'; return bn('widget',oLb,left,top,width,height,'00',false,gKa,'',mC,null,null,null,true); }; }; Jq.prototype.Vs=function(){ var JA=this; var DR=this.hf(); var entries=new Array(); entries.push(new aM(false,function(){return JA.kE(HL('bookmarks'),'Bookmarks');},[],null,this.JD(function(left,top,width,height){ return bn('links','Bookmarks',left,top,width,height,'00',false,'','',null,null,null,null,true); },254,100))); entries.push(new aM(false,function(){return JA.kE(HL('document'),'Sticky note');},[],null,this.JD(this.SZ(xYB,'Sticky note'),248,200))); entries.push(new aM(false,function(){return JA.kE(HL('document'),'HTML / Rich text sticky note');},[],null,this.JD(function(left,top,width,height){ return bn('html','Rich text note',left,top,width,height,'00',false,'','',null,null,null,null,true); },254,100))); entries.push(new aM(false,function(){return JA.kE(HL('todo'),'To-do list');},[],null,this.JD(this.SZ(PWY,'Todo list'),248,200))); entries.push(new aM(false,function(){return JA.kE(HL('calendar'),'Calendar');},[],null,this.JD(this.SZ(PLg,'Calendar'),250,224))); entries.push(new aM(false,function(){return JA.kE(HL('comments'),'Comment box');},[],null,this.JD(this.SZ(WPT,'Comment box'),248,200))); entries.push(new aM(false,function(){return JA.kE(HL('photo'),'Photo');},[],null,this.JD(this.SZ(MdN,'Photo upload'),248,352))); entries.push(new aM(false,function(){return JA.kE(HL('web-page'),'Web page');},[],null,this.JD(this.SZ(qSk,'Web page'),360,390))); if(!Vc){ entries.push(new aM(false,function(){return JA.kE(HL('weather'),'Weather');},[],null,this.JD(this.SZ(KiX,'Santa Monica, CA'),351,215))); }entries.push(new aM(false,function(){return JA.kE(HL('mail'),'Email inbox preview');},[],null,this.JD(this.SZ(oha,'Email inbox'),351,215))); entries.push(new aM(false,function(){return JA.kE(HL('protopuppy'),'Virtual puppy');},[],null,this.JD(this.SZ(fRZ,'Virtual Puppy'),220,192))); if(OS){ entries.push(new aM(false,function(){return JA.kE(HL('facebook'),'Facebook');},[],null,this.JD(this.SZ(BTm,'Facebook'),220,192))); }entries.push(new aM(false,function(){return JA.kE(HL('analog-clock'),'Analog Clock');},[],null,this.JD(this.SZ(dxI,'Analog clock'),220,192))); entries.push(new aM(false,function(){return JA.kE(HL('digital-clock'),'Digital Clock');},[],null,this.JD(this.SZ(ImJ,'Digital clock'),220,132))); if(rC) rC(entries,this); var LX=new sp(entries); LX.kV(); DR.appendChild(LX.LD); return DR; }; Jq.prototype.iG=function(){ var DR=this.hf(); var JA=this; var lc=function(){JA.Cw()}; var entries=new Array(); entries.push(new aM(false,function(){ var anchor=document.createElement('span'); anchor.onmousedown=function(eu){ lp.Pm(); preventDefault(); stopPropagation(eu); }; anchor.appendChild(JA.kE(HL('widget'),'Explore the widget showcase')); var LD=document.createElement('div'); LD.appendChild(anchor); var Kk=document.createElement('div'); Kk.style.paddingTop='4px'; Kk.appendChild(LD); return Kk; },[],lc)); var LX=new sp(entries); LX.kV(); DR.appendChild(LX.LD); return DR; }; Jq.prototype.Fl=function(){ var JA=this; var lc=function(){JA.Cw()}; var DR=this.hf(); var tT=function(){ JA.Ve.style.display=''; JA.Ve.innerHTML='                            <form method="post" enctype="multipart/form-data" action="/_api/opmlImport" target="'+CallbackNotify.Xl(JA.iYX)+'">                            '+CallbackNotify.eY(JA.iYX)+'                              <table><tr><td><input type="file" name="opmlFile" style="min-width: 0px; padding: 1px; margin: 0px;"></td>                              <td><input type="submit" value="Go" style="min-width: 0px; padding: 1px 1px 1px 1px; margin: 1px 1px 1px 1px;"></td>                            </tr></table></form>'; JA.Cw(); }; var hO=function(){ JA.dC.style.display=''; JA.dC.innerHTML='                            <div class="scheme-body-text" style="font-size:11px; padding-top:4px">Enter your Bloglines username:</div>                             <form method="get" action="/_api/opmlImport" target="'+CallbackNotify.Xl(JA.oMZ)+'">                            '+CallbackNotify.eY(JA.oMZ)+'                              <table><tr><td><input type="text" name="bloglinesId" style="min-width: 0px; padding: 1px; margin: 0px;"></td>                              <td><input type="submit" value="Go" style="min-width: 0px; padding: 1px; margin: 0px;"></td>                            </tr></table></form>'; JA.Cw(); }; function YT(){ var le=document.createElement('div'); var Vi=JA.kE(HL('opml'),'Upload an OPML file'); le.appendChild(Vi); Vi.onmousedown=tT; var Ve=document.createElement('div'); JA.Ve=Ve; var XL=document.createElement('div'); JA.XL=XL; le.appendChild(Ve); le.appendChild(XL); return le; }function Vf(){ var vm=document.createElement('div'); var Gr=JA.kE(HL('opml'),'Import from Bloglines'); vm.appendChild(Gr); Gr.onmousedown=hO; var dC=document.createElement('div'); JA.dC=dC; var qI=document.createElement('div'); JA.qI=qI; vm.appendChild(dC); vm.appendChild(qI); return vm; }var Fw=function(jGd,Yp,kN){ return function(GST){ if(GST=='error'){ alert(kN); return; }; var kg=jGd(); var pu=Yp(); kg.style.display='none'; pu.style.display=''; var entries=new Array(); var Pg=GST; if(Pg.length==0) alert('No feeds found.'); for(var gv in Pg){ var Jx=Pg[gv]; var dZ=function(title){ return function(){return JA.kE(HL('rss'),title)}; }(Jx['title']); var MH=function(Wc,label){ return function(eu){ JA.JD(JA.KI(label,Wc),320,180)(eu); }}(Jx['url'],Jx['title']); entries.push(new aM(false,dZ,[],lc,MH)); }var LX=new sp(entries); LX.kV(); LM(pu); pu.appendChild(LX.LD); pu.style.paddingTop='4px'; pu.style.paddingBottom='4px'; pu.style.paddingLeft='12px'; JA.Cw(); }; }; JA.iYX=CallbackNotify.vT(Fw(function(){return JA.Ve;},function(){return JA.XL;},"There was a problem with the OPML file you uploaded - please check it is a valid OPML file.")); JA.oMZ=CallbackNotify.vT(Fw(function(){return JA.dC;},function(){return JA.qI;},"There was a problem with the Bloglines import - please check that the Bloglines username is entered correctly.")); CallbackNotify.So(JA.iYX); CallbackNotify.So(JA.oMZ); var SP=new Array(); SP.push(new aM(false,YT,[],lc)); SP.push(new aM(false,Vf,[],lc)); var entries=new Array(); entries.push(new aM(false,function(){return JA.kE(null,'Import OPML');},SP,lc)); var LX=new sp(entries); LX.kV(); DR.appendChild(LX.LD); return DR; }; Jq.prototype.sj=function(LWt,PJB,top,eo){ this.Wd(); if(!this.MbY){ var LD=document.createElement('div'); var WT=document.createElement('div'); this.WT=WT; this.WT.style.paddingBottom='20px'; this.WT.style.textAlign='center'; this.uQa=pm('',14,true); this.bne=pm('',11,false); this.bne.style.paddingBottom='8px'; this.RHf=pm('',11,false); this.RHf.style.whiteSpace='normal'; this.RHf.style.paddingLeft='10px'; this.RHf.style.paddingRight='10px'; this.VeS=Mw('View comments / details',11,false,0,function(){ii(ir.Eu(eo['widgetId']));}); this.VeS.style.textDecoration='underline'; this.VeS.target='_NEW'; this.eXB=document.createElement('div'); this.eXB.appendChild(this.VeS); this.WT.appendChild(this.uQa); this.WT.appendChild(this.bne); this.WT.appendChild(this.RHf); this.WT.appendChild(this.eXB); this.Flm=document.createElement('div'); this.Flm.style.marginTop=30+'px'; this.Flm.style.marginBottom=20+'px'; this.Flm.style.marginLeft=30+'px'; this.Flm.style.marginRight=30+'px'; LD.appendChild(this.Flm); LD.appendChild(WT); var eD=pm('Drag this widget to add it to your page',14,false); eD.style.fontWeight='bold'; eD.style.whiteSpace='nowrap'; eD.style.textAlign='center'; eD.style.paddingLeft='16px'; eD.style.paddingRight='16px'; eD.style.paddingBottom='8px'; LD.appendChild(eD); var JE=Rd(this.tD); this.MbY=new QF(-100000,-100000,false,ue+2,'00',LD,true,false,null,JE,null,null,null,true); this.MbY.WH(ue+2); }if(eo){ this.WT.style.display='block'; OH(this.uQa,eo['widgetTitle']); OH(this.bne,'By: '+eo['authorDisplayName']); OH(this.RHf,eo['shortDescription']); this.RHf.style.width=30+30+eo['defaultWidth']+'px'; this.VeS.href='http://widgets.protopage.com/index.php5?p=widgetView&w='+eo['widgetId']; }else{ this.WT.style.display='none'; }this.Flm.style.width=LWt+'px'; this.Flm.style.height=PJB+'px'; this.MbY.position(this.GO.Rcp+this.GO.width-8,top); this.MbY.Cw(); }; function hV(){ var JA=this; this.PmG=new Array(); this.wRw=false; }hV.prototype.pc=function(){ if(this.wRw){ return 157; }else return 0; }; hV.prototype.xI=function(kLX){ if(kLX){ this.wRw=true; if(!this.jL){ this.kV(); this.Na=new iT(); this.Na.Tl(nt,this.gUD,null,'00',true,true,null,null); this.Na.WH(vb); this.jL=this.Na.LD; }this.position(); }else{ this.wRw=false; if(this.Na){ this.Skn.innerHTML=''; this.Na.position(-8000,-8000); }}if(Im) Im.position(); }; hV.prototype.aB=function(url,OQf,qxW,Mo,LK){ this.xI(true); ZX('podcast_play',Mo.title,{'podcastTitle':Mo.title,'podcastFeedLocator':Mo.locatorUrl,'audioUrl':url,'entryGuid':LK.guid,'headline':Jl(OQf),'byline':Jl(qxW)}); for(var gv in this.PmG) this.PmG[gv].remove(); var Vh=document.createElement('div'); Vh.className='scheme-body-text'; var WB=document.createElement('div'); WB.style.fontWeight='bold'; var LA=document.createElement('div'); LA.style.paddingTop='5px'; var Zr=document.createElement('div'); Zr.style.paddingTop='10px'; Zr.style.fontSize='11px'; Vh.appendChild(WB); Vh.appendChild(LA); Vh.appendChild(Zr); Zr.appendChild(document.createTextNode('Press the left or right arrows on your keyboard to skip forward or backward in 5 second increments. (You may need to click on the time display before you can use your left and right arrow keys).')); WB.innerHTML=OQf; LA.innerHTML=qxW; this.PmG=JL.sw(this.Na.LD,null,null,Vh); var wB='#'+Ym; var WX='#'+ZS; var fd='#'+PP; var hr='true'; var loop='false'; var Vp=new Array(); Vp['colorA']=wB; Vp['colorB']=WX; Vp['colorC']=fd; Vp['autoStart']='true'; Vp['loop']='false'; Vp['url']=url; this.Skn.innerHTML=QI('/web/images/flash/mp3player2.swf',116,20,Vp); }; hV.prototype.position=function(){ if(!this.wRw) return; var top=Math.max(YG,uS()); var JO=this.Na.pc(); var left=Sl.left-4-JO; this.left=left; this.Na.position(left,top); }; hV.prototype.kV=function(){ var JA=this; this.Skn=document.createElement('div'); this.Skn.style.width=116+'px'; this.Skn.style.height=20+'px'; this.Skn.style.left=12+'px'; this.Skn.style.top=3+'px'; this.Skn.style.position='absolute'; var df=GP(); df.style.cursor='pointer'; df.onclick=function(){ JA.xI(false); }; df.src="/web/dynamicImages/"+KN+"/panel-cross.gif"; df.width=7; df.height=7; df.style.display='block'; df.style.width=7+'px'; df.style.height=7+'px'; df.style.position='absolute'; df.style.left=138+'px'; df.style.top=10+'px'; this.gUD=document.createElement('div'); this.gUD.appendChild(this.Skn); this.gUD.appendChild(df); this.gUD.style.width=147+'px'; this.gUD.style.height=19+'px'; }; function rk(){ if(LQ!=null) return; if(branding!='bigpond') return; LQ=new Object(); LQ.Na=new iT(); LQ.LD=document.createElement('div'); LQ.LD.style.cursor='pointer'; LQ.LD.onclick=function(eu){ preventDefault(eu); ii('http://www.bigpond.com'); }; var xC=document.createElement('div'); xC.style.width='142px'; xC.style.height='33px'; KX(xC,'/web/images/branding/bigpond/bigpond-logo.png',false); LQ.LD.appendChild(xC); var wS=pm('Sport, movies, music, more...',10,false,true); wS.style.fontWeight='normal'; LQ.LD.appendChild(wS); LQ.LD.zIndex=PD; LQ.LD.style.paddingLeft='8px'; LQ.LD.style.paddingRight='5px'; LQ.LD.style.paddingBottom='5px'; LQ.LD.onmousedown=function(){ return false; }; LQ.Na.Tl(pT,LQ.LD,null,'00',false,false,null,null); LQ.Na.LD.style.zIndex=nG; LQ.Na.AkF.hLF.style.zIndex=nG-1; LQ.jL=LQ.Na.LD; }function JH(){ if(LQ==null) return; var x=ge()-LQ.Na.pc(); var y=RV()-LQ.Na.el(); LQ.Na.position(x,y); }function Xp(tb){ this.tb=tb; this.IZu=new Array(); }function Cn(){ }Cn.prototype.kV=function(qju,HFb,JiK,Na,tb,suo){ var JA=this; this.Na=Na; this.tb=tb; this.qju=qju; this.HFb=HFb; this.JiK=JiK; this.suo=suo; this.LD=document.createElement('div'); this.table=document.createElement('table'); this.FB=document.createElement('tbody'); this.Kg=document.createElement('tr'); this.oks=document.createElement('td'); if(HFb){ this.HSC=document.createElement('td'); this.ZOG=document.createElement('td'); }this.hdH=document.createElement('td'); this.iQm=document.createElement('td'); this.veS=document.createElement('td'); this.table.cellPadding=0; this.table.cellSpacing=0; this.table.border=0; this.LD.appendChild(this.table); this.table.appendChild(this.FB); this.FB.appendChild(this.Kg); this.Kg.appendChild(this.oks); if(HFb){ this.Kg.appendChild(this.HSC); }this.Kg.appendChild(this.veS); this.Kg.appendChild(this.hdH); if(HFb){ this.Kg.appendChild(this.ZOG); }this.Kg.appendChild(this.iQm); this.HJX=document.createElement('div'); this.HJX.style.width='13px'; this.HJX.style.height='1px'; this.LFd=document.createElement('div'); this.LFd.style.width='50px'; this.LFd.style.height='31px'; this.LFd.style.position='absolute'; this.LFd.style.left='5px'; this.LFd.style.top='-8px'; if(!this.JiK){ }this.HJX.appendChild(this.LFd); if(HFb){ this.xVo=document.createElement('div'); this.xVo.className='scheme-header-text'; this.xVo.style.fontWeight='normal'; this.xVo.style.whiteSpace='nowrap'; this.xVo.style.paddingRight=5+'px'; this.xVo.style.paddingBottom=5+'px'; this.xVo.style.cursor='pointer'; }this.LPv=document.createElement('div'); this.LPv.className='scheme-header-text'; this.LPv.style.whiteSpace='nowrap'; this.LPv.style.paddingBottom=5+'px'; this.jgk=document.createElement('div'); this.jgk.style.display='none'; this.jgk.style.width='24px'; this.jgk.style.height='24px'; this.jgk.style.position='absolute'; this.jgk.style.left='8px'; this.jgk.style.top='-14px'; KX(this.jgk,'/web/images/tab-drop-indicator.png'); this.veS.appendChild(this.jgk); this.xJX=document.createElement('div'); this.xJX.style.width='18px'; this.xJX.style.height='14px'; this.xJX.style.fontSize='1px'; this.xJX.style.cursor='pointer'; this.xJX.vAlign='top'; KX(this.xJX,HFb?'/web/images/reveal-down-double-small.png':'/web/images/reveal-down-small2.png'); this.xJX.style.backgroundPosition='2px 0px'; this.xJX.onmousedown=function(oPc){ stopPropagation(oPc); if(HFb){ if(Uq.isExpanded){ Uq.Zaj=new kQ(JA.Na); }else{ Uq.tC(true); }}else{ Uq.Zaj=new eb(JA.Na); }}; this.xJX.style.position='relative'; this.xJX.style.top='-2px'; if(this.JiK){ this.LPv.style.paddingBottom=0+'px'; this.LPv.style.position='relative'; this.LPv.style.top='-2px'; this.LPv.style.fontSize='11px'; this.LPv.style.fontWeight='normal'; this.LPv.style.paddingLeft='5px'; this.LPv.style.paddingRight='5px'; this.LPv.appendChild(this.suo); }else{ var label=HFb?this.tb['label']:this.Na.tD['label']; this.DOg=new Ji(this.LPv,function(value,lho,width){ JA.Na.tn(width+JA.Pu); JA.Na.AkF.position(); Uq.Mp=null; if(lho){ Uq.hXj=false; if(JA.HFb){ JA.Na.tb['label']=value; JA.Na.tb.xu(); ZX('category_tab_rename',value); }else{ JA.Na.tD['label']=value; JA.Na.tD.xu(); ZX('tab_rename',value); }Uq.cT(false); }},label,11,'bold','scheme-header-text',function(){ if(JA.Na.HFb){ if(!JA.Na.tb.gJ()) return true; }if(JA.Na.qju){ if(!JA.Na.tD.IH()) return true; }var Hs=false; if(Uq.Hs==true){ Hs=true; Uq.Hs=false; }; var Ni=wM.Ni(JA.Na); var BY=!Ni||Hs; if(HFb){ BY=((new Date().getTime()-Uq.DPB<200)||Uq.isExpanded==false); }return BY; },function(){ eb.Mu(); Uq.hXj=true; }); var Ni=wM.Ni(this.Na); this.DOg.vZ(Ni); this.oks.appendChild(this.HJX); if(HFb){ this.HSC.appendChild(this.xVo); }this.iQm.appendChild(this.xJX); }this.hdH.appendChild(this.LPv); return this.LD; }; Cn.prototype.Qk=function(){ var Na=this.Na; if(!this.JiK){ var qu=Na.qu; var Ni=wM.Ni(Na); var lB=false; var label; var aL=false; if(this.HFb){ var ed=this.tb.ed(); var SY=this.tb.SY(); var xe=(!ed&&!SY); var Fc=this.tb.Fc(); label=Na.tb['label']; }if(this.qju){ lB=false; label=Na.tD['label']; }var oM=(Na.qju&&Ni&&Na.tD.IH())||(Na.AUI ); if(!loggedIn&&Na.AUI) oM=false; var gD=Xw; if(Ni) gD=mf; if(Na.AUI) gD=vX; var lX=(Ni||Na.AUI)?true:false; this.HJX.style.display=lB?'block':'none'; this.xJX.style.display=oM?'block':'none'; this.DOg.EP(lX); this.DOg.Gq(gD); var ma=5; var TN=ma; var bF=5; if(this.HFb){ if(Uq){ KX(this.xJX,Uq.isExpanded?'/web/images/reveal-down-small2.png':'/web/images/reveal-down-double-small.png'); }this.xVo.style.paddingLeft=TN+'px'; this.xVo.style.fontSize=gD+'px'; var BW='/web/images/cat-'+'private'+'.png'; this.DUw='Private Category:'; if(xe&&!aL) BW='/web/images/spacer.gif'; if(SY){ this.DUw='Public Category:'; BW='/web/images/cat-'+'public'+'.png'
}if(ed){ this.DUw='Restricted Category:'; BW='/web/images/category-'+'restricted'+'.png'
}if(Fc){ this.DUw='Imported Category:'; BW='/web/images/category-'+'imported'+'.png'
}if(BW){ this.LFd.style.left=(xe&&!Fc?-29:-17)+'px'; this.LFd.style.top='-9px'; KX(this.LFd,BW); }OH(this.xVo,this.DUw); if(aL) TN+=5; if(aL&&!(xe&&!Fc)) TN+=12; this.xVo.style.paddingLeft=TN+'px'; }else{ this.LPv.style.paddingLeft=ma+'px'; }this.LPv.style.paddingRight=bF+'px'; this.DOg.vZ(Ni||(Uq&&Na.AUI&&Uq.isExpanded)); var Pu=5+TN+(lB?13:0)+(oM?18:0)+(Na.AUI?5:0)+bF+5+(Na.AUI?cu(this.DUw,'scheme-header-text',gD,false,false):0) ; if(xx) Pu+=20; var PZ=Math.max(cu(label,'scheme-header-text',gD,lX,false),20); Na.tn(Pu+PZ); this.Pu=Pu; }if(this.JiK){ var TN=5; var bF=5; var Pu=5+TN+bF+5; var He; He=this.suo.offsetWidth; Na.tn(Pu+He); }}; function wU(){ Uq=new wM(); }function wM(){ var JA=this; this.lbT=true; this.YZs=new Array(); this.isExpanded=!true; this.Hs=false; this.Mp=null; this.jL=document.createElement('div'); this.jL.style.position='absolute'; this.jL.style.overflow='hidden'; this.jL.style.top=YG+'px'; this.jL.style.left=0+'px'; this.jL.style.height=100+'px'; this.jL.style.width=100+'px'; this.jL.style.zIndex=1000; this.Vgk=bD(); this.Vgk.style.left='0px'; this.Vgk.style.top=YG+'px'; if(!Kd){ this.Vgk.style.backgroundImage='url(/web/images/control-area-overlay-stripes4.png)'; this.Vgk.style.backgroundRepeat='repeat'; }this.Vgk.id='controlAreaOverlay'; uH().appendChild(this.Vgk); pT.appendChild(this.jL); this.lu(); nk(); }wM.prototype.jT=function(NBW,TR){ this.YZs[NBW]=TR; }; wM.prototype.mk=function(rNM){ KQ=rNM; this.cT(); }; wM.prototype.bv=function(){ var mi=0; for(var gv in this.YZs){ if(this.YZs[gv]>mi) mi=this.YZs[gv]; }KQ=mi; this.cT(); }; wM.prototype.cT=function(uiM){ var JA=this; if(this.leO.length>1){ this.lbT=false; }else{ if(this.leO.length>0){ var qG=this.leO[0]; if(qG.tb['sharing']['type']=='restricted') this.lbT=false; }}var Pf=QE?20:25; var xd=20; var Xd=20; this.jL.style.top=YG+'px'; this.jL.style.left=0+'px'; var dD=QE?Pf:jp.Na.pc()+Pf; var qO=true; if(loggedIn){ qO=false; }else{ for(var gv in this.leO){ var qG=this.leO[gv]; if(qG.tb.IH()){ qO=false; break; }}if(this.leO.length>1) qO=false; }var vr=qO?0:46; this.jL.style.left=0+'px'; this.jL.style.top=YG+'px'; this.jL.style.width=ge()+'px'; this.jL.style.height=(RV()-YG)+'px'; if(this.Mp!=null){ var WJ=wM.Ni(this.Mp); var Bf=this.Mp.top; var MQ=this.Mp.left+Math.floor(this.Mp.width/2); var IB=0; var QA=10000; for(var gv in this.leO){ var qG=this.leO[gv]; if(!this.isExpanded&&(IZ!=qG.tb)) continue; for(var fJ in qG.IZu){ var Na=qG.IZu[fJ]; var Ni=wM.Ni(Na); var um=(Na==this.Mp); var uc=(um?Na.DLU:Na.top)+(Ni?this.vkk:this.nuC); var sS=uc-(4+(this.vkk-this.nuC)); if(IB<sS) IB=sS; if((um?Na.DLU:Na.top)<QA) QA=(um?Na.DLU:Na.top); }}if(Bf>IB){ }if(Bf<QA){ }this.tuC.IZu.splice(this.Hot,1); this.wYr['virtualPages'].splice(this.Hot,1); var jo=false; for(var gv in this.leO){ var qG=this.leO[gv]; if(!this.isExpanded&&(IZ!=qG.tb)) continue; if((JA.XCX.Lf()!=qG.tb.Lf())&&(JA.XCX.tG()!=qG.tb.tG())) continue; if(!qG.tb.IH()) continue; if(Bf<qG.UIi){ break; }var Lh=0; var Na=qG.IZu[Lh]; this.wYr=qG.tb; this.tuC=qG; for(Lh=0;Lh<qG.IZu.length;Lh++){ Na=qG.IZu[Lh]; var Ni=wM.Ni(Na); var JS=Ni?this.vkk:this.nuC; var uc=Na.top+JS; var kZ=Na.left; var Ll=Na.left+Na.width; var Cu=Na.top+JS-this.vkk; var XJ=Cu+this.vkk-(4+(this.vkk-this.nuC)); this.wYr=qG.tb; this.tuC=qG; if((Bf>=Cu)&&(Bf<=XJ)){ if(Na.hoC&&MQ>=(Ll-10)){ continue; }else{ jo=true; break; }}}if(jo) break; }this.Hot=Lh; this.tuC.IZu.splice(this.Hot,0,this.Mp); this.wYr['virtualPages'].splice(this.Hot,0,this.Mp.Mn); this.Mp.tb=this.wYr; this.Mp.qG=this.tuC; if(this.Mp.Mn==XE&&this.XCX==IZ){ IZ=this.wYr; }for(var gv in this.leO){ var qG=this.leO[gv]; for(var fJ in qG.IZu){ var Ul=qG.IZu[fJ]; if(!Ul.hoC){ Ul.hoC=((Ul.left+Ul.width)<=MQ); }else{ Ul.hoC=((Ul.left)<=MQ); }}}}if(uiM){ for(var gv in this.leO){ for(var fJ in this.leO[gv].IZu){ var Na=this.leO[gv].IZu[fJ]; var Ni=wM.Ni(Na); Na.vnT.Qk(); if(Ni){ this.vkk=Na.el(); }else{ this.nuC=Na.el(); }}this.gXE=this.leO[gv].JR.el(); this.leO[gv].JR.vnT.Qk(); }}var CF=(screen.availHeight<600)?15:0; var Ec=0; var Os=28; var sD; if(enableCompactTopArea&&!Sr){ sD=14; }else{ sD=this.isExpanded?jp.Na.el()+10:jp.Na.el()+6-(this.vkk!=undefined?this.vkk:0)+40-CF; }setTimeout(function(){ wv.Uw(); },1); sD+=KQ; var IS=this.isExpanded?xd:dD; var AX=6; var TM=-4; var QO=1; var VA=!loggedIn&&!loggedInAsGuest&&this.leO.length<2; if(this.lbT) VA=true; if(!this.isExpanded) VA=true; if(YG>0&&!Ij){ JC=this.YE(Ec); JC.style.width=ge()+'px'; JC.style.left=0+'px'; JC.style.top=0+'px'; Ec++; }this.Wt(); var gV=true; var XA=true; var Ns=true; var oC; if(this.isExpanded) qO=true; for(var gv in this.leO){ var qG=this.leO[gv]; if(!this.isExpanded&&(IZ!=qG.tb)){ for(var fJ in qG.IZu){ var Na=qG.IZu[fJ]; Na.position(-10000,-10000); }qG.JR.position(-10000,-10000); if(qG.sM) qG.sM.position(-10000,-10000); }else{ var MS=(JA.wQA&&(JA.wQA==qG)); gV=true; Ns=true; if(XA){ oC=ge()-xd; }else{ sD+=Os; Ec++; oC=ge()-xd; IS=xd; sD+=(this.nuC-TM); }JC=this.YE(Ec); if(this.isExpanded&&!this.lbT){ JC.style.width=(1+xd+qG.JR.pc())+'px'; }else{ JC.style.width=ge()+'px'; }JC.style.left=0+'px'; JC.style.top=sD+this.vkk+'px'; qG.UIi=sD; this.Vgk.style.width=ge()+'px'; this.Vgk.style.height=sD+this.vkk+'px'; if(VA){ qG.JR.position(-10000,-10000); }else{ if(!MS){ qG.JR.fCI=IS; qG.JR.DLU=sD+(this.vkk-this.gXE); qG.JR.position(qG.JR.fCI,qG.JR.DLU); }if(this.isExpanded){ Ec++; oC=ge()-xd; IS=xd+Xd; sD+=(this.nuC-TM); sD+=AX; JC=this.YE(Ec); JC.style.width=ge()-(xd-1)+'px'; JC.style.left=(xd+Xd-1)+'px'; JC.style.top=sD+this.vkk+'px'; }}for(var fJ in qG.IZu){ var Na=qG.IZu[fJ]; var vu=IS+Na.pc()+QO; if(vu>oC){ if(!XA&&!gV){ Ec++; oC=ge()-xd; IS=xd+Xd; sD+=(this.nuC-TM); }vu=IS+Na.pc()+QO; if(!gV){ JC=this.YE(Ec); JC.style.width=ge()-(xd-1)+'px'; JC.style.left=(xd+Xd-1)+'px'; JC.style.top=sD+this.vkk+'px'; }}qG.ZWY=sD+this.vkk; var Ni=wM.Ni(Na); var Qo=0; if(!Ni) Qo+=(this.vkk-this.nuC); if(this.Mp!=Na&&!MS){ Na.fCI=IS; Na.DLU=sD+Qo; Na.position(Na.fCI,Na.DLU); }IS=vu; Na.mxM=(Ec*4)+1+(Ni?2:0); Na.WH(Na.mxM); Ns=false; XA=false; gV=false; }XA=false; if(qG.sM){ if(true||this.isExpanded){ if(oC-(vu+10+(qO?0:this.dw.pc()+10))<qG.sM.pc()){ Ec++; sD+=(this.nuC-TM); JC=this.YE(Ec); JC.style.width=ge()-(xd-1)+'px'; JC.style.left=(xd+Xd-1)+'px'; JC.style.top=sD+this.vkk+'px'; vu=xd+Xd; }if(!this.nuC) this.nuC=qG.sM.el()+5; qG.sM.position(vu+8,sD+5+(this.vkk-this.nuC)); }else{ qG.sM.position(-10000,-10000); }}if(!this.isExpanded&&!qO){ if(!this.nuC) this.nuC=this.vkk-6; var mY=sD+5+(this.vkk-this.nuC); var Cx=oC-this.dw.pc(); this.dw.position(Cx,mY); }qG.ZWY=sD+this.vkk; }}if(this.isExpanded){ if(!this.nuC) this.nuC=this.vkk-6; Ec++; sD+=(this.nuC-TM)+20+5; JC=this.YE(Ec); JC.style.width=ge()+'px'; JC.style.left=0+'px'; JC.style.top=sD+this.vkk+'px'; var mY=sD+5+(this.vkk-this.nuC); if(loggedIn&&!this.lbT){ IS=xd; this.dlH.position(IS,mY); IS+=10+this.dlH.width; this.Cfb.position(IS,mY); IS+=10+this.Cfb.width; this.ZFF.position(IS,mY); }this.TJ.position(oC-this.VZ.pc()-1-9-this.TJ.pc(),mY); this.VZ.position(oC-this.VZ.pc(),mY); this.dw.position(-10000,-10000); sD=mY+26; }else{ if(loggedIn){ this.dlH.position(-10000,-10000); this.Cfb.position(-10000,-10000); this.ZFF.position(-10000,-10000); }this.TJ.position(-10000,-10000); this.VZ.position(-10000,-10000); if(qO) this.dw.position(-10000,-10000); }if(!this.isExpanded){ sD+=(this.vkk!=undefined?this.vkk:0)+16; this.VbN.position(-10000,-10000); this.emL.position(-10000,-10000); }else{ sD+=16; this.VbN.position(-10000,-10000); this.emL.position(-10000,-10000); if(this.lbT){ this.VbN.position(parseInt((ge()-this.VbN.width)/2),sD); sD+=this.VbN.height+25; }else{ this.emL.position(parseInt((ge()-this.emL.width)/2),sD); sD+=this.emL.height+25; }}if(this.isExpanded){ Ec++; JC=this.YE(Ec); JC.style.width=ge()+'px'; JC.style.left=0+'px'; JC.style.top=sD+'px'; this.Vgk.style.height=sD+'px'; sD+=25; }this.jL.style.height=sD+8+'px'; Vv(sD+0); }; wM.Ej=function(){ var LD=document.createElement('div'); LD.style.position='absolute'; LD.style.left='0px'; LD.style.top='0px'; LD.style.height='6px'; LD.style.width='1px'; if(colorsAndSettings.panelDropShadowPreference!='NEVER'){ KX(LD,'/web/images/carousel-shadow-delimiter4.png',true,true); }else{ LD.style.borderTop='1px solid #666666'; }return LD; }; wM.prototype.YE=function(gv){ if(this.UaH[gv]==undefined){ var LD=wM.Ej(); LD.id='divider-'+gv; this.UaH[gv]=LD; this.jL.appendChild(LD); }return this.UaH[gv]; }; wM.prototype.Wt=function(){ for(var gv in this.UaH){ if(gv==0) continue; this.UaH[gv].style.left='-10000px'; this.UaH[gv].style.top='-10000px'; }}; wM.prototype.lu=function(){ var JA=this; this.UaH=new Array(); var LD=this.jL; LM(LD); this.leO=new Array(); for(var gv in categories){ var tb=categories[gv]; var qG=new Xp(); this.leO.push(qG); qG.tb=categories[gv]; qG.IZu=new Array(); var JR=new iT(); JR.bqB=true; JR.AUI=true; JR.tb=tb; qG.JR=JR; JR.vnT=new Cn(); JR.vnT.kV(false,true,false,JR,tb); JR.Tl(LD,JR.vnT.LD,null,tb['schemeOffset'],false,true,null,null,null); JR.vnT.LD.style.cursor='pointer'; JR.WH(1000); JR.LD.onmousedown=function(JR,qG){ return function(eu){ if(Uq.hXj) return; if(!Uq.isExpanded){ Uq.tC(true); }else{ hW(eu,Na.LD,Na,function(jL,mVY,ef,bca){ JA.wQA=qG; eb.Mu(); },function(jL,mVY,jw,jP,ef,bca){ if(!loggedIn) return; JR.position(JR.fCI,JR.DLU+jP); for(var fJ in qG.IZu){ var Na=qG.IZu[fJ]; Na.position(Na.fCI,Na.DLU+jP); }for(var fJ in categories){ if(categories[fJ]==qG.tb) break; }var Fn=fJ; categories.splice(Fn,1); JA.leO.splice(Fn,1); for(var fJ=0;fJ<JA.leO.length;fJ++){ if(JA.leO[fJ].JR.DLU>(qG.JR.DLU+jP)) break; }var Vg=fJ; categories.splice(Vg,0,qG.tb); JA.leO.splice(Vg,0,qG); if(Vg!=Fn){ JA.cT(false); }},function(jL,mVY,jw,jP,ef,bca){ JA.wQA=null; JA.cT(false); if((Math.abs(jw)<4)&&(Math.abs(jP)<4)){ JA.Hs=false; }else{ JA.Hs=true; if(loggedIn) CW(); Uq.Hx(); }}); }return true; }}(JR,qG); if(tb.IH()){ var sM=new iT(); qG.sM=sM; sM.bqB=true; sM.vnT=new Cn(); var ub=document.createElement('div'); var pV=GP(); pV.width=11; pV.height=11; pV.src='/web/images/add-item.gif'; var Pa=pm('New tab',Xw,false); Pa.className='scheme-header-text'; Pa.style.fontWeight='normal'; Pa.style.whiteSpace='nowrap'; ub.appendChild(Fk([pV,bW(5),Pa])); sM.vnT.kV(false,false,true,sM,tb,ub); sM.Tl(LD,sM.vnT.LD,null,'10',false,true,null,null,null); sM.vnT.LD.style.cursor='pointer'; sM.vnT.Qk(); sM.vnT.LD.onmousedown=function(tb){ return function(eu){ preventDefault(eu); var UO=document.createElement('div'); UO.style.paddingLeft='10px'; UO.style.paddingRight='10px'; UO.style.paddingTop='5px'; UO.style.paddingBottom='5px'; UO.appendChild(pm('Syncing with server, please wait...',12,false,false)); var cn=Xt(eu); var br=new QF(cn.x,cn.y,true,Ie,'00',UO,!false,false,null,pT,null,null,null,true); var Pl=new Array(); Pl.push(new VD('protopageId',tb.tG())); var rm=new Re(tb.Lf(),tb.tG(),tb['id'],protopagePath,'request-new-virtual-page-id',Pl); rm.IT=function(rm,wT){ var mH=parseInt(wT); if(tb.Lf()!=accountId&&tb.tG()!=protopageId){ mH=tb.Lf()+'-'+tb.tG()+'-'+mH; }var JK=new TH(); JK['id']=mH; JK['label']=dT(); JK['type']='local'; JK['positioning']='3col'; JK['schemeOffset']=tb['schemeOffset']; virtualPages.push(JK); tb['virtualPages'].push(JK['id']); JK.xu(); br.position(-10000,-10000); Uq.lu(); }; commandProcessor.xA(rm); ZX('tab_add'); }; }(tb); }for(var fJ in tb['virtualPages']){ var Mn=tb['virtualPages'][fJ]; var tD=jc(Mn); if(tD!=null){ var Na=new iT(); Na.qju=true; Na.tD=tD; Na.Mn=Mn; Na.tb=tb; Na.qG=qG; qG.IZu.push(Na); Na.vnT=new Cn(); Na.vnT.kV(true,false,false,Na); Na.Tl(LD,Na.vnT.LD,null,tD['schemeOffset'],false,true,null,null,null); Na.LD.style.cursor='move'; Na.XK.style.cursor='pointer'; Na.LD.onmousedown=function(Na){ return function(eu){ if(Uq.hXj) return; hW(eu,Na.LD,Na,function(jL,mVY,ef,bca){ JA.Mp=Na; JA.XCX=Na.tb; JA.npX=Na.qG; JA.EGo=wM.lK(Na); JA.wYr=JA.XCX; JA.tuC=JA.npX; JA.Hot=JA.EGo; Na.fCI=Na.left; Na.DLU=Na.top; var MQ=Na.left+Math.floor(Na.width/2); for(var nd in JA.Mp.qG.IZu){ var Ul=JA.Mp.qG.IZu[nd]; Ul.hoC=((Ul.left+12)<=MQ); }},function(jL,mVY,jw,jP,ef,bca){ if(!JA.XCX.IH()) return; if(true){ JA.cT(false); Na.position(Na.fCI+jw,Na.DLU+jP); }if((Math.abs(jw)<4)&&(Math.abs(jP)<4)){ JA.Hs=false; }else{ JA.Hs=true; eb.Mu(); }},function(jL,mVY,jw,jP,ef,bca){ var Mp=JA.Mp; JA.Mp=null; Na.WH(Na.mxM); JA.cT(false); if((Math.abs(jw)<4)&&(Math.abs(jP)<4)){ JA.Hs=false; }else{ JA.Hs=true; }if(!JA.XCX.IH()) return; var Cv=false; if(JA.XCX!=JA.wYr){ var BH=false; var Fv=null; for(var nd in JA.wYr['virtualPages']){ if(JA.wYr['virtualPages'][nd]==Mp.Mn){ if(BH){ Cv=true; Fv=nd; }BH=true; }}if(Cv){ JA.wYr['virtualPages'].splice(Fv,1); JA.XCX['virtualPages'].push(Mp.Mn); Uq.lu(); }}else{ if(JA.Hot!=JA.EGo){ JA.XCX.AW(); }}if(!Cv&&(JA.XCX!=JA.wYr)){ var KB=document.createElement('div'); KB.style.paddingLeft='10px'; KB.style.paddingRight='10px'; KB.style.paddingTop='5px'; KB.style.paddingBottom='5px'; var jh=pm('Did you want to:',12,false,false); jh.style.paddingBottom='10px'; var Fr=document.createElement('div'); Fr.appendChild(Mw('Move',15,true,null,function(){ kP(JA.XCX,JA.wYr,Mp.Mn); JA.XCX.AW(); JA.wYr.AW(); JA.qoF.position(-10000,-10000); },null,true)); Fr.appendChild(gd(' the tab to this category, or')); var Dd=document.createElement('div'); Dd.appendChild(Mw('Copy',15,true,null,function(){ JA.qoF.position(-10000,-10000); var Lq=false; for(var nd in JA.XCX['virtualPages']){ if(JA.XCX['virtualPages'][nd]==Mp.Mn) Lq=true; }if(!Lq){ JA.XCX['virtualPages'].push(Mp.Mn); ES(JA.XCX,JA.wYr,Mp.Mn); JA.XCX.AW(); JA.wYr.AW(); }Uq.lu(); },null,true)); Dd.appendChild(gd(' the tab to this category?')); KB.appendChild(jh); KB.appendChild(Fr); KB.appendChild(Dd); var CU=Mp.left+Mp.pc()-20; var cD=Mp.top+Mp.el(); if(!JA.qoF){ JA.qoF=new QF(CU,cD,true,2000,'04',KB,!false,true,null,pT,null,null,null,true); JA.qoF.eV(function(){ JA.qoF.position(-10000,-10000); }); }else{ JA.qoF.KT(KB); JA.qoF.position(CU,cD,false); }}}); return true; }}(Na); var iC=function(Na){ MW(Na.LD,function(){ if(ds!=null){ var WS=true; if(!ds.IH()) WS=false; if(!Na.tD.IH()) WS=false; if(ds.Oe()!=Na.tD.Lf()) WS=false; if(ds.sI()!=Na.tD.tG()) WS=false; if(WS){ Na.vnT.jgk.style.display='block'; }}}); OI(Na.LD,function(){ Na.vnT.jgk.style.display='none'; }); gs(Na.LD,function(){ Na.vnT.jgk.style.display='none'; if(ds!=null){ var WS=true; if(!ds.IH()) WS=false; if(!Na.tD.IH()) WS=false; if(ds.Oe()!=Na.tD.Lf()) WS=false; if(ds.sI()!=Na.tD.tG()) WS=false; if(WS) Yu(ds,Na.Mn); }}); }(Na); Na.LD.onmouseover=function(Na){ return function(){ var Ni=wM.Ni(Na); if(Ni) Na.XK.style.textDecoration='underline'; Na.qu=true; return true; }}(Na); Na.LD.onmouseout=function(Na){ return function(){ Na.XK.style.textDecoration='none'; Na.qu=false; return true; }}(Na); Na.vnT.LPv.onclick=function(Na){ return function(eu){ if(JA.Hs==true){ return true; }; var Ni=wM.Ni(Na); if(!Ni){ Na.XK.style.textDecoration='none'; JA.Rg(Na); ZX('tab_click',Na.tD['label']); }return true; }}(Na); }}}if(loggedIn){ this.dlH=this.EG('New private category'); this.Cfb=this.EG('New public category',true); this.ZFF=this.EG('New restricted category',false,true); }var TJ=new iT(); this.TJ=TJ; TJ.bqB=true; TJ.vnT=new Cn(); var qB=pm('Help',Xw,false); qB.className='scheme-header-text'; qB.style.fontWeight='normal'; TJ.vnT.kV(false,false,true,TJ,tb,qB); TJ.Tl(LD,TJ.vnT.LD,null,'10',false,true,null,null,null); TJ.vnT.LD.style.cursor='pointer'; TJ.vnT.Qk(); TJ.vnT.LD.onmousedown=function(eu){ preventDefault(eu); ii(Zv.AHq) }; var VZ=new iT(); this.VZ=VZ; VZ.bqB=true; VZ.vnT=new Cn(); var Ys=document.createElement('div'); Ys.style.fontSize='0px'; var jH=document.createElement('div'); jH.style.fontSize='0px'; jH.style.width='13px'; jH.style.height='14px'; KX(jH,'/web/images/reveal-up-double-small.png'); jH.style.backgroundPosition='0px 0px'; Ys.appendChild(Fk([ji(1),jH,ji(eG('scheme-header-text',Xw,false,false))])); VZ.vnT.kV(false,false,true,VZ,tb,Ys); VZ.Tl(LD,VZ.vnT.LD,null,'10',false,true,null,null,null); VZ.vnT.LD.style.cursor='pointer'; VZ.vnT.Qk(); VZ.vnT.LD.onmousedown=function(eu){ preventDefault(eu); if(enableCompactTopArea){ Sr=false; dh(); Sl.position(); Im.position(); }JA.lbT=true; Uq.tC(false); ZX('carousel_close'); }; var dw=new iT(); this.dw=dw; dw.bqB=true; dw.vnT=new Cn(); var pG=document.createElement('div'); pG.style.fontSize='0px'; var mO=document.createElement('div'); mO.style.fontSize='0px'; mO.style.width='13px'; mO.style.height='14px'; KX(mO,'/web/images/reveal-down-double-small.png'); mO.style.backgroundPosition='0px -1px'; pG.appendChild(Fk([ji(1),mO,ji(eG('scheme-header-text',Xw,false,false))])); dw.vnT.kV(false,false,true,dw,tb,pG); dw.Tl(LD,dw.vnT.LD,null,'10',false,true,null,null,null); dw.vnT.LD.style.cursor='pointer'; dw.vnT.Qk(); dw.vnT.LD.onmousedown=function(eu){ preventDefault(eu); if(!Sr&&enableCompactTopArea){ Sr=true; JA.cT(); dh(); Sl.position(); Im.position(); }else{ Uq.tC(true); ZX('carousel_open'); }}; this.VbN=this.cj(LD); this.emL=this.Nt(LD); this.cT(true); }; wM.prototype.Rg=function(Na){ IZ=Na.tb; qf(Na.tD['id']); if(this.isExpanded) this.isExpanded=false; this.cT(true); }; wM.Ni=function(Na){ if(Na.bqB) return false; return(Na.tD.lE()&&IZ==Na.tb); }; wM.prototype.Hx=function(){ for(var gv in this.leO){ var qG=this.leO[gv]; var JR=qG.JR; JR.vnT.Qk(); JR.AkF.position(); }this.cT(false); }; wM.prototype.tC=function(isExpanded){ eb.Mu(); var JA=this; this.isExpanded=isExpanded; if(!isExpanded){ if(JA.qoF){ JA.qoF.position(-10000,-10000); }}for(var gv in this.leO){ var qG=this.leO[gv]; var JR=qG.JR; JR.vnT.Qk(); }this.cT(false); setTimeout(function(){ for(var gv in JA.leO) JA.leO[gv].JR.vnT.DOg.vZ(isExpanded); },1); this.DPB=new Date().getTime(); }; wM.prototype.EG=function(label,SY,ed){ var da=new iT(); da.bqB=true; da.vnT=new Cn(); var bX=document.createElement('div'); var pV=GP(); pV.width=11; pV.height=11; pV.src='/web/images/add-item.gif'; var Pa=pm(label,Xw,false); Pa.className='scheme-header-text'; Pa.style.whiteSpace='nowrap'; Pa.style.fontWeight='normal'; bX.appendChild(Fk([pV,bW(5),Pa])); da.vnT.kV(false,false,true,da,null,bX); da.Tl(this.jL,da.vnT.LD,null,'10',false,true,null,null,null); da.vnT.LD.style.cursor='pointer'; da.vnT.Qk(); da.vnT.LD.onmousedown=function(eu){ preventDefault(eu); var UO=document.createElement('div'); UO.style.paddingLeft='10px'; UO.style.paddingRight='10px'; UO.style.paddingTop='5px'; UO.style.paddingBottom='5px'; UO.appendChild(pm('Syncing with server, please wait...',12,false,false)); var cn=Xt(eu); var br=new QF(cn.x,cn.y,true,2000,'00',UO,!false,false,null,pT,null,null,null,true); SN.cR(SY,ed,function(){ br.position(-10000,-10000); Uq.lu(); }); var type='private'; if(SY) type='public'; if(ed) type='restricted'; ZX('category_tab_add',type); }; return da; }; wM.lK=function(Na){ var qG=Na.qG; for(var gv in qG.IZu){ var Zf=qG.IZu[gv]; if(Na==Zf){ return gv; }}}; wM.prototype.Nt=function(gX){ var LD=document.createElement('div'); LD.className='scheme-body-text'; LD.style.padding='10px 20px'; if(!loggedIn){ LD.innerHTML='<div style="width:425px">      <div style="font-size:14px; font-weight:bold; padding-bottom:14px">Help</div>      <div style="font-size:12px; padding-bottom:12px">This page is organized into tabs, which are grouped into different categories. Click on a tab to navigate to it.</div>      <div style="font-size:12px; padding-bottom:12px">To read the online manual, <a target="_BLANK" href="'+Zv.Hdr+'">click here</a>.</div></div>'; }else{ LD.style.fontSize='30px'; LD.innerHTML='<div style="width:625px"><div style="font-size:14px; font-weight:bold; padding-bottom:14px">Advanced tab configuration</div>      <div style="font-size:12px; padding-bottom:12px">You can create different \'tabs\' to help you organize your widgets. To create a new tab, click the \'+ New tab\' button.</div>      <div style="font-size:12px; padding-bottom:12px">Your tabs are grouped into \'categories\'. For each category, you can decide whether tabs are kept private, shared with a restricted group of people, or made public so that anyone can visit them.</div>      <div style="font-size:12px; padding-bottom:12px">Click the <img style="position:relative; top:2px;" src="/web/images/reveal-down-small2.gif"> button for each tab above to configure the tab options. '+
'</div>      <div style="font-size:12px; padding-bottom:12px">Click the <img style="position:relative; top:2px;" src="/web/images/reveal-down-small2.gif"> button for each category above to configure the category sharing options. '+
'</div>      <div style="font-size:12px; padding-bottom:12px">If you do not wish to create new tabs or share your tabs, click the <img style="position:relative; top:3px;" src="/web/images/reveal-up-double-small.gif"> button to return to your page.</div></div>'; }var bs=new QF(-10000,-10000,false,JN,'00',LD,true,false,null,gX); return bs; }; wM.prototype.cj=function(gX){ var xe=false; if(this.leO.length>0){ var qG=this.leO[0]; xe=(qG.tb['sharing']['type']=='private'); }var LD=document.createElement('div'); LD.className='scheme-body-text'; LD.style.padding='10px 20px'; if(!loggedIn){ LD.innerHTML='<div style="width:425px">      <div style="font-size:14px; font-weight:bold; padding-bottom:14px">Help</div>      <div style="font-size:12px; padding-bottom:12px">This page is organized into tabs, which are grouped into different categories. Click on a tab to navigate to it.</div>      <div style="font-size:12px; padding-bottom:12px">To read the online manual, <a target="_BLANK" href="'+Zv.Hdr+'">click here</a>.</div></div>'; }else{ LD.style.fontSize='30px'; var Yd='			<div style="width:625px"><div style="font-size:14px; font-weight:bold; padding-bottom:14px">Tab options</div>			<div style="font-size:12px; padding-bottom:12px">Click the text of the currently selected tab to rename it. Click the <img style="position:relative; top:2px;" src="/web/images/reveal-down-small2.gif"> button for the currently selected tab above to configure layout and color options. </div><div style="padding-top:14px;"><div style="font-size:14px; font-weight:bold; padding-bottom:14px">Page sharing</div>'; if(xe){ Yd+='<div style="font-size:12px; padding-bottom:12px">Your page is currently <b>'+'private'+'</b>. Only you can see it.</div>'; Yd+='<div style="font-size:12px; padding-bottom:12px"><span onclick="setSimpleSharingPrivate(false);" style="text-decoration:underline; cursor:pointer">Click here</span> to make your page public, so that anyone can visit (but not edit) your page at www.protopage.com/'+(UC()?'yourname':protopagePath)+' </div>'; }else{ Yd+='<div style="font-size:12px; padding-bottom:12px">Your page is currently <b>'+'public'+'</b>. People can view it at http://www.protopage.com/'+protopagePath+'</div>'; Yd+='<div style="font-size:12px; padding-bottom:12px"><span onclick="setSimpleSharingPrivate(true);" style="text-decoration:underline; cursor:pointer">Click here</span> to make your page private, so that only you can view it.</div>'; }Yd+='      <div style="font-size:14px; padding-bottom:12px; padding-top:14px;"><b>Advanced</b></div>      <div style="font-size:12px; padding-bottom:12px">You can create tab categories, and choose sharing options on a per category basis, rather than for the whole page. You can also assign a special \'read only\' password so that other people can view the page but not change it.</div>      <div style="font-size:12px; padding-bottom:12px">To enabled advanced mode, <span onclick="toAdvancedSharingMode();" style="text-decoration:underline; cursor:pointer">click here</span>.</div></div>'; LD.innerHTML=Yd; }var bs=new QF(-10000,-10000,false,JN,'00',LD,true,false,null,gX); return bs; }; function setSimpleSharingPrivate(TQe){ if(UC()){ alert('To enable this feature, please register first.'); }else{ var qG=Uq.leO[0]; qG.tb['sharing']['type']=TQe?'private':'public'; qG.tb.xu(); Uq.Hx(); Uq.lu(); }}function toAdvancedSharingMode(){ Uq.lbT=false; Uq.cT(); }function kQ(Na){ var JA=this; this.Na=Na; this.tb=this.Na.tb; eb.eV(function(){ JA.tb.xu(); Uq.Hx(); }); var x=Na.left+Na.LD.offsetWidth-14; var y=Na.top+Na.LD.offsetHeight-10; this.LD=document.createElement('div'); this.LD.className='scheme-body-text'; this.LD.style.fontSize='12px'; this.LD.style.paddingLeft='15px'; this.LD.style.paddingRight='15px'; this.LD.style.paddingTop='5px'; this.LD.style.paddingBottom='5px'; this.LD.style.width='400px'; this.LD.appendChild(bW(430)); this.LD.appendChild(pm('Category settings',14,true)); this.LD.appendChild(ji(16)); this.iSA=new WD(function(XG){ JA.tb['schemeOffset']=XG; JA.Na.XG=XG; JA.Na.PA(); JA.tb.xu(); }); this.LD.appendChild(Fk([pm('Category color',12,false),bW(18),this.iSA.LD])); this.LD.appendChild(ji(12)); this.WMm=document.createElement('div'); this.WMm.appendChild(pm('Sharing',12,false)); this.WMm.appendChild(ji(5)); this.WMm.style.marginBottom='5px'; this.LD.appendChild(this.WMm); this.AiJ=new gu(['Private','Public','Restricted'],['private','public','restricted'],function(value){ JA.tb['sharing']['type']=value; JA.Nx(); }); this.WMm.appendChild(this.AiJ.jL); this.WMm.appendChild(ji(6)); this.WMm.style.display=this.tb.Fc()?'none':'block'; this.SeS=document.createElement('div'); this.SeS.style.display=(this.tb.Fc()&&!UC())?'block':'none'; if(this.tb.Fc()){ this.SeS.appendChild(pm('This tab has been imported from '+Zv.JJe+'/'+JA.tb['sharing']['granterProtopagePath'],12,false)); this.SeS.appendChild(ji(6)); this.SeS.appendChild(pm('If you have been assigned a special password to access this category, please enter it here:',12,false)); this.SeS.appendChild(ji(6)); var nb=eT(JA.tb['sharing']['guestPassword'],120,OJ,function(wFP,value){ JA.tb['sharing']['guestPassword']=value; },null,12); this.SeS.appendChild(Fk([pm('Password: ',12,false),bW(10),nb,bW(10),Mw('Save and reload',12,false,0,function(){ JA.tb.xu(function(){ document.location.reload(); }); },null,true)])); this.SeS.appendChild(ji(6)); if(JA.tb['sharing']['guestPasswordState']!='correct'){ this.SeS.appendChild(pm('Warning: The password you have entered has not been recognized. You only need to enter a password here if the owner of the imported category has specially assigned you one. If your password no longer works, it means that the owner of the category you have imported has either switched off sharing or changed the password. Please contact them directly.',12,false)); }}this.LD.appendChild(this.SeS); this.BlF=document.createElement('div'); this.LD.appendChild(this.BlF); this.BlF.style.display=UC()?'block':'none'; var oV=document.createElement('div'); oV.appendChild(document.createTextNode('You can register your page, e.g. as '+hK+', and then share your page with others. You can make it public so that anyone can see it, or you can set up passwords so that only certain people can view or modify your page.')); var fa=document.createElement('div'); fa.style.paddingTop='12px'; fa.appendChild(document.createTextNode('To enable sharing, please register your page by ')); var kC=document.createElement('span'); kC.appendChild(document.createTextNode('clicking here')); kC.style.cursor='pointer'; kC.style.textDecoration='underline'; kC.style.fontWeight='bold'; kC.onclick=function(){ EB(); }; fa.appendChild(kC); this.BlF.appendChild(oV); this.BlF.appendChild(fa); this.PYq=document.createElement('div'); this.LD.appendChild(this.PYq); this.gii=document.createElement('div'); this.gii.style.paddingTop='12px'; this.LD.appendChild(this.gii); this.gii.appendChild(this.dV('Set a password to allow others to view tabs in this category','Guests will be able to log into your page with this password and view the tabs in this category. They will only be able to view the tabs, and will not be able to change their contents.',JA.tb['sharing']['viewPassword'],function(value){ JA.tb['sharing']['viewPassword']=value; })); this.SWJ=document.createElement('div'); this.SWJ.style.paddingTop='12px'; this.LD.appendChild(this.SWJ); this.SWJ.appendChild(this.dV('Set a password to allow others to modify tabs in this category','Guests will be able to log into your page with this password and modify the contents of the tabs in this category. They will be able to change, add or delete widgets. They will also be able to rename and reorder the tabs.',JA.tb['sharing']['modifyPassword'],function(value){ JA.tb['sharing']['modifyPassword']=value; })); this.LD.appendChild(ji(15)); var xK=document.createElement('div'); xK.style.fontSize='0px'; xK.style.width='11px'; xK.style.height='11px'; xK.style.marginTop='2px'; KX(xK,'/web/images/todo-cross.png'); var ni=Fk([xK,bW(6),Mw('Delete this category',12,false,0,function(){ },null,true)]); var oI=document.createElement('div'); oI.style.clear='both'; oI.style.cursor='pointer'; oI.style.marginTop='2px'; oI.appendChild(ni); oI.onclick=function(){ eb.Mu(); if(JA.tb.Fc()){ var FU=confirm("You are about to remove this imported category from your page. Are you sure?"); if(FU){ JA.tb.Ce(); Uq.lu(); }}else{ var Nv=0; for(var gv=0;gv<categories.length;gv++){ if(!categories[gv].Fc()) Nv++; }if(Nv<2){ alert('You cannot delete this category, because you must have at least one (non-imported) category within your page.'); }else if(JA.tb['virtualPages'].length>0){ alert('As a safety precaution, you must delete all tabs within this category before you can delete it.'); }else{ var FU=confirm("You are about to permanently delete this category from your page. Are you sure?"); if(FU){ JA.tb.Ce(); Uq.lu(); }}}}; var jS=Mw('Cancel',12,false,0,function(){ eb.Mu(); },null,true); jS.style.display='block'; jS.style.paddingBottom='1px'; var Gu=Mw('Save',14,true,0,function(){ eb.Mu(); JA.tb.xu(); Uq.Hx(); },null,true); this.LD.appendChild(oI); var aW=Fk([jS,bW(10),Gu],'bottom'); jX(aW); this.LD.appendChild(aW); this.LD.appendChild(ji(5)); setTimeout(function(){ JA.AiJ.KH(JA.tb['sharing']['type']); },1); eb.FT(this.LD,x,y); this.Nx(); }kQ.prototype.Nx=function(){ var value=this.tb['sharing']['type']; this.BlF.style.display=UC()?'block':'none'; this.PYq.style.display=UC()?'none':'block'; this.gii.style.display='none'; this.SWJ.style.display='none'; if(!UC()){ if(value=='private'){ OH(this.PYq,'Only you can see the tabs in this category (unless some of the tabs have been shared via other categories).'); }if(value=='public'){ OH(this.PYq,'Tabs in this category can be viewed by anyone when they visit the URL '+Zv.JJe+'/'+protopagePath); this.SWJ.style.display='block'; }if(value=='restricted'){ OH(this.PYq,'No one will be able to view or modify tabs in this category unless you give them a password. Guests that know the password can access your tabs at the URL '+Zv.JJe+'/'+protopagePath); this.gii.style.display='block'; this.SWJ.style.display='block'; }}eb.GO.Cw(); }; kQ.prototype.dV=function(description,HNd,cAr,DCP){ var table=document.createElement('table'); var FB=document.createElement('tbody'); var Kn=document.createElement('tr'); var bK=document.createElement('tr'); var Zi=document.createElement('tr'); var XQ=document.createElement('td'); var ml=document.createElement('td'); var Ch=document.createElement('td'); var xG=document.createElement('td'); var RB=document.createElement('td'); var nM=document.createElement('td'); table.appendChild(FB); FB.appendChild(Kn); FB.appendChild(bK); FB.appendChild(Zi); Kn.appendChild(XQ); Kn.appendChild(ml); bK.appendChild(Ch); bK.appendChild(xG); Zi.appendChild(RB); Zi.appendChild(nM); Kn.vAlign='top'; var SL=document.createElement('input'); SL.type='checkbox'; SL.style.margin='1px'; SL.style.width='4ex'; if(!cAr) cAr=''; SL.checked=cAr!=''; XQ.appendChild(SL); ml.appendChild(pm(description,12,false)); var eJ; var wO=eT(cAr,120,OJ,function(lho,value){ if(DCP) DCP(value); },function(oZt){ eJ=oZt; },12); var nX=document.createElement('div'); nX.style.paddingTop='4px'; var QQ=Fk([pm('Password: ',12,false),bW(10),wO]); nX.appendChild(QQ); xG.appendChild(nX); var nE=pm(HNd,12,false); nE.style.paddingTop='6px'; nM.appendChild(nE); SL.onclick=function(){ if(SL.checked){ nX.style.display='block'; nE.style.display='block'; }else{ nX.style.display='none'; nE.style.display='none'; eJ.value=''; DCP(''); }eb.GO.Cw(); }; nX.style.display='none'; nE.style.display='none'; if(cAr!=''){ nX.style.display='block'; nE.style.display='block'; }return table; }; function Ft(AXx,Om){ var JA=this; this.LD=document.createElement('div'); this.LD.style.width=55+'px'; this.LD.style.height=25+'px'; this.LD.style.cursor='pointer'; this.AXx=AXx; oa('/web/images/bw-choice-black.gif'); oa('/web/images/bw-choice-white.gif'); this.LD.onmousedown=function(){ JA.AXx=!JA.AXx; JA.rd(JA.AXx); }; this.rd(this.AXx); this.Om=Om; }Ft.prototype.tt=function(uR){ this.rd(uR.toLowerCase()!='ffffff'); }; Ft.prototype.rd=function(AXx){ this.AXx=AXx; this.LD.style.backgroundImage=AXx?'url(/web/images/bw-choice-black.gif)':'url(/web/images/bw-choice-white.gif)'; if(this.Om) this.Om(AXx?'000000':'ffffff'); }; function pn(){ this.hOP=false; this.LD=document.createElement('div'); }pn.prototype.open=function(){ if(this.hOP==true) return; this.hOP=true; jI(true); if(!this.GO){ this.ve(); }else{ this.GO.VX(); }this.jXE=new Array(); for(var gv in colorsAndSettings) this.jXE[gv]=colorsAndSettings[gv]; this.Zb(); }; pn.prototype.close=function(obI){ if(this.hOP==false) return; this.hOP=false; jI(false); if(!obI){ for(var gv in this.jXE) colorsAndSettings[gv]=this.jXE[gv]; this.GO.hide(); }else{ ZX('colors_settings_save'); LM(this.ZLk); this.ZLk.appendChild(document.createTextNode('Saving and reloading...')); this.ZLk.style.textDecoration='none'; colorsAndSettings.wallpaperImageUrl=this.kij.LT(); SV(true); }}; pn.prototype.ve=function(){ var JA=this; if(!this.GO){ this.GO=QF.qX(this.LD); this.LD.style.overflow='auto'; var table=document.createElement('table'); var FB=document.createElement('tbody'); var Kn=document.createElement('tr'); var QB=document.createElement('td'); var ur=document.createElement('td'); table.width='100%'; table.border='0'; Kn.align='center'; QB.align='center'; ur.align='center'; QB.vAlign='top'; ur.vAlign='top'; var eF=document.createElement('div'); eF.appendChild(Mw('Load defaults',12,false,null,function(){ colorsAndSettings.headerForegroundColor=Zv.colorsAndSettings.headerForegroundColor; colorsAndSettings.headerBackgroundColor=Zv.colorsAndSettings.headerBackgroundColor; colorsAndSettings.bodyForegroundColor=Zv.colorsAndSettings.bodyForegroundColor; colorsAndSettings.bodyBackgroundColor=Zv.colorsAndSettings.bodyBackgroundColor; colorsAndSettings.backgroundColor=Zv.colorsAndSettings.backgroundColor; colorsAndSettings.backgroundMode=Zv.colorsAndSettings.backgroundMode; colorsAndSettings.backgroundPattern=Zv.colorsAndSettings.backgroundPattern; colorsAndSettings.backgroundHueOffset=Zv.colorsAndSettings.backgroundHueOffset; colorsAndSettings.backgroundSaturationOffset=Zv.colorsAndSettings.backgroundSaturationOffset; colorsAndSettings.backgroundLightnessOffset=Zv.colorsAndSettings.backgroundLightnessOffset; colorsAndSettings.wallpaperImageUrl=Zv.colorsAndSettings.wallpaperImageUrl; colorsAndSettings.wallpaperMode=Zv.colorsAndSettings.wallpaperMode; colorsAndSettings.panelDropShadowPreference=Zv.colorsAndSettings.panelDropShadowPreference; colorsAndSettings.openLinksInNewWindow=Zv.colorsAndSettings.openLinksInNewWindow; JA.Zb(); JA.xmN.vv(); JA.xmN.GW(); },null,true)); eF.appendChild(Nq(5)); eF.appendChild(Mw('Cancel',12,false,null,function(){ JA.close(false); },null,true)); eF.appendChild(Nq(6)); this.ZLk=Mw('Save',18,true,null,function(){ JA.close(true); },null,true); eF.appendChild(this.ZLk); eF.style.paddingBottom='18px'; eF.appendChild(Nq(3)); jX(eF); this.LD.appendChild(eF); var mU=pm('Colors and settings',18,true); mU.style.paddingBottom='28px'; this.LD.appendChild(mU); this.LD.appendChild(table); table.appendChild(FB); FB.appendChild(Kn); Kn.appendChild(QB); Kn.appendChild(ur); var UN=document.createElement('div'); var Um=document.createElement('div'); UN.style.width='350px'; Um.style.width='450px'; UN.style.textAlign='left'; Um.style.textAlign='left'; QB.appendChild(UN); ur.appendChild(Um); this.xmN=new iE(Um); var eU=pm('Widget title background color',12,false); eU.style.paddingBottom='8px'; UN.appendChild(eU); this.KIu=new sP(UN,false,function(ao){ JA.xmN.ap(ao); colorsAndSettings.headerBackgroundColor=ao; }); var nD=pm('Widget content background color',12,false); nD.style.paddingBottom='8px'; UN.appendChild(nD); this.pmD=new sP(UN,false,function(ao){ JA.xmN.Kw(ao); colorsAndSettings.bodyBackgroundColor=ao; }); var sZ=pm('Preview',14,true); sZ.style.paddingBottom='8px'; Um.appendChild(sZ); Um.appendChild(ji(12)); this.ptH=new Ft(false,function(ao){ JA.xmN.Gn(ao); colorsAndSettings.headerForegroundColor=ao; }); this.fES=new Ft(!true,function(ao){ JA.xmN.tP(ao); colorsAndSettings.bodyForegroundColor=ao; }); Um.appendChild(Fk([ pm('Widget title text color',12,false),bW(7),this.ptH.LD,bW(24),pm('Widget content text color',12,false),bW(7),this.fES.LD,])); this.XFk=document.createElement('table'); this.XFk.cellSpacing=5; this.ZdC=document.createElement('tbody'); this.XFk.appendChild(this.ZdC); Um.appendChild(ji(18)); Um.appendChild(pm('Page background',12,true)); Um.appendChild(ji(5)); Um.appendChild(this.XFk); this.pEC=document.createElement('table'); this.pEC.cellSpacing=5; this.AgY=document.createElement('tbody'); this.pEC.appendChild(this.AgY); UN.appendChild(pm('Advanced page settings',12,true)); UN.appendChild(this.pEC); if(!UC()){ UN.appendChild(Mw('Account details / change your password',12,false,null,function(){ ii('/'+protopagePath+'/_api/editAccount'); },null,true)); }var mE=document.createElement('tr'); var Nl=document.createElement('td'); Nl.colSpan=3; mE.appendChild(Nl); this.Onx=new sP(Nl,false,function(ao){ colorsAndSettings.backgroundColor=ao; JA.xmN.vv(); }); var Wp=document.createElement('tr'); var ZE=document.createElement('td'); var qJ=document.createElement('td'); qJ.colSpan=2; Wp.appendChild(ZE); Wp.appendChild(qJ); qJ.appendChild(Mw('Preview chosen wallpaper',11,false,0,function(){ ii(colorsAndSettings.wallpaperImageUrl); },null,true)); this.Kgd=new gu(['Wallpaper image','Pattern','Plain color'],['WALLPAPER_IMAGE','PATTERN','PLAIN_COLOR'],function(no){ if(no==colorsAndSettings.backgroundMode) return; var hI=50; JA.jwP.KH(0); JA.psN.KH(hI); JA.hik.KH(0); JA.jwP.PC(); JA.psN.PC(); JA.hik.PC(); colorsAndSettings.backgroundHueOffset=0; colorsAndSettings.backgroundSaturationOffset=hI; colorsAndSettings.backgroundLightnessOffset=0; colorsAndSettings.backgroundMode=no; JA.Ek(); JA.xmN.vv(); }); this.Gga=new Zc(['Stitches','Dots','Fine diagonal stripes','Fine diagonal stripes 2','Diagonal tubes','Diagonal tubes 2','Fine horizontal stripes','Fine horizontal stripes 2','Horizontal tubes','Horizontal tubes 2','Fine vertical stripes','Mistle'],['stitches','dots','diagonal-stripes','diagonal-stripes2','diagonal-tubes','diagonal-tubes2','horizontal-stripes','horizontal-stripes2','horizontal-tubes','horizontal-tubes2','vertical-stripes','mistle'],function(no){ colorsAndSettings.backgroundPattern=no; JA.xmN.vv(); }); this.jwP=new ne(180,-180,180,null,function(no){ colorsAndSettings.backgroundHueOffset=no; if(colorsAndSettings.backgroundMode=='PLAIN_COLOR'){ JA.xmN.vv(); }},function(no){ colorsAndSettings.backgroundHueOffset=no; if(colorsAndSettings.backgroundMode=='PLAIN_COLOR'){ JA.xmN.vv(); }else{ JA.xmN.vv(); }}); this.psN=new ne(180,-100,100,null,function(no){ colorsAndSettings.backgroundSaturationOffset=no; if(colorsAndSettings.backgroundMode=='PLAIN_COLOR'){ JA.xmN.vv(); }},function(no){ colorsAndSettings.backgroundSaturationOffset=no; if(colorsAndSettings.backgroundMode=='PLAIN_COLOR'){ JA.xmN.vv(); }else{ JA.xmN.vv(); }}); this.hik=new ne(180,-100,100,null,function(no){ colorsAndSettings.backgroundLightnessOffset=no; if(colorsAndSettings.backgroundMode=='PLAIN_COLOR'){ JA.xmN.vv(); }},function(no){ colorsAndSettings.backgroundLightnessOffset=no; if(colorsAndSettings.backgroundMode=='PLAIN_COLOR'){ JA.xmN.vv(); }else{ JA.xmN.vv(); }}); var JF=new Array(); for(var gv in wallpaperChoices) JF[gv]=wallpaperChoices[gv].label; var EZ=new Array(); for(var gv in wallpaperChoices) EZ[gv]=wallpaperChoices[gv].url; this.JfN=new Zc(JF,EZ,function(no){ colorsAndSettings.wallpaperImageUrl=no; JA.kij.KH(colorsAndSettings.wallpaperImageUrl); JA.xmN.vv(); }); this.kij=new Eh(function(no){ colorsAndSettings.wallpaperImageUrl=no; JA.xmN.vv(); }); this.wLO=new Zc(['Centered','Tiled'],['CENTER','TILE'],function(no){ colorsAndSettings.wallpaperMode=no; JA.xmN.vv(); }); this.BxH=new Nj('Enable widget shadows',function(no){ if(colorsAndSettings.panelDropShadowPreference==no) return; colorsAndSettings.panelDropShadowPreference=no?'ALWAYS':'NEVER'; JA.xmN.GW(); }); this.VQB=new Nj('Open bookmarks in new windows',function(no){ colorsAndSettings.openLinksInNewWindow=no; }); this.hXU=new Nj('Open news items directly (disable feed reader)',function(no){ colorsAndSettings.disableFeedReader=no; }); this.pqv=new Nj('Disable news preview bubble during hover',function(no){ colorsAndSettings.disableNewsPreviewBubbles=no; }); this.pFq=new Nj('Hide read headlines (instead of graying them out)',function(no){ colorsAndSettings.hideReadHeadlines=no; }); this.NVu=new Nj('Disable news item photo thumbnails',function(no){ colorsAndSettings.enableNewsThumbnails=!no; }); this.qHj=new Nj('Use larger fonts',function(no){ colorsAndSettings.useLargerFonts=no; }); this.gKw=new Nj('Use rounded corners',function(no){ colorsAndSettings.useRoundedCorners=no; }); this.KlJ=new Nj('Hide toolbar buttons at top of page',function(no){ colorsAndSettings.enableCompactTopArea=no; }); this.ZdC.appendChild(EY(this.Kgd)); this.JSN=new Array(); this.JSN.push(ff('Choose a background pattern',this.Gga)); this.JSN.push(Pv('Rotate background color',this.jwP)); this.JSN.push(Pv('Adjust amount of background color',this.psN)); this.JSN.push(Pv('Adjust background brightness',this.hik)); this.ejF=new Array(); this.ejF.push(mE); this.OxN=new Array(); this.OxN.push(ff('Choose your wallpaper',this.JfN)); this.OxN.push(Se('(or enter your own wallpaper url)',this.kij)); this.OxN.push(ff('Wallpaper display mode',this.wLO)); this.OxN.push(Wp); this.bcB=Jt(); this.ZdC.appendChild(this.bcB); this.AgY.appendChild(IW('',this.qHj)); this.AgY.appendChild(IW('',this.hXU)); this.AgY.appendChild(IW('',this.VQB)); this.AgY.appendChild(IW('',this.pqv)); this.AgY.appendChild(IW('',this.pFq)); this.AgY.appendChild(IW('',this.NVu)); this.AgY.appendChild(IW('',this.BxH)); this.AgY.appendChild(IW('',this.gKw)); this.AgY.appendChild(IW('',this.KlJ)); this.AgY.appendChild(Jt()); }return this.GO; }; pn.prototype.Ek=function(){ for(var gv in this.JSN){ try{this.ZdC.removeChild(this.JSN[gv]);}catch(eu){}}for(var gv in this.ejF){ try{this.ZdC.removeChild(this.ejF[gv]);}catch(eu){}}for(var gv in this.OxN){ try{this.ZdC.removeChild(this.OxN[gv]);}catch(eu){}}if(colorsAndSettings.backgroundMode=='PATTERN'){ for(var gv in this.JSN){ this.ZdC.insertBefore(this.JSN[gv],this.bcB); }this.psN.ja(0,100); }else if(colorsAndSettings.backgroundMode=='PLAIN_COLOR'){ for(var gv in this.ejF){ this.ZdC.insertBefore(this.ejF[gv],this.bcB); }this.psN.ja(-100,100); }else if(colorsAndSettings.backgroundMode=='WALLPAPER_IMAGE'){ for(var gv in this.OxN){ this.ZdC.insertBefore(this.OxN[gv],this.bcB); }}}; function uG(label){ var YV=document.createElement('tr'); var RQ=document.createElement('td'); var LD=document.createElement('div'); LD.innerHTML=label; LD.className='scheme-body-text'; LD.style.fontWeight='bold'; LD.style.height='1.4em'; RQ.colSpan=3; RQ.appendChild(LD); YV.appendChild(RQ); return YV; }function bi(label){ var YV=document.createElement('tr'); var RQ=document.createElement('td'); RQ.colSpan=3; RQ.innerHTML=label; RQ.className='scheme-body-text'; RQ.style.fontSize='11px'; RQ.style.paddingLeft='42px'; YV.appendChild(RQ); return YV; }function Jt(){ var YV=document.createElement('tr'); var RQ=document.createElement('td'); RQ.innerHTML='&nbsp;'; RQ.className='scheme-body-text'; RQ.style.fontSize='20%'; YV.appendChild(RQ); return YV; }function IW(label,SL){ var YV=document.createElement('tr'); var RQ=document.createElement('td'); RQ.colSpan=3; YV.appendChild(RQ); RQ.appendChild(SL.jL); return YV; }function rK(cUi){ var YV=document.createElement('tr'); var RQ=document.createElement('td'); var LD=document.createElement('div'); LD.innerHTML='&nbsp;'; LD.style.backgroundColor='#ff0000'; if(cUi) LD.style.paddingTop=cUi+'px'; RQ.colSpan=3; RQ.style.textAlign='left'; RQ.align='left'; YV.appendChild(RQ); RQ.appendChild(LD); return YV; }function EY(Zho){ var YV=document.createElement('tr'); var RQ=document.createElement('td'); RQ.colSpan=3; RQ.style.textAlign='left'; RQ.align='left'; YV.appendChild(RQ); RQ.appendChild(Zho.jL); return YV; }function ff(label,WeN){ var YV=document.createElement('tr'); var RQ=document.createElement('td'); var Bd=document.createElement('td'); RQ.innerHTML=label; RQ.className='scheme-body-text'; Bd.colSpan=2; YV.appendChild(RQ); YV.appendChild(Bd); Bd.appendChild(WeN.jL); return YV; }function Se(label,qFm){ var YV=document.createElement('tr'); var RQ=document.createElement('td'); var Bd=document.createElement('td'); RQ.innerHTML=label; RQ.className='scheme-body-text'; Bd.colSpan=2; YV.appendChild(RQ); YV.appendChild(Bd); Bd.appendChild(qFm.jL); return YV; }function Pv(label,SdJ){ var YV=document.createElement('tr'); var RQ=document.createElement('td'); var Bd=document.createElement('td'); var Sd=document.createElement('td'); YV.appendChild(RQ); YV.appendChild(Bd); YV.appendChild(Sd); YV.className='scheme-body-text'; RQ.innerHTML=label; RQ.className='scheme-body-text'; Bd.appendChild(SdJ.LD); Sd.style.textAlign='right'; Sd.style.width='4.5ex'; Sd.className='scheme-body-text'; SdJ.iq(function(no){ Sd.innerHTML=''+Math.round(no); }); return YV; }pn.prototype.OA=function(){ this.jwP.KH(0); this.psN.KH(0); this.hik.KH(0); this.Gga.KH('diagonal-stripes'); }; pn.prototype.Zb=function(){ this.ptH.tt(colorsAndSettings.headerForegroundColor); this.KIu.tt(colorsAndSettings.headerBackgroundColor); this.fES.tt(colorsAndSettings.bodyForegroundColor); this.pmD.tt(colorsAndSettings.bodyBackgroundColor); this.Gga.KH(colorsAndSettings.backgroundPattern); this.jwP.KH(colorsAndSettings.backgroundHueOffset); this.psN.KH(colorsAndSettings.backgroundSaturationOffset); this.hik.KH(colorsAndSettings.backgroundLightnessOffset); this.Kgd.KH(colorsAndSettings.backgroundMode); this.Ek(); if(colorsAndSettings.backgroundMode=='PLAIN_COLOR'){ this.Onx.tt(colorsAndSettings.backgroundColor); }else{ this.Onx.tt('00ff00'); }this.JfN.KH(colorsAndSettings.wallpaperImageUrl); this.kij.KH(colorsAndSettings.wallpaperImageUrl); this.wLO.KH(colorsAndSettings.wallpaperMode); this.BxH.KH(colorsAndSettings.panelDropShadowPreference!='NEVER'); this.VQB.KH(colorsAndSettings.openLinksInNewWindow); this.hXU.KH(!!colorsAndSettings.disableFeedReader); this.pqv.KH(!!colorsAndSettings.disableNewsPreviewBubbles); this.pFq.KH(!!colorsAndSettings.hideReadHeadlines); this.NVu.KH(!!!colorsAndSettings.enableNewsThumbnails); this.qHj.KH(!!colorsAndSettings.useLargerFonts); this.gKw.KH(!!colorsAndSettings.useRoundedCorners); this.KlJ.KH(!!colorsAndSettings.enableCompactTopArea); this.xmN.ap(colorsAndSettings.headerBackgroundColor); this.xmN.Kw(colorsAndSettings.bodyBackgroundColor); this.xmN.Gn(colorsAndSettings.headerForegroundColor); this.xmN.tP(colorsAndSettings.bodyForegroundColor); this.xmN.vv(); this.xmN.GW(); }; function iE(parentElement){ var JA=this; this.LD=document.createElement('div'); parentElement.appendChild(this.LD); this.JX(); }iE.prototype.GW=function(){ this.LD.removeChild(this.hLY); this.hLY=wM.Ej(); FG(this.hLY,0,40,450,6); this.LD.appendChild(this.hLY); this.sEI.style.display=colorsAndSettings.panelDropShadowPreference!='NEVER'?'block':'none'; this.urD.style.display=colorsAndSettings.panelDropShadowPreference!='NEVER'?'block':'none'; this.lWS.AkF.cf(colorsAndSettings.panelDropShadowPreference!='NEVER'); this.eOD.AkF.cf(colorsAndSettings.panelDropShadowPreference!='NEVER'); for(var gv in this.WMM){ this.WMM[gv].AkF.cf(colorsAndSettings.panelDropShadowPreference!='NEVER'); }}; iE.prototype.vv=function(ao){ var FH=this.LD; if(colorsAndSettings.backgroundMode=='PATTERN'){ FH.style.backgroundImage='url("/web/pattern/'+Math.round(colorsAndSettings.backgroundHueOffset)+'/'+(Math.round(colorsAndSettings.backgroundSaturationOffset-100))+'/'+Math.round(colorsAndSettings.backgroundLightnessOffset)+'/'+colorsAndSettings.backgroundPattern+'.gif")'; }if(colorsAndSettings.backgroundMode=='PLAIN_COLOR'){ FH.style.backgroundImage=''; }if(colorsAndSettings.backgroundMode=='WALLPAPER_IMAGE'){ FH.style.backgroundRepeat='repeat'; FH.style.backgroundImage='url("'+colorsAndSettings.wallpaperImageUrl+'")'; }if(colorsAndSettings.backgroundMode=='PLAIN_COLOR'){ FH.style.backgroundColor='#'+colorsAndSettings.backgroundColor; }}; iE.prototype.JX=function(){ this.LD.style.position='relative'; this.LD.style.width=450+'px'; this.LD.style.height=200+'px'; this.vv(); this.hLY=wM.Ej(); FG(this.hLY,0,40,450,6); this.LD.appendChild(this.hLY); var qY=['Tab Aa','Bb','Cc','Dd','Ee','Ff','Gg','Hh','Ii','Jj','Kk']; var IS=20; this.WMM=new Array(); for(var gv in qY){ var label=qY[gv]; var Ht=new iT(); var LE=pm(label,11,false); LE.className='scheme-header-text'; LE.style.fontWeight=gv==0?'bold':'normal'; LE.style.paddingLeft='5px'; LE.style.paddingRight='5px'; LE.style.paddingBottom='5px'; Ht.Tl(this.LD,LE,null,'00',false,true,null,null,null); Ht.position(IS,40-eG('scheme-header-text',11,false,false)-5-5); this.WMM.push(Ht); IS+=10+10+cu(label,'scheme-header-text',11,gv==0,false)+1; }this.lWS=new iT(); var Lu=pm('Widget title text',12,true); this.Lu=Lu; Lu.className='scheme-header-text'; Lu.style.paddingLeft='5px'; Lu.style.paddingRight='5px'; Lu.style.paddingBottom='5px'; Lu.style.width=(isIE?260:250)+'px'; this.lWS.Tl(this.LD,Lu,null,'00',false,true,null,null,null); this.lWS.position(30,60); var Ae=eG('scheme-header-text',12,true,false)+10; this.LMc=Nm(30,60+Ae,270,80); var Xh=pm('Widget content text. The quick brown fox jumps over the lazy dog.',12,false); this.Xh=Xh; Xh.style.whiteSpace='normal'; Xh.style.paddingLeft='10px'; Xh.style.paddingRight='10px'; Xh.style.paddingTop='5px'; this.LMc.appendChild(Xh); this.LMc.style.backgroundColor='#ffffff'; this.LD.appendChild(this.LMc); this.LMc.style.zIndex=10; this.sEI=Nm(30-5,60+Ae,13,80); this.LD.appendChild(this.sEI); KX(this.sEI,'/web/images/4x-w.png',true,true); this.urD=Nm(30+270-5,60+Ae,13,80); this.LD.appendChild(this.urD); KX(this.urD,'/web/images/4x-e.png',true,true); this.eOD=new iT(); this.eOD.useMonoScheme=true; var ow=document.createElement('div'); ow.style.width='260px'; this.eOD.Xqu=true; this.eOD.feJ='ffffff'; this.eOD.XMI='ffffff'; this.eOD.Tl(this.LD,ow,null,'00',true,true,null,null,null); this.eOD.position(30,60+Ae+80); }; iE.prototype.Gn=function(ao){ this.Lu.style.color='#'+ao; for(var gv in this.WMM){ var Ht=this.WMM[gv]; Ht.XK.style.color='#'+ao; }}; iE.prototype.tP=function(ao){ this.OMJ=ao; this.Xh.style.color='#'+ao; }; iE.prototype.ap=function(ao){ this.lWS.Xqu=true; this.lWS.feJ=ao; this.lWS.XMI=ao; this.lWS.PA(); var UM=new II(ao); var TR=0; for(var gv in this.WMM){ var Ht=this.WMM[gv]; Ht.Xqu=true; var rE=(gv==10)?0:((gv/10)*360); var Jo=(gv==10)?-200:0; Ht.feJ=UM.lh(rE,Jo,null,ao); Ht.XMI=ao; Ht.PA(); TR++; }}; iE.prototype.Kw=function(ao){ var SO=ao; var cN=lP(SO,ah); var wF=lP(CE,ah); this.LMc.style.backgroundImage='url(/web/gradient/'+SO+'/'+ah+'/body-gradient.gif)'; this.LMc.style.backgroundRepeat='repeat-x'; this.LMc.style.backgroundPosition='top'; this.LMc.style.backgroundColor='#'+ao; this.eOD.Xqu=true; this.eOD.feJ=ao; this.eOD.XMI=ao; this.eOD.PA(); }; iE.prototype.ij=function(url){ if(!url){ this.LD.style.backgroundImage='none'; }else{ this.LD.style.backgroundImage='url('+url+')'; this.LD.style.backgroundRepeat='repeat'; }};function iS(){ this.LD=document.createElement('div'); this.hOP=false; this.Hpb=new Array(); this.Gvu='Open the web page for this article in a new window. If you are using Firefox or Internet Explorer 7, you can open links in new tabs by holding down the CTRL (or CMD) key while clicking.'; }iS.prototype.Ju=function(pHT){ var Xa=null; this.WSo.Pb(function(uf,NGT){ if(uf.svs){ if(uf.pHT==pHT){ Xa=NGT; return true; }}return false; },true); return Xa; }; iS.prototype.Oh=function(){ if(!this.hOP) return; var JA=this; var gC=null; this.WSo.Pb(function(uf){ if(uf.ag){ if(uf.ag==JA.KWu){ return true; }gC=uf.ag; }return false; }); if(gC){ this.Kj(gC.Mo.locatorUrl,gC.LK.guid); }}; iS.prototype.Gk=function(){ if(!this.hOP) return; var JA=this; var ag=null; this.WSo.Pb(function(uf){ if(uf.ag){ if(ag==JA.KWu){ ag=uf.ag; return true; }ag=uf.ag; }return false; }); if(ag){ this.Kj(ag.Mo.locatorUrl,ag.LK.guid); }}; iS.prototype.nW=function(){ if(!this.hOP) return; var JA=this; var gC=null; if(this.Hpb.length>0){ this.Hpb.pop(); gC=this.Hpb.pop(); }if(gC){ this.Kj(gC.Mo.locatorUrl,gC.LK.guid); }}; iS.prototype.IA=function(){ var url=this.mB.href; ii(url); }; iS.prototype.ju=function(){ if(!this.hOP) return; var JA=this; var dN=null; var Of=null; var OC=null; var ln=false; this.WSo.Pb(function(uf){ if(uf.ag){ dN=uf.ag; if(!OC&&!dN.tj){ OC=dN; }if(dN==JA.KWu){ ln=true; return false; }if(ln&&!dN.tj){ Of=dN; return true; }}return false; }); Of=Of?Of:OC; if(Of){ this.Kj(Of.Mo.locatorUrl,Of.LK.guid); }}; iS.prototype.Tr=function(tj){ if(!this.hOP) return; var JA=this; this.WSo.Pb(function(uf){ if(uf.ag){ if(tm.rgU){ if(tm.rgU==uf.ag.Mo.locatorUrl){ uf.ag.aC(tj); }}}return false; }); tm.Ar(tm.KWu.LK.guid,tm.KWu.Mo.locatorUrl); }; iS.prototype.cY=function(){ if(!this.hOP) return; jI(false); if(this.Eft){ this.Eft=false; this.reset(); }this.hOP=false; this.GO.position(-90000,-90000); setTimeout(function(){ for(var gv in panelDatas){ if(panelDatas[gv].tD==XE&&panelDatas[gv].pH==gKa){ var iD=panelDatas[gv].bH.prR.getAttribute('mode'); if(iD=='regular'||!iD) panelDatas[gv].bH.VO(); }}},1) }; iS.prototype.FI=function(){ if(!this.hOP) return; var width=ge()-tN()-20; this.JdF=width; var left=tN()+10; var top=uS()+10; var height=RV()-top-10; this.GO.fw(left,top,width,height); var JI=this.JI; var qp=42; var Io=height-qp-20; var qC=16; var rx=isIE?0:8; var uQ=width-14-14-qC-JI-rx; var nT=0; var fg=38; var wh=JI; var fi=width-150-14-29-wh; this.Ahi=fi; FG(this.qCU,14,0,wh,fg); FG(this.LHs,wh+29,0,fi,fg); FG(this.gxh,width-14-150,0,150,fg); FG(this.Mhc,14,qp,JI,Io-nT); FG(this.vxx,14,qp-4,width-14-14,1); FG(this.rQT,14+JI,qp,qC,Io); FG(this.QSk,14+JI+qC,qp,uQ,Io); }; iS.prototype.QM=function(){ var JA=this; this.JI=280; if(!this.GO){ var width=ge()-tN()-20; this.JdF=width; var left=tN()+10; var top=uS()+10; var height=RV()-top-10; this.GO=new QF(left,top,false,At,'00',this.LD,false,false,null,uH(),width,height,true); this.qCU=bD(); this.LHs=bD(); this.gxh=bD(); this.Mhc=bD(); this.rQT=bD(); this.vxx=bD(); this.QSk=bD(); this.rXt=document.createElement('div'); this.QSk.appendChild(this.rXt); wJ(this.QSk); wJ(this.Mhc); this.Mhc.style.overflow='auto'; this.QSk.style.overflow='auto'; this.QSk.style.paddingRight='8px'; this.QSk.className='news-feed-body scheme-body-text'; this.qCU.style.cursor='default'; this.rLm=document.createElement('a'); this.rLm.style.display='block'; this.rLm.style.paddingTop='10px'; this.rLm.className='scheme-body-text'; this.rLm.style.fontSize='14px'; this.rLm.style.fontWeight='bold'; this.rLm.style.textDecoration='none'; this.rLm.onmouseover=function(){JA.rLm.style.textDecoration='underline';}; this.rLm.onmouseout=function(){JA.rLm.style.textDecoration='none';}; this.rLm.onclick=function(eu){ preventDefault(eu); ii(JA.rLm.href); }; this.rLm.appendChild(document.createTextNode('')); this.qCU.appendChild(this.rLm); this.LHs.style.cursor='default'; this.SnA=document.createElement('a'); this.SnA.style.display='block'; this.SnA.style.paddingTop='10px'; this.SnA.className='scheme-body-text'; this.SnA.style.fontSize='14px'; this.SnA.style.fontWeight='bold'; this.SnA.style.textDecoration='none'; this.SnA.onmouseover=function(){JA.SnA.style.textDecoration='underline';}; this.SnA.onmouseout=function(){JA.SnA.style.textDecoration='none';}; this.SnA.onclick=function(eu){ preventDefault(eu); ii(JA.SnA.href); }; this.SnA.appendChild(document.createTextNode('')); this.LHs.appendChild(this.SnA); this.lpp=document.createElement('div'); this.lpp.style.paddingTop='10px'; this.lpp.appendChild(gd('Article summaries ',14,true)); this.lpp.appendChild(gd(' (hover here for more information)',11,false)); JL.sw(this.lpp,'For news feeds that provide article summaries (instead of the full article text), we display all of the summaries at the same time to help you scan through them.',null,null,!true); this.lpp.style.display='none'; this.LHs.appendChild(this.lpp); this.rQT.style.cursor='w-resize'; this.rQT.style.zIndex=100; this.gcQ=document.createElement('div'); this.gcQ.className='scheme-body-text'; this.gcQ.style.fontSize='10px'; this.gcQ.style.cursor='help'; this.gcQ.appendChild(document.createTextNode('Keyboard shortcuts')); JL.sw(this.gcQ,null,null,this.og()); this.tFf=document.createElement('div'); this.tFf.style.width='30px'; this.tFf.style.height='30px'; this.tFf.style.cursor='pointer'; KX(this.tFf,'/web/images/large-cross.png'); this.tFf.onclick=function(){ JA.cY(); }; JL.sw(this.tFf,'Close the news feed reader'); this.oE=document.createElement('div'); this.oE.style.width='30px'; this.oE.style.height='30px'; this.oE.style.cursor='pointer'; KX(this.oE,'/web/images/launch-link.png'); JL.sw(this.oE,this.Gvu); this.mB=document.createElement('a'); this.mB.appendChild(this.oE); this.mB.onclick=function(eu){ preventDefault(eu); if(!ar(eu)) ii(JA.mB.href); ZX('article_launch','full',{'link':JA.tTP.link,'locatorUrl':JA.hAp.locatorUrl,'entryGuid':JA.tTP.guid,'headline':Jl(JA.tTP.headline),'feedTitle':JA.hAp.title,'byline':Jl(JA.tTP.byline)}); return false; }; this.gxh.appendChild(Fk([this.gcQ,ji(38),this.mB,bW(20),this.tFf],false)); this.LD.appendChild(this.qCU); this.LD.appendChild(this.LHs); this.LD.appendChild(this.gxh); this.LD.appendChild(this.Mhc); this.LD.appendChild(this.vxx); this.LD.appendChild(this.rQT); this.LD.appendChild(this.QSk); this.vxx.style.borderTop='1px solid #'+OJ; this.caI=document.createElement('div'); this.caI.style.height='100%'; this.caI.style.position='relative'; this.caI.style.borderLeft='1px solid #'+OJ; this.caI.style.marginLeft='7px'; this.rQT.appendChild(this.caI); this.rQT.onmousedown=function(eu){ var hk=parseInt(JA.rQT.style.left); var FK=JA.JI; hW(eu,JA.rQT,null,function(dj,CQ,QH,uK){ },function(dj,CQ,jw,jP,QH,uK,VNf,uGQ){ var fP=Math.min(Math.max(20,hk+jw),JA.JdF-40); JA.rQT.style.left=fP+'px'; JA.JI=FK+(fP-hk); },function(dj,CQ,kf,mp,QH,uK){ JA.FI(); }); }; }return this.GO; }; iS.prototype.tA=function(Mo,LK){ var uf=new Object(); uf.pPT=LK.guid; uf.pHT=Mo.locatorUrl; uf.wXV=LK.url; uf.ag=new hp(LK,Mo); return uf; }; iS.prototype.vd=function(Mo){ var WO=new Object(); WO.svs=true; WO.pHT=Mo.locatorUrl; WO.Rxp=new Rs(Mo); return WO; }; iS.prototype.oY=function(value){ this.Eft=value; }; iS.prototype.reset=function(){ this.WSo=null; }; iS.prototype.DV=function(){ var JA=this; var Qf=new Array(); var il=LH.SR(); for(var gv in il.il){ var Mo=il.il[gv]; var iC=function(Mo){ var AO=new Array(); for(var fJ in Mo.entries){ var LK=Mo.entries[fJ]; var cm=function(LK){ var uf=JA.tA(Mo,LK); AO.push(new aM(false,function(){ var LD=uf.ag.kV(); return LD; },[],null,null,null,null,uf)); }(LK); }var WO=JA.vd(Mo); Qf.push(new aM(false,function(){ var LD=WO.Rxp.kV(); return LD; },AO,function(isExpanded){ if(!isExpanded) return; tm.WSo.Pb(function(uf,NGT){ if(uf.svs){ if(uf.pHT!=WO.pHT){ NGT.tC(false); }}return false; },true); },null,null,null,WO)); }(Mo); }this.LBe=Qf; var LX=new sp(Qf); this.WSo=LX; LX.kV(); LX.LD.style.overflow='hidden'; LM(this.Mhc); this.Mhc.appendChild(LX.LD); }; iS.prototype.Tx=function(NBW,BHE){ var LD=document.createElement('div'); LD.style.paddingTop='15px'; var aJ=document.createElement('div'); aJ.style.paddingTop='4px'; aJ.style.paddingBottom='4px'; aJ.style.textAlign='center'; aJ.style.width='3.5ex'; aJ.style.fontWeight='bold'; aJ.style.borderLeft='1px solid #'+dW; aJ.style.borderTop='1px solid #'+dW; aJ.style.borderRight='1px solid #'+SH; aJ.style.borderBottom='1px solid #'+SH; aJ.appendChild(document.createTextNode(NBW)); var nK=pm(BHE,12,false); LD.appendChild(Fk([aJ,bW(12),nK])); return LD; }; iS.prototype.og=function(){ var LD=document.createElement('div'); var nK=pm('You can also use your keyboard to navigate through your news feeds:',12,false); nK.style.whiteSpace='normal'; nK.style.width='240px'; LD.appendChild(nK); LD.appendChild(this.Tx('Z','Go to next unread article')); LD.appendChild(this.Tx('A','Go back to last article read')); LD.appendChild(this.Tx('Q','Go to previous article in list')); LD.appendChild(this.Tx('X','Mark all articles in feed as read')); LD.appendChild(this.Tx('S','Un-mark all articles in feed as read')); LD.appendChild(this.Tx('1','Open article web page in new window')); LD.appendChild(this.Tx('Esc','Exit news reader')); var FY=pm('The key you are most likely to use is the Z key, which will skip to the next unread article.',12,false); FY.style.paddingTop='10px'; FY.style.whiteSpace='normal'; FY.style.width='240px'; var rN=pm('We will automatically order your news feeds according to how frequently you visit them.',12,false); rN.style.paddingTop='10px'; rN.style.whiteSpace='normal'; rN.style.width='240px'; LD.appendChild(FY); LD.appendChild(rN); return LD; }; iS.prototype.se=function(title,url){ LM(this.rLm); this.rLm.appendChild(document.createTextNode(title)); this.rLm.style.paddingTop='10px'; this.rLm.style.fontSize='14px'; if(cu(title,'scheme-body-text',14,true,false)>this.JI){ this.rLm.style.fontSize='11px'; if(cu(title,'scheme-body-text',11,true,false)>this.JI){ this.rLm.style.paddingTop='3px'; }}this.rLm.href=url; }; iS.prototype.XI=function(title,url,Mo,LK){ this.mB.href=url; this.hAp=Mo; this.tTP=LK; this.lpp.style.display=this.idm?'block':'none'; this.SnA.style.display=this.idm?'none':'block'; this.SnA.style.paddingTop='10px'; if(!this.idm){ LM(this.SnA); this.SnA.style.fontSize='14px'; if(cu(title,'scheme-body-text',14,true,false)>this.Ahi){ this.SnA.style.fontSize='11px'; if(cu(title,'scheme-body-text',11,true,false)>this.Ahi){ this.SnA.style.paddingTop='3px'; }}this.SnA.appendChild(document.createTextNode(title)); this.SnA.href=url; }}; iS.prototype.Sj=function(Yd,SFu,Dol){ if(!SFu&&!Dol){ this.rXt.innerHTML=Yd; }else{ LM(this.rXt); var LD=document.createElement('div'); if(SFu){ var DG=document.createElement('div'); DG.style.paddingTop='8px'; DG.style.paddingBottom='8px'; DG.appendChild(SFu); LD.appendChild(DG); }var body=document.createElement('div'); if(Dol) body.appendChild(Dol); else body.innerHTML=Yd; LD.appendChild(body); this.rXt.appendChild(LD); }}; iS.prototype.bU=function(wKW,puY,dsi,Mo,LK,oPc,dA){ var JA=this; var lk=colorsAndSettings.disableFeedReader; if(lk){ YR.YQ(Mo.locatorUrl,dsi); if(dA) setTimeout(function(){dA.VO();},200); ZX('headline_click','feed_reader_disabled',{'link':LK.link,'locatorUrl':Mo.locatorUrl,'entryGuid':dsi,'headline':wKW,'feedTitle':Mo.title,'byline':Jl(LK.byline)}); return ia(puY,oPc); }else if(ar(oPc)){ YR.YQ(Mo.locatorUrl,dsi); if(dA) setTimeout(function(){dA.VO();},200); ZX('headline_click','ctrl_shift_meta',{'link':LK.link,'locatorUrl':Mo.locatorUrl,'entryGuid':dsi,'headline':wKW,'feedTitle':Mo.title,'byline':Jl(LK.byline)}); return true; }preventDefault(oPc); this.QM(); this.hOP=true; this.FI(); jI(true); if(!this.WSo) this.DV(); var Lx=false; var il=LH.SR(); var ps=il.Rp(Mo,dA.prR.getAttribute('maxHeadlinesPerFeed'),function(Mo){ if(!JA.WSo) return; JA.rn(Mo); JA.As(Mo.locatorUrl); if(Lx){ JA.Kj(JA.KWu.Mo.locatorUrl,JA.KWu.LK.guid); }else{ JA.Kj(Mo.locatorUrl,dsi); }}); if(!ps){ this.Kj(Mo.locatorUrl,dsi); Lx=true; }for(var gv in il.il){ var Iw=il.il[gv]; il.Rp(Iw,dA.prR.getAttribute('maxHeadlinesPerFeed'),function(Mo){ if(!JA.WSo) return; JA.rn(Mo); JA.As(Mo.locatorUrl); }); }ZX('headline_click','feed_reader',{'link':LK.link,'locatorUrl':Mo.locatorUrl,'entryGuid':dsi,'headline':wKW,'feedTitle':Mo.title,'byline':Jl(LK.byline)}); return false; }; iS.prototype.rn=function(Mo){ var JA=this; var Xa=JA.Ju(Mo.locatorUrl); var wq=Xa.Ab; for(var gv in Mo.entries){ var LK=Mo.entries[gv]; var iC=function(LK){ var Xq=false; for(var fJ in wq){ if(wq[fJ].uf.pPT==LK.guid){ Xq=true; break; }}if(!Xq){ var uf=JA.tA(Mo,LK); wq.push(new aM(false,function(){ var LD=uf.ag.kV(); return LD; },[],null,null,null,null,uf)); }}(LK); }Xa.hE(wq); }; iS.prototype.Kj=function(pHT,pPT){ this.WSo.tW(null,function(uf){ return uf.pHT==pHT; }).tC(true); var ag=this.WSo.tW(null,function(uf){ return uf.pPT==pPT; }).uf.ag; ag.fm(true); }; iS.prototype.Zx=function(Mo,LK,PN,tj,dip){ var LD=document.createElement('div'); LD.style.marginBottom='10px'; LD.style.width='100%'; LD.style.cursor='pointer'; var PV=document.createElement('div'); PV.className='scheme-body-text'; PV.style.fontWeight='normal'; PV.style.paddingLeft='4px'; PV.onmousedown=function(){ tm.Kj(Mo.locatorUrl,LK.guid); }; var WB=document.createElement('div'); WB.style.fontWeight=PN?'bold':'normal'; WB.style.marginTop='10px'; WB.style.fontSize='14px'; WB.appendChild(document.createTextNode(LK.headline)); PV.appendChild(WB); var Rm=document.createElement('div'); Rm.style.marginTop='10px'; Rm.style.marginBottom='10px'; var Yd=null; if(LK.content&&(LK.content!='')){ Yd=LK.content; }else{ Yd=LK.byline; }Yd=Br(Yd); if(LK['mediaThumbnailUrl']){ var jF=Math.floor((100/parseInt(LK['mediaThumbnailWidth']))*parseInt(LK['mediaThumbnailHeight'])); var nn='<img style="margin-top:0px; padding-top:0px; width:100px; height:'+jF+'px; margin-right:10px;" src="'+LK['mediaThumbnailUrl']+'" width=100 height='+jF+'/>'; Rm.innerHTML='<div style="float:left">'+nn+'</div><div>'+Yd+'</div>'; }else{ Rm.innerHTML=Yd; }PV.appendChild(Rm); if(uw.cA(LK)){ var BS=uw.Zh(LK,Mo,14,PN); BS.style.marginBottom='10px'; PV.appendChild(BS); }var oE=document.createElement('div'); oE.style.width='30px'; oE.style.height='30px'; oE.style.cursor='pointer'; KX(oE,'/web/images/launch-link.png'); JL.sw(oE,this.Gvu); mB=document.createElement('a'); mB.href=LK.link; mB.appendChild(oE); mB.onclick=function(eu){ preventDefault(eu); if(!ar(eu)) ii(LK.link); ZX('article_launch','summary',{'link':LK.link,'locatorUrl':Mo.locatorUrl,'entryGuid':LK.guid,'headline':Jl(LK.headline),'feedTitle':Mo.title,'feedTitle':Mo.title,'byline':Jl(LK.byline)}); return false; }; var table=document.createElement('table'); var FB=document.createElement('tbody'); var Kg=document.createElement('tr'); var QB=document.createElement('td'); var ur=document.createElement('td'); table.width='100%'; table.appendChild(FB); FB.appendChild(Kg); Kg.appendChild(QB); Kg.appendChild(ur); QB.vAlign='top'; ur.vAlign='top'; ur.width=50; QB.appendChild(PV); ur.appendChild(mB); var jC=document.createElement('div'); jC.style.width='100%'; jC.appendChild(table); var gl=document.createElement('a'); gl.style.fontSize='0.1px'; gl.href='#'; var Va=document.createElement('a'); Va.style.fontSize='0.1px'; Va.href='#'; LD.appendChild(gl); LD.appendChild(jC); LD.appendChild(Va); if(dip){ var bp=function(){ Va.focus(); gl.focus(); }; dip(bp); }if(PN){ jC.className='scheme-header scheme-header-text'; PV.className='scheme-header-text'; jC.style.borderTop='1px solid #'+OJ; jC.style.borderBottom='1px solid #'+OJ; }if(tj&&!PN){ PV.style.color='#'+OJ; PV.style.textDecoration='line-through'; }return LD; }; iS.prototype.Ar=function(pPT,pHT){ var il=LH.SR(); for(var gv in il.il){ var Mo=il.il[gv]; if(Mo.locatorUrl!=pHT) continue; var Tu=true; for(var fJ in Mo.entries){ var LK=Mo.entries[fJ]; if(LK.content&&LK.content!=''&&(LK.content.length>400||LK.content.toLowerCase().indexOf('<img ')!=-1)){ Tu=false; break; }}; for(var fJ in bE){ if(Mo.locatorUrl.indexOf(bE[fJ])!=-1){ Tu=true; break; }}if(Tu&&Mo.locatorUrl.indexOf('cnn.com')!=-1&&(Mo.locatorUrl.indexOf('blog')!=-1)) Tu=false; this.idm=Tu; if(Tu){ var UQ=document.createElement('div'); var bp=null; for(var fJ in Mo.entries){ var LK=Mo.entries[fJ]; var PN=(LK.guid==pPT); var tj=YR.tj(pHT,LK.guid); UQ.appendChild(this.Zx(Mo,LK,PN,tj,!PN?null:function(Htc){bp=Htc;})); }tm.Sj(null,null,UQ); setTimeout(function(){ bp(); },200); }else{ for(var fJ in Mo.entries){ var LK=Mo.entries[fJ]; if(LK.guid==pPT){ var DI=document.createElement('div'); var kT=document.createElement('a'); kT.style.fontSize='0.1px'; kT.href='#'; DI.appendChild(kT); if(uw.cA(LK)){ DI.appendChild(uw.Zh(LK,Mo,14)); }var Yd=null; if(LK.content&&(LK.content!='')){ Yd='<p>'+LK.content.replace(/<script/ig,"<xscript style=\"display:none\"")+'</p>'; }else{ Yd='<p>'+LK.byline+'</p>'; }tm.Sj(Yd,DI); setTimeout(function(){ try{ kT.focus(); }catch(eu){}},200); }}}}}; iS.prototype.As=function(pHT){ this.WSo.Pb(function(uf,NGT){ if(uf.svs){ if(uf.pHT==pHT){ var xt=0; for(var gv in NGT.Ab){ if(NGT.Ab[gv].uf.ag.tj==false) xt++; }uf.Rxp.xl(xt); return true; }}return false; },true); }; function hp(LK,Mo){ this.PN=null; this.tj=YR.tj(Mo.locatorUrl,LK.guid); this.LK=LK; this.Mo=Mo; }hp.prototype.kV=function(){ var JA=this; this.LD=document.createElement('div'); this.gl=document.createElement('a'); this.gl.style.fontSize='0.1px'; this.gl.href='#'; this.LD.appendChild(this.gl); this.LD.className='scheme-body-text'; this.LD.style.paddingLeft='4px'; this.LD.style.paddingRight='4px'; this.WB=document.createElement('div'); this.WB.style.fontSize='12px'; this.WB.appendChild(document.createTextNode(this.LK.headline)); this.nE=document.createElement('div'); this.nE.style.paddingTop='7px'; this.nE.style.paddingBottom='2px'; this.nE.style.display='none'; this.svT=document.createElement('div'); this.svT.style.fontSize='10px'; this.svT.appendChild(document.createTextNode(vA(new Date(parseInt(this.LK.timestamp)),'hh:mma E, NNN d'))); this.svT.style.textAlign='right'; this.svT.style.whiteSpace='nowrap'; this.LD.appendChild(this.WB); this.nE.appendChild(this.svT); if(this.LK.creator){ this.kuD=document.createElement('div'); this.kuD.style.fontSize='10px'; this.kuD.appendChild(document.createTextNode('by '+this.LK.creator)); this.kuD.style.textAlign='right'; this.kuD.style.whiteSpace='nowrap'; this.nE.appendChild(this.kuD); }this.LD.appendChild(this.nE); this.LD.style.whiteSpace='normal'; this.LD.style.marginLeft='17px'; this.LD.style.marginRight='6px'; this.LD.style.marginTop='1px'; this.LD.style.marginBottom='1px'; this.LD.style.fontWeight='normal'; this.LD.onmousedown=function(){ JA.fm(true); }; this.Va=document.createElement('a'); this.Va.style.fontSize='0.1px'; this.Va.href='#'; this.LD.appendChild(this.Va); this.xl(); return this.LD; }; hp.prototype.xl=function(){ var JA=this; if(this.PN){ tm.Ar(this.LK.guid,this.Mo.locatorUrl); tm.se(this.Mo.title,this.Mo.link); tm.XI(this.LK.headline,this.LK.link,this.Mo,this.LK); this.LD.style.color='#'+KN; this.WB.style.fontWeight='bold'; this.LD.className='scheme-header scheme-header-text'; this.LD.style.marginTop='0px'; this.LD.style.marginBottom='0px'; this.LD.style.borderTop='1px solid #'+OJ; this.LD.style.borderBottom='1px solid #'+OJ; this.LD.style.textDecoration='none'; this.nE.style.display='block'; setTimeout(function(){ JA.gl.focus(); JA.Va.focus(); },1); }else{ this.WB.style.fontWeight='normal'; this.LD.className='scheme-body scheme-body-text'; this.LD.style.marginTop='1px'; this.LD.style.marginBottom='1px'; this.LD.style.borderTop='none'; this.LD.style.borderBottom='none'; this.nE.style.display='none'; if(this.tj){ this.LD.style.textDecoration='line-through'; this.LD.style.color='#'+OJ; }else{ this.LD.style.textDecoration='none'; this.LD.style.color='#'+SH; }}}; hp.prototype.fm=function(PN){ if(!this.LD) return; if(PN==this.PN) return; if(PN){ var JA=this; tm.WSo.Pb(function(uf,NGT){ if(uf.svs){ if(uf.pHT!=JA.Mo.locatorUrl){ NGT.tC(false); }}return false; },true); if(tm.KWu) tm.KWu.fm(false); tm.KWu=this; }this.PN=PN; this.xl(); if(PN){ tm.rgU=this.Mo.locatorUrl; this.aC(true); }}; hp.prototype.aC=function(tj){ var JA=this; if(tj==this.tj) return; this.tj=tj; this.xl(); if(tj){ YR.YQ(this.Mo.locatorUrl,this.LK.guid); tm.Hpb.push(this); }else{ YR.Yv(this.Mo.locatorUrl,this.LK.guid); }tm.As(this.Mo.locatorUrl); }; function Rs(Mo){ this.Mo=Mo; this.cPP=Mo.title; this.Cdk=Mo.link; }Rs.prototype.kV=function(){ var JA=this; var eE=lA(this.Cdk); var LD=document.createElement('div'); this.LD=LD; LD.className='scheme-body-text'; LD.style.whiteSpace='nowrap'; LD.style.fontSize='12px'; LD.style.fontWeight='bold'; this.uPr=document.createTextNode(this.cPP); LD.appendChild(this.uPr); AS(LD,eE); return LD; }; Rs.prototype.xl=function(APf){ if(APf==0){ this.LD.style.fontWeight='normal'; this.uPr.data=this.cPP; }else{ this.LD.style.fontWeight='bold'; this.uPr.data=this.cPP+' ('+APf+')'
}}; function Hv(){ for(var gv in helpCardSections){ var xF=helpCardSections[gv]; var helpCards=xF['cards']; var lF=new Array(); for(var fJ in helpCards){ var On=helpCards[fJ]; if(On['registeredOnly']==true&&UC()) continue; if(On['registeredOnly']==true&&!loggedIn) continue; if(On['unregisteredOnly']==true&&!UC()) continue; if(On['loggedInOnly']==true&&!loggedIn) continue; if(On['loggedOutOnly']==true&&loggedIn) continue; var FD=On['browser']; if(On['browser']=='ie'&&!isIE) continue; if(On['browser']=='firefox'&&!FA) continue; if(On['browser']=='ctrlshiftclick'&&!(FA||qE)) continue; if(On['browser']=='non-firefox'&&FA) continue; lF.push(On); On['html']=On['html'].replace(/\${protopagePath}/g,protopagePath); }xF['cards']=lF; }}function vf(){ this.NKZ=640; this.PnQ=290; }vf.prototype.rT=function(BlE){ var JA=this; wv.hide(); Uq.jT('helpAboutBubble',this.PnQ); Uq.bv(); if(!this.XSv){ this.XSv=this.gq(BlE); var cn=Oc(mK.VQq.LD); var bs=new QF(cn.x+Math.round(mK.VQq.Na.pc()/2),cn.y+mK.VQq.Na.el()+0,true,JN+2,'00',this.XSv,true,true,null,uH(),640,null,!true,false,false,false,164,true,true); this.bs=bs; bs.eV(function(){ bs.hide(); JA.wRw=false; Uq.jT('helpAboutBubble',0); Uq.bv(); if(!UC()&&!colorsAndSettings['postRegistrationHelpDismissed']){ colorsAndSettings['postRegistrationHelpDismissed']=true; SV(false); }wv.Nh(); }); var iN=new Object(); iN.ZP=function(uB,Zq){ if(uB){ if(!cP){ JA.bs.hide(); }}}; iN.KL=function(uB,Zq){ if(uB){ if(!cP){ JA.Tc(); }}}; dX.push(iN); }else{ Uq.jT('helpAboutBubble',this.PnQ); Uq.bv(); this.vI(); }if(BlE!=undefined){ this.wa(BlE); }this.wRw=true; }; vf.prototype.vI=function(){ var cn=Oc(mK.VQq.LD); this.bs.position(cn.x+Math.round(mK.VQq.Na.pc()/2),cn.y+mK.VQq.Na.el()+0); this.wRw=true; }; vf.prototype.Tc=function(){ if(this.wRw) this.vI(); }; vf.prototype.gq=function(){ var LD=document.createElement('div'); LD.style.fontFamily='Arial, Helvetica, sans-serif'; XK=document.createElement('div'); XK.style.position='relative'; XK.style.overflow='hidden'; LD.appendChild(XK); var XN=document.createElement('div'); var TB=document.createElement('div'); var fV=document.createElement('div'); this.XN=XN; this.TB=TB; this.fV=fV; XK.appendChild(XN); XK.appendChild(TB); XK.appendChild(fV); XN.style.paddingLeft='10px'; XN.style.paddingRight='60px'; var Aw=document.createElement('div'); var wZ=document.createElement('div'); var Rt=document.createElement('span'); var jv=document.createElement('span'); var fk=document.createElement('span'); var Ya=document.createElement('span'); Aw.appendChild(Rt); Aw.appendChild(jv); Aw.appendChild(fk); Aw.appendChild(Ya); XN.appendChild(Aw); XN.appendChild(wZ); jX(Aw); Aw.style.fontSize='11px'; Aw.style.paddingBottom='5px'; Rt.style.paddingLeft='10px'; jv.style.paddingLeft='10px'; fk.style.paddingLeft='10px'; Ya.style.paddingLeft='10px'; Rt.style.cursor='pointer'; jv.style.cursor='pointer'; fk.style.cursor='pointer'; Rt.style.textDecoration='underline'; jv.style.textDecoration='underline'; fk.style.textDecoration='underline'; wZ.style.clear='both'; wZ.style.borderTop='1px solid #000000'; wZ.style.paddingTop='8px'; Rt.appendChild(document.createTextNode('About Protopage')); jv.appendChild(document.createTextNode('Protopage Blog')); fk.appendChild(document.createTextNode('Contact us / send us feedback')); Rt.onclick=function(){ ZX('help_bubble_link_click','about_protopage'); ii('http://blog.protopage.com/about-protopage/'); return false; }; jv.onclick=function(){ ZX('help_bubble_link_click','blog'); ii('http://blog.protopage.com'); return false; }; fk.onclick=function(){ ZX('help_bubble_link_click','contact_us'); ii('/_api/contact'); return false; }; fV.style.width=this.NKZ+'px'; fV.style.height=240+'px'; var HX=document.createElement('div'); this.HX=HX; fV.appendChild(HX); fV.style.overflow='hidden'; HX.style.position='relative'; HX.style.left=0+'px'; this.ka(0); return LD; }; vf.prototype.wa=function(BlE){ for(var gv in helpCardSections){ var xF=helpCardSections[gv]; var helpCards=xF['cards']; for(var fJ in helpCards){ var On=helpCards[fJ]; if(On.id==BlE){ this.ka(gv,parseInt(fJ)+1); }}}}; vf.prototype.ka=function(Zbn,eqM){ var JA=this; LM(this.HX); JA.HX.style.left='0px'; var xF=helpCardSections[Zbn]; var helpCards=xF['cards']; for(var fJ in helpCards){ var On=helpCards[fJ]; var VN=new FP(On['title'],On['html'],On['image']); var ui=VN.VK(parseInt(fJ),helpCards.length,function(JAt,kuR){ var ef=(JAt)*JA.NKZ*-1; var ix=(JAt+1)*JA.NKZ*-1; bI(JA.HX,ef,ix); },function(JAt,kuR){ var ef=(JAt)*JA.NKZ*-1; var ix=(JAt-1)*JA.NKZ*-1; bI(JA.HX,ef,ix); }); ui.style.position='absolute'; ui.style.left=(JA.NKZ*fJ)+'px'; ui.style.top=0+'px'; this.HX.appendChild(ui); this.em(Zbn); if(eqM!=undefined){ var ef=0; var ix=(eqM-1)*JA.NKZ*-1; bI(JA.HX,ef,ix); }}}; vf.prototype.em=function(irq){ var JA=this; LM(this.TB); var LD=document.createElement('div'); LD.style.zIndex=1000; LD.style.marginLeft='10px'; LD.style.position='absolute'; LD.style.fontSize='12px'; LD.style.border='1px solid #cfd5e1'; LD.style.textTransform='uppercase'; LD.style.backgroundColor='#cfd5e1'; var Pa=document.createElement('div'); LD.appendChild(Pa); iY(Pa); Pa.style.backgroundColor='#FFFFFF'; Pa.style.margin='1px'; Pa.style.padding='2px 5px'; Pa.appendChild(document.createTextNode('Protopage tips:')); var PY=document.createElement('div'); LD.appendChild(PY); iY(PY); PY.style.backgroundColor='#cfd5e1'; for(var gv in helpCardSections){ var xF=helpCardSections[gv]; var PN=gv==irq; var Ao=document.createElement('div'); iY(Ao); Ao.style.cursor='pointer'; Ao.style.margin='1px'; PY.appendChild(Ao); Ao.appendChild(document.createTextNode(xF['label'])); if(PN){ Ao.style.backgroundColor='#3f5ea8'; Ao.style.fontWeight='bold'; Ao.style.color='#FFFFFF'; Ao.style.padding='2px 10px'; }else{ Ao.style.padding='2px 5px'; Ao.style.textDecoration='underline'; Ao.onmousedown=function(gv){ return function(){ oR(); JA.ka(gv); }}(gv); }PY.appendChild(Ao); }this.TB.appendChild(LD); };function FP(title,Yd,image){ this.title=title; this.Yd=Yd; this.image=image; }FP.prototype.VK=function(JAt,kuR,vdj,NmR){ var LD=document.createElement('div'); LD.style.paddingLeft='10px'; LD.style.paddingTop='3em'; LD.style.width='680px'; var lx=new Object; var es='            <div style="float:left; clear:both;">                <div style="padding-left:5px;">                    <div id="title" style="clear:both; padding-bottom:5px; font-weight:bold; font-size: 18px;"></div>                    <div id="html" style="width:240px; clear:both; padding-left:2px; padding-top:0px; padding-bottom:5px; font-size: 13px;"></div>                </div>                                                  <div style="padding-left:5px;">                    <div style="width:240px; clear:both; padding-left:2px; padding-top:10px; padding-bottom:5px; font-size: 15px;">										<span id="previous" style="cursor:pointer">			  	                  <img src="/web/images/prev-arrow.png" style="position:relative; top:1px; margin-left:7px"/> <span style="font-weight:normal; text-decoration:underline;">Previous</span>										</span>										<span id="next" style="cursor:pointer">				                    <span style="text-decoration:underline;">Next</span><img src="/web/images/next-arrow.png" style="font-weight:bold; position:relative; top:1px; margin-left:7px"/>										</span>                    </div>                </div>                             </div>                             <div id="image" style="padding-left:20px; float:left; ">            </div>            <div style="clear:both; padding:0px; margin:0px"></div>'; fG(LD,es,lx); lx['title'].appendChild(document.createTextNode(this.title+' ')); var TG=document.createElement('span'); TG.style.fontWeight='normal'; TG.style.fontSize='14px'; TG.appendChild(document.createTextNode('('+(JAt+1)+' of '+kuR+')')); lx['title'].appendChild(TG); lx['html'].innerHTML=this.Yd; lx['image'].innerHTML='<img src="/web/branding/protopage/images/helpCards/'+this.image+'" >'; lx['next'].style.marginLeft='30px'; if(JAt==0){ lx['previous'].style.display='none'; lx['next'].style.marginLeft='0px'; }if(JAt==(kuR-1)){ lx['next'].style.display='none'; }lx['previous'].onmousedown=function(){ NmR(JAt,kuR); ZX('help-card-previous-click',JAt+''); }; lx['next'].onmousedown=function(){ vdj(JAt,kuR); ZX('help-card-next-click',JAt+''); }; return LD; }; function cS(){ var LD=document.createElement('div'); LD.id='status-indicator'; LD.className='status-indicator scheme-body scheme-body-text'; LD.style.visibility='hidden'; LD.innerHTML='Saving...'; uH().appendChild(LD); }var DM=new Array(); function FR(aF){ DM.push(aF); }function jI(PGX){ for(var gv in DM){ if(DM[gv].fullScreenBubbleEvent){ DM[gv].fullScreenBubbleEvent(PGX); }}}function QF(Rcp,MBF,JvG,zIndex,XG,XK,WiI,VVN,LkN,parentElement,Abu,Nao,Prl,oEj,DNH,eFi,nhe,AHi,nrV){ var JA=this; this.Rcp=Rcp; if(this.JvG&&(this.Rcp>0&&this.Rcp<26)) this.Rcp=26; this.MBF=MBF; this.JvG=JvG; this.XG=XG; this.XK=XK; this.WiI=WiI; this.VVN=VVN; this.LkN=LkN; this.zIndex=zIndex; this.Abu=Abu; this.Nao=Nao; this.Prl=Prl; this.oEj=oEj; this.DNH=DNH; this.eFi=eFi; this.nhe=nhe; this.AHi=AHi; this.nrV=nrV; if(isNaN(this.nhe)) this.nhe=0; this.LD=document.createElement('div'); this.LD.style.position='absolute'; this.LD.style.left='-1000000px'; this.LD.style.top='-1000000px'; this.WT=document.createElement('div'); this.WT.style.position='absolute'; this.WT.style.fontSize='0.1px'; this.WT.style.left='0px'; this.WT.style.top='0px'; this.WT.style.marginLeft='5px'; this.WT.style.marginRight='5px'; this.WT.style.height='5px'; this.BS=document.createElement('div'); this.BS.style.position='absolute'; this.BS.style.fontSize='0.1px'; this.BS.style.left='0px'; this.BS.style.top='0px'; this.BS.style.marginLeft='5px'; this.BS.style.marginRight='5px'; this.BS.style.height='5px'; this.Rm=document.createElement('div'); this.Rm.style.position='absolute'; this.Rm.style.left='0px'; this.Rm.style.top='5px'; this.LD.appendChild(this.WT); this.LD.appendChild(this.Rm); this.LD.appendChild(this.BS); if(this.JvG){ this.GPl=document.createElement('div'); this.GPl.style.position='absolute'; this.GPl.style.width=29+'px'; this.GPl.style.height=15+'px'; }this.WH(zIndex); this.parentElement=(parentElement?parentElement:uH()); if(this.JvG) this.parentElement.appendChild(this.GPl); this.parentElement.appendChild(this.LD); this.XK.style.position='absolute'; this.XK.style.left='0px'; this.XK.style.top='0px'; this.XK.style.overflow='visible'; this.Rm.style.width=(this.Abu?this.Abu:90000)+'px'; this.Rm.style.height=(this.Nao?this.Nao-10:90000)+'px'; this.Rm.appendChild(this.XK); this.RR=document.createElement('div'); this.Ok=document.createElement('div'); this.FV=document.createElement('div'); this.cp=document.createElement('div'); this.RR.style.position='absolute'; this.RR.style.width='5px'; this.RR.style.height='5px'; this.RR.style.left='-5px'; this.RR.style.top='0px'; this.Ok.style.position='absolute'; this.Ok.style.width='5px'; this.Ok.style.height='5px'; this.Ok.style.left='-5px'; this.Ok.style.top='0px'; this.FV.style.position='absolute'; this.FV.style.width='5px'; this.FV.style.height='5px'; this.FV.style.left='-5px'; this.FV.style.top='0px'; this.cp.style.position='absolute'; this.cp.style.width='5px'; this.cp.style.height='5px'; this.cp.style.left='-5px'; this.cp.style.top='0px'; this.WT.appendChild(this.RR); this.WT.appendChild(this.Ok); this.BS.appendChild(this.FV); this.BS.appendChild(this.cp); this.Cw(); this.position(this.Rcp,this.MBF); this.PA(); this.AkF=new BG(this.LD,true,this.parentElement,true,true,false,false); if(this.VVN){ this.VUW=document.createElement('div'); if(this.nrV){ this.dWf=document.createElement('div'); this.dWf.style.width='36px'; this.dWf.style.height='45px'; KX(this.dWf,'/web/images/large-cross-close.png'); this.VUW.appendChild(this.dWf); this.VUW.style.top='8px'; this.VUW.style.right='8px'; this.VUW.style.width='36px'; this.VUW.style.height='45px'; }else{ this.hlL=GP(); this.hlL.src="/web/dynamicImages/"+(this.AHi?'000000':SH)+"/panel-cross.gif"; if(this.eFi) this.hlL.src="/web/dynamicImages/"+KN+"/panel-cross.gif"; this.hlL.style.position='relative'; this.hlL.style.left='6px'; this.hlL.style.top='5px'; this.VUW.appendChild(this.hlL); this.VUW.style.top='7px'; this.VUW.style.right='7px'; this.VUW.style.width='19px'; this.VUW.style.height='19px'; }this.VUW.style.position='absolute'; this.LD.appendChild(this.VUW); this.VUW.style.cursor='pointer'; this.VUW.onmouseup=function(){JA.GZ();}; }}QF.prototype.eV=function(GZ){ this.GZ=GZ; }; QF.prototype.PA=function(){ var SO=mZ[this.XG]; if(this.eFi) SO=Ol[this.XG]; if(this.AHi) SO='ffffff'; var baseScheme=NX(colorsAndSettings.baseScheme); var Gh=baseScheme.uer.lh(colorsAndSettings.hueOffset,colorsAndSettings.saturationOffset); if(this.eFi) Gh=baseScheme.psS.lh(colorsAndSettings.hueOffset,colorsAndSettings.saturationOffset); var ED=lP(SO,ah); var Qu=''; if(colorsAndSettings.panelDropShadowPreference=='NEVER'){ Qu='-noshadow'; }if(this.JvG) KX(this.GPl,'/web/dynamicPng/'+(this.WiI?ED:SO)+'/bubble-caret-'+(this.WiI?'up':'down')+Qu+'.png'); if(!this.Prl){ this.Rm.style.backgroundImage='url(/web/gradient/'+SO+'/'+ah+'/body-gradient.gif)'; this.Rm.style.backgroundRepeat='repeat-x'; this.Rm.style.backgroundPosition='top'; this.Rm.style.backgroundColor='#'+SO; }else this.Rm.style.backgroundColor='#'+SO; if(!this.Prl){ var rl=ED; var vJ=SO; }else{ var rl=SO; var vJ=SO; }this.WT.style.backgroundColor='#'+rl; this.BS.style.backgroundColor='#'+vJ; KX(this.RR,'/web/dynamicPng/'+rl+'/'+OF+'-nw.png'); KX(this.Ok,'/web/dynamicPng/'+rl+'/'+OF+'-ne.png'); KX(this.FV,'/web/dynamicPng/'+vJ+'/'+OF+'-sw.png'); KX(this.cp,'/web/dynamicPng/'+vJ+'/'+OF+'-se.png'); }; QF.prototype.KT=function(XK){ this.Rm.removeChild(this.XK); this.XK=XK; this.XK.style.position='absolute'; this.XK.style.overflow='visible'; this.Rm.appendChild(this.XK); }; QF.prototype.fw=function(left,top,width,height){ this.Abu=width; this.Nao=height; this.Rcp=left; this.MBF=top; this.Cw(); }; QF.prototype.Cw=function(){ if(this.Abu&&this.Nao){ this.dvV=this.Abu; this.Xam=this.Nao-10; }else{ this.Xam=this.XK.offsetHeight; this.dvV=this.XK.offsetWidth; }this.width=this.dvV; this.height=this.Xam+5+5; this.LD.style.width=this.width+'px'; this.LD.style.height=this.height+'px'; this.WT.style.width=this.dvV-5-5+'px'; this.Rm.style.width=this.dvV+'px'; this.BS.style.width=this.dvV-5-5+'px'; this.Rm.style.height=(this.Xam)+'px'; this.Ok.style.left=this.width-10+'px'; this.cp.style.left=this.width-10+'px'; this.BS.style.top=this.height-5+'px'; this.position(this.Rcp,this.MBF,!true); }; QF.prototype.nf=function(lKv){ if(this.parentElement==lKv) return; if(this.JvG) this.parentElement.removeChild(this.GPl); this.parentElement.removeChild(this.LD); this.AkF.nf(lKv); this.parentElement=lKv; if(this.JvG) this.parentElement.appendChild(this.GPl); this.parentElement.appendChild(this.LD); }; QF.prototype.position=function(Rcp,MBF,sfl,lKR){ this.Rcp=Rcp; Rcp+=this.nhe; if((this.JvG||this.DNH)&&(Rcp>0&&Rcp<26)) Rcp=26; this.MBF=MBF; var UX=10; var CV=this.Rcp+this.nhe+25-this.width; if(CV<UX) CV=UX; this.left=CV; if(this.JvG||this.DNH){ if(this.WiI){ if(this.JvG){ this.GPl.style.left=Rcp-this.nhe-15+'px'; this.GPl.style.top=this.MBF+'px'; }this.top=this.MBF+15; }else{ if(this.JvG){ this.GPl.style.left=Rcp-15+'px'; this.GPl.style.top=this.MBF-15+'px'; }this.top=(this.MBF-this.height-15); }}else{ if(!sfl){ var CV=Rcp; var RY=ge()-this.width-10; if(CV>RY){ if(!this.oEj) CV=RY; }this.left=CV; this.top=this.MBF; }}if(!sfl){ this.LD.style.left=this.left+'px'; this.LD.style.top=this.top+'px'; }if(this.AkF) this.AkF.position(); if(lKR){ this.GPl.style.left=-1000+'px'; this.GPl.style.top=-1000+'px'; }}; QF.prototype.WH=function(Hqj){ this.LD.style.zIndex=Hqj; this.zIndex=Hqj; if(this.JvG) this.GPl.style.zIndex=this.zIndex; if(this.AkF) this.AkF.rL(); }; QF.prototype.hide=function(){ this.position(-10000,-10000); }; QF.prototype.VX=function(){ this.Rcp=0; this.JJ(); }; QF.WoL=new Array(); QF.qX=function(XK){ var width=ge()-tN()-20; var left=tN()+10; var top=uS()+10; var height=RV()-top-10; var GO=new QF(left,top,false,Ie,'00',XK,false,false,null,uH(),width,height,true); QF.WoL.push(GO); XK.style.position='absolute'; XK.style.left=10+'px'; XK.style.top=5+'px'; GO.JJ(); return GO; }; QF.prototype.JJ=function(){ if(this.Rcp<0) return; var width=ge()-tN()-20; var left=tN()+10; var top=uS()+10; var height=RV()-top-10; this.fw(left,top,width,height); this.XK.style.width=width-20+'px'; this.XK.style.height=height-20+'px'; }; function os(){ uH().style.backgroundColor='#ffdddd'; }function bT(){ }bT.dP=function(Yd,left,top){ var LD=document.createElement('div'); LD.className='scheme-body-text'; LD.innerHTML=Yd; var bs=new QF(left,top,false,Ie,'00',LD,false,false,null,uH()); return bs; }; function eA(){ var LD=document.createElement('div'); LD.className='scheme-body-text'; LD.style.position='relative'; LD.style.padding='10px 26px'; LD.appendChild(pm("You have already created a Protopage!",26,!true)); LD.appendChild(ji(12)); LD.appendChild(pm("Click here to visit it:",16,!true)); LD.appendChild(ji(12)); var dt=La(); for(var gv in dt){ var iC=function(Krl){ var Fs=document.createElement('div'); Fs.style.color='#002b90'; Fs.style.textDecoration='underline'; Fs.style.fontSize='16px'; Fs.style.paddingBottom='4px'; Fs.innerHTML='<a style="color:#002b90" href="/'+Krl+'">'+("www.protopage.com/<b>"+Krl+'</b>')+'</a>'; LD.appendChild(Fs); }(dt[gv]); }LD.appendChild(ji(32)); LD.appendChild(pm("Or, if you are a new user,",16,!true)); var Fs=document.createElement('div'); Fs.style.textDecoration='underline'; Fs.style.fontSize='16px'; Fs.style.paddingBottom='4px'; Fs.style.color='#002b90'; Fs.style.textDecoration='underline'; Fs.appendChild(document.createTextNode('click here to create a new untitled page')); Fs.style.cursor='pointer'; Fs.onclick=function(){ WU(true); }; LD.appendChild(Fs); var tL=new QF(100,80,false,Ie,'00',LD,false,false,null,uH()); tL.Cw(); }function ZY(){ var Yd='    <div class="scheme-body-text" style="position:relative; padding: 16px; font-size:11px;">            <div>        <h1>Which page would you like to add this item to?</h1>      </div>                  <div style="font-size:16px;">        <ul id="choose-protopage-for-new-link-ul" style="padding-right:16px;">          <li style="padding-top:14px;"><div id="createUntitledPagePrompt2"><a onclick="return '+gI(WU)+'();" href="">Create a new untitled page</a> (no registration required)</div></li>        </ul>      </div>                  <div style="padding-top:28px; font-size:12px;">        If you wish to add the widget/bookmark/feed to a page not listed above, please log in to that page first.      </div>                </div>'; var tL=bT.dP(Yd,100,60); var gL=document.getElementById('choose-protopage-for-new-link-ul'); var dt=La(); for(var gv in dt){ var iC=function(Krl){ var jn=document.createElement('li'); var sS=document.createElement('a'); sS.href=''; sS.appendChild(document.createTextNode(Krl)); sS.onclick=function(eu){ preventDefault(eu); vO(); document.location.href='/'+Krl; return false; }; jn.appendChild(sS); gL.insertBefore(jn,gL.firstChild); }(dt[gv]); }tL.Cw(); }var TV=null; function aY(){ var Yd='    <div class="scheme-body-text" style="position:relative; padding: 6px; font-size:11px;">      <div style="margin-top: 0px;">        <div style="font-size:14px; font-weight:bold; padding-bottom:12px;">Add a bookmark</div>      </div>      <div style="margin-top: 0px;">        <div>Bookmark title</div>        <div style="margin-top: 3px;">          <input id="add-new-link-title" name="title" type="text" value="title text" class="xscheme-body-text" style="width:300px" >        </div>      </div>      <div style="margin-top: 10px;">        <div>Bookmark address</div>        <div style="margin-top: 3px;">          <input id="add-new-link-address" name="address" type="text" value="address text" class="xscheme-body-text" style="width:300px"  >        </div>      </div>      <div id="add-new-link-panel-div" style="margin-top: 10px;">        <div>Choose a widget to add the bookmark to</div>        <div style="margin-top: 3px;">          <select class="xscheme-body-text" id="add-new-link-panel-choice" style="padding:0px; font-size:11px; width:300px;">            <option value="test">test content</option>          </select>        </div>      </div>      <div style="position:relative; margin-top: 12px; text-align:right;">        <div>          <a class="scheme-body-text" href="" id="add-new-link-cancel-button">Cancel</a>          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;          <a class="scheme-body-text" href="" id="add-new-link-ok-button">OK</a>        </div>      </div>    </div>'; TV=bT.dP(Yd,-60000,-60000); TV.position(10,10); document.getElementById('add-new-link-cancel-button').onclick=function(eu){ preventDefault(eu); TV.position(-10000,-10000); }; document.getElementById('add-new-link-ok-button').onclick=function(eu){ preventDefault(eu); TV.position(-10000,-10000); addNewLink(); }; return TV; }var is=null; function Nu(){ var Yd='				<div class="scheme-body-text" style="position:relative; padding-left: 16px; padding-right: 16px; padding-bottom: 16px; font-size:11px;">				  <div style="font-size:20px; font-weight:bold; padding-top:10px; padding-bottom:10px">Log in</div>            <form name="loginForm" id="loginForm" action="_api/login" style="margin:0px; padding:0px;" method="POST">            <div '+((UC()||NH(protopagePath,'protopage/'))?' style="margin-bottom:10px"':' style="display:none"')+' style="margin-top: 0px;">							<div>'+Zv.gfU+' name</div>							<div style="margin-top: 3px;">								<input style="font-size:16px" id="loginField-protopagePath" name="protopagePath" type="text" value="" tabindex="1">							</div>						</div>						<div style="margin-top: 0px;">							<div>Password</div>							<div style="margin-top: 3px;">								<input style="font-size:16px" onKeyPress="'+gI(gS)+'(\'loginForm\', event);" id="loginField-password" name="password" type="password" tabindex="2">							</div>						</div>					</form>										<div style="text-align:right; padding-right:6px; padding-top:10px; font-size:11px; overflow:visible;">						<a tabindex="4" class="scheme-body-text" href="" onClick="'+gI(Ac)+'(false); return false;">Cancel</a>						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;						<a tabindex="3" class="scheme-body-text" style="font-weight:bold; font-size:18px" href="" onClick="document.getElementById(\'loginForm\').action = \'/\'+document.getElementById(\'loginField-protopagePath\').value+\'/_api/login\'; document.getElementById(\'loginForm\').submit(); return false;">OK</a>					</div>						<div style="text-align:right; padding-right:6px; padding-top:10px; overflow:visible;">						<a class="scheme-body-text" style="font-size:11px;" href="/_api/forgottenPassword">Forgot your password?</a>					</div>					</div>'; is=bT.dP(Yd,-60000,-60000); return is; }function bI(jL,ef,ix){ var mF=1000; var us=30; oR(); for(var gv=0;gv<=us;gv++){ var iC=function(gv){ var Ul=setTimeout(function(){ var ig=(ef+Math.round((ix-ef)*Ia(gv/us))); jL.style.left=ig+'px'; },Math.round((gv/us)*mF)); TX.push(Ul); }(gv); }}function Ia(x){ return Ii(x,0,1,1); }function Ii(Ul,FH,LL,Ko){ return(Ul==Ko)?FH+LL:LL*(-Math.pow(2,-10*Ul/Ko)+1)+FH; }function oi(Ul,FH,LL,Ko,ww){ return LL*((Ul=Ul/Ko-1)*Ul*((ww+1)*Ul+ww)+1)+FH; }var TX=new Array(); function oR(){ while(TX.length>0){ clearTimeout(TX[0]); TX.shift(); }}function cx(){ this.wRw=false; }cx.prototype.kV=function(){ var JA=this; this.XK=document.createElement('div'); this.XK.style.paddingLeft='16px'; this.XK.style.paddingRight='16px'; this.XK.style.paddingTop='12px'; this.XK.style.paddingBottom='4px'; this.XK.appendChild(this.dO('Search preferences')); this.XK.appendChild(this.aZ()); this.XK.appendChild(this.dO('Your search engines')); this.XK.appendChild(this.Ci()); this.XK.appendChild(this.dO('Add an engine from our directory')); this.XK.appendChild(this.OL()); this.XK.appendChild(this.dO('Advanced')); this.XK.appendChild(this.VJ()); this.GO=new QF(100,100,false,Ew,'00',this.XK,true,true,null); this.GO.GZ=function(){ JA.xI(false); Sl.lu(); }; }; cx.prototype.kE=function(eE,text,lX){ var LD=document.createElement('div'); LD.className='scheme-body-text'; LD.style.whiteSpace='nowrap'; LD.style.fontSize='12px'; LD.style.fontWeight=lX?'bold':'normal'; LD.appendChild(document.createTextNode(text)); AS(LD,eE); return LD; }; cx.prototype.hf=function(){ var LD=document.createElement('div'); LD.style.paddingTop='5px'; LD.style.paddingBottom='12px'; LD.style.paddingLeft='8px'; LD.style.paddingRight='8px'; LD.style.whiteSpace='nowrap'; return LD; }; cx.prototype.dO=function(text){ var LD=document.createElement('div'); LD.style.paddingBottom='7px'; LD.className='scheme-body-text'; LD.style.fontSize='12px'; LD.style.whiteSpace='nowrap'; LD.appendChild(document.createTextNode(text)); return LD; }; cx.prototype.ru=function(wRw){ this.xI(!this.wRw); }; cx.prototype.xI=function(wRw,OEg){ this.wRw=wRw; if(wRw==true){ if(!this.XK){ this.kV(); }else{ }var WE=ge()-this.GO.width-8; this.position(WE,Math.max(uS()+8+YG,vC-5)); }else{ this.position(-100000,-100000); if(this.MbY) this.MbY.position(-100000,-100000); }}; cx.prototype.position=function(x,y){ this.GO.position(x,y); }; cx.prototype.Cw=function(){ this.GO.Cw(); }; cx.prototype.kY=function(content,paddingLeft,paddingRight,paddingTop,paddingBottom){ var LD=document.createElement('div'); LD.style.paddingLeft=paddingLeft+'px'; LD.style.paddingRight=paddingRight+'px'; LD.style.paddingTop=paddingTop+'px'; LD.style.paddingBottom=paddingBottom+'px'; LD.appendChild(content); return LD; }; cx.prototype.aZ=function(){ var JA=this; var DR=this.hf(); var LD=document.createElement('div'); var input=document.createElement("input"); input.type='checkbox'; input.value='isChecked'; input.style.padding='0px'; input.style.margin='0px'; input.checked=searchTabSettings['openResultsInNewWindow']; input.onclick=function(){ searchTabSettings['openResultsInNewWindow']=input.checked; JA.xH(); }; var table=Fk([input,bW(7),pm('Search results open in a new window',11,false)]); LD.appendChild(table); DR.appendChild(LD); return DR; }; cx.prototype.Ci=function(){ var JA=this; if(this.yourSearchEnginesSectionDiv) LM(this.yourSearchEnginesSectionDiv); else this.yourSearchEnginesSectionDiv=this.hf(); var DR=this.yourSearchEnginesSectionDiv; var LD=document.createElement('div'); for(var gv in searchTabSettings['searchEngines']){ var Yl=searchTabSettings['searchEngines'][gv]; LD.appendChild(this.hG(Yl)); }var IU=document.createElement('div');; var Rr=Da.rh(IU); Da.ei(IU,'search-engine-item',Rr,function(Kck){ var gG=Kck; searchTabSettings['searchEngines'].push(Kck); JA.xH(); JA.Ci(); JA.Cw(); }); IU.appendChild(pm('(Drag the icons to reorder)',11,false)); LD.appendChild(IU); DR.appendChild(LD); return DR; }; cx.prototype.OL=function(){ var JA=this; var DR=this.hf(); var lc=function(){JA.Cw();setTimeout(function(){JA.Cw();},10);}; var LD=document.createElement('div'); var entries=new Array(); var po=new Array(); for(var gv in searchEngineDirectory){ var pY=function(searchEngineDirectory){ var YD=searchEngineDirectory[gv][0]; var tb=searchEngineDirectory[gv][1]; var Tq=new Array(); for(var fJ in tb){ var Yl=tb[fJ]; Tq.push(function(Yl){return new aM(false,function(){ var rq=Yl[1]; var WK=Yl[2]; var wb=Yl[3]; var wx=JA.kE(lA(WK,'search'),rq); var gO=Mw('Add',11,false,14,function(){ searchTabSettings['searchEngines'].push(Yl); JA.xH(); JA.Ci(); JA.Cw(); }); var dc=Mw('Preview',11,false,0,function(){ ii(WK); }); var table=Fk([wx,gO,dc],false); return table; },[],lc);}(Yl)); }po.push(new aM(false,function(){ return JA.kE(null,YD); },Tq,lc)); }(searchEngineDirectory); }entries.push(new aM(false,function(){ return JA.kE(null,'All categories'); },po,lc)); var LX=new sp(entries); LX.kV(); LD.appendChild(LX.LD); DR.appendChild(LD); return DR; }; cx.prototype.VJ=function(){ var JA=this; var DR=this.hf(); var lc=function(){JA.Cw();setTimeout(function(){JA.Cw();},10);}; var LD=document.createElement('div'); var Yh=document.createElement('div'); Yh.appendChild(document.createTextNode('Add')); Yh.className='scheme-body-text'; Yh.style.fontSize='12px'; Yh.style.fontWeight='bold'; Yh.style.paddingLeft=4+'px'; var rq=null; var fQ=null; var vN=null; var Ip=eT('Google',140,OJ,function(lho,value){ rq=value; }); var SQ=eT('http://www.google.com',140,OJ,function(lho,value){ fQ=value; }); var Gt=eT('http://www.google.com/search?q=',140,OJ,function(lho,value){ vN=value; }); var table=mA([ [pm('Search engine title'),bW(4),Ip,ji(20)],[pm('Search engine URL'),bW(4),SQ,ji(20)],[pm('Search engine results URL'),bW(4),Gt,Yh]
],true); LD.appendChild(table); Yh.onmousedown=function(){ var NT=JA.To(null,rq,fQ,vN); searchTabSettings['searchEngines'].push(NT); JA.xH(); JA.Ci(); JA.Cw(); }; var FY=document.createElement('div'); FY.className='scheme-body-text'; FY.style.paddingTop='5px'; FY.style.fontSize='11px'; FY.style.cursor='default'; FY.style.width='260px'; FY.style.whiteSpace='normal'; FY.appendChild(document.createTextNode('Instructions: Your URL should be formatted such that the search terms can be appended to the end of the URL in order to create the entire search results URL. For example, the search results URL http://site.com?query=SEARCH_TERMS&order=asc should be entered as http://site.com?order=asc&query=')); LD.appendChild(FY); var Ab=new Array(); Ab.push(new aM(false,function(){return LD;},[],lc)); var entries=new Array(); entries.push(new aM(false,function(){return JA.kE(null,'Add a custom search engine');},Ab,lc)); var LX=new sp(entries); LX.kV(); DR.appendChild(LX.LD); return DR; }; cx.prototype.xH=function(){ var Pl=new Array(); Pl.push(new VD('searchTabSettings',bM.stringify(searchTabSettings))); var rm=new Re(accountId,protopageId,null,protopagePath,'save-search-tab-settings',Pl); commandProcessor.xA(rm); }; cx.Fj=function(GmT,ntF,wGY,rHv){ for(var gv in ntF){ var currentItem=ntF[gv]; if(currentItem==GmT){ wGY(ntF,parseInt(gv),rHv); break; }}}; cx.prototype.To=function(id,rq,WK,wb){ var item=new Array(); item.push(id); item.push(rq); item.push(WK); item.push(wb); return item; }; cx.prototype.hG=function(Yl){ var JA=this; var LD=document.createElement('div'); var Rr=Da.rh(LD); Da.ei(LD,'search-engine-item',Rr,function(Kck){ var gG=Kck; cx.Fj(Yl,searchTabSettings['searchEngines'],function(ntF,gv,KHv){ ntF.splice(gv,0,gG); JA.xH(); JA.Ci(); JA.Cw(); }); }); var xK=document.createElement('div'); xK.style.fontSize='0px'; xK.style.width='11px'; xK.style.height='11px'; xK.style.marginTop='2px'; xK.style.cursor='pointer'; KX(xK,'/web/images/todo-cross.png'); xK.onclick=function(){ Lb(Yl,searchTabSettings['searchEngines']); JA.xH(); JA.Ci(); }; var ak=null; var table=Fk([Gf.FQ(Yl,false,function(JT){ ak=JT; }),bW(7),xK],true); table.style.cursor='move'; Da.YY(ak,Yl,LD,'search-engine-item',function(){ cx.Fj(Yl,searchTabSettings['searchEngines'],function(ntF,gv,KHv){ ntF.splice(gv,1); }); },function(){ },function(){ },function(){ }); LD.appendChild(table); return LD; }; function UE(){ if(searchTabSettings==null){ var bO=new Array(); if(detectedCountryCode.toUpperCase()=='UK'||detectedCountryCode.toUpperCase()=='GB'){ bO.push([2751,'Google - UK','http://www.google.co.uk/','http://www.google.co.uk/search?hl=en&btnG=Google+Search&meta=&q=']); bO.push([3402,'Amazon - U.K.','http://www.amazon.co.uk','http://www.amazon.co.uk/gp/associates/link-types/searchbox.html?tag=protopage-21&mode=blended&keyword=']); bO.push([2523,'Yahoo Finance U.K. (Quote lookup)','http://uk.finance.yahoo.com','http://uk.finance.yahoo.com/q?d=t&p=&q=q&m=L&s=']); bO.push([3327,'eBay - U.K.','http://www.ebay.co.uk/','http://search.ebay.co.uk/search/search.dll?from=R40&satitle=']); bO.push([1408,'Extate UK property search','http://www.extate.co.uk','http://www.extate.co.uk/search?q=']); }else if(detectedCountryCode.toUpperCase()=='FR'){ bO.push([3403,'Amazon - France','http://www.amazon.fr','http://www.amazon.fr/gp/associates/link-types/searchbox.html?tag=protopage-21&mode=blended&keyword=']); bO.push([3309,'eBay - France ','http://www.ebay.fr/','http://search.ebay.fr/search/search.dll?from=R40&satitle=']); bO.push([2718,'Google - France','http://www.google.fr/','http://www.google.fr/search?hl=fr&btnG=Recherche+Google&meta=&q=']); bO.push([1308,'Wikipedia - France','http://fr.wikipedia.org/','http://fr.wikipedia.org/wiki/Special:Search?go=Go&search=']); }else if(detectedCountryCode.toUpperCase()=='DE'){ bO.push([3404,'Amazon - Germany','http://www.amazon.de','http://www.amazon.de/gp/associates/link-types/searchbox.html?tag=protopage0b-21&mode=blended&keyword=']); bO.push([3310,'eBay - Germany ','http://www.ebay.de/','http://search.ebay.de/search/search.dll?from=R40&satitle=']); bO.push([2780,'Google - Germany','http://www.google.de/','http://www.google.de/search?hl=de&btnG=Google-Suche&meta=&q=']); bO.push([1307,'Wikipedia - German','http://de.wikipedia.org/','http://de.wikipedia.org/wiki/Special:Search?go=Go&search=']); }else if(detectedCountryCode.toUpperCase()=='JP'){ bO.push([3405,'Amazon - Japan','http://www.amazon.co.jp','http://www.amazon.co.jp/gp/associates/link-types/searchbox.html?tag=a08ca-22&mode=blended&keyword=']); bO.push([2814,'Google - Japan','http://www.google.co.jp','http://www.google.co.jp/search?hl=ja&btnG=Google+%E6%A4%9C%E7%B4%A2&lr=&q=']); bO.push([1310,'Wikipedia - Japanese','http://ja.wikipedia.org/','http://ja.wikipedia.org/wiki/Special:Search?go=Go&search=']); }else if(detectedCountryCode.toUpperCase()=='CA'){ bO.push([3406,'Amazon - Canada','http://www.amazon.ca','http://www.amazon.ca/gp/associates/link-types/searchbox.html?tag=a09213-20&mode=blended&keyword=']); bO.push([3307,'eBay - Canada ','http://www.ebay.ca/','http://search.ebay.ca/search/search.dll?from=R40&satitle=']); bO.push([2730,'Google - Canada','http://www.google.ca/','http://www.google.ca/search?hl=en&btnG=Google+Search&meta=&q=']); }else if(detectedCountryCode.toUpperCase()=='AR'){ bO.push([3302,'eBay - Argentina','http://www.mercadolibre.com.ar/home_visitor.html','http://listado.mercadolibre.com.ar/']); bO.push([2763,'Google - Argentina','http://www.google.com.ar/','http://www.google.com.ar/search?hl=es&btnG=B%C3%BAsqueda+en+Google&meta=&q=']); }else if(detectedCountryCode.toUpperCase()=='AU'){ bO.push([3303,'eBay - Australia','http://www.ebay.com.au/','http://search.ebay.com.au/search/search.dll?from=R40&satitle=']); bO.push([2723,'Google - Australia','http://www.google.com.au/','http://www.google.com.au/search?hl=en&btnG=Google+Search&meta=&q=']); }else if(detectedCountryCode.toUpperCase()=='AT'){ bO.push([3304,'eBay - Austria ','http://www.ebay.at/','http://search.ebay.at/search/search.dll?from=R40&satitle=']); }else if(detectedCountryCode.toUpperCase()=='BE'){ bO.push([3305,'eBay - Belgium ','http://www.ebay.be/','http://search.benl.ebay.be/search/search.dll?from=R40&satitle=']); bO.push([2767,'Google - Belgium','http://www.google.be','http://www.google.be/search?hl=nl&btnG=Google+zoeken&meta=&q=']); }else if(detectedCountryCode.toUpperCase()=='BR'){ bO.push([3306,'eBay - Brazil ','http://www.mercadolivre.com.br/home_visitor.html','http://lista.mercadolivre.com.br/']); bO.push([2772,'Google - Brazil','http://www.google.com.br/','http://www.google.com.br/search?hl=pt-BR&btnG=Pesquisa+Google&meta=&q=']); bO.push([1302,'Wikipedia - Portuguese','http://pt.wikipedia.org/','http://pt.wikipedia.org/wiki/Special:Search?go=Go&search=']); bO.push([1304,'Wikipedia - Espanol','http://es.wikipedia.org/','http://es.wikipedia.org/wiki/Special:Search?go=Go&search=']); }else if(detectedCountryCode.toUpperCase()=='CN'){ bO.push([3308,'eBay - China ','http://www.ebay.com.cn/','http://search.ebay.com.cn/search/search.dll?from=R40&satitle=']); bO.push([2824,'Yahoo - China','http://chinese.yahoo.com/','http://chinese.yahoo.com/?p=']); }else if(detectedCountryCode.toUpperCase()=='HK'){ bO.push([3311,'eBay - Hong Kong','http://www.ebay.com.hk/','http://search.ebay.com.hk/search/search.dll?from=R40&satitle=']); }else if(detectedCountryCode.toUpperCase()=='IN'){ bO.push([3312,'eBay - India ','http://www.ebay.in/','http://search.ebay.in/search/search.dll?from=R40&satitle=']); bO.push([2737,'Google - India','http://www.google.co.in/','http://www.google.co.in/search?hl=en&btnG=Google+Search&meta=&q=']); bO.push([2829,'Yahoo - India','http://in.yahoo.com/','http://in.search.yahoo.com/search?p=']); }else if(detectedCountryCode.toUpperCase()=='IE'){ bO.push([3313,'eBay - Ireland ','http://www.ebay.ie/','http://search.ebay.ie/search/search.dll?from=R40&satitle=']); }else if(detectedCountryCode.toUpperCase()=='IT'){ bO.push([3314,'eBay - Italy ','http://www.ebay.it/','http://search.ebay.it/search/search.dll?from=R40&satitle=']); bO.push([2789,'Google - Italy','http://www.google.it/','http://www.google.it/search?hl=it&btnG=Cerca+con+Google&meta=&q=']); bO.push([1303,'Wikipedia - Italian','http://it.wikipedia.org/','http://it.wikipedia.org/wiki/Special:Search?go=Go&search=']); }else if(detectedCountryCode.toUpperCase()=='KR'){ bO.push([3315,'eBay - Korea ','http://www.auction.co.kr/default.html','http://www.auction.co.kr/default.html?keyword=&itemno=&seller=&dom=auction&isSuggestion=No&optSection=%C5%EB%C7%D5%B0%CB%BB%F6&x=19&y=9&txtKeyword=']); }else if(detectedCountryCode.toUpperCase()=='MY'){ bO.push([3316,'eBay - Malaysia ','http://www.ebay.com.my/home','http://www.ebay.com.my/listResults?browse=0&Submit=Search&Query=']); bO.push([2831,'Yahoo - Malaysia','http://malaysia.yahoo.com/','http://malaysia.search.yahoo.com/search?p=']); }else if(detectedCountryCode.toUpperCase()=='MX'){ bO.push([3317,'eBay - Mexico ','http://www.mercadolibre.com.mx/home_visitor.html','http://listado.mercadolibre.com.mx/']); bO.push([2799,'Google - Mexico','http://www.google.com.mx/','http://www.google.com.mx/search?hl=es&btnG=B%C3%BAsqueda+de+im%C3%A1genes&q=china&sa=N&tab=iw&q=']); bO.push([2823,'Yahoo - Mexico','http://mx.yahoo.com/','http://mx.search.yahoo.com/search?p=']); bO.push([1304,'Wikipedia - Espanol','http://es.wikipedia.org/','http://es.wikipedia.org/wiki/Special:Search?go=Go&search=']); }else if(detectedCountryCode.toUpperCase()=='NL'){ bO.push([3318,'eBay - Netherlands ','http://www.ebay.nl/','http://search.ebay.nl/search/search.dll?from=R40&satitle=']); bO.push([1309,'Wikipedia - Dutch','http://nl.wikipedia.org/','http://nl.wikipedia.org/wiki/Special:Search?go=Go&search=']); }else if(detectedCountryCode.toUpperCase()=='NZ'){ bO.push([3319,'eBay - New Zealand','http://pages.ebay.com/nz/','http://search.ebay.com//search/search.dll?salic=149&sojs=1&from=R40&satitle=']); bO.push([2744,'Google - New Zealand','http://www.google.co.nz/','http://www.google.co.nz/search?hl=en&btnG=Google+Search&meta=&q=']); bO.push([2828,'Yahoo - Australia/New Zealand','http://au.yahoo.com/','http://au.search.yahoo.com/search?p=']); }else if(detectedCountryCode.toUpperCase()=='PH'){ bO.push([3320,'eBay - Philippines ','http://www.ebay.ph/home','http://www.ebay.ph/listResults?browse=0&Submit=Search&Query=']); bO.push([2832,'Yahoo - Phillipines','http://ph.yahoo.com','http://ph.search.yahoo.com/search?p=']); }else if(detectedCountryCode.toUpperCase()=='PL'){ bO.push([3321,'eBay - Poland ','http://www.ebay.pl/','http://search.ebay.pl/search/search.dll?from=R40&satitle=']); bO.push([1306,'Wikipedia - Polish','http://pl.wikipedia.org/','http://pl.wikipedia.org/wiki/Special:Search?go=Go&search=']); }else if(detectedCountryCode.toUpperCase()=='SG'){ bO.push([3322,'eBay - Singapore ','http://www.ebay.com.sg/','http://search.ebay.com.sg/search/search.dll?from=R40&satitle=']); bO.push([2833,'Yahoo - Singapore','http://sg.yahoo.com/','http://sg.search.yahoo.com/search?p=']); }else if(detectedCountryCode.toUpperCase()=='ES'){ bO.push([3323,'eBay - Spain ','http://www.ebay.es/','http://search.ebay.es/search/search.dll?from=R40&satitle=']); bO.push([2784,'Google - Spain','http://www.google.es/','http://www.google.es/search?hl=es&btnG=B%C3%BAsqueda+en+Google&meta=&q=']); bO.push([2826,'Yahoo - Spain','http://espanol.yahoo.com/','http://espanol.search.yahoo.com/search?p=']); bO.push([1304,'Wikipedia - Espanol','http://es.wikipedia.org/','http://es.wikipedia.org/wiki/Special:Search?go=Go&search=']); }else if(detectedCountryCode.toUpperCase()=='SE'){ bO.push([3324,'eBay - Sweden ','http://www.ebay.se/home','http://www.ebay.se/listResults?browse=0&Submit=S%C3%B6k&Query=']); bO.push([1305,'Wikipedia - Svenska','http://sv.wikipedia.org/','http://sv.wikipedia.org/wiki/Special:Search?go=Go&search=']); }else if(detectedCountryCode.toUpperCase()=='CH'){ bO.push([3325,'eBay - Switzerland ','http://www.ebay.ch/','http://search.ebay.ch/search/search.dll?from=R40&satitle=']); bO.push([2809,'Google - Switzerland','http://www.google.ch/','http://www.google.ch/search?hl=de&btnG=Google-Suche&meta=&q=']); bO.push([1308,'Wikipedia - France','http://fr.wikipedia.org/','http://fr.wikipedia.org/wiki/Special:Search?go=Go&search=']); bO.push([1307,'Wikipedia - German','http://de.wikipedia.org/','http://de.wikipedia.org/wiki/Special:Search?go=Go&search=']); }else if(detectedCountryCode.toUpperCase()=='TW'){ bO.push([3326,'eBay - Taiwan ','http://www.tw.ebay.com/','http://search.tw.ebay.com/search/search.dll?from=R40&satitle=']); }var pU=[ [2701,'Google','http://www.google.com/','http://www.google.com/search?hl=en&q='],[1301,'Wikipedia - English','http://en.wikipedia.org','http://en.wikipedia.org/wiki/Special:Search?go=Go&search='],[1101,'Dictionary','http://dictionary.reference.com/','http://dictionary.reference.com/search?q='],[1102,'Thesaurus','http://thesaurus.reference.com/search?q=','http://thesaurus.reference.com/search?q='],[3401,'Amazon - U.S.','http://www.amazon.com','http://www.amazon.com/gp/associates/link-types/searchbox.html?tag=protopage-20&mode=blended&keyword='],[2818,'Yahoo','http://www.yahoo.com/','http://search.yahoo.com/search?p='],[2501,'Yahoo Finance (Quote lookup)','http://finance.yahoo.com/','http://finance.yahoo.com/q?s='],[3301,'eBay - U.S.','http://www.ebay.com','http://search.ebay.com/search/search.dll?from=R40&satitle='],[201,'IMDB - All','http://imdb.com/','http://imdb.com/find?s=all&q='],[1009,'Technorati','http://www.technorati.com/','http://www.technorati.com/search/'],[1607,'EnGadget','http://www.engadget.com/','http://www.engadget.com/search/?q='],[106,'WebMD','http://www.webmd.com/','http://www.webmd.com/search/search_results/default.aspx?x=0&y=0&query=']
]; bO=bO.concat(pU); searchTabSettings={ 'openResultsInNewWindow':true,'searchEngines':bO
}; }if(searchTabSettings['searchEngines'].length==0){ searchTabSettings['searchEngines'].push([2701,'Google','http://www.google.com/','http://www.google.com/search?hl=en&q=']); }Sl=new Gf(); }function Gf(){ var JA=this; this.jL=document.createElement('div'); this.jL.style.position='absolute'; this.jL.style.overflow='hidden'; this.jL.id='search-tab'; this.jL.style.zIndex=tk; nt.appendChild(this.jL); this.lu(); this.position(); this.iAO=null; HQ(this.jL,function(YC){ if(JA.KGb.style.display=='block'){ JA.iAO=setTimeout(function(){ if(JA.NEn!=null) return; JA.KGb.style.display='none'; JA.Na.cO(); JA.Na.position(5,0); JA.position(); JA.Na.AkF.position(); JA.iAO=null; },200); }}); JU(this.jL,function(YC){ if(JA.iAO!=null){ clearTimeout(JA.iAO); JA.iAO=null; }JA.mmY=new Date().getTime(); if(JA.KGb.style.display=='none'){ JA.KGb.style.display='block'; JA.Na.cO(); JA.Na.position(5,0); JA.position(); JA.Na.AkF.position(); }}); }Gf.prototype.position=function(){ if(enableCompactTopArea&&!Sr){ this.jL.style.top=-1000+'px'; }else{ this.jL.style.top=(YG==0?0:1+YG)+'px'; }var JO=this.Na.pc(); this.jL.style.width=JO+5+'px'; this.left=(ge()-(JO+5))-(MU?20:0); this.jL.style.left=this.left+'px'; this.jL.style.height=this.Na.el()+5+'px'; }; Gf.prototype.lu=function(){ var JA=this; var LD=this.jL; LM(LD); this.Na=new iT(); this.lal=document.createElement('div'); var ga=function(EH,hasFocus){ if(JA.NEn==EH&&!hasFocus){ setTimeout(function(){ if(JA.NEn==null){ JA.KGb.style.display='none'; JA.Na.cO(); JA.Na.position(5,0); JA.position(); JA.Na.AkF.position(); }},20); }JA.NEn=hasFocus?EH:null; }; this.jFI=document.createElement('div'); this.jFI.style.paddingLeft='5px'; this.jFI.style.paddingRight='5px'; var eK=searchTabSettings['searchEngines'][0]; this.jFI.appendChild(Gf.FQ(eK,true,null)); this.KGb=document.createElement('div'); this.KGb.style.display='none'; this.KGb.style.paddingLeft='5px'; this.KGb.style.paddingRight='5px'; for(var gv=1;gv<searchTabSettings['searchEngines'].length;gv++){ var Yl=searchTabSettings['searchEngines'][gv]; this.KGb.appendChild(Gf.FQ(Yl,false,null,ga)); }var OG=Mw('Customize list',11,false,5,function(){ if(!Bv) Bv=new cx(); pk.xI(false); Bv.xI(true); }); OG.className='scheme-header-text'; OG.style.fontWeight='normal'; var lG=document.createElement('div'); lG.style.textAlign='right'; lG.appendChild(OG); if(loggedIn) this.KGb.appendChild(lG); this.lal.appendChild(this.jFI); this.lal.appendChild(this.KGb); this.Na.Tl(LD,this.lal,null,'00',true,MU?true:false,null,null); this.Na.position(5,0); }; Gf.FQ=function(Yl,focus,lgF,ga){ var LD=document.createElement('div'); var HN=GP(); var rq=Yl[1]; var WK=Yl[2]; var wb=Yl[3]; HN.src='http://images.'+Zv.VQU+'/favIcon/search/'+WK; HN.width=16; HN.height=16; if(lgF) lgF(HN); Dv.sw(LD,'Search: '+rq,null,null,true); var form=document.createElement('form'); form.style.padding='0px'; form.style.margin='0px'; var EH=null; var ll=eT('',110,PP,function(lho,value){ },function(NSU){ EH=NSU; EH.name='qqqqqqqqqqqq'; }); if(ga){ EH.onfocus=function(){ ga(EH,true); }; EH.onblur=function(){ ga(EH,false); }; }if(focus){ te=EH; setTimeout(function(){ },200); }; form.onsubmit=function(eu){ preventDefault(eu); var Gl=wb+EH.value; ZX('search',rq,{'searchTitle':rq,'searchSiteUrl':WK,'searchInvocationUrl':wb,'searchText':EH.value}); if(searchTabSettings['openResultsInNewWindow']) ii(Gl); else window.location=Gl; return false; }; form.appendChild(ll); LD.appendChild(Fk([HN,bW(5),form],true)); var Ic=document.createElement('div'); Ic.style.height='5px'; LD.appendChild(Ic); return LD; }; function eb(Na){ var JA=this; this.Na=Na; var x=Na.left+Na.LD.offsetWidth-14; var y=Na.top+Na.LD.offsetHeight-10; this.LD=document.createElement('div'); this.LD.style.paddingLeft='15px'; this.LD.style.paddingRight='15px'; this.LD.style.paddingTop='5px'; this.LD.style.paddingBottom='5px'; this.LD.style.width='240px'; this.LD.appendChild(pm('Tab settings',14,true)); this.LD.appendChild(ji(7)); this.LD.appendChild(pm('Tab color',12,false)); this.LD.appendChild(ji(5)); this.iSA=new WD(function(XG){ JA.Na.tD['schemeOffset']=XG; JA.Na.XG=XG; JA.Na.PA(); JA.Na.tD.xu(); }); this.LD.appendChild(this.iSA.LD); this.LD.appendChild(ji(12)); this.LD.appendChild(pm('Tab layout',12,false)); this.LD.appendChild(ji(5)); this.gJu=new gu(['2 columns','3 columns','4 columns','5 columns','Free positioning' 
],['2col','3col','4col','5col','free'],function(no){ var xM=JA.Na.tD['positioning']; if(xM!=no){ if(no=='free'){ vh(no); }else{ mt(no); }}},true); setTimeout(function(){ JA.gJu.KH(JA.Na.tD['positioning']); },1); this.LD.appendChild(this.gJu.jL); this.LD.appendChild(ji(18)); var xK=document.createElement('div'); xK.style.fontSize='0px'; xK.style.width='11px'; xK.style.height='11px'; xK.style.marginTop='2px'; KX(xK,'/web/images/todo-cross.png'); var TZ=this.Na.tD.eZ()>1; var Za=TZ?'Remove copy of this tab':'Delete this tab'; var ni=Fk([xK,bW(6),Mw(Za,12,false,0,function(){ },null,true)]); var oI=document.createElement('div'); oI.style.clear='both'; oI.style.cursor='pointer'; oI.style.marginTop='2px'; oI.appendChild(ni); oI.onclick=function(){ eb.Mu(); if(TZ){ var FU=confirm("You are about to remove a copy of this tab (this tab will continue to exist in another category). Are you sure?"); if(FU){ JA.Na.tD.wG(IZ); Uq.lu(); }}else{ var UG=false; for(var gv in categories){ var tb=categories[gv]; if(!tb.Fc()){ for(var fJ in tb['virtualPages']){ var KO=tb['virtualPages'][fJ]; if(KO!=JA.Na.tD['id']){ UG=true; break; }}}}var QX=true; for(var gv in panelDatas){ if(panelDatas[gv].tD==JA.Na.tD['id']) QX=false; }if(!QX){ alert('As a safety precaution, before you can delete this tab, you must delete all widgets inside it.'); }else if(!UG){ alert('You cannot delete this tab, because you must have at least one tab in your page.'); }else{ var FU=confirm("WARNING: You are about to permanently delete this tab. Are you sure?"); if(FU){ JA.Na.tD.ZO(); Uq.lu(); }}}}; var dU=Mw('OK',14,true,0,function(){ eb.Mu(); },null,true); this.LD.appendChild(oI); var aW=Fk([ dU],'bottom'); jX(aW); this.LD.appendChild(aW); this.LD.appendChild(ji(5)); eb.eV(null); eb.FT(this.LD,x,y); }; eb.Mu=function(){ if(eb.GO){ if(this.Rcp!=-10000||this.MBF!=-10000) eb.GO.position(-10000,-10000); }}; eb.eV=function(Mh){ eb.Mh=Mh; }; eb.FT=function(XK,x,y){ if(!eb.GO){ eb.GO=new QF(x,y,true,MT,'00',XK,true,true,null); eb.GO.eV(function(){ eb.GO.position(-10000,-10000); if(eb.Mh) eb.Mh(); }); }else{ eb.GO.KT(XK); eb.GO.position(x,y,false); eb.GO.Cw(); }}; function WD(QxT){ var LD=document.createElement("div"); this.LD=LD; var NG=6; var la=16; var WF=5; var aX=0; var PL=['00','01','02','03','04','05','06','07','08','09','10']; for(var gv=0;gv<=10;gv++){ var xL=PL[gv]; var pA=this.VH(aX+(la+WF)*gv,0,la,la,NG,Ol[xL],gk[xL]); LD.appendChild(pA); pA.onmousedown=JV(QxT,xL); }var sK=aX+(11*(la+WF))-WF; var YB=la; LD.style.width=sK+'px'; LD.style.height=YB+'px'; LD.style.position='relative'; LD.style.height=la+'px'; }WD.prototype.VH=function(left,top,width,height,fg,dHw,mSY){ var LD=document.createElement('div'); LD.style.fontSize='1px'; LD.style.position='absolute'; LD.style.left=left+'px'; LD.style.top=top+'px'; LD.style.width=(width-2)+'px'; LD.style.height=(height-2)+'px'; LD.style.border='1px solid #'+mSY; LD.style.cursor='pointer'; LD.style.backgroundImage='url(/web/gradient/'+dHw+'/'+Fm+'/'+ab+')'; LD.style.backgroundRepeat='repeat-x'; LD.style.backgroundPosition='top'; LD.style.backgroundColor='#'+dHw; return LD; }; function SX(WiI,SCC,IS,sD,Pcs){ this.bKB=false; this.UTG=0; this.pNa=null; this.WiI=WiI; this.IS=IS; this.sD=sD; this.JvG=!SCC; this.Pcs=Pcs; this.disabled=false; }SX.prototype.LC=function(jL,XK,mdP,Joq){ if(this.disabled) return; SX.xi(this); var JA=this; var vY=new Date().getTime(); if(this.pNa!=null){ clearTimeout(this.pNa); this.pNa=null; }if(!mdP&&(vY-this.UTG)>100){ this.pNa=setTimeout(function(){ JA.pNa=null; JA.LC(jL,XK,true,Joq); },150); return; }this.bKB=true; this.UTG=vY; var cn=Oc(jL); var JO=jL.offsetWidth; var x=cn.x+parseInt(JO/2); if(Joq) x=cn.x+10; var y=cn.y; if(this.IS) x=x+this.IS; if(this.sD) y=y+this.sD; if(this.WiI) y+=jL.offsetHeight; if(!this.GO){ this.GO=new QF(x,y,this.JvG,vs,'00',XK,this.WiI,false,null,null,null,null,null,null,true); }this.GO.KT(XK); XK.style.whiteSpace='nowrap'; if(XK.offsetWidth>300){ XK.style.width='300px'; XK.style.whiteSpace=''; }if(XK.offsetWidth<50){ XK.style.width='50px'; XK.style.whiteSpace=''; }this.GO.Cw(true); var mP=false; var height=XK.offsetHeight+jL.offsetHeight; if(this.Pcs&&((y-height-14)<0)){ mP=true; y+=(height+40); }if(mP){ this.GO.position(x,y,false,true); }else{ this.GO.position(x,y,false); }}; SX.prototype.CZ=function(){ if(this.pNa!=null){ clearTimeout(this.pNa); this.pNa=null; }else{ var vY=new Date().getTime(); this.UTG=vY; }if(this.bKB){ this.GO.position(-10000,-10000,false); this.bKB=false; }}; SX.prototype.sw=function(jL,vB,JcM,FY,Joq){ var JA=this; var VV=MW(jL,function(){ var LD=document.createElement('div'); LD.style.fontSize='12px'; LD.style.paddingLeft='15px'; LD.style.paddingRight='15px'; LD.style.paddingTop='7px'; LD.style.paddingBottom='7px'; LD.style.overflow='hidden'; LD.className='scheme-body-text'; LD.style.textAlign='left'; if(FY) LD.appendChild(FY); else if(vB) LD.appendChild(document.createTextNode(vB)); else LD.innerHTML=JcM; JA.LC(jL,LD,false,Joq); }); var Yw=OI(jL,function(){ JA.CZ(); }); return [VV,Yw]; }; SX.HWY=new Array(); SX.fT=function(XZK){ SX.HWY.push(XZK); return XZK; }; SX.vF=function(){ SX.xi(null); }; SX.xi=function(XZK){ for(var gv in SX.HWY){ var Ul=SX.HWY[gv]; if(Ul!=XZK) Ul.CZ(); }}; SX.lS=function(disabled){ for(var gv in SX.HWY){ var Ul=SX.HWY[gv]; if(disabled){ Ul.disabled=true; Ul.CZ(); }else{ Ul.disabled=false; }}}; SX.YI=function(jL,PBF,tsQ){ SX.listenerFunctionList.push
}; var fo=SX.fT(new SX(false)); var di=SX.fT(new SX(false,false,0,0,true)); var JL=SX.fT(new SX(true)); var Ah=SX.fT(new SX(true)); var Dv=SX.fT(new SX(!true,true,-40,50)); function Vx(){ if(jp!=null) return; var text=unescape(window.document.title); jp=new Object(); jp.Na=new iT(); jp.LD=document.createElement('div'); jp.LD.style.zIndex=PD; jp.LD.style.paddingLeft='5px'; jp.LD.style.paddingRight='5px'; jp.LD.onmousedown=function(){ return false; }; var HO=new Ji(jp.LD,function(value,lho,width){ jp.Na.tn(width+20); jp.Na.AkF.position(); if(window.document.title!=value){ if(lho){ window.document.title=value; fU(value); Uq.cT(); ZX('page_title_save',value); }}},window.document.title,Wk,'bold','scheme-header-text'); HO.LD.style.zIndex=PD+20; jp.Na.Tl(pT,jp.LD,null,'00',true,true,null,null); dh(); jp.jL=jp.Na.LD; jp.Na.WH(PD); }function dh(){ var RS=QE?20:0; if(enableCompactTopArea&&!Sr){ jp.Na.position(-1000,-1000); }else{ jp.Na.position(RS,YG==0?0:1+YG); }}function fU(title){ var Pl=new Array(); Pl.push(new VD('title',title)); var rm=new Re(accountId,protopageId,null,protopagePath,'save-page-title',Pl); commandProcessor.xA(rm); }var mK=new Object(); function CH(){ if(protopagePath=='protopage/widgettest') return; if(protopagePath=='protopage/addlink') return; YS(); if(!loggedIn){ if(loggedInAsGuest){ Im=new jQ(cq()); }else{ Im=new jQ(dE()); }}else{ if(UC()){ Im=new jQ(ZT()); }else{ Im=new jQ(Wu()); }}}function YS(){ mK.JAA=new Bc('Colors / Settings','colors',16,function(){ Wm.open(); return false; },'Choose the color scheme and wallpaper for your page'); mK.dOB=new Bc('Add widgets','widget',18,vo,'Click the \'Add widgets\' button to add news, blogs, sticky notes and other widgets to your page.'); mK.hRq=new Bc('Help / About','bullet',18,function(BOf,Im,oPc){ var cn=Xt(oPc); if(!jQ.ik){ var LD=document.createElement('div'); LD.style.padding='5px 10px 5px 10px'; var PR=0; for(var gv in Zv.NLj){ var CC=Zv.NLj[gv][0]; var EX=Zv.NLj[gv][1]; if(PR>0) LD.appendChild(ji(1)); var iC=function(CC,EX){ LD.appendChild(Mw(CC,FJ,false,5,function(){ return ii(EX); })); }(CC,EX); if(PR<2) LD.appendChild(Nq(8)); PR++; }jQ.ik=new QF(cn.x,cn.y,true,vs-2,'00',LD,false,true,null); jQ.ik.eV(function(){ jQ.ik.position(-10000,-10000); }); }else{ jQ.ik.position(cn.x,cn.y,false); }},'Click here for more information about '+Zv.vsf+', how to contact us, and more.'); mK.VQq=new Bc('Help / About','help',18,function(){ ik.rT(); }); mK.XQM=new Bc('Legal / privacy','bullet',18,function(){return ii(Zv.RCv);}); mK.dgI=new Bc('Auto-arrange on','gravity',18,function(button,Im){ var xM=Ax['positioning']; if(xM==null||xM=='free'){ switchToGravityMode(); }else if(xM=='gravity'){ vh(); }Im.JW(); mK.XQM=new Bc('Legal / privacy','bullet',18,function(){return ii(Zv.RCv);}); },'When auto-arrange is off, you can position widgets freely. When auto-arrange is on, widgets will be arranged so that they do not overlap each other and will automatically be resized to fit the width of your web browser. Each tab in your page can have a different auto-arrange setting.'); mK.ecR=new Bc('Mobile','mobile',18,function(){ ik.rT('mobile'); },'Find out how to access your page on your mobile phone'); mK.vUb=new Bc('Log in','key',22,function(){ Ac(true);return false; },'If you already own a page, click here to log into it.'); }function Wu(){ return [ mK.dOB,mK.ecR,mK.JAA,new Bc('Logout','key',22,function(){IQ();return false;},'Log out of your page'),mK.VQq
]; }function cq(){ return [ mK.dOB,new Bc('Logout','key',22,function(){IQ();return false;},'Log out of your page'),mK.VQq
]; }function dE(){ var Fa=[ mK.vUb,mK.VQq
]; return Fa; }function ZT(){ return [ mK.dOB,mK.JAA,mK.vUb,mK.VQq
]; }function jQ(mK){ this.mK=mK; this.parentElement=uH(); for(var gv in this.mK) this.mK[gv].parentToolbar=this; this.LD=bD(); this.parentElement.appendChild(this.LD); var IS=0; for(var gv=0;gv<this.mK.length;gv++){ var FH=this.mK[gv]; FH.kV(this.LD); }this.jL=this.LD; this.LD.style.zIndex=nG; }; jQ.prototype.JW=function(){ if(!Ax) return; if(Ax.IH()){ if(mK.dOB.disabled!=false){ mK.dOB.disabled=false; this.position(); }}else{ if(mK.dOB.disabled!=true){ mK.dOB.disabled=true; this.position(); }}}; jQ.prototype.position=function(){ var IS=5; for(var gv=0;gv<this.mK.length;gv++){ var FH=this.mK[gv]; if(FH.disabled||(enableCompactTopArea&&!Sr)){ FH.Na.position(-1000,-1000); }else{ FH.dB(); FH.Na.position(IS,YG==0?0:YG+1); IS+=(FH.Na.pc()+4); }}this.width=IS+5; this.LD.style.width=this.width+'px'; var QL=Sl?Sl.left:ge(); if(VQ&&VQ.wRw) QL=VQ.left-5; QL+=5; this.LD.style.left=(QL-this.width)+'px'; this.LD.style.top=0+'px'; }; function vo(eu){ if(pk.wRw) pk.xI(false); pk.xI(true); }function Bc(label,HLb,QJM,iYI,XaB){ this.label=label; this.HLb=HLb; this.QJM=QJM; this.iYI=iYI; this.XaB=XaB; }Bc.prototype.kV=function(gX){ this.Na=new iT(); this.LD=bD(); var table=document.createElement('table'); this.table=table; table.cellPadding=0; table.cellSpacing=0; var FB=document.createElement('tbody'); var Kg=document.createElement('tr'); Kg.vAlign='middle'; FB.appendChild(Kg); table.appendChild(FB); this.LD.appendChild(table); this.LD.style.paddingTop='3px'; this.table.style.height='16px'; this.LD.style.height='16px'; this.table.style.padding='0px'; this.table.style.margin='0px'; var QB=document.createElement('td'); var ur=document.createElement('td'); var KV=document.createElement('div'); this.KV=KV; KV.style.width=this.QJM+'px'; KV.style.height='16px'; KV.style.overflow='visible'; this.LD.style.overflow='visible'; this.table.style.overflow='visible'; KX(KV,Nr+this.HLb+'.png',false); QB.appendChild(KV); QB.vAlign='middle'; QB.align='right'; var Pa=document.createElement('div'); Pa.appendChild(document.createTextNode(this.label)); Pa.className='scheme-header-text'; Pa.style.fontSize=FJ+'px'; Pa.style.whiteSpace='nowrap'; Pa.style.fontWeight='normal'; Pa.style.paddingLeft='5px'; Pa.style.paddingRight='5px'; Pa.style.paddingTop=(isIE?0:2)+'px'; this.Pa=Pa; ur.appendChild(Pa); ur.vAlign='middle'; ur.align='left'; Kg.appendChild(QB); Kg.appendChild(ur); this.Ls(this,QB,Pa); this.Ls(this,ur,Pa); this.Ne(); QB.style.cursor='pointer'; ur.style.cursor='pointer'; this.Na.Tl(gX,this.LD,null,'00',!false,true,null,null,3); this.Na.LD.style.zIndex=nG; this.Na.AkF.hLF.style.zIndex=nG-1; this.jL=this.Na.LD; }; Bc.prototype.dB=function(){ var JA=this; setTimeout(function(){ var JO=JA.table.offsetWidth; JA.LD.style.width=JO+'px'; JA.Na.cO(); JA.Na.tn(JO+10); JA.Na.AkF.position(); },1); }; Bc.prototype.EI=function(){ this.Pa.style.textDecoration='underline'; }; Bc.prototype.eO=function(){ this.Pa.style.textDecoration='none'; }; Bc.prototype.click=function(Im,oPc){ if(jQ.addWidgetTipBubble) jQ.addWidgetTipBubble.GZ(); ZX('toolbar_button_click',this.label); if(this.iYI) this.iYI(this,Im,oPc); }; Bc.prototype.Ne=function(){ if(this.XaB) Ah.sw(this.Pa,this.XaB); }; Bc.prototype.Ls=function(BOf,bHn,Pa){ var JA=this; JU(bHn,function(YC){ BOf.EI(); }); HQ(bHn,function(YC){ BOf.eO(); }); bHn.onclick=function(eu){ preventDefault(eu); BOf.click(JA,eu); LM(Pa); Pa.appendChild(document.createTextNode(BOf.label)); return false; }; }; var Nr='/web/images/toolbar3/'; function Qr(ie){ for(var gv in panelDatas){ var TK=panelDatas[gv]; if(TK.tD==ie) return false; }return true; }function rF(ie){ var Gx=hP(ie); var PK; if(Gx==0) PK=1; else PK=0; var FU=confirm('This will make virtual page no. '+(parseInt(ie)+1)+' '+(PK==0?'PUBLIC (others can view it, but only you can edit it)':'PRIVATE (only you can view or edit it)')+'. \nAre you sure?'); if(!FU) return; lI(ie,PK); populateVirtualPageController(); saveVirtualPageRestrictions(); }function Dp(){ var PR=0; var dQ=new Object(); for(var gv in panelDatas){ var PX=panelDatas[gv].tD; if(!dQ[PX]){ PR++; dQ[PX]=true; }}return PR; }function Hm(ie,wRw){ ie=ie+''; var LD=Rd(ie); var iV=(ie.indexOf('-')!=-1)?parseInt(ie.substring(ie.lastIndexOf('-')+1)):ie; LD.style.left=(wRw?0:(-10000*(iV+10)))+'px'; LD.style.top=(wRw?YG+vC:(-10000*(iV+10)))+'px'; }function qf(ie){ if(ie==XE) return; RU(); fv=false; ke=Mk(IZ,jc(ie)); window.location.hash=ke; eb.Mu(); tm.reset(); Hm(XE,false); XE=ie; Ax=jc(ie); Hm(XE,true); Mb(panelDatas); fv=true; if(Im) Im.JW(); DZ(XE); iH(); }function Yu(TK,ie){ if(TK.tD==XE){ TK.Qa(); }TK.tD=ie; jW(TK); if(ie==XE) Dr(TK); TK.Wj(true); iH(); }function of(TK){ Yu(TK,-1); }function Wi(TK){ Yu(TK,XE); }function hP(iMS){ if(virtualPageRestrictions==null||virtualPageRestrictions=='null') virtualPageRestrictions=''; var sS=virtualPageRestrictions.split(','); var Zp=new Array(); for(var gv in sS){ var FH=sS[gv].split(':'); Zp[FH[0]]=FH[1]; }if(Zp[iMS]==undefined) return requiresLogin?1:0; else return Zp[iMS]; }function lI(iMS,PK){ if(virtualPageRestrictions==undefined||virtualPageRestrictions==null||virtualPageRestrictions=='null') virtualPageRestrictions=''; if(virtualPageRestrictions.indexOf('undefined')!=-1) virtualPageRestrictions=''; var sS=virtualPageRestrictions.split(','); var Zp=new Array(); for(var gv in sS){ if(sS[gv]=="") continue; var FH=sS[gv].split(':'); Zp[FH[0]]=FH[1]; }Zp[iMS]=PK; var LL=new Array(); for(var gv in Zp){ LL.push(gv+':'+Zp[gv]); }virtualPageRestrictions=LL.join(','); }function Rd(gv){ if(aA[gv]==undefined){ var LD=document.createElement('div'); LD.style.position='absolute'; LD.style.left='0px'; LD.style.top=YG+vC+'px'; if(isIE) LD.style.zIndex=10; uH().appendChild(LD); aA[gv]=LD; }return aA[gv]; }function Vv(y){ if(vC==y) return; vC=y; for(var gv in aA){ if(parseInt(aA[gv].style.left)>=0){ aA[gv].style.top=YG+vC+'px'; }}if(pk.wRw){ pk.position(8,Math.max(uS()+8-vC,8-vC)); }}function Tb(Mn){ var dg=new Object(); dg.tb=null; dg.tD=null; dg.Mn=null; var GD=false; dg.GjW=true; for(var gv in categories){ var tb=categories[gv]; for(var fJ in tb['virtualPages']){ var KO=tb['virtualPages'][fJ]; if(KO==Mn) continue; else{ dg.tb=tb; dg.tD=jc(KO); dg.Mn=KO; GD=true; break; }}if(GD) break; }var tb=IZ; for(var fJ in tb['virtualPages']){ if(tb['virtualPages'][fJ]!=Mn){ dg.tb=tb; dg.Mn=tb['virtualPages'][fJ]; dg.tD=jc(dg.Mn); GD=true; break; }}qf(dg.Mn); if(IZ!=dg.tb){ IZ=dg.tb; Uq.cT(); }; }var Jn={ generateGrid:function(lkv){ var wt=Tf.CreateElement("DIV"); var lT=Tf.CreateElement("TABLE",null,null,wt,null,{width:"100%"}); lT.className="scheme-body-text"; var gE=Tf.CreateElement("TBODY",null,null,lT); for(var gv=0;gv<lkv.length;gv+=2){ Jn.generateRow(gE,lkv,gv); Jn.addSpacerRow(gE); }return wt; },generateRow:function(lT,lkv,tNq){ var AN=Tf.CreateElement("tr","","",lT); Jn.addSpacerColumn(AN); Jn.generateCell(AN,lkv,tNq); Jn.addSpacerColumn(AN); if(lkv[tNq+1]!=null){ Jn.generateCell(AN,lkv,tNq+1); }Jn.addSpacerColumn(AN); },generateCell:function(AN,lkv,index){ var gK=Tf.CreateElement("TD",null,null,AN,null,{width:"120px",textAlign:"center"}); var tw=Tf.CreateElement("TD",null,null,AN,null,{width:"200px",textAlign:"center"}); gK.vAlign="top"; var Qe=Tf.CreateElement("IMG",null,null,gK); Qe.src='/_api/imageProxy?img='+lkv[index]["screenshotUrl"]; Qe.width=lkv[index]["screenshotWidth"]/2; Qe.height=lkv[index]["screenshotHeight"]/2; tw.vAlign="top"; tw.appendChild(gd(lkv[index]["widgetSourceName"],14,true,0)); tw.appendChild(ji(3)); tw.appendChild(Mw('Add to your page',11,false,0,function(eu){ lp.Qc(); pk.JD(pk.IL(lkv[index]['widgetId']),parseInt(lkv[index]['defaultWidth']),38+parseInt(lkv[index]['defaultHeight'],lkv[index]),lkv[index])(eu); },null,true)); tw.appendChild(ji(11)); tw.appendChild(gd(lkv[index]["shortDescription"],11,false,0)); },addSpacerRow:function(lT){ var Ea=Tf.CreateElement("TR",null,null,lT); var KS=Tf.CreateElement("TD",null,null,Ea); KS.colSpan=5; var aw=Tf.CreateElement("DIV",null,"&nbsp;",KS,null,{height:"30px"}); },addSpacerColumn:function(AN){ var KS=Tf.CreateElement("TD",null,null,AN); var Ic=Tf.CreateElement("DIV",null,"&nbsp;",KS,null,{width:""}); }}; var Tf={ CreateElement:function(ttH,gMj,wAw,kph,RQr,XCC){ var eh=document.createElement(ttH); if(gMj&&gMj!="") eh.id=gMj; if(wAw&&wAw!="") eh.innerHTML=wAw; if(RQr&&RQr!="") eh.name=RQr; if(kph) { kph.appendChild(eh); }if(XCC!=null){ for(var kq in XCC){ eh.style[kq]=XCC[kq]; }}return eh; },FindPositionX:function(LCw) { if(!LCw) { }var left=LCw.offsetLeft; if(LCw.offsetParent) { left+=Tf.FindPositionX(LCw.offsetParent); }return left; },FindPositionY:function(LCw) { var top=LCw.offsetTop; if(LCw.offsetParent) { top+=Tf.FindPositionY(LCw.offsetParent); }return top; },RemoveChildNode:function(UON,DMM) { if(DMM.parentNode!=null) DMM.parentNode.removeChild(DMM); }}; function Go(){ this.LD=document.createElement('div'); this.hOP=false; }Go.prototype.Qc=function(){ if(!this.hOP) return; jI(false); this.hOP=false; this.GO.position(-90000,-90000); }; Go.prototype.FI=function(){ if(!this.hOP) return; var width=ge()-tN()-20; this.JdF=width; var left=tN()+10; var top=uS()+10; var height=RV()-top-10; this.GO.fw(left,top,width,height); var kS=this.kS; var qp=42; var Io=height-qp-20-26; var qC=16; var lf=isIE?0:8; var sx=width-14-14-qC-kS-lf; var xY=0; var fg=38; var fc=400; FG(this.mU,14,0,fc,fg); FG(this.DXJ,width-14-48,3,150,fg); FG(this.qUb,14,qp,kS,Io-xY); FG(this.vxx,14,qp-4,width-14-14,1); FG(this.rQT,14+kS,qp,qC,Io); FG(this.cFq,14+kS+qC,qp,sx,Io); FG(this.oWb,14+kS+qC,qp+Io,sx,26); }; Go.prototype.QM=function(){ var JA=this; this.kS=160; if(!this.GO){ var width=ge()-tN()-20; this.JdF=width; var left=tN()+10; var top=uS()+10; var height=RV()-top-10; this.GO=new QF(left,top,false,At,'00',this.LD,false,false,null,uH(),width,height,true); this.mU=bD(); this.DXJ=bD(); this.qUb=bD(); this.oWb=bD(); this.rQT=bD(); this.vxx=bD(); this.cFq=bD(); this.lWO=document.createElement('div'); this.lWO.style.paddingTop='18px'; this.cFq.appendChild(this.lWO); wJ(this.cFq); wJ(this.qUb); this.qUb.style.overflow='auto'; this.cFq.style.overflow='auto'; this.cFq.style.paddingRight='8px'; this.cFq.className='scheme-body-text'; this.mU.style.cursor='default'; this.mU.style.display='block'; this.mU.style.paddingTop='10px'; this.mU.className='scheme-body-text'; this.mU.style.fontSize='16px'; this.mU.style.fontWeight='bold'; this.mU.style.textDecoration='none'; this.mU.appendChild(document.createTextNode('Widget showcase')); this.oWb.style.cursor='default'; this.oWb.style.display='block'; this.oWb.style.paddingTop='10px'; this.oWb.className='scheme-body-text'; this.oWb.style.fontSize='10px'; this.oWb.style.fontWeight='normal'; this.oWb.style.textDecoration='none'; this.oWb.appendChild(gd('Note: These widgets are contributed by third parties and are not under the control of this site. ',10)); this.oWb.appendChild(gd(' If you would like to develop a widget, please ',10)); this.oWb.appendChild(Mw(' click here ',10,false,0,function(){ ii('http://widgets.protopage.com/index.php5?p=reg'); },null,true)); this.rQT.style.cursor='w-resize'; this.rQT.style.zIndex=100; this.nuo=document.createElement('div'); this.nuo.style.width='30px'; this.nuo.style.height='30px'; this.nuo.style.cursor='pointer'; KX(this.nuo,'/web/images/large-cross.png'); this.nuo.onclick=function(){ JA.Qc(); }; JL.sw(this.nuo,'Close the widget showcase'); this.DXJ.appendChild(Fk([bW(20),this.nuo],false)); this.LD.appendChild(this.mU); this.LD.appendChild(this.DXJ); this.LD.appendChild(this.qUb); this.LD.appendChild(this.vxx); this.LD.appendChild(this.rQT); this.LD.appendChild(this.cFq); this.LD.appendChild(this.oWb); this.vxx.style.borderTop='1px solid #'+OJ; this.caI=document.createElement('div'); this.caI.style.height='100%'; this.caI.style.position='relative'; this.caI.style.borderLeft='1px solid #'+OJ; this.caI.style.marginLeft='7px'; this.rQT.appendChild(this.caI); this.rQT.onmousedown=function(eu){ var hk=parseInt(JA.rQT.style.left); var VE=JA.kS; hW(eu,JA.rQT,null,function(dj,CQ,QH,uK){ },function(dj,CQ,jw,jP,QH,uK,VNf,uGQ){ var fP=Math.min(Math.max(20,hk+jw),JA.JdF-40); JA.rQT.style.left=fP+'px'; JA.kS=VE+(fP-hk); },function(dj,CQ,kf,mp,QH,uK){ JA.FI(); }); }; this.qUb.appendChild(this.RG()); }return this.GO; }; Go.prototype.Pm=function(){ var JA=this; this.QM(); this.hOP=true; this.FI(); jI(true); return false; }; Go.prototype.oc=function(tagName){ var JA=this; LM(this.lWO); var tH=pm('Loading...',12); tH.style.padding='16px'; this.lWO.appendChild(tH); var RP=new Object(); RP['methodName']='getWidgetsForTag'; RP['tag']=tagName; lM('/_api/showcase',RP,function(wT){ LM(JA.lWO); var ax=Jn.generateGrid(wT); JA.lWO.appendChild(ax); }); }; Go.prototype.RG=function(){ var JA=this; var LD=document.createElement('div'); LD.appendChild(ji(7)); LD.appendChild(pm('Browse by tag',12,false,false)); LD.appendChild(ji(7)); for(var gv in showcaseTags){ var Yq=showcaseTags[gv]; var iC=function(Yq){ var tagName=Yq['tag']; var PR=Yq['count']; var label=tagName+' ('+PR+')'; var Wx=document.createElement('div'); Wx.style.paddingLeft='16px'; Wx.appendChild(gd(label,12,false,0)); Wx.appendChild(ji(5)); Wx.style.cursor='pointer'; Wx.onmousedown=function(){ JA.oc(tagName); for(var fJ=0;fJ<LD.childNodes.length;fJ++){ LD.childNodes[fJ].style.fontWeight='normal'; LD.childNodes[fJ].style.backgroundImage='none'; }Wx.style.fontWeight='bold'; Wx.style.backgroundImage='url(/web/images/twister-closed.gif)'; Wx.style.backgroundRepeat='no-repeat'; Wx.style.backgroundPosition='1px 0px'; }; return Wx; }; var Wx=iC(Yq); LD.appendChild(Wx); }this.oc(showcaseTags[0]['tag']); LD.childNodes[3].style.fontWeight='bold'; LD.childNodes[3].style.backgroundImage='url(/web/images/twister-closed.gif)'; LD.childNodes[3].style.backgroundRepeat='no-repeat'; LD.childNodes[3].style.backgroundPosition='1px 0px'; return LD; }; function VL(){ Jpk['protopage-widget-config']=QN; }function Sx(TK){ if(!TK.IH()) return; if(TK.pH=='protopage-widget-config') return; if(TK.cmr) return; else TK.cmr=true; var attributes=new Object(); var uq=new Object(); uq['pd']=TK; var CX; if(TK.hA=='links'){ var wV=new Array(); var AU=new Array(); for(var gv in TK.XS){ var pv=TK.XS[gv]; AU.push([pv.label,pv.url]); }wV['links']=AU; uq['associatedWidgetAttributes']=wV; uq['associatedWidgetConfigTemplate']=AK(); CX=bn('widget','Widget edit',100,sB()+100,684,392,TK.XG,true,'protopage-widget-config','',attributes,uq); CX.QC(); }if(TK.hA=='html'||TK.hA=='note'){ if(TK.hA=='note'){ TK.hA='html'; var LL=TK.content; if(LL==null) LL=''; LL=fH(LL); LL=LL.split('\n').join('<br>'); TK.content=LL; }var wV=new Object(); wV['content']=TK.content; uq['associatedWidgetAttributes']=wV; uq['associatedWidgetConfigTemplate']=pQ(); CX=bn('widget','Widget edit',100,100+sB(),616,466,TK.XG,true,'protopage-widget-config','',attributes,uq); }if(TK.hA=='widget'){ uq['associatedWidgetConfigTemplate']=TK.bH.prR.JZ(); uq['associatedWidgetAttributes']=TK.bH.prR.wD(); uq['associatedWidgetInstance']=TK.bH; CX=bn('widget','Widget edit',100,100+sB(),692,568,TK.XG,true,'protopage-widget-config','',attributes,uq); }CX.QC(); jW(CX); }function QN(){ }QN.prototype=new pa(); QN.prototype.JX=function(){ var JA=this; this.prR.hY(); this.prR.ML(function(ai){ JA.prR.MA(!ai); }); var LD=document.createElement('div'); this.MJY=LD; LD.style.position='relative'; this.prR.De().appendChild(LD); var Yd=''; var DA=uid(); var tU=uid(); var mx=uid(); var ug=uid(); var Lm=uid(); var su=uid(); var Ss=uid(); Yd+='<table id="'+su+'" cellpadding=0 cellspacing=0>'; Yd+='<tr><td><div class="scheme-body-text" id="'+tU+'"></div></td><td align="right"><div id="'+mx+'"></div></td></tr>'; Yd+='<tr><td colspan=2><div class="scheme-body-text" id="'+Lm+'"></div></td></tr>'; Yd+='<tr><td colspan=2><div style="text-align: left" id="'+ug+'"></div></td></tr>'; Yd+='<tr><td colspan=2><div style="text-align: right" id="'+DA+'"></div></td></tr>'; Yd+='</table>'; LD.innerHTML=(Yd); this.ilX=document.getElementById(DA); this.XTd=document.getElementById(tU); var ip=uid(); var EW=uid(); var hu=uid(); document.getElementById(DA).innerHTML='<a id="'+EW+'" class="scheme-body-text" href="">Cancel</a> &nbsp;&nbsp;&nbsp; <a id="'+hu+'" class="scheme-body-text" style="font-weight:bold; font-size:20px" href="">Save</a>&nbsp;&nbsp;&nbsp;'; document.getElementById(DA).style.paddingTop='20px'; var Bj=this.uq['associatedWidgetInstance']; if(Bj){ var pH=Bj.prR.NY.pH; if(pH>0){ }}document.getElementById(tU).innerHTML='Widget title&nbsp;&nbsp;&nbsp;<input style="width:200px;" id="'+Ss+'" type="text" value="Untitled" class="scheme-header scheme-header-text">'; document.getElementById(tU).style.whiteSpace='nowrap'; document.getElementById(Ss).value=JA.sG().title; document.getElementById(tU).style.paddingBottom='20px'; document.getElementById(mx).appendChild(UJ(function(gv){ var XG=(gv<10)?'0'+gv:''+gv; JA.prR.NY.XG=XG; JA.prR.NY.xm(); JA.prR.NY.iA(); var TK=JA.sG(); TK.XG=XG; TK.xm(); TK.iA(); for(var fJ in JA.rJi){ var Ir=JA.rJi[fJ]; if(Ir.PC) Ir.PC(); }})); this.Tes=JA.sG().XG; document.getElementById(mx).style.paddingBottom='20px'; this.ASq=document.getElementById(Ss); var QU=document.getElementById(EW); var RE=document.getElementById(hu); var tF=function(){ var TK=JA.sG(); TK.XG=JA.Tes; TK.xm(); TK.iA(); JA.om(); JA.sG().cmr=false; }; QU.onclick=function(event){ stopPropagation(event); tF(); JA.prR.NY.wl(); return false; }; this.prR.cL(function(){ if(!JA.xGj) tF(); return false; }); RE.onclick=function(event){ stopPropagation(event); var TK=JA.sG(); ZX('widget_config_save',TK.pH,{'panelDataId':TK.id,'widgetId':TK.pH,'widgetTitle':TK.title}); JA.xGj=true; TK.Wj(true); TK.title=document.getElementById(Ss).value; if(TK.hA=='links'){ for(var gv in JA.rJi){ var Ir=JA.rJi[gv]; if(Ir.Onq=='links'){ var rows=Ir.LT(); var XS=new Array(); for(var fJ in rows){ var YV=rows[fJ]; if(YV[0]==''&&YV[1]=='') continue; XS.push(new LinkData(YV[0],YV[1])); }TK.XS=XS; TK.uN(); TK.Hj(TK.title); mg(TK); }}}if(TK.hA=='html'){ for(var gv in JA.rJi){ var Ir=JA.rJi[gv]; if(Ir.Onq=='content'){ TK.content=Ir.LT(); TK.OW(); TK.Hj(TK.title); nY(TK); }}}if(TK.hA=='widget'){ TK.title=document.getElementById(Ss).value; TK.Hj(TK.title); for(var gv in JA.rJi){ var Ir=JA.rJi[gv]; if(Ir.NM) Ir.NM(); else if(Ir.LT){ if(Ir.Onq) TK.bH.prR.setAttribute(Ir.Onq,Ir.LT()); }}for(var gv in JA.rJi){ var Ir=JA.rJi[gv]; if(Ir.ZI) Ir.ZI(); }TK.bH.prR.sW(); TK.bH.prR.KR(); }JA.om(); JA.prR.NY.wl(); JA.sG().cmr=false; return false; }; this.om=function(){ for(var gv in this.rJi){ var Ir=this.rJi[gv]; if(Ir.Il) Ir.Il(); }}; this.table=document.getElementById(su); var TK=JA.prR.NY; this.rJi=lg(document.getElementById(Lm),this.uq['associatedWidgetConfigTemplate'],this.uq['associatedWidgetAttributes'],this.uq['associatedWidgetInstance'],this,function(vvU){ if(TK.iD=='MAXIMIZED'){ rU(TK); }else{ if(true) Dc(TK); TK.US(); }}); for(var gv in this.rJi){ if(this.rJi[gv].hd) this.rJi[gv].hd(); }this.prR.Bu(this.BL); this.BL(TK.innerWidth,TK.QcS,false); }; QN.prototype.BL=function(innerWidth,QcS,wRl){ this.MJY.style.width=innerWidth-20+'px'; var TK=this.prR.NY; var Ga; if(TK.iD!='MAXIMIZED'){ var oK=0; oK+=this.ilX.offsetHeight; oK+=this.XTd.offsetHeight; oK+=TK.Lo(); Ga=TK.height-oK; }else{ Ga=RV()-TK.Lo()-200; }Bo(this.rJi,innerWidth,Ga); }; QN.prototype.sG=function(){ return this.uq['pd']; }; function hv(TK){ if(TK.Til){ TK.uN(); }TK.Hj(TK.title); mg(TK); }; function mg(TK){ var Pl=new Array(); var LL=0; Pl.push(new VD('id',TK.id)); Pl.push(new VD('title',TK.title)); Pl.push(new VD('objectType',TK.hA)); for(var gv in TK.XS){ Pl.push(new VD('_labels',TK.XS[gv].label)); Pl.push(new VD('_urls',TK.XS[gv].url)); LL++; }var rm=new Re(TK.Oe(),TK.sI(),TK.qK(),protopagePath,'save-links-panel',Pl); rm.NY=TK; rm.GV=IC; commandProcessor.xA(rm); }function nY(TK){ var Pl=new Array(); Pl.push(new VD('id',TK.id)); Pl.push(new VD('title',TK.title)); Pl.push(new VD('objectType',TK.hA)); Pl.push(new VD('content',TK.content)); var rm=new Re(TK.Oe(),TK.sI(),TK.qK(),protopagePath,'save-content-panel',Pl); rm.NY=TK; rm.GV=IC; commandProcessor.xA(rm); }function fZ(TK){ var Pl=new Array(); Pl.push(new VD('id',TK.id)); Pl.push(new VD('title',TK.title)); Pl.push(new VD('content',TK.content)); var rm=new Re(TK.Oe(),TK.sI(),TK.qK(),protopagePath,'save-widget-attributes',Pl); rm.NY=TK; rm.GV=IC; commandProcessor.xA(rm); }function Tv(TK,Pi,Hi){ TK.LD.style.left=Pi+"px"; TK.LD.style.top=Hi+"px"; TK.KM(); }function fX(){ for(var gv in panelDatas){ if(panelDatas[gv].tD!=XE) continue; if(panelDatas[gv].iD=='MAXIMIZED') return true; }return false; }function rU(TK){ Tv(TK,tN()+Gc,60); var md=0; if(TK.iD=='MAXIMIZED') md=2; if(TK.iD=='MAXIMIZED'&&TK.hn) md=0.5; TK.hS(ge()-(tN()+Gc+10),TK.Lo()*(1+md)+TK.Xh.offsetHeight); }function Dc(TK){ TK.hS(TK.width,TK.Lo()*1+TK.Xh.offsetHeight+1); }function Un(Sjc,KNT){ var x=Sjc; var y=KNT; while(true){ var qt=false; for(var gv in panelDatas){ if(panelDatas[gv].tD!=XE) continue; if(panelDatas[gv].left==x&&panelDatas[gv].top==y){ x+=10; y+=10; qt=true; }}if(!qt) break; }return new du(x,y); }function RL(){ var iN=new Object(); iN.ZP=function(uB,Zq){ if(uB){ if(!cP){ DZ(XE); }}}; iN.KL=function(uB,Zq){ }; dX.push(iN); }function sY(LGu,tB){ if(LGu.top<tB.top) return-1; if(LGu.top>tB.top) return 1; if(LGu.top==tB.top){ if(LGu.left<tB.left) return-1; if(LGu.left==tB.left) return 0; if(LGu.left>tB.left) return 1; }if(sa){ throw('Panel dimensions not specified (1): '+LGu.left+', '+tB.left+', '+LGu.top+', '+tB.top); }else return 0; }function AA(RQ,Bd){ if(RQ.x<Bd.x) return-1; if(RQ.x==Bd.x) return 0; if(RQ.x>Bd.x) return 1; }function KJ(Ru){ var oB=new Array(); var JM=new Array(); var aD=new Object(); aD.oB=oB; aD.JM=JM; for(var fJ in Ru.TL){ oB.push(Ru.TL[fJ].tjT); }for(var fJ in oB){ var EQ=oB[fJ]; if(EQ.linkedRightCol){ var dH=KJ(EQ.linkedRightCol); for(var nd in dH.oB) oB.push(dH.oB[nd]); for(var nd in dH.JM) oB.push(dH.JM[nd]); }}return aD; }function wW(tD){ var iX=jc(tD)['positioning']; var cols=parseInt(iX.charAt(0)); var rW=new Array(); var TL=new Array(); for(var gv in panelDatas){ if(panelDatas[gv].tD==tD){ var TK=panelDatas[gv]; var WR=false; if(TK.hn||TK.GJ) WR=true; if(WR) continue; else TL.push(TK); }}for(var gv in TL){ var TK=TL[gv]; TK.fCI=TK.left; TK.KNq=TK.width; }for(var gv in TL){ var TK=TL[gv]; if(TK.width<lQ(TK)) TK.width=lQ(TK); }var CI=20; var ND=20; var Zk=20; var QL=qn(); var innerWidth=QL-(ND+Zk); var XM=innerWidth-(CI*(cols-1)); var Sq=XM/cols; var XF=false; var jZ=0; for(var gv in TL){ var TK=TL[gv]; var cH=parseInt(TK.cH); var colSpan=parseInt(TK.colSpan); if(!(isNaN(cH)||isNaN(colSpan))){ var Ru=cH+(colSpan-1); if(Ru>=cols){ cH-=(Ru-(cols-1)); if(cH<0){ colSpan+=cH; cH=0; if(colSpan<1) colSpan=1; }}TK.cH=parseInt(cH); TK.colSpan=parseInt(colSpan); }else{ }if(TK.left+TK.width>=jZ){ jZ=TK.left+TK.width; }if(isNaN(cH)||isNaN(colSpan)) XF=true 
}if(XF){ if(jZ<ge()) jZ=ge(); }var ER=QL/jZ; for(var gv in TL){ var TK=TL[gv]; TK.left=Math.round(TK.left*ER); TK.width=Math.round(TK.width*ER); }var MZ=new Array(); var eP=new Array(); var IS=ND; MZ.push(IS); for(var gv=0;gv<(cols-1);gv++){ IS+=Sq; eP.push(Math.round(IS)); IS+=CI; MZ.push(Math.round(IS)); }eP.push(QL-Zk); for(var gv in TL){ var TK=TL[gv]; if(isNaN(cH)||isNaN(colSpan)){ var GM=100000; var Ut=0; var Zg=0; for(var fJ in MZ){ var vP=MZ[fJ]; if(Math.abs(TK.left-vP)<GM){ GM=Math.abs(TK.left-vP); Ut=vP; Zg=parseInt(fJ); }}TK.left=Ut; GM=100000; var dp=0; var vi=1; for(var fJ in eP){ var Vm=eP[fJ]; if(Math.abs((TK.left+TK.width)-Vm)<GM){ if(Vm>TK.left){ GM=Math.abs((TK.left+TK.width)-Vm); dp=Vm; vi=((parseInt(fJ)+1)-parseInt(Zg)); }}}TK.width=dp-TK.left; TK.cH=parseInt(Zg); TK.colSpan=parseInt(vi); }else{ TK.left=MZ[TK.cH]; TK.width=eP[TK.cH+(TK.colSpan-1)]-TK.left; }}for(var gv in TL){ var TK=TL[gv]; if((TK.fCI!=TK.left)||(TK.KNq!=TK.width)){ rW.push(TK); }}for(var gv in rW){ if(!TK.Til) continue; if(rW[gv].Xh) Tv(rW[gv],rW[gv].left,rW[gv].top); rW[gv].hS(rW[gv].width,rW[gv].height); rW[gv].US(); if(rW[gv].hA=='widget'){ if(rW[gv].bH){ rW[gv].bH.prR.BL(false,rW[gv].innerWidth,rW[gv].QcS); }}}return rW; }function LJ(tD){ if(!!!colorsAndSettings.enableAutoArrangeFeatures) return; var rW=new Array(); var TL=new Array(); for(var gv in panelDatas){ if(panelDatas[gv].tD==tD){ var TK=panelDatas[gv]; var WR=false; if(TK.hn||TK.GJ) WR=true; if(WR) continue; else TL.push(TK); }}for(var gv in TL){ var TK=TL[gv]; if(TK.width<lQ(TK)) TK.width=lQ(TK); }TL.sort(sY); var Rl=80; var tI=80; var CI=20; var ND=20; var Zk=20; var vQ=new Array(); var SI=new Array(); for(var gv in TL){ var TK=TL[gv]; var lo=false; for(var fJ in vQ){ if(Math.abs(vQ[fJ].x-TK.left)<=Rl){ vQ[fJ].TL.push(TK); TK.tjT=vQ[fJ]; lo=true; break; }}if(!lo){ var LL=new Object(); LL.TL=[TK]; LL.x=TK.left; TK.tjT=LL; vQ.push(LL); }var Sv=false; for(var fJ in SI){ if(Math.abs(SI[fJ].x-(TK.left+TK.width))<=Rl){ SI[fJ].TL.push(TK); Sv=true; break; }}if(!Sv){ var LL=new Object(); LL.TL=[TK]; LL.x=TK.left+TK.width; SI.push(LL); }}for(var fJ in SI){ SI[fJ].EQ=null; for(var gv in vQ){ if(Math.abs(vQ[gv].x-SI[fJ].x)<=tI){ SI[fJ].EQ=vQ[gv]; }}}var LN=1000000; var LW=null; for(var gv in vQ){ if(LW==null){ LW=vQ[gv]; LN=vQ[gv].x; continue; }if(vQ[gv].x<LN){ LN=vQ[gv].x; LW=vQ[gv]; }}if(LW!=null){ if(LN<=60) LW.x=ND; }var QL=qn()-Zk; var xB=0; for(var gv in SI){ if(SI[gv].x>=xB){ xB=SI[gv].x; }}var ER=(QL-ND)/(xB-ND); for(var gv in vQ) vQ[gv].x=Math.floor((vQ[gv].x-ND)*ER)+ND; for(var gv in SI) SI[gv].x=Math.floor((SI[gv].x-ND)*ER)+ND; for(var gv in SI){ if(SI[gv].EQ){ SI[gv].EQ.x=SI[gv].x+CI; }}for(var gv in vQ) vQ[gv].origX=vQ[gv].x; for(var gv in SI) SI[gv].origX=SI[gv].x; SI.sort(AA); for(var gv=0;gv<SI.length;gv++){ var Ru=SI[gv]; var ID=Ru.x; for(var fJ in Ru.TL){ var TK=Ru.TL[fJ]; var nv=lQ(TK); var jm=(Ru.x-TK.tjT.x)-nv; if(jm<ID) ID=jm; }if(ID<0){ Ru.x-=ID; for(var nd in SI){ if(SI[nd]==Ru) continue; if(SI[nd].origX>=Ru.origX) SI[nd].x-=ID; }for(var nd in vQ){ if(vQ[nd].origX>=Ru.origX) vQ[nd].x-=ID; }}}SI.sort(AA); var CJ=false; if((SI.length>0)){ if(SI[SI.length-1].x>QL) CJ=true; }CJ=false; if(CJ){ var Gm=new Array(); for(var gv=SI.length-1;gv>=0;gv--){ var Ru=SI[gv]; if(!Ru.tEW){ var iJ=new Object(); iJ.eLg=Ru; iJ.vQ=new Array(); iJ.SI=new Array(); iJ.SI.push(Ru); Ru.tEW=true; var aD=KJ(Ru); for(var fJ in aD.oB){ aD.oB[fJ].tEW=true; iJ.vQ.push(aD.oB[fJ]); }for(var fJ in aD.JM){ aD.JM[fJ].tEW=true; iJ.SI.push(aD.JM[fJ]); }Gm.push(iJ); }}for(var gv in Gm){ var iJ=Gm[gv]; if(iJ.eLg.x>QL){ var ZH=0; for(var fJ in iJ.SI){ var Ru=iJ.SI[fJ]; var ID=Ru.x; for(var nd in Ru.TL){ var TK=Ru.TL[nd]; var nv=lQ(TK); var jm=(Ru.x-TK.tjT.x)-nv; if(jm<ID) ID=jm; }ZH+=ID; Ru.ID=ID; }var Cc=iJ.eLg.x-QL; var de=Cc/ZH; if(de>1) de=1; for(var fJ in iJ.SI){ var Ru=iJ.SI[fJ]; var NZ=Math.ceil(de*Ru.ID); Ru.x-=NZ; for(var nd in iJ.SI){ if(iJ.SI[nd]!=Ru) continue; if(iJ.SI[nd].x>=Ru.x) iJ.SI[nd].x-=NZ; }for(var nd in iJ.vQ){ if(iJ.vQ[nd].x>=Ru.x) iJ.vQ[nd].x-=NZ; }}}}}for(var gv in vQ){ for(var fJ in vQ[gv].TL){ var TK=vQ[gv].TL[fJ]; if(TK.left!=vQ[gv].x){ TK.left=vQ[gv].x; TK.AFv=true; rW.push(TK); }}}for(var gv in SI){ for(var fJ in SI[gv].TL){ var TK=SI[gv].TL[fJ]; if((TK.left+TK.width)!=SI[gv].x){ if(true||(TK.pH!=MdN)){ TK.width=SI[gv].x-TK.left; TK.AFv=true; var bc=true; for(var nd in rW){ if(rW[nd]==TK){ bc=true; break; }}}if(bc) rW.push(TK); }}}for(var gv in rW){ if(!TK.Til) continue; if(rW[gv].Xh) Tv(rW[gv],rW[gv].left,rW[gv].top); rW[gv].hS(rW[gv].width,rW[gv].height); rW[gv].US(); if(rW[gv].hA=='widget'){ if(rW[gv].bH){ rW[gv].bH.prR.BL(false,rW[gv].innerWidth,rW[gv].QcS); }}}return rW; }function qv(tD){ var hb=0; for(var gv in panelDatas){ if(panelDatas[gv].tD==tD){ var TK=panelDatas[gv]; var y=TK.top+TK.height+1; if(hb<y) hb=y; }}return na(tD,0,1000000,hb,new Array(),new Array()); }function na(tD,bDh,Hla,y,Qp,SIJ){ var Cq=!!colorsAndSettings.enableAutoArrangeFeatures?15:8; var CN=new Array(); var DD=new Array(); var jA=new Array(); for(var gv in panelDatas){ if(panelDatas[gv].tD==tD){ var TK=panelDatas[gv]; var WR=false; if(TK.hn||TK.GJ) WR=true; for(var fJ in SIJ){ if(SIJ[fJ]==TK){ WR=true; break; }}for(var fJ in Qp){ if(Qp[fJ]==TK){ WR=true; break; }}if(WR) continue; if(TK.top>y) continue; if(ft(TK.left,TK.width,bDh,Hla-bDh)){ CN.push(TK); }}}CN.sort(rt); while(true){ if(CN.length==0) break; var TK=CN.shift(); var bt=na(tD,TK.left,TK.left+TK.width,TK.top,Qp.concat([TK]),DD.concat(jA).concat(SIJ)); while(bt.length>0){ var FF=bt.shift(); jA.push(FF); for(var gv in CN){ if(CN[gv]==FF){ CN.splice(gv,1); break; }}}var MF=new Array(); MF=MF.concat(DD); MF=MF.concat(jA); MF=MF.concat(SIJ); var hb=0; for(var gv in MF){ var tB=MF[gv]; if(ft(TK.left,TK.width,tB.left,tB.width)){ var oX=tB.eDF?(tB.top+tB.Lo()):(tB.top+tB.height); oX+=Cq; if(hb<oX) hb=oX; }}if(TK.top!=hb){ TK.top=hb; TK.AFv=true; }DD.push(TK); }var jY=new Array(); jY=jY.concat(DD); jY=jY.concat(jA); return jY; }function ft(DRP,QOW,qOT,whf){ var Rh=DRP+QOW; var jB=qOT+whf; if((DRP>=qOT)&&(DRP<=jB)) return true; if((Rh>=qOT)&&(Rh<=jB)) return true; if((qOT>=DRP)&&(qOT<=Rh)) return true; if((jB>=DRP)&&(jB<=Rh)) return true; return false; }function rt(LGu,tB){ if(LGu.left>tB.left) return-1; if(LGu.left<tB.left) return 1; if(LGu.left==tB.left){ if(LGu.top>tB.top) return-1; if(LGu.top==tB.top){ if(LGu.zIndex<tB.zIndex) return-1; else return 1; }if(LGu.top<tB.top) return 1; }if(sa) throw('Panel dimensions not specified (2)'); else return 0; }function AD(){ var TL=new Array(); for(var gv in panelDatas){ var TK=panelDatas[gv]; if(TK.AFv){ TL.push(TK); TK.AFv=false; }}PanelData.Ug(TL); }function lQ(TK){ var Jw=130; return Jw; }function PanelData(id,accountId,protopageId,hA,title,left,top,width,height,cH,colSpan,eDF,zIndex,HhE,XS,content,iD,tD,XG,pH,cW,hn,GJ,Ei,fN,hM,eo){ this.accountId=accountId; this.protopageId=protopageId; this.id=id;this.hA=hA;this.title=title;this.left=left;this.top=top;this.width=width;this.height=height; this.cH=cH; this.colSpan=colSpan; this.eDF=eDF;this.zIndex=zIndex;this.HhE=HhE; this.XS=XS;this.content=content; this.nkq=null; this.iD=iD; this.tD=tD; this.XG=XG; this.pH=pH; this.cW=cW; this.hn=hn; this.GJ=GJ; this.Ei=Ei; this.fN=fN; this.hM=hM; this.eo=eo; var JA=this; this.vAd=this.left; this.frF=this.top; this.WUm=this.width; this.Yht=this.height; this.ZTg=false; this.AFv=false; this.innerWidth=this.width-20; if(this.pH==gKa) this.HhE=0; if((this.tD==null)||(this.tD=='')||(this.tD=='null')){ this.tD=0; }if((this.XG==null)||(this.XG=='')||(this.XG=='null')){ this.XG='00'; }if((this.iD==null)||(this.iD=='')||(this.iD=='null')){ this.iD='FLOATING'; }this.Til=false; this.BMh=false; this.jL=null; this.AkF=null; this.bH=null; }PanelData.prototype.Qa=function(){ var IR=Rd(this.tD); this.Dn.removeChild(this.LD); if(this.AkF) this.AkF.remove(); this.Til=false; }; PanelData.prototype.Vb=function(){ if(Aa()){ this.AkF=new BG(this.jL,true,this.Dn,true,true,false,false); }}; PanelData.prototype.vW=function(){ if(this.AkF){ this.AkF.remove(); delete this.AkF; }}; PanelData.prototype.GB=function(){ if(Aa()&&(!this.AkF)) this.Vb(); if((!Aa())&&(this.AkF)) this.vW(); }; PanelData.prototype.KM=function(){ if(this.AkF) this.AkF.position(); }; PanelData.prototype.bj=function(){ if(this.AkF&&Aa()) this.AkF.rL(); }; PanelData.prototype.hide=function(){ this.LD.style.left='-100000px'; this.LD.style.top='-100000px'; if(this.AkF) this.AkF.xI(false); }; PanelData.prototype.uX=function(){ try{ this.jL.style.left=this.left+'px'; this.jL.style.top=this.top+'px'; if(this.AkF) this.AkF.xI(true); }catch(eu){}}; PanelData.prototype.Oi=function(){ return 'scheme-offset-'+this.XG; }; PanelData.prototype.xm=function(){ this.jL.className='panel '+this.Oi(); }; PanelData.prototype.DH=function(){ return Ol[this.XG]; }; PanelData.prototype.qw=function(){ return mZ[this.XG]; }; PanelData.prototype.PA=function(){ var RK=this.DH(); var SO=this.qw(); var baseScheme=NX(colorsAndSettings.baseScheme); var Gh=baseScheme.uer.lh(colorsAndSettings.hueOffset,colorsAndSettings.saturationOffset); var SU=baseScheme.psS.lh(colorsAndSettings.hueOffset,colorsAndSettings.saturationOffset); var ro=lP(RK,Fm); var cN=lP(SO,ah); var wF=lP(CE,ah); this.fh.style.backgroundColor='#'+ro; this.oo.style.backgroundImage='url(/web/gradient/'+RK+'/'+Fm+'/'+ab+')'; this.oo.style.backgroundRepeat='repeat-x'; this.oo.style.backgroundPosition='top'; this.oo.style.overflow='hidden'; this.pK.style.backgroundImage='url(/web/gradient/'+SO+'/'+ah+'/body-gradient.gif)'; this.pK.style.backgroundRepeat='repeat-x'; this.pK.style.backgroundPosition='top'; KX(this.RR,'/web/dynamicPng/'+ro+'/'+OF+'-nw.png'); KX(this.Ok,'/web/dynamicPng/'+ro+'/'+OF+'-ne.png'); KX(this.FV,'/web/dynamicPng/'+SO+'/'+OF+'-sw.png'); KX(this.cp,'/web/dynamicPng/'+SO+'/'+OF+'-se.png'); this.ZTg=false; }; PanelData.prototype.iA=function(){ if(this.tD==XE){ if(this.Til) this.PA(); }else{ this.ZTg=true; }}; PanelData.prototype.TA=function(){ var JA=this; var Dn=Rd(this.tD); this.Dn=Dn; var LD=document.createElement('div'); this.LD=LD; LD.id=this.id; LD.className=this.Oi(); LD.style.position='absolute'; LD.style.visibility='visible'; LD.style.overflow='visible'; LD.style.zIndex=this.GJ?OV:this.zIndex; LD.style.height=this.height+'px'; LD.style.width=this.width+'px'; LD.style.left=this.left+'px'; LD.style.top=this.top+'px'; LD.style.overflow='visible'; dk(LD,function(){JA.dm();}); HQ(LD,function(YC){ JA.qgf.style.display='none'; JA.tu.style.display=''; JA.MV(); }); var RR=document.createElement('div'); var Ok=document.createElement('div'); var FV=document.createElement('div'); var cp=document.createElement('div'); this.RR=RR; this.Ok=Ok; this.FV=FV; this.cp=cp; RR.style.position='absolute'; RR.style.left='0px'; RR.style.top='0px'; RR.style.width='5px'; RR.style.height='5px'; Ok.style.position='absolute'; Ok.style.left=this.width-5+'px'; Ok.style.top='0px'; Ok.style.width='5px'; Ok.style.height='5px'; FV.style.position='absolute'; FV.style.left='-5px'; FV.style.top=0+'px'; FV.style.width='5px'; FV.style.height='5px'; cp.style.position='absolute'; cp.style.left=this.width-10+'px'; cp.style.top=0+'px'; cp.style.width='5px'; cp.style.height='5px'; var WT=document.createElement('div'); this.WT=WT; WT.style.overflow='hidden'; WT.style.cursor='Move'; WT.onmouseover=function(eu){ JA.qgf.style.display=''; JA.tu.style.display='none'; JA.hi(eu); }; HQ(WT,function(){ if(JA.cs) JA.cs(); if(!JA.pqJ){ JA.qgf.style.display='none'; JA.tu.style.display=''; }}); var RK=this.DH(); var fh=document.createElement('div'); this.fh=fh; fh.className='scheme-header'; fh.style.fontSize='1px'; fh.style.marginLeft='5px'; fh.style.marginRight='5px'; fh.style.height='5px'; fh.appendChild(RR); fh.appendChild(Ok); WT.appendChild(fh); var od=document.createElement('div'); this.od=od; od.style.whiteSpace='nowrap'; od.style.cursor='Move'; od.style.position='absolute'; od.style.right='6px'; od.style.top='5px'; this.qgf=GP(); this.qgf.style.display='none'; this.qgf.style.position='absolute'; this.qgf.style.cursor='pointer'; this.qgf.style.left='9px'; this.qgf.style.top='6px'; var DY='/web/images/twister-'+(!this.eDF?'open.gif':'closed.gif'); this.qgf.src=DY; this.qgf.width='14'; this.qgf.height='14'; this.qgf.onmousedown=function(eu){ stopPropagation(eu); JA.sJ(); }; this.WT.appendChild(this.qgf); fo.sw(this.qgf,'Expand or collapse this widget'); if(this.IH()){ this.Lsa=document.createElement('div'); this.Lsa.className='panel-modify-icon'; this.Lsa.style.paddingTop='4px'; this.Lsa.style.paddingRight='4px'; this.Wtu=GP(); this.Wtu.src=CM; this.Wtu.width='7'; this.Wtu.height='7'; this.Wtu.onmousedown=function(eu){ stopPropagation(eu); if(JA.pH!='protopage-widget-config'){ var FU=confirm("This will remove and delete this widget. Are you sure?"); if(!FU) return false; }JA.wl(); SX.vF(); ZX('widget_delete',JA.pH+'',{'widgetId':JA.pH,'widgetTitle':JA.title}); }; this.Lsa.appendChild(this.Wtu); this.od.appendChild(this.Lsa); fo.sw(this.Lsa,'Delete this widget from your page'); this.OqC=document.createElement('div'); this.OqC.className='panel-modify-link'; this.fgA=document.createElement('a'); this.fgA.onmousedown=function(eu){ stopPropagation(eu); Sx(JA); SX.vF(); return false; }; this.fgA.onclick=function(){ return false; }; this.fgA.style.fontSize='9px'; this.fgA.className='scheme-header-text'; this.fgA.appendChild(document.createTextNode('edit')); this.OqC.appendChild(this.fgA); fo.sw(this.OqC,'Edit or configure this widget'); this.OqC.onmouseover=function(eu){ if(JA.MKj) return; JA.jmu.style.display='block'; JA.HU(); JA.cs=function(){ JA.jmu.style.display='none'; if(!JA.MKj) JA.HU(); }; }; od.appendChild(this.OqC); }this.jmu=document.createElement('div'); if(ba||lj) this.jmu.className='panel-modify-icon'; this.jmu.style.display='none'; this.jmu.style.paddingTop='3px'; this.jmu.style.marginRight=((CO||xx)?36:6)+'px'; if(ba||lj) this.jmu.style.marginRight='0px'; if(this.pH==gKa||this.pH==qSk||this.pH>0){ this.XuG=document.createElement('div'); this.XuG.className='panel-modify-icon'; this.XuG.style.paddingTop='3px'; this.XuG.style.marginRight='6px'; this.XuG.style.width='9px'; this.XuG.style.height='8px'; KX(this.XuG,'/web/dynamicPng/'+KN+'/reload.png'); this.XuG.onmousedown=function(eu){ stopPropagation(eu); SX.vF(); JA.bH.prR.Ct(); if(this.pH==gKa){ ZX('feed_manual_refresh',this.pH+'',{'widgetId':this.pH,'widgetTitle':this.title}); }else if(this.pH==qSk){ ZX('iframe_manual_refresh',this.pH+'',{'widgetId':this.pH,'widgetTitle':this.title}); }else{ ZX('widget_manual_refresh',this.pH+'',{'widgetId':this.pH,'widgetTitle':this.title}); }return false; }; this.jmu.appendChild(this.XuG); var vB=this.pH==gKa?'Refresh this news feed':'Reload this widget'; fo.sw(this.XuG,vB); }od.appendChild(this.jmu); if(this.pH!=gKa&&this.pH<0){ this.ZBa=document.createElement('div'); this.ZBa.className='panel-modify-icon'; this.ZBa.style.paddingRight='5px'; this.Vcf=GP(); this.Vcf.src=vj; this.Vcf.width='9'; this.Vcf.height='9'; this.Vcf.onmousedown=function(eu){ stopPropagation(eu); var FU=confirm("This will make a duplicate copy of this widget. Are you sure?"); if(!FU) return false; var CX=bn(JA.hA,JA.title,JA.left+8,JA.top+8,JA.width,JA.height,JA.XG,false,JA.pH,JA.cW,JA.hA=='widget'?Du(JA.bH.prR.attributes):null,null,JA.content,JA.XS); SX.vF(); return false; }; this.ZBa.appendChild(this.Vcf); this.jmu.appendChild(this.ZBa); fo.sw(this.Vcf,'Create a duplicate copy of this widget'); }WT.appendChild(od); WT.onmousedown=function(eu){ if(JA.MKj){ return true; }hW(eu,WT,JA,function(dj,CQ,QH,uK){ SX.lS(true); JA.Tvc=true; cP=true; ds=JA; JA.rI(); JA.wdi=JA.left; JA.tPC=JA.top; JA.Tfi=JA.zIndex; if(JA.GJ){ JA.GJ=false; JA.tD=XE; if(JA.bH){ JA.bH.prR.NS(); }pk.xI(false,true); commandProcessor.FM(JA); if(JA.bH){ JA.bH.prR.Do(); }ZX('widget_add',JA.pH+'',{'widgetId':JA.pH,'widgetTitle':JA.title}); }; },function(dj,CQ,jw,jP,QH,uK,VNf,uGQ){ var nN=uS(); var WQ=RV(); var Vq=(WQ-nN)<300; var nO=uGQ<(nN+40); var OZ=uGQ<(nN+60); var Zn=uGQ>(WQ-40); var ud=uGQ>(WQ-60); if(Vq){ nO=false; OZ=false; Zn=false; ud=false; }if(nN==0){ nO=false; OZ=false; }if(AP){ AP=OZ; }else{ if(nO){ AP=true; jP-=500; window.scrollBy(0,-500); }}if(vk){ vk=ud; }else{ if(Zn){ vk=true; jP+=500; window.scrollBy(0,500); }}var Pi=Fu((JA.wdi+jw)); var Hi=ZL((JA.tPC+jP)); Pi=Math.max(Gc,Pi); Hi=Math.max(UZ,Hi); if(JA.left!=Pi||JA.top!=Hi){ JA.left=Pi; JA.top=Hi; Tv(JA,Pi,Hi); }var gQ=(JA.wdi!=JA.left||JA.tPC!=JA.top); if(gQ){ TC(); }},function(dj,CQ,kf,mp,QH,uK){ wr(); SX.lS(false); JA.Tvc=false; cP=false; ds=null; JA.QJ(); jW(JA); if(JA.wdi!=JA.left||JA.tPC!=JA.top||JA.Tfi!=JA.zIndex){ for(var gv in panelDatas){ var TK=panelDatas[gv]; if(!TK.hn){ if(TK.tD==XE){ TK.cH=null; TK.colSpan=null; TK.AFv=true; }}}JA.Wj(); DZ(XE); AD(); }iH(); ZX('widget_drag',JA.pH+'',{'widgetId':JA.pH,'widgetTitle':JA.title}); }); }; var oo=document.createElement('div'); this.oo=oo; oo.className='scheme-header'; oo.style.height='1.6em'; oo.style.paddingTop='0.1em'; oo.style.paddingLeft='10px'; WT.appendChild(oo); var xR=document.createElement('div'); this.xR=xR; xR.style.position='relative'; xR.style.marginLeft=17+'px'; xR.style.overflow='hidden'; WT.appendChild(xR); var IF='/web/images/icons/'; var MR='widget.gif'; if(this.hA=='note'||this.hA=='html') MR='document.gif'; if(this.hA=='links')MR='bookmarks.gif'; if(this.pH==gKa) MR='rss.gif'; if(this.pH==xYB) MR='document.gif'; if(this.pH==KiX) MR='weather.gif'; if(this.pH==oha) MR='mail.gif'; if(this.pH==MdN) MR='photo.gif'; if(this.pH==qSk) MR='document.gif'; if(this.pH==fRZ) MR='protopuppy.gif'; if(this.pH==BTm) MR='facebook.gif'; if(this.pH==PWY) MR='todo.gif'; if(this.pH==WPT) MR='comments.gif'; if(this.pH==ImJ) MR='digital-clock.gif'; if(this.pH==dxI) MR='analog-clock.gif'; if(this.pH==PLg) MR='calendar.gif'; if(this.pH>0) MR='widget.gif'; else if(this.hn) MR='edit.gif'; var Ti=IF+MR; var tu=document.createElement('div'); this.tu=tu; tu.style.position='absolute'; tu.style.left=6+'px'; tu.style.top=5+'px'; tu.style.width=16+'px'; tu.style.height=16+'px'; var WY=GP(); this.WY=WY; WY.width=16; WY.height=16; WY.src=Ti; tu.appendChild(WY); WT.appendChild(tu); this.fVc=new Ji(xR,function(value,lho,width){ JA.MKj=!lho; if(JA.dRn==null) JA.dRn=JA.width; JA.Mf(width); if(JA.title!=value){ if(lho){ var QT=JA.title; JA.title=value; JA.uY(); JA.Wj(); DZ(XE); AD(); ZX('widget_title_change',JA.pH+'',{'widgetId':JA.pH,'widgetTitle':JA.title,'oldWidgetTitle':QT}); }}if(lho){ JA.dRn=null; }},JA.title,dK,'bold','scheme-header-text',function(){ var BY=false; if(JA.Tvc){ if(JA.wdi!=JA.left||JA.tPC!=JA.top) BY=true; }if(!JA.IH()) BY=true; return BY; }); oo.appendChild(xR); LD.appendChild(WT); Dn.appendChild(LD); var hN=this.Lo(); var VC=this.width; var fB=this.height-hN; this.QcS=fB; var pK=document.createElement('div'); this.pK=pK; pK.className='scheme-body scheme-body-text'; pK.style.position='relative'; pK.style.overflow='hidden'; pK.style.width=VC+'px'; pK.style.height=fB+'px'; pK.style.left='0px'; pK.style.top='0px'; this.PA(); try{ if(pK.addEventListener&&!CO){ pK.addEventListener('DOMMouseScroll',function(tqP){ try{te.blur();}catch(eu){}if(JA.iD=='MAXIMIZED'||JA.BMh||!JA.xE) return true; var DC=tqP.detail/3; if(DC>0&&JA.HhE==1) return true; if(DC<0&&JA.HhE==0) return true; JA.TQ(DC); tqP.preventDefault(); tqP.stopPropagation(); if(JA.pH!=gKa) JA.Wj(true); return false; },false); }else{ pK.onmousewheel=function(){ try{te.blur();}catch(eu){}if(JA.iD=='MAXIMIZED'||JA.BMh||!JA.xE) return true; var DC=event.wheelDelta/-120; if(CO) DC=-1*DC; if(DC>0&&JA.HhE==1) return true; if(DC<0&&JA.HhE==0) return true; JA.TQ(DC); window.event.cancelBubble=true; window.event.returnValue=false; if(JA.pH!=gKa) JA.Wj(true); return false; }; }}catch(eu){ }var Xh=document.createElement('div'); this.Xh=Xh; Xh.style.position='absolute'; Xh.style.marginLeft='10px'; Xh.style.marginRight='18px'; Xh.style.marginTop='5px'; Xh.style.marginBottom='0px'; Xh.style.paddingLeft='0px'; Xh.style.paddingRight='0px'; Xh.style.paddingTop='0px'; Xh.style.paddingBottom='0px'; Xh.style.left='0px'; Xh.style.top='0px'; if(this.hA=='links'){ Xh.style.fontSize='1px'; var Ws=document.createElement('div'); this.fM=Ws; Ws.style.visibility='hidden'; Ws.style.position='absolute'; Ws.style.top='-1000px'; Ws.style.left='-1000px'; var Ln=document.createElement('div'); this.Kh=Ln; Ln.style.paddingBottom='0px'
Xh.appendChild(Ln); Xh.appendChild(Ws); }pK.appendChild(Xh); var hg=document.createElement('div'); this.hg=hg; hg.style.position='absolute'; hg.style.right='0px'; hg.style.top='0px'; hg.style.width='17px'; hg.style.height='0px'; var jd=document.createElement('div'); this.jd=jd; jd.style.position='absolute'; jd.style.backgroundRepeat='repeat'; jd.style.zIndex=100001; jd.onmousedown=function(eu){ hW(eu,WT,JA,function(dj,CQ,QH,uK){ SX.lS(true); JA.BAW=true; JA.rI(); JA.ZcW=parseInt(JA.jd.style.top); JA.iBO=JA.HhE; JA.okc=parseInt(JA.Xh.style.top); },function(dj,CQ,jw,jP,QH,uK){ var qZ=JA.ZcW+jP; var Zu=parseInt(JA.hg.style.height)-15; var Rq=JA.jd.offsetHeight; JA.HhE=JA.iBO+(jP/(Zu-Rq)); if(JA.HhE<0) JA.HhE=0; if(JA.HhE>1) JA.HhE=1; JA.US(true); },function(dj,CQ,kf,mp,QH,uK){ wr(); SX.lS(false); JA.BAW=false; JA.QJ(); jW(JA); JA.US(); if(JA.pH!=gKa){ JA.Wj(true); }DZ(XE); AD(); iH(); }); }; jd.style.left='4px'; jd.style.top='3px'; jd.style.width='9px'; jd.style.height='20px'; jd.style.backgroundImage='url(\'/web/dynamicImages/'+SH+'/vertical-scroll-bar.gif\')'; hg.appendChild(jd); pK.appendChild(hg); var Kx=document.createElement('div'); this.Kx=Kx; Kx.style.position='absolute'; Kx.style.right='2px'; Kx.style.bottom='2px'; Kx.style.zIndex=100001; var qb=GP(); this.qb=qb; if(!xx) qb.style.cursor='se-resize'; qb.src='/web/dynamicImages/'+SH+'/resizer.gif'; qb.width='16'; qb.height='16'; qb.onmousedown=function(eu){ hW(eu,WT,JA,function(dj,CQ,QH,uK){ SX.lS(true); JA.MpQ=true; cP=true; if(!JA.GJ) JA.rI(); TC(); JA.dRn=JA.width; JA.IGl=JA.height; },function(dj,CQ,jw,jP,QH,uK){ var KP=Fu(Math.max(Es,(JA.dRn+jw))); var dG=ZL(Math.max(Cd,(JA.IGl+jP))); if(JA.width!=KP||JA.height!=dG){ JA.width=KP; JA.height=dG; JA.hS(KP,dG); JA.US(); }SE(); if(JA.hA=='widget'){ if(JA.bH){ JA.bH.prR.BL(true,JA.innerWidth,JA.QcS); }}},function(dj,CQ,kf,mp,QH,uK){ SX.lS(false); JA.dRn=null; JA.IGl=null; wr(); JA.MpQ=false; cP=false; if(!JA.GJ) JA.QJ(); jW(JA); JA.US(); JA.uN(); if(JA.wdi!=JA.left||JA.tPC!=JA.top||JA.Tfi!=JA.zIndex){ for(var gv in panelDatas){ var TK=panelDatas[gv]; if(!TK.hn){ if(TK.tD==XE){ TK.cH=null; TK.colSpan=null; TK.AFv=true; }}}}JA.Wj(); DZ(XE); AD(); if(JA.hA=='widget'){ if(JA.bH){ JA.bH.prR.BL(false,JA.innerWidth,JA.QcS); }}iH(); ZX('widget_resize',JA.pH+'',{'widgetId':JA.pH,'widgetTitle':JA.title}); }); }; Kx.appendChild(qb); var vS=document.createElement('div'); vS.id=this.id+'-bspcr'; vS.style.position='absolute'; vS.style.top='74px'; vS.style.left='0px'; var bN=GP(); bN.src='/web/images/spacer.gif'; bN.width=1; bN.height=1; vS.appendChild(bN); Kx.appendChild(vS); LD.appendChild(Kx); LD.appendChild(pK); var BS=document.createElement('div'); BS.className='scheme-body'; BS.style.position='relative'; BS.style.marginLeft='5px'; BS.style.marginRight='5px'; BS.style.height='5px'; BS.style.fontSize='0.1px'; BS.appendChild(FV); BS.appendChild(cp); LD.appendChild(BS); this.HU(); if(this.hA=='html'||this.hA=='note') this.OW(); this.jL=LD; if(this.eDF){ var Ae=this.Lo(); this.LD.style.height=Ae+'px'; }this.Til=true; }; PanelData.prototype.wu=function(uq,TT){ var JA=this; XU(this.pH,this.cW,function(ouU){ var bH=new ouU(); JA.bH=bH; JA.bH.prR=new ql(JA,ouU); if(uq) JA.bH.uq=uq; JA.bH.JX(TT); JA.LWu=true; }); }; PanelData.prototype.Hj=function(text){ this.title=text; if(this.Til) this.fVc.KH(text); }; PanelData.BIP=null; PanelData.prototype.TP=function(){ if(!PanelData.BIP) PanelData.BIP=parseInt(this.WT.offsetHeight); return PanelData.BIP; }; PanelData.prototype.Lo=function(){ var Pj=5; var Eq=this.TP()+Pj; return Eq; }; PanelData.prototype.QC=function(ScZ,aTE){ if(!aTE&&aTE!=0) aTE=10; var XB=this.Lo()+this.Xh.offsetHeight+aTE; if(ScZ) XB=Math.max(this.height,XB); this.height=XB; this.hS(this.width,XB); }; PanelData.prototype.hS=function(KP,dG,fc){ this.HU(fc); if(this.WUm){ if(KP==this.WUm&&dG==this.Yht) return; }this.WUm=KP; this.Yht=dG; this.Ok.style.left=KP-5+'px'; this.cp.style.left=KP-10+'px'; var Ae=this.Lo(); var qm=KP; var pB=(dG-Ae); this.pK.style.width=qm+'px'; this.QcS=pB; this.Xh.style.width=KP+'px'; if(dG!=null) this.pK.style.height=pB+"px"; else this.pK.style.height=null; this.LD.style.width=KP+"px"; if(dG!=null&&!this.eDF){ this.LD.style.height=dG+"px"; }else{ this.LD.style.height=null; }this.KM(); if(dG!=null){ if(this.iD!='MAXIMIZED'){ this.US(); }}if(this.hA=='links') this.uN(); }; PanelData.prototype.US=function(Ati){ try{ if(this.BMh){ this.innerWidth=this.width-20; return; }var Ae=this.Lo(); var jK=this.height-Ae; if(!Ati){ this.hg.style.height=jK+'px'; }var Cl=4; var Zu=parseInt(this.hg.style.height)-15; var bS=this.Xh.offsetHeight; var db=this.pK.offsetHeight; var SB=db/bS; if(bS==0) SB=0; var pp=parseInt(this.Xh.style.top); var xP=Math.round(SB*Zu); var TO=Math.round(this.HhE*(Zu-xP))+4; var xE=(SB<1&&SB!=0); if(xP>Zu) xP=Zu; if(xP<0) xP=0; try{ this.jd.style.top=TO+'px'; }catch(eu){ this.jd.style.top='0px'; }if(!Ati){ this.jd.style.height=xP+"px"; this.hg.style.visibility=(xE?'inherit':'hidden'); this.Xh.style.marginRight=xE?'18px':'10px'; this.Xh.style.width=(this.width-(xE?32:20))+'px'
this.innerWidth=this.width-(xE?32:20); }this.Xh.style.top=Math.round(this.HhE*-1*(bS-db))+'px'; if(SB>=1){ this.Xh.style.top='0px'; }; this.xE=xE; }catch(eu){ if(sa) alert("resizeScrollbar: "+eu); }}; PanelData.prototype.ZG=function(){ this.QW(false); this.LD.style.height=this.height+"px"; this.pK.style.display='block'; this.Kx.style.visibility='visible'; this.US(); this.KM(); }; PanelData.prototype.QW=function(state){ this.BMh=state; this.hg.style.visibility=state?'hidden':'inherit'; }; PanelData.prototype.oQ=function(){ this.QW(true); var Ae=this.Lo(); this.LD.style.height=Ae+'px'; this.pK.style.display='none'; this.Kx.style.visibility='hidden'; this.KM(); }; PanelData.prototype.hi=function(){ if(this.iD=='MAXIMIZED') return; if(!this.eDF) return; if(this.Tvc) return; if(this.pqJ) return; this.pqJ=true; this.rI(); this.ZG(); this.uN(); this.US(); }; PanelData.prototype.MV=function(){ if(!this.pqJ) return; if(this.BAW) return; if(this.MpQ) return; if(this.iD=='MAXIMIZED') return; this.QJ(); this.pqJ=false; this.oQ(); this.pqJ=false; }; PanelData.prototype.rI=function(){ this.LD.style.zIndex=en; if(true||!isIE) this.bj(); }; PanelData.prototype.QJ=function(){ this.LD.style.zIndex=this.zIndex; this.bj(); }; PanelData.prototype.OW=function(){ this.Xh.innerHTML=PU(this.content,this.hA); }; PanelData.prototype.uN=function(){ if(this.hA!='links') return; var CL=this.pK.offsetWidth; var jJ=this.pK.offsetHeight; var fM=this.fM; fM.style.paddingTop='5px'; fM.style.paddingRight='5px'; fM.innerHTML=this.Mj(1,1); this.rLh=fM.offsetHeight; this.Pk=fM.offsetWidth; var nr=Math.floor(CL/this.Pk); var Kh=this.Kh; Kh.style.paddingTop='5px'; cZ=this.Mj(nr,this.Pk); Kh.innerHTML=cZ; this.Xh.style.marginLeft='0px'; this.Xh.style.marginRight='0px'; this.Xh.style.marginTop='0px'; this.Xh.style.marginBottom='0px'; this.Xh.style.paddingLeft='10px'; this.Xh.style.paddingRight='18px'; this.Xh.style.paddingTop='0px'; this.Xh.style.paddingBottom='0px'; }; function LinkData(label,url){ this.label=label;this.url=url; if(url.indexOf('://')==-1||url.indexOf('://')>10) this.url='http://'+url; }PanelData.prototype.TQ=function(qZx){ var sN=Math.ceil(54*qZx); this.HhE=this.HhE+(sN/(this.Xh.offsetHeight-parseInt(this.pK.offsetHeight))); if(this.HhE<0) this.HhE=0; if(this.HhE>1) this.HhE=1; this.US(true); }; function ec(label,url){ ZX('bookmark_click',label,{'label':label,'url':url}); }PanelData.prototype.Mj=function(nr,Kkg){ var cZ=''; cZ+='<div class="links-area" style="padding:0px; margin:0px">'; cZ+='<table border="0" cellpadding="0" cellspacing="0" style="padding:0px; margin:0px"><tbody><tr>'; var sL=Math.ceil(this.XS.length/nr); var Em=this.XS.length%nr; var Tw=0; for(var gv=0;gv<this.XS.length;gv++){ var av=this.XS[gv]; if(Tw==0){ cZ+='<td valign="top">'; }var Og=!colorsAndSettings.disableBookmarkIcons; cZ+='<div class="link-item" style="padding-top:1px; '+(Og?('padding-bottom:3px; padding-left:21px; background-repeat:no-repeat; background-image:url(http://images.'+Zv.VQU+'/favIcon/bookmarks/'+av.url+');'):'')+'"><a style="border-bottom:1px solid #'+dW+'; margin-bottom:2px" onmousedown="return '+gI(ec)+'(unescape(\''+escape(av.label)+'\'), unescape(\''+escape(av.url)+'\'));" onclick="return '+gI(ia)+'(\''+av.url+'\', event);" class="links-panel-link scheme-body-text" href="'+av.url+'">'+NR(av.label)+'</a></div>'; Tw++; if((Tw==sL)||gv==(this.XS.length-1)){ Tw=0; cZ+='<div><img src="/web/images/spacer.gif" border="0" width="'+Kkg+'" height="1"></div>'; cZ+='</td>'; if(Em>0){ Em--; if(Em==0) sL--; }}}cZ+='</tr></tbody></table>'; cZ+='</div>'; return cZ; }; PanelData.prototype.sJ=function(){ if(this.eDF){ this.pqJ=false; this.ZG(); this.eDF=false; }else{ this.oQ(); this.eDF=true; }var DY='/web/images/twister-'+(!this.eDF?'open.gif':'closed.gif'); this.qgf.src=DY; this.Wj(true); DZ(XE); }; PanelData.prototype.jk=function(lkV){ var aF=new Object(); aF['id']=this.nkq?this.nkq:this.id; aF['left']=this.left; aF['top']=this.top; aF['width']=this.width; aF['height']=this.height; aF['col']=this.cH; aF['colSpan']=this.colSpan; aF['collapsed']=!!this.eDF; aF['zIndex']=this.zIndex; aF['verticalScrollProportion']=this.HhE==null?0:this.HhE; aF['mode']=this.iD; aF['virtualPage']=this.RH(); aF['schemeOffset']=this.XG; aF['disableLeftTopWidthSave']=!!lkV; return aF; }; PanelData.Ug=function(TL,lkV){ if(TL.length<1) return; var Ee=new Array(); for(var gv in TL){ var TK=TL[gv]; if(TK.hn||TK.GJ) continue; if(!TK.IH()) continue; Ee.push(TK.jk(lkV)); }if(Ee.length>0){ var Pl=new Array(); Pl.push(new VD('panelGeometryArray',bM.stringify(Ee))); var rm=new Re(TK.Oe(),TK.sI(),TK.qK(),protopagePath,'save-multiple-panel-geometry',Pl); rm.NY=this; commandProcessor.xA(rm); }}; PanelData.prototype.Wj=function(lkV){ PanelData.Ug([this],lkV); }; PanelData.prototype.RH=function(){ if((this.accountId==accountId)&&(this.protopageId==protopageId)) return this.tD; else return TH.iR(this.tD); }; PanelData.prototype.dm=function(){ if(!this.pqJ){ if(jW(this)){ this.Wj(true); }}}; PanelData.prototype.ux=function(){ TK.Sx(); }; PanelData.prototype.Mf=function(fc){ if(this.GJ){ this.HU(); return; }; var un=28+fc+this.Ms(); un=Math.max(un,this.dRn); this.width=un; this.hS(this.width,this.height,fc); }; PanelData.prototype.Wv=function(){ return this.width-(this.Ms()+28+(this.jmu.style.display=='none'?0:15)); }; PanelData.prototype.Ms=function(){ return cu('edit','scheme-header-text',10,false,false)+32; }; PanelData.prototype.HU=function(fc){ if(fc){ this.xR.style.width=fc+'px'; }else{ var bf=this.Wv(); var wL=cu(this.title,'scheme-header-text',dK,true,false); this.xR.style.width=Math.max(30,Math.min(bf,wL))+'px'; }}; PanelData.prototype.IH=function(){ var tb=jc(this.tD).AL(); return tb.IH(); }; PanelData.prototype.qK=function(){ return jc(this.tD).qK(); }; PanelData.prototype.Oe=function(){ return this.accountId; }; PanelData.prototype.sI=function(){ return this.protopageId; }; PanelData.prototype.uY=function(){ var Pl=new Array(); Pl.push(new VD('id',this.id)); Pl.push(new VD('title',this.title)); var rm=new Re(this.Oe(),this.sI(),this.qK(),protopagePath,'save-panel-title',Pl); rm.NY=this; rm.GV=IC; commandProcessor.xA(rm); }; PanelData.prototype.wl=function(){ var me=false; if(this.bH) me=this.bH.prR.WI(); if(me) return; this.Qa(); removedPanelDatas.push(this); for(var gv in panelDatas){ if(panelDatas[gv]==this){ panelDatas.splice(gv,1); }}if(!this.hn){ var Pl=new Array(); Pl.push(new VD('id',this.id)); var rm=new Re(this.Oe(),this.sI(),this.qK(),protopagePath,'remove-panel',Pl); rm.NY=this; rm.GV=IC; commandProcessor.xA(rm); }DZ(XE); AD(); }; var ik; var eB=new Date(); function Sm(){ var aD=new Date().getTime()-eB.getTime(); return aD; }; function protopageInit(){ ZX('session_begin'); window.onunload=function(){ ZX('session_end',null,null,true); }; Hv(); ik=new vf(); wv=new Fb(); useRoundedCorners=!!colorsAndSettings['useRoundedCorners']; enableCompactTopArea=!!colorsAndSettings['enableCompactTopArea']&&loggedIn; OF=useRoundedCorners?"corner":"corner-sq"; for(var gv in pageParams) if(gv.toLowerCase()=='safemode') TT=true; var GY=!!!colorsAndSettings['useLargerFonts']; HY=GY?11:12; sm=GY?3+1:3+1+2; dK=12; Wk=18; Xw=GY?11:12; FJ=GY?11:12; mf=16; vX=12; fC(); wallpaperChoices=Zv.wallpaperChoices; YK(fl,'/'); if(!loggedInAsGuest){ }var FN=ih('relayedPageParams'); if(FN!=null){ YK('relayedPageParams','/'); var Gv=eval('('+unescape(FN)+')'); for(var gv in Gv){ pageParams[gv]=Gv[gv]; }}if(UC()){ if(parseInt(hoursUntilExpiry)==0){ WU(true); return; }}uH().className='scheme-offset-00'; if(colorsAndSettings.backgroundMode=='PLAIN_COLOR'&&colorsAndSettings.backgroundColor==null){ var Wq=NX(colorsAndSettings.baseScheme); colorsAndSettings.backgroundColor=Wq.EOA.lh(colorsAndSettings.hueOffset+colorsAndSettings.backgroundHueOffset,colorsAndSettings.backgroundSaturationOffset,colorsAndSettings.backgroundLightnessOffset); }if(colorsAndSettings.headerForegroundColor==null){ var Wq=NX(colorsAndSettings.baseScheme); colorsAndSettings.headerForegroundColor=Wq.psS.lh(0,0); colorsAndSettings.headerBackgroundColor=Wq.UM.lh(colorsAndSettings.hueOffset,colorsAndSettings.saturationOffset); colorsAndSettings.bodyForegroundColor=Wq.uer.lh(0,0); colorsAndSettings.bodyBackgroundColor=Wq.fiS.lh(colorsAndSettings.hueOffset,colorsAndSettings.saturationOffset); }PP='ff0000'; OJ='00ff00'; LH=new Fd(); Wm=new pn(); pk=new Jq(); tm=new iS(); lp=new Go(); bm(); pT=document.createElement('div'); pT.style.position='absolute'; if(isIE) pT.style.zIndex=2; uH().appendChild(pT); nt=document.createElement('div'); nt.style.position='absolute'; if(isIE) nt.style.zIndex=100; uH().appendChild(nt); uH().removeChild(document.getElementById('troubleshootingLink')); if(colorsAndSettings.widgetPositioning==null) colorsAndSettings.widgetPositioning='FREE'; for(var gv in panelDatas){ var TK=panelDatas[gv]; if(TK.top<0) TK.top=0; }maxPanelZIndex=1; for(var gv=0;gv<panelDatas.length;gv++){ maxPanelZIndex=Math.max(maxPanelZIndex,panelDatas[gv].zIndex); if(panelDatas[gv].zIndex==0) panelDatas[gv].zIndex=1; }var dg=kr(window.location.hash); if(dg.tD){ XE=dg.tD['id']; Ax=dg.tD; IZ=dg.tb; }ke=window.location.hash; var wH=mr(); if(wH!=null){ var message='Your web browser software is out of date or unsupported. This site may not work correctly for you.\n\n'+wH+'\n\nTo try this site with Firefox, go to www.getfirefox.com where you can download a new web browser.'; alert(message); }OQ(); rQ(true,true,true,false); VL(); Eo(); cS(); if(protopagePath!='protopage/autocreate'){ CH(); }if(protopagePath=='protopage/addlink') ZY(); if((!loggedIn)&&(panelDatas.length==0)&&protopagePath!='protopage/addlink'&&protopagePath!='protopage/widgettest'&&protopagePath!='protopage/autocreate'){ Ac(true); }if(protopagePath!='protopage/addlink'&&protopagePath!='protopage/widgettest'){ Vx(); rk(); UE(); wU(); }if(hoursUntilExpiry!=null) NQ(); setTimeout(co(Ku),1); }function Ku(){ EE(panelDatas); sX(); }function sX(){ DZ(XE); for(var gv in panelDatas){ var TK=panelDatas[gv]; if(TK.tD==XE){ TK.uN(); }}try{ }catch(eu){}Nk(); }function Nk(){ for(var gv in panelDatas){ var TK=panelDatas[gv]; if(TK.tD!=XE) continue; if(TK.eDF){ }else{ TK.US(); }}Yn(); }function Yn(){ mV(); iH(); if(isIE){ window.attachEvent('onresize',nk); window.attachEvent('onscroll',nk); }else{ window.onresize=nk; window.onscroll=nk; }if(protopagePath=='protopage/loginrequired'){ Us(3); }if(protopagePath=='protopage/welcome'||protopagePath=='v2'||protopagePath=='protopage/autocreate'){ Us(4); }if(protopagePath!='protopage/addlink'){ Vx(); rk(); }VQ=new hV(); if(protopagePath=='protopage/widgettest'){ var RP=new Object(); RP['widgetId']=pageParams['widgetId']; RP['widgetSourceId']=pageParams['widgetSourceId']; lM('/_api/widgetKeyGen',RP,function(aD){ var Ei=aD['readKey']; var fN=aD['writeKey']; var hM=aD['thirdPartyUserIdentifier']; var eo=aD['widgetInfo']; eo['widgetSourceId']=pageParams['widgetSourceId']; var left=Math.floor((ge()-eo['defaultWidth'])/2); var mC=new Object(); var YX=bn('widget',eo['widgetTitle'],left,100,eo['defaultWidth'],38+eo['defaultHeight'],null,'00',true,eo['widgetId'],'',mC,null,null,null,true,Ei,fN,hM,eo); }); }Ye(); }function Ye(){ setTimeout('setInterval("'+co(nk)+'", '+Pd+');',3000); for(var gv in panelDatas){ var TK=panelDatas[gv]; if(TK.tD!=XE) continue; if(TK.hA=='widget'){ setTimeout(function(TK){ return function(){ TK.wu(null,TT); }}(TK),5); }}try{ if(uH().addEventListener){ uH().addEventListener('DOMMouseScroll',function(tqP){ try{te.blur();}catch(eu){}return true; },false); }else{ uH().onmousewheel=function(){ try{te.blur();}catch(eu){}return true; }; }}catch(eu){ }RI(); }function RI(){ var kO=['/web/images/tab-drop-indicator.png']; for(var gv in kO){ oa(kO[gv]); }if(protopagePath=='protopage/autocreate'){ if(La().length>0){ eA(); }else{ var width=600; var height=100; var left=parseInt((ge()-width)/2); var top=parseInt((RV()-height)/2)-100; var Nw=document.createElement('div'); Nw.style.padding='35px'; Nw.className='scheme-body-text'; Nw.style.textAlign='center'; Nw.style.fontSize='22px'; Nw.appendChild(document.createTextNode('Creating your new '+Zv.gfU+' - please wait...')); this.GO=new QF(left,top,false,Ie,'00',Nw,false,false,null,uH(),width,height,true); setTimeout(function(){ WU(); },1500); }}fv=true; var IX=function(){ if(fv){ if(ke!=window.location.hash){ ke=window.location.hash; var dg=kr(window.location.hash); if(!dg.GjW){ var Cb=null; for(var gv in Uq.leO){ var qG=Uq.leO[gv]; if(dg.tb!=qG.tb) continue; for(var fJ in qG.IZu){ var Na=qG.IZu[fJ]; if(Na.tD==dg.tD) Cb=Na; }var JR=qG.JR; JR.vnT.Qk(); }if(Cb!=null) Uq.Rg(Cb); }}}setTimeout(function(){ IX(); },1000); }; if(Uq) IX(); if(displayExpandedCarousel) Uq.tC(true); var autoAddFeedUrl=pageParams['importAutoAddFeedUrl']; if(!autoAddFeedUrl) autoAddFeedUrl=pageParams['autoAddFeedUrl']; if(UC()&&autoAddFeedUrl){ var WG=DE(autoAddFeedUrl); if(!NH(WG.toLowerCase(),'http://www.protopage.com')&&!NH(WG.toLowerCase(),'http://protopage.com')&&!NH(WG.toLowerCase(),'http://blog.protopage.com')&&!NH(WG.toLowerCase(),'http://widgets.protopage.com')){ var HD=new Db(); HD.locatorUrl=WG; HD.includeBylines=false; HD.includeFullEntryBodies=false; HD.maxEntries=1; HD.lastReadTimestamp=0; var feedContentRequests=[HD]; uE(feedContentRequests,function(feeds,error){ var pq=feeds[0]&&!feeds[0]['state']&&!error; if(pq){ for(var gv in panelDatas){ var TK=panelDatas[gv]; if(TK.tD!=XE) continue; if(TK.hA=='widget'&&TK.pH==gKa&&TK.title.indexOf('CNN')!=-1){ TK.bH.prR.attributes['feeds']=[[WG]]; TK.bH.ZF(null); }}}}); }}if(protopagePath!='protopage/addlink'){ if(!pageParams['importType']){ if(pageParams['importUrl']) pageParams['importType']='link'; }}if(pageParams['importType']&&protopagePath!='protopage/addlink'){ if(pageParams['importType']=='link'){ setTimeout(function(){ importNewLink(pageParams['importLabel'],pageParams['importUrl']); },1); }else if(pageParams['importType']=='webpage'){ if(pageParams['importUrl'].indexOf('http:')==-1) pageParams['importUrl']='http://'+pageParams['importUrl']; setTimeout(function(){ pk.ru(); pk.JD(pk.SZ(qSk,pageParams['importTitle'],{'url':pageParams['importUrl'],'safetyTimeoutCompleted':true,'disableScrollbars':false,'verticalOffset':'0','horizontalOffset':'0'}),330,300)(); },1); }else if(pageParams['importType']=='feed'){ setTimeout(function(){ pk.ru(); pk.Wn(pageParams['importUrl']); },1); }else if(pageParams['importType']=='widget'){ setTimeout(function(){ pk.ru(); var Ak=pk.IL(pageParams['importWidgetId']); var RP=new Object(); RP['widgetId']=pageParams['importWidgetId']; lM('/_api/widgetKeyGen',RP,function(aD){ var eo=aD['widgetInfo']; pk.JD(Ak,parseInt(eo['defaultWidth']),38+parseInt(eo['defaultHeight'],eo),eo)(); }); },100) }}if(Im&&Im.JW) Im.JW(); RL(); if(UC()) ik.rT(); else{ if(loggedIn){ if(!colorsAndSettings['postRegistrationHelpDismissed']){ ik.rT(); }}}wv.IE(); }function EE(panelDatas){ for(var gv in panelDatas){ var TK=panelDatas[gv]; if(TK.tD==XE){ TK.TA(); if(TK.eDF){ TK.oQ(); }}}}function Aa(){ return colorsAndSettings.panelDropShadowPreference!='NEVER'; }function Mb(panelDatas){ for(var gv in panelDatas){ var TK=panelDatas[gv]; if(TK.tD==XE){ Dr(TK); TK.iA(); }}}function Dr(TK){ if(!TK.Til){ TK.TA(); TK.uN(); TK.US(); if(TK.eDF){ TK.oQ(); }if(Aa()) TK.Vb(); if(TK.hA=='widget'){ TK.wu(); }}else{ TK.uX(); }TK.GB(); }function mV(){ for(var gv in panelDatas){ if(panelDatas[gv].tD!=XE) continue; panelDatas[gv].Vb(); }}function eL(RaQ){ if(!RaQ) return; if(!RaQ.jL) return; RaQ.fCI=RaQ.jL.style.left; RaQ.DLU=RaQ.jL.style.top; RaQ.jL.style.left='-10000px'; RaQ.jL.style.top='-10000px'; eC(RaQ); }function eC(RaQ){ if(RaQ.AkF){ RaQ.AkF.xI(false); }}function HF(RaQ,raF){ if(raF){ RaQ.jL.style.left=RaQ.fCI; RaQ.jL.style.top=RaQ.DLU; }if(RaQ.AkF){ RaQ.AkF.xI(true); }}function EV(){ qT=true; Us(0); }var dX=new Array(); function iH(uB,Zq){ for(var gv in dX){ if(dX[gv].ZP){ dX[gv].ZP(uB,Zq); }}if(Uq&&uB){ Uq.cT(); }if(tm) tm.FI(); if(lp) lp.FI(); for(var gv in QF.WoL){ var GO=QF.WoL[gv]; GO.JJ(); }if(bb&&uB){ Sw(); }if(Sl&&uB){ Sl.position(); if(Im&&Im.jL){ Im.position(); }}if(VQ ){ VQ.position(); }if(Im&&Zq){ }if(oF){ var Sg=(ge()-oF.jL.offsetWidth); oF.jL.style.left=Sg+'px'; oF.jL.style.top=0+'px'; oF.AkF.position(); oF.popup.AkF.position(); }if(oF&&uB){ HF(oF); }if(!fX()&&Zq){ if(Im&&Im.jL){ HF(Im); }}JH(); for(var gv in dX){ if(dX[gv].KL){ dX[gv].KL(uB,Zq); }}}function Ja(){ eL(oF); oF.jL.style.left=(ge()-oF.jL.offsetWidth)+'px'; oF.jL.style.top=0+'px'; oF.AkF.position(); HF(oF); }var nU=null; var dq=null; var dF=null; var kv=null; var Ib=0; var rj=false; var gf=false; var Ev=false; function nk(){ var Je=false; var Zq=false; var uB=false; var LV=isIE?document.body.scrollLeft:window.pageXOffset; var iP=isIE?document.body.scrollTop:window.pageYOffset; var QL=ge(); var sg=RV(); if(nU!=LV||QL!=dF){ Je=true; uB=true; }if(dq!=iP||sg!=kv){ Je=true; Zq=true; }; if(Je){ rj=true; if(uB) Ev=true; if(Zq) gf=true; }else{ if(rj){ var vY=new Date().getTime(); if((vY-Ib)>=Pd){ tg(Ev,gf); rj=false; Ev=false; gf=false; Ib=vY; }}}nU=LV; dq=iP; dF=QL; kv=sg; }function tg(uB,Zq){ iH(uB,Zq); for(var gv in panelDatas){ var TK=panelDatas[gv]; if(TK.tD!=XE) continue; if(TK.iD=='MAXIMIZED'){ rU(TK); }}}function au(TK){ if(TK.Too) return; TK.Too=true; TK.rI(); var mD=document.getElementById(id+'-ae'); mD.style.height=TK.TP()+'px'; mD.style.paddingLeft='60px'; var Iu=document.getElementById(id+'-aea'); Iu.style.fontSize='12px'; Iu.onmousedown=function(event){ stopPropagation(event); Sx(TK); TK.QJ(); return false; }; Iu.onmouseup=function(event){ QJ(gTg); return false; }; var LD=document.createElement('div'); var BQ=true; LD.className='scheme-header scheme-header-text'; LD.style.position='absolute'; LD.style.paddingLeft='6px'; LD.style.paddingRight='4px'; LD.style.paddingTop='2px'; LD.style.paddingBottom='6px'; var ON=((NY.iD=='MAXIMIZED')?27:36); if(BQ) ON-=12; LD.style.right=ON+'px'; LD.style.top=TP(TK)-2+'px'; LD.style.zIndex='200002'; LD.style.overflow='visible'; LD.appendChild(UR('delete',gTg,LD,function(){ var FU=confirm("This will remove and delete this panel. Are you sure?"); if(!FU) return false; wl(getPanelData(id)); DZ(XE); AD(); })); if(NY.hA=='html'||NY.hA=='links'||(NY.pH!=undefined&&NY.pH==gKa)){ LD.appendChild(UR('create duplicate',gTg,LD,function(){ var CX=bn(NY.hA,NY.title,NY.left,NY.top,NY.width,NY.height,NY.XG,false,NY.pH,NY.cW,NY.hA=='widget'?Du(NY.bH.prR.attributes):null,null,NY.content,NY.XS); })); }LD.zIndex=101; var iframe=null; if(NY.pH==qSk) iframe=document.createElement('iframe'); RW([LD,mD,Iu],function(YC){ try{ if(iframe) gTg.removeChild(iframe); gTg.removeChild(LD); }catch(eu){ return; }mD.style.paddingLeft='0px'; Iu.style.fontSize='9px'; QJ(gTg); NY.Too=false; }); gTg.appendChild(LD); if(iframe!=null){ iframe.style.zIndex=100; iframe.style.position='absolute'; iframe.style.right=parseInt(LD.style.right)+'px'; iframe.style.top=parseInt(LD.style.top)+'px'; iframe.frameBorder=0; var sS=LD.offsetWidth; var FH=LD.offsetHeight; iframe.style.width=sS+'px'; iframe.style.height=FH+'px'; iframe.width=sS; iframe.width=FH; gTg.appendChild(iframe); }}function iL(NY,ie,FXL){ return function(){ Yu(NY,ie); if(FXL){ populateVirtualPageController(); iH(); }jW(NY); }; }function UR(label,gTg,bxh,iYI){ var sS=document.createElement('a'); sS.style.display='block'; sS.style.textAlign='right'; sS.style.padding='1px'; sS.style.whiteSpace='pre'; sS.className='scheme-header scheme-header-text'; sS.innerHTML=label; sS.href=''; sS.onmousedown=function(event){ stopPropagation(event); QJ(gTg); iYI(); if(isIE){ window.event.cancelBubble=true; window.event.returnValue=false; }else{ event.cancelBubble=true; event.preventDefault(); event.stopPropagation(); }return false; }; sS.onclick=function(){return false;}; return sS; }function UC(){ return protopagePath.indexOf('untitled-')==0; }function PU(content,hA){ var LL; if(hA=='note'){ LL=fH(content); LL=LL.split('\n').join('<br>'); var Dj='\\b(http://[^\\s]+)\\b'; var dH='<a onclick="return '+gI(ia)+'(\'$1\', event);" href="$1">$1</a>'; var lC=new RegExp(Dj,"g"); LL=LL.replace(lC,dH); }if(hA=='html'){ LL=content; if(TT) LL='Sticky note hidden during safe mode'; }return '<div class="rich-text" style="font-size: 92%;">'+LL+'</div>'; }function DZ(Mn){ if(!virtualPages) return; if(virtualPages.length==0) return; if(protopagePath=='protopage/autocreate') return; if(protopagePath=='protopage/addlink') return; if(jc(Mn)['positioning']=='free') return; if(jc(Mn)['positioning']=='undefined'){ jc(Mn)['positioning']='3col'
}if(!!colorsAndSettings.enableAutoArrangeFeatures){ if(jc(Mn)['positioning']=='gravity'){ LJ(Mn); }}var rW=new Array(); if(jc(Mn)['positioning']=='gravity'){ rW=qv(Mn); }else{ rW=wW(Mn); var NN=qv(Mn); for(var fJ in NN) rW.push(NN[fJ]); }for(var gv in rW){ if(rW[gv].Xh) Tv(rW[gv],rW[gv].left,rW[gv].top); }}function rM(cn,EWs){ if(cn<0) return 0; var no=Math.ceil(cn/EWs)*EWs; return no; }function Fu(cn){ return rM(cn,Dt); }function ZL(cn){ return rM(cn,Ob); }function jW(TK){ var Eq=new Object(); Eq.left=TK.left; Eq.top=TK.top; Eq.width=TK.width; Eq.height=TK.eDF?TK.Lo():TK.height; Eq.right=Eq.left+Eq.width; Eq.bottom=Eq.top+Eq.height; for(var gv in panelDatas){ var qg=panelDatas[gv]; if(qg.tD!=XE) continue; if(TK==qg) continue; if(!TK.hn&&qg.hn) continue; var ww=new Object(); ww.left=qg.left; ww.top=qg.top; ww.width=qg.width; ww.height=qg.eDF?qg.TP():qg.height; ww.right=ww.left+ww.width; ww.bottom=ww.top+ww.height; var sS=gm(Eq.left,ww.left,ww.right)?1:0; var FH=gm(Eq.right,ww.left,ww.right)?1:0; var LL=gm(Eq.top,ww.top,ww.bottom)?1:0; var Ko=gm(Eq.bottom,ww.top,ww.bottom)?1:0; var eu=gm(ww.left,Eq.left,Eq.right)?1:0; var OU=gm(ww.right,Eq.left,Eq.right)?1:0; var Vj=gm(ww.top,Eq.top,Eq.bottom)?1:0; var XB=gm(ww.bottom,Eq.top,Eq.bottom)?1:0; var XO=sS+FH+LL+Ko+eu+OU+Vj+XB; if(XO>=4) { if(TK.zIndex<=qg.zIndex){ TK.zIndex=++maxPanelZIndex; TK.zIndex=++maxPanelZIndex; TK.LD.style.zIndex=TK.zIndex; TK.bj(); return true; }}}return false; }function HE(){ document.location.reload(); }function IQ(){ if(loggedInAsGuest){ YK('gp','/'+protopagePath); HE(); }if(loggedIn){ var nQ=ih('protopage'); var Pl=new Array(); Pl.push(new VD('authToken',nQ)); var rm=new Re(accountId,protopageId,null,protopagePath,'clear-auth-token',Pl); rm.IT=function(){ YK('protopage','/'+protopagePath); Yk(protopagePath); HE(); }; Us(5); setTimeout(function(){ commandProcessor.xA(rm); },800); setTimeout(function(){HE();},20000); return; }}function Ac(show){ if(show==true){ var lV=checkCookiesEnabled(); if(!lV) return; if(!is) Nu(); is.position(20,180); var St=document.getElementById('loginField-protopagePath'); if(protopagePath=='protopage/loginrequired'){ St.value=pageParams['pagePathAttempted']; }else if(NH(protopagePath,'protopage/')){ St.value=''; }else if(NH(protopagePath,'untitled-')){ St.value=''; }else{ St.value=protopagePath; }if(St.value!=''){ document.getElementById('loginField-password').focus(); }else{ St.focus(); }}else{ if(is) is.position(-10000,-10000); }}function bn(hA,title,hF,Kq,width,height,XG,hn,pH,cW,mC,uq,content,XS,GJ,Ei,fN,hM,eo){ if(!hn){ if(GJ){ ZX('widget_preview',pH+'',{'widgetId':pH,'widgetTitle':title}); }}var Wf='new'+Math.ceil(10000000*Math.random()); if(content==undefined||content==null){ if(hA=='links') content=null; if(hA=='html') content=''; if(hA=='widget'&&mC!=null) content=bM.stringify(mC); }if(XS==null) XS=Zv.ohd; var TK=new PanelData(Wf,Ax.Lf(),Ax.tG(),hA,title,hF,Kq,width,height,null,null,false,++maxPanelZIndex,0,XS,content,'FLOATING',XE,XG,pH,cW,hn,GJ,Ei,fN,hM,eo); if(!pH) TK.pH=''; if(!cW) TK.cW=''; panelDatas.push(TK); TK.TA(); TK.Vb(); TK.uN(); TK.US(); if(!TK.hn){ var Pl=new Array(); Pl.push(new VD('protopageId',Ax.tG())); Pl.push(new VD('objectType',hA)); Pl.push(new VD('title',TK.title)); Pl.push(new VD('left',TK.left)); Pl.push(new VD('top',TK.top)); Pl.push(new VD('width',TK.width)); Pl.push(new VD('height',TK.height)); Pl.push(new VD('col',TK.cH)); Pl.push(new VD('colSpan',TK.colSpan)); Pl.push(new VD('widgetId',TK.pH)); Pl.push(new VD('widgetKey',TK.cW)); Pl.push(new VD('zIndex',TK.zIndex)); var Ep=TK.tD+""; if(Ep.indexOf("-")!=-1){ Ep=TK.tD.split("-")[2]; }Pl.push(new VD('virtualPage',Ep)); Pl.push(new VD('content',content)); Pl.push(new VD('readKey',Ei)); Pl.push(new VD('writeKey',fN)); Pl.push(new VD('thirdPartyUserIdentifier',hM)); var rm=new Re(Ax.Lf(),Ax.tG(),Ax.qK(),protopagePath,'request-new-panel-id',Pl); rm.NY=TK; rm.IT=function(rm,wT){ TK.nkq=wT; }; commandProcessor.xA(rm); }if(TK.hA=='links'){ if(!TK.hn) mg(TK); }if(TK.hA=='html'||TK.hA=='note'){ if(!TK.hn) nY(TK); }if(TK.hA=='widget'){ if(uq) TK.wu(uq); else TK.wu(); if(!TK.hn){ if(TK.bH){ TK.bH.prR.sW(); }}}if(!TK.hn){ TK.Wj(); }return TK; }function EB(){ document.location=protopagePath+'/_api/register'; }function registerClicked(){ ZX('register_button_click',null,null,true); }; function NQ(){ if(!loggedIn) return; var LD=document.createElement('div'); LD.className='scheme-body-text'; LD.style.padding='5px 15px'; LD.style.width='240px'; LD.style.cursor='pointer'; var lq=document.createElement('div'); lq.style.fontSize='19px'; var Rt=document.createElement('span'); Rt.style.fontSize='20px'; Rt.style.fontWeight='bold'; Rt.style.textDecoration='underline'; Rt.appendChild(document.createTextNode('CLICK HERE')); var jv=document.createElement('span'); jv.style.paddingLeft='3px'; jv.appendChild(document.createTextNode(' ')); jv.appendChild(document.createTextNode('to register and save your settings')); lq.appendChild(Rt); lq.appendChild(jv); LD.onclick=function(){ EB(); ZX('register_button_click',null,null,true); }; LD.appendChild(lq); var Zr=document.createElement('div'); Zr.style.fontSize='12px'; Zr.style.paddingTop='16px'; Zr.appendChild(document.createTextNode('You will then be able to access this page from any computer or mobile phone.')); LD.appendChild(Zr); var bs=new QF(-10000,-10000,false,JN,'00',LD,true,false,null); bs.position(20,46); BU=bs; Uq.jT('registerBubble',bs.height+15); Uq.bv(); }function GU(){ if(!BU) return; BU.position(20,46); }function Uv(){ if(!BU) return; BU.hide(); }function importNewLink(label,url,type){ if(dI('Bookmarks')){ qf(Dm('Bookmarks')); }if(UC()){ for(var gv in panelDatas){ if(panelDatas[gv].tD!=XE) continue; if(panelDatas[gv].hA=='links'){ panelDatas[gv].XS.push(new LinkData(label,url)); hv(panelDatas[gv]); return; }}}var tL=aY(); var pg=document.getElementById('add-new-link-panel-choice'); var Wb=document.getElementById('add-new-link-panel-div'); Wb.style.display='block'; document.getElementById('add-new-link-title').value=label; document.getElementById('add-new-link-address').value=url; while(pg.childNodes.length>0) pg.removeChild(pg.childNodes[0]); for(var gv in panelDatas){ if(panelDatas[gv].hA=='links'){ sF(panelDatas[gv].id,panelDatas[gv].title,pg); }}sF('','(create a new bookmarks widget)',pg); }function addNewLink(){ var pg=document.getElementById('add-new-link-panel-choice'); var lN; var label; var url; var type; lN=pg.value; label=document.getElementById('add-new-link-title').value; url=document.getElementById('add-new-link-address').value; var Xi; if(lN==''||lN==null){ Xi=bn('links','Untitled bookmarks',0,0,254,100,'00',false,'',''); Xi.XS=new Array(); }else{ for(var gv in panelDatas){ if(panelDatas[gv].id==lN) Xi=panelDatas[gv]; }}Xi.XS.push(new LinkData(label,url)); hv(Xi); DZ(XE); }function Yk(Hwx){ var dt=La(); var AB=new Array(); for(var gv in dt){ if(dt[gv]==Hwx) continue; AB.push(dt[gv]); }var ou=AB.join(":"); Yt("login",ou,"/"); }function La(){ var LL=ih("login"); if(LL==null) return new Array(); else return LL.split(":"); }function xW(){ lY(Im); lY(oF); lY(oF.popup); lY(AhC); lY(jj); lY(nI); }function lY(RaQ){ if(!RaQ) return; var PB=colorsAndSettings.opacity+25; if(PB>100) PB=100; LF(RaQ.jL,PB); if(RaQ.AkF) RaQ.AkF.LF(PB); }function SE(){ if(CO) return; IN.style.left=tN()+'px'; IN.style.top=uS()+'px'; IN.style.width=Math.max(10000,ge())+'px'; IN.style.height=Math.max(10000,RV())+'px'; }function wr(){ if(CO) return; Tp=false; if(IN){ IN.style.left='-20000px'; IN.style.top='-20000px'; }}function TC(){ if(CO) return; if(IN){ if(!Tp){ IN.style.left=0+'px'; IN.style.top=YG+vC+'px'; }}else{ IN=document.createElement('div'); IN.style.position='absolute'; IN.style.left=0+'px'; IN.style.top=YG+vC+'px'; IN.style.width='10000px'; IN.style.height='10000px'; IN.style.zIndex=vb; uH().appendChild(IN); }Tp=true; }var ref_Bp=95.047
var ref_Gb=100.000
var ref_jN=108.883
var KN; var SH; var PP; var OJ; var dW; function ce(id,label,psS,UM,uer,fiS,EOA){ this.id=id; this.label=label; this.psS=psS; this.UM=UM; this.uer=uer; this.fiS=fiS; this.EOA=EOA; }var baseSchemes=[ new ce(18,'Cappuccino',new II('#000000'),new II('#FFFFFF'),new II('#000000'),new II('#FFFFC8'),new II('#71A1D1'),null),new ce(19,'Espresso',new II('#FFFFFF'),new II('#000000'),new II('#000000'),new II('#FFFFC8'),new II('#71A1D1'),null),
new ce(2,'Paper',new II('#000000'),new II('#BEE2D4'),new II('#000000'),new II('#FFFFFF'),new II('#E9F8F2'),null),new ce(13,'Banana',new II('#000000'),new II('#FFFAA1'),new II('#000000'),new II('#FFFFFF'),new II('#71A1D1'),null),new ce(14,'Lemon cheesecake',new II('#000000'),new II('#FFE873'),new II('#000000'),new II('#FEFFD8'),new II('#FFF7B7'),null),new ce(20,'Championship',new II('#000000'),new II('#FFFFFF'),new II('#FFFFFF'),new II('#B60000'),new II('#D40B15'),null),new ce(21,'Snowcap',new II('#000000'),new II('#FFFFFF'),new II('#FFFFFF'),new II('#2353D6'),new II('#D40B15'),null),new ce(3,'Flex',new II('#FFFFFF'),new II('#2854D1'),new II('#000000'),new II('#FFFFFF'),new II('#71A1D1'),null),new ce(17,'Live wire',new II('#FFFFFF'),new II('#4775F4'),new II('#FFFFFF'),new II('#2B57D4'),new II('#71A1D1'),null),new ce(8,'Washed',new II('#05255C'),new II('#E0E9FF'),new II('#05255C'),new II('#FFFFFF'),new II('#FCFFDF'),null),new ce(15,'Ocean breeze',new II('#FFFFFF'),new II('#5A9AFF'),new II('#000000'),new II('#E3EEFF'),new II('#71A1D1'),null),new ce(16,'Zest',new II('#FFFFFF'),new II('#FF6A54'),new II('#000000'),new II('#FFC3BA'),new II('#71A1D1'),null),new ce(1,'Solid',new II('#FFFFFF'),new II('#14305A'),new II('#FFFFFF'),new II('#0A182C'),new II('#525D7A'),null),new ce(4,'Fizzy',new II('#FFFFFF'),new II('#F63A6C'),new II('#FFFFFF'),new II('#AB2045'),new II('#F18BA6'),null),new ce(5,'Pro',new II('#FFFFFF'),new II('#913D3D'),new II('#000000'),new II('#FFFFFF'),new II('#E8F8D3'),null),new ce(6,'Slate',new II('#FFFFFF'),new II('#2a1d00'),new II('#FFFFFF'),new II('#262621'),new II('#353530'),null),new ce(7,'Mocha',new II('#FFFFFF'),new II('#654B08'),new II('#FFFFFF'),new II('#322604'),new II('#7A6F52'),null),new ce(9,'Loud',new II('#000000'),new II('#FFE500'),new II('#000000'),new II('#FFCC00'),new II('#FFB200'),null),new ce(10,'Sheer',new II('#FFFFFF'),new II('#001C75'),new II('#FFFFFF'),new II('#002EA5'),new II('#96C6F4'),null),new ce(11,'Tangerine',new II('#FFFFFF'),new II('#DC8050'),new II('#FFFFFF'),new II('#FF7E47'),new II('#D4470B'),null),new ce(12,'Sanguine',new II('#FFFFFF'),new II('#A70000'),new II('#FFFFFF'),new II('#FF3B3B'),new II('#D40B15'),null)]; function ol(label,url){ this.label=label; this.url=url; }function fp(rjN,sH,RX){ RX=RX?RX:0.5; var ME=new pj(rjN); var Cj=new pj(sH); ME.owJ=ME.owJ+(Cj.owJ-ME.owJ)*RX; if(ME.HwY==0) ME.NI=Cj.NI; else ME.NI=ME.NI+(Cj.NI-ME.NI)*RX; ME.HwY=ME.HwY+(Cj.HwY-ME.HwY)*RX; return ME.lh(); }function pf(rjN,ovY,sH){ var ng=fp(ovY,sH); var ep=fp(rjN,sH); var EA=jG(ng,ep); return EA; }function II(EA){ if(EA.substring(0,1)=='#') EA=EA.substring(1); this.OJU=EA; var var_OE=parseInt(EA.substring(0,2),16)/255; var var_LB=parseInt(EA.substring(2,4),16)/255; var var_Nn=parseInt(EA.substring(4,6),16)/255; var Vd=Math.min(Math.min(var_OE,var_LB),var_Nn); var bq=Math.max(Math.max(var_OE,var_LB),var_Nn); var KE=bq-Vd; this.poC=(bq+Vd)/2; if(KE==0) { this.NI=0; this.HwY=0; }else { if(this.poC<0.5) this.HwY=KE/(bq+Vd); else           this.HwY=KE/(2-bq-Vd); var del_OE=(((bq-var_OE)/6)+(KE/2))/KE; var del_LB=(((bq-var_LB)/6)+(KE/2))/KE; var del_Nn=(((bq-var_Nn)/6)+(KE/2))/KE; if(var_OE==bq) this.NI=del_Nn-del_LB; else if(var_LB==bq) this.NI=(1/3)+del_OE-del_Nn; else if(var_Nn==bq) this.NI=(2/3)+del_LB-del_OE; if(this.NI<0) this.NI+=1; if(this.NI>1) this.NI-=1; }}II.prototype.lh=function(hueOffset,saturationOffset,TVM){ var ks=this.NI; var BN=this.HwY; var Au=this.poC; if(hueOffset!=null) ks=(((this.NI*360)+hueOffset+360)%360)/360; if(saturationOffset!=null){ if(saturationOffset<-100) saturationOffset=-100; if(saturationOffset<=0){ BN=(this.HwY*(saturationOffset+100))/100; }else{ BN=this.HwY+((1-this.HwY)*(saturationOffset/100)); }}if(BN>1) BN=1; if(TVM!=null){ if(TVM<=0){ Au=(this.poC*(TVM+100)/100); }else{ Au=this.poC+((1-this.poC)*(TVM/100)); }}if(Au>1) Au=1; if(BN==0) { var OE=Au*255; var LB=Au*255; var Nn=Au*255; }else { if(Au<0.5){ var Pw=Au*(1+BN); }else{ var Pw=(Au+BN)-(BN*Au); }var hq=2*Au-Pw; var OE=Math.round(255*aT(hq,Pw,ks+(1/3))); var LB=Math.round(255*aT(hq,Pw,ks)); var Nn=Math.round(255*aT(hq,Pw,ks-(1/3))); }OE=Math.round(OE); LB=Math.round(LB); Nn=Math.round(Nn); var TW=uP(OE.toString(16))+uP(LB.toString(16))+uP(Nn.toString(16)); if(TVM==null){ TW=jG(TW,this.OJU); }return TW; }; function aT(qnZ,vNn,dfK) { if(dfK<0) dfK+=1; if(dfK>1) dfK-=1; if((6*dfK)<1) return(qnZ+(vNn-qnZ)*6*dfK); if((2*dfK)<1) return(vNn); if((3*dfK)<2) return(qnZ+(vNn-qnZ)*((2/3)-dfK)*6); return(qnZ); }function uP(SG){ if(SG.length==1) return '0'+SG; else return SG; }var oU=180; var Jr=180; var Bl=null; var kA=null; var CM; var vj; var vV; function rY(){ return false; return!isIE; }function wf(ie){ var ww=''+ie; if(ww.length==1) ww='0'+ww; return ww; }var Ym; var ZS; var Up; var CE; var Ol=new Object(); var mZ=new Object(); var gk=new Object(); function rQ(xXH,uqP,pcr,XNS){ Ym=colorsAndSettings.headerForegroundColor; ZS=colorsAndSettings.headerBackgroundColor; Up=colorsAndSettings.bodyForegroundColor; CE=colorsAndSettings.bodyBackgroundColor; if(rY()){ if(XNS){ for(var gv in panelDatas){ if(panelDatas[gv].tD!=XE) continue; panelDatas[gv].XNS(); }xW(); }}if(xXH){ if(document.styleSheets){ var rules=document.styleSheets.item(0).rules||document.styleSheets.item(0).cssRules; var oW=rules.item(0); var oG=rules.item(1); var ls=rules.item(2); var Fo=new II(ZS); var Aj=new II(CE); oW.style.color='#'+Ym; oG.style.color='#'+Up; for(var gv=0;gv<=10;gv++){ var jE=rules.item(3+(2*gv)); var Ke=rules.item(3+(2*gv)+1); var rE=(gv==10)?0:((gv/10)*360); var Jo=(gv==10)?-200:0; var ZQ=Fo.lh(rE,Jo,null,ZS); var wo=Aj.lh(rE,Jo,null,CE); var Vk=fp(Up,wo); jE.style.backgroundColor='#'+ZQ; Ke.style.backgroundColor='#'+wo; Ol[wf(gv)]=ZQ; mZ[wf(gv)]=wo; gk[wf(gv)]=Vk; }if(colorsAndSettings.backgroundMode=='PLAIN_COLOR'){ uH().style.backgroundColor='#'+colorsAndSettings.backgroundColor; }ls.style.color=oG.style.color; for(var gv in panelDatas){ var TK=panelDatas[gv]; TK.iA(); }}}if(uqP){ var SU=Ym; var Gh=Up; KN=SU; SH=Gh; PP=fp(KN,Ol['00']); OJ=fp(SH,mZ['00']); dW=fp(SH,mZ['00'],0.85); if(true){ CM="/web/dynamicImages/"+SU+"/panel-cross.gif"; vj="/web/dynamicImages/"+SU+"/panel-duplicate.gif"; vV="/web/dynamicImages/"+SU+"/question-mark.gif"; for(var gv=0;gv<document.images.length;gv++){ var JT=document.images[gv]; var SG; if(JT.src.indexOf('/web/dynamicImages/')!=-1){ if(JT.src.indexOf('undock-centered.gif')!=-1) continue; if(JT.src.indexOf('pixel.gif')!=-1) continue; if(JT.src.indexOf('/expand.gif')!=-1||JT.src.indexOf('/collapse.gif')!=-1||JT.src.indexOf('/maximise.gif')!=-1) SG=SU; else SG=Gh; JT.src="/web/dynamicImages/"+SG+"/"+JT.src.substring(JT.src.lastIndexOf('/')+1); for(var fJ in panelDatas){ var EF=panelDatas[fJ].visibleScrollbarHandle; if(EF!=null) EF.style.backgroundImage='url("/web/dynamicImages/'+Gh+'/vertical-scroll-bar.gif")'; }}}}if(Bl==null){ Bl=SU; kA=Gh; }}if(pcr){ var FH=uH(); if(colorsAndSettings.backgroundMode=='PATTERN'){ FH.style.backgroundImage='url("/web/pattern/'+Math.round(colorsAndSettings.backgroundHueOffset)+'/'+(Math.round(colorsAndSettings.backgroundSaturationOffset-100))+'/'+Math.round(colorsAndSettings.backgroundLightnessOffset)+'/'+colorsAndSettings.backgroundPattern+'.gif")'; }if(colorsAndSettings.backgroundMode=='PLAIN_COLOR'){ FH.style.backgroundImage='none'; FH.style.backgroundColor='#'+colorsAndSettings.backgroundColor; }if(colorsAndSettings.backgroundMode=='WALLPAPER_IMAGE'){ if(colorsAndSettings.wallpaperMode=='CENTER'){ FH.style.backgroundPosition='center'; FH.style.backgroundRepeat='no-repeat'; FH.style.backgroundAttachment='fixed'; }if(colorsAndSettings.wallpaperMode=='TILE'){ FH.style.backgroundPosition='0% 0%'; FH.style.backgroundRepeat='repeat'; FH.style.backgroundAttachment='scroll'; }FH.style.backgroundImage='url("'+colorsAndSettings.wallpaperImageUrl+'")'; if(!xJ) FH.style.backgroundPosition=0+'px '+YG+'px'; }}}function NX(baseSchemeId){ for(var gv=0;gv<baseSchemes.length;gv++) if(parseInt(baseSchemes[gv].id)==parseInt(baseSchemeId)) return baseSchemes[gv]; if(sa) alert('Error code 649 - Please report this as a bug to Protopage using the feedback form. Could not find base scheme for id '+baseSchemeId); }function SV(CGo){ var Pl=new Array(); Pl.push(new VD('colorsAndSettings',bM.stringify(colorsAndSettings))); var rm=new Re(accountId,protopageId,null,protopagePath,'save-colors-and-settings',Pl); if(CGo){ rm.IT=function(){ document.location.reload(); }; }commandProcessor.xA(rm); }function bG(poC,HW,no){ this.poC=poC; this.HW=HW; this.no=no; }function Vl(EA){ var var_OE=parseInt(EA.substring(0,2),16)/255; var var_LB=parseInt(EA.substring(2,4),16)/255; var var_Nn=parseInt(EA.substring(4,6),16)/255; if(var_OE>0.04045) var_OE=Math.pow(((var_OE+0.055)/1.055),2.4); else                   var_OE=var_OE/12.92; if(var_LB>0.04045) var_LB=Math.pow(((var_LB+0.055)/1.055),2.4); else                   var_LB=var_LB/12.92; if(var_Nn>0.04045) var_Nn=Math.pow(((var_Nn+0.055)/1.055),2.4); else                   var_Nn=var_Nn/12.92; var_OE=var_OE*100; var_LB=var_LB*100; var_Nn=var_Nn*100; var Bp=var_OE*0.4124+var_LB*0.3576+var_Nn*0.1805; var Gb=var_OE*0.2126+var_LB*0.7152+var_Nn*0.0722; var jN=var_OE*0.0193+var_LB*0.1192+var_Nn*0.9505; var mj=(4*Bp)/(Bp+(15*Gb)+(3*jN)); var var_owJ=(9*Gb)/(Bp+(15*Gb)+(3*jN)); var var_Gb=Gb/100; if(var_Gb>0.008856) var_Gb=Math.pow(var_Gb,(1/3)); else                    var_Gb=(7.787*var_Gb)+(16/116); var bC=(4*ref_Bp)/(ref_Bp+(15*ref_Gb)+(3*ref_jN)); var ref_owJ=(9*ref_Gb)/(ref_Bp+(15*ref_Gb)+(3*ref_jN)); var uC=(116*var_Gb)-16; Uh=13*uC*(mj-bC); pL=13*uC*(var_owJ-ref_owJ); if(isNaN(Uh)) Uh=0; if(isNaN(pL)) pL=0; return new bG(uC,Uh,pL); }bG.prototype.lh=function(){ var uC=this.poC; var Uh=this.HW; var pL=this.no; var var_Gb=(uC+16)/116; if(Math.pow(var_Gb,3)>0.008856) var_Gb=Math.pow(var_Gb,3); else                      var_Gb=(var_Gb-16/116)/7.787; var bC=(4*ref_Bp)/(ref_Bp+(15*ref_Gb)+(3*ref_jN)); var ref_owJ=(9*ref_Gb)/(ref_Bp+(15*ref_Gb)+(3*ref_jN)); var mj=Uh/(13*uC)+bC; var var_owJ=pL/(13*uC)+ref_owJ; var Gb=var_Gb*100; var Bp=-(9*Gb*mj)/((mj-4)*var_owJ-mj*var_owJ); var jN=(9*Gb-(15*var_owJ*Gb)-(var_owJ*Bp))/(3*var_owJ); var_Bp=Bp/100; var_Gb=Gb/100; var_jN=jN/100; var var_OE=var_Bp*3.2406+var_Gb*-1.5372+var_jN*-0.4986; var var_LB=var_Bp*-0.9689+var_Gb*1.8758+var_jN*0.0415; var var_Nn=var_Bp*0.0557+var_Gb*-0.2040+var_jN*1.0570; if(var_OE>0.0031308) var_OE=1.055*Math.pow(var_OE,(1/2.4))-0.055; else                     var_OE=12.92*var_OE; if(var_LB>0.0031308) var_LB=1.055*Math.pow(var_LB,(1/2.4))-0.055; else                     var_LB=12.92*var_LB; if(var_Nn>0.0031308) var_Nn=1.055*Math.pow(var_Nn,(1/2.4))-0.055; else                     var_Nn=12.92*var_Nn; var OE=var_OE*255; var LB=var_LB*255; var Nn=var_Nn*255; if(OE>255) OE=255; if(LB>255) LB=255; if(Nn>255) Nn=255; if(OE<0) OE=0; if(LB<0) LB=0; if(Nn<0) Nn=0; OE=Math.round(OE); LB=Math.round(LB); Nn=Math.round(Nn); var TW=uP(OE.toString(16))+uP(LB.toString(16))+uP(Nn.toString(16)); return TW; }; function jG(hCh,HEL){ if(hCh==HEL) return hCh; var ME=Vl(hCh); var Cj=Vl(HEL); ME.poC=Cj.poC; return ME.lh(); }function lP(uR,TVM){ var LL=new pj(uR); LL.owJ+=TVM/100; if(LL.owJ>1){ LL.HwY-=(LL.owJ-1); if(LL.HwY<0) LL.HwY=0; LL.owJ=1; }return LL.lh(); }function iT(){ }iT.prototype.position=function(x,y){ if(this.left==x&&this.top==y) return; this.left=x; this.top=y; this.LD.style.left=x+'px'; this.LD.style.top=y+'px'; this.AkF.position(); }; iT.prototype.ZK=function(){ return 5; }; iT.prototype.el=function(){ return this.LD.offsetHeight; }; iT.prototype.pc=function(){ return this.LD.offsetWidth; }; iT.prototype.tn=function(JO){ this.width=JO; this.LD.style.width=JO+'px'; this.gPi.style.left=JO-5+'px'; }; iT.prototype.ej=function(){ return this.XK.offsetWidth+20; }; iT.prototype.vK=function(Pge){ }; iT.prototype.WH=function(Hqj){ if(this.zIndex==Hqj) return; this.zIndex=Hqj; this.LD.style.zIndex=Hqj; this.AkF.rL(); }; iT.prototype.Tl=function(parentElement,XK,WKP,XG,uIi,oLs,xMa,llk,uSi){ this.XG=XG; this.uIi=uIi; this.xMa=xMa; this.XK=XK; this.WKP=WKP; this.oLs=oLs; this.parentElement=parentElement; this.LD=document.createElement('div'); parentElement.appendChild(this.LD); this.LD.style.position='absolute'; this.LD.style.left='-1000px'; this.LD.style.top='-1000px'; this.LD.style.fontSize='0.01px'; this.LD.style.zIndex=2; this.jfc=document.createElement('div'); this.gPi=document.createElement('div'); this.jfc.style.position='absolute'; this.jfc.style.width='5px'; this.jfc.style.height='5px'; this.jfc.style.left='0px'; this.gPi.style.position='absolute'; this.gPi.style.width='5px'; this.gPi.style.height='5px'; this.gPi.style.left='0px'; if(this.uIi){ this.jfc.style.top='0px'; this.gPi.style.top='0px'; }else{ this.jfc.style.top='0px'; this.gPi.style.top='0px'; }this.BkE=document.createElement('div'); this.BkE.style.fontSize='0.01px'; this.BkE.style.marginLeft='5px'; this.BkE.style.marginRight='5px'; this.BkE.style.paddingTop='5px'; this.BkE.appendChild(this.jfc); this.BkE.appendChild(this.gPi); this.Rm=document.createElement('div'); this.Rm.style.fontSize='0.01px'; this.Rm.style.paddingLeft='5px'; this.Rm.style.paddingRight='5px'; this.Rm.appendChild(this.XK); if(this.uIi){ this.ntf=document.createElement('div'); this.ntf.style.fontSize='0.01px'; this.ntf.style.paddingTop='5px'; this.LD.appendChild(this.ntf); this.LD.appendChild(this.Rm); this.LD.appendChild(this.BkE); }else{ this.LD.appendChild(this.BkE); this.LD.appendChild(this.Rm); }if(uSi!=null){ this.XK.style.height=(this.XK.offsetHeight-uSi)+'px'; this.XK.style.width=(this.XK.offsetWidth)+'px'; this.XK.style.position='relative'; this.XK.style.overflow='hidden'; this.XK.style.top='-'+uSi+'px'; }this.PA(); this.AkF=new BG(this.LD,this.oLs,parentElement,true,true,true,this.uIi); var Zs=this.XK.offsetWidth; if(this.uIi){ var Jf=this.XK.offsetHeight; this.jfc.style.top=Jf+5+'px'; this.gPi.style.top=Jf+5+'px'; this.gPi.style.left=Zs+5+'px'; }else{ this.gPi.style.left=Zs+5+'px'; }}; iT.prototype.cO=function(){ if(this.uIi){ var Jf=this.XK.offsetHeight; this.jfc.style.top=Jf+5+'px'; this.gPi.style.top=Jf+5+'px'; }}; iT.prototype.DH=function(){ return Ol[this.XG]; }; iT.prototype.qw=function(){ return mZ[this.XG]; }; iT.prototype.PA=function(){ if(this.Xqu){ var RK=this.feJ; var SU=this.XMI; }else{ var RK=this.DH(); var baseScheme=NX(colorsAndSettings.baseScheme); var SU=baseScheme.psS.lh(colorsAndSettings.hueOffset,colorsAndSettings.saturationOffset); }var ea=lP(RK,Fm); if(!this.useMonoScheme){ this.Rm.style.backgroundImage='url(/web/gradient/'+RK+'/'+Fm+'/'+ab+')'; this.Rm.style.backgroundRepeat='repeat-x'; this.Rm.style.backgroundPosition='top'; this.Rm.style.backgroundColor='#'+RK; }if(this.uIi){ KX(this.jfc,'/web/dynamicPng/'+RK+'/'+OF+'-sw.png'); KX(this.gPi,'/web/dynamicPng/'+RK+'/'+OF+'-se.png'); if(!this.useMonoScheme){ this.ntf.style.backgroundColor='#'+ea; }else{ this.Rm.style.backgroundColor='#'+RK; this.ntf.style.backgroundColor='#'+RK; }this.BkE.style.backgroundColor='#'+RK; }else{ KX(this.jfc,'/web/dynamicPng/'+ea+'/'+OF+'-nw.png'); KX(this.gPi,'/web/dynamicPng/'+ea+'/'+OF+'-ne.png'); this.BkE.style.backgroundColor='#'+ea; }}; function rp(mAh,OxP,lX,paddingBottom,cursor,VOf){ var LD=document.createElement('div'); LD.className='scheme-header-text'; LD.style.fontWeight=lX?'bold':'normal'; LD.style.whiteSpace='nowrap'; if(OxP) LD.style.fontSize=OxP+'px'; if(VOf!=null){ LD.style.paddingLeft=VOf+'px'; LD.style.paddingRight=VOf+'px'; }if(paddingBottom!=null) LD.style.paddingBottom=paddingBottom+'px'; if(cursor!=null) LD.style.cursor=cursor; LD.appendChild(document.createTextNode(mAh)); return LD; }var CallbackNotify=new Object(); CallbackNotify.gOA=0; CallbackNotify.dkN=new Array(); CallbackNotify.vT=function(iYI){ CallbackNotify.gOA++; CallbackNotify.dkN[CallbackNotify.gOA]=iYI; return CallbackNotify.gOA; }; CallbackNotify.callbackNotify=function(NWc,GST){ CallbackNotify.dkN[NWc](GST); }; CallbackNotify.Xl=function(NWc){ return 'callbackFrame'+NWc; }; CallbackNotify.Fq=function(NWc){ return '<iframe name="'+CallbackNotify.Xl(NWc)+'" style="position:absolute; left:-1000px; top:-1000px; width:1px; height:1px; border:none; visibility:hidden;"></iframe>'; }; CallbackNotify.eY=function(NWc){ return '<input type="hidden" name="callbackId" value="'+NWc+'">'; }; CallbackNotify.So=function(NWc){ var kg=document.createElement('div'); kg.style.width='1px'; kg.style.height='1px'; kg.style.position='absolute'; kg.style.left='-50000px'; kg.style.top='-50000px'; uH().appendChild(kg); kg.innerHTML=CallbackNotify.Fq(NWc); };function sP(parentElement,sKx,Om){ var JA=this; this.color='123456'; this.Om=Om; this.sKx=sKx; this.tvU=1000; this.LD=document.createElement('div'); this.LD.style.position='relative'; this.LD.style.width='350px'; this.LD.style.height='200px'; parentElement.appendChild(this.LD); this.Vpr=document.createElement('table'); this.Vpr.style.position='absolute'; this.Vpr.style.left='270px'; this.Vpr.style.top='0px'; this.Vpr.style.width='70px'; this.Vpr.style.height='188px'; this.Vpr.border=0; this.Vpr.cellPadding=0; this.Vpr.cellSpacing=0; this.BtF=document.createElement('tbody'); this.eZc=document.createElement('tr'); this.taw=document.createElement('td'); this.ktl=document.createElement('tr'); this.IGw=document.createElement('td'); this.EPw=document.createElement('tr'); this.nZf=document.createElement('td'); this.fkr=document.createElement('tr'); this.taU=document.createElement('td'); this.LGD=document.createElement('tr'); this.tum=document.createElement('td'); this.Vpr.appendChild(this.BtF); this.BtF.appendChild(this.eZc); this.BtF.appendChild(this.ktl); this.BtF.appendChild(this.EPw); this.BtF.appendChild(this.fkr); this.BtF.appendChild(this.LGD); this.eZc.appendChild(this.taw); this.ktl.appendChild(this.IGw); this.EPw.appendChild(this.nZf); this.fkr.appendChild(this.taU); this.LGD.appendChild(this.tum); this.Xrw=document.createElement('div'); this.Xrw.style.width='70px'; this.Xrw.style.height=sKx?'100px':'148px'; this.Xrw.style.borderLeft='2px solid #ffffff'; this.Xrw.style.borderTop='2px solid #ffffff'; this.Xrw.style.borderRight='2px solid #000000'; this.Xrw.style.borderBottom='2px solid #000000'; this.nZf.appendChild(this.Xrw); this.Sbe=document.createElement('div'); this.Sbe.style.position='absolute'; this.Sbe.style.left='0px'; this.Sbe.style.top='160px'; this.Sbe.style.width='250px'; this.Sbe.style.height='25px'; this.Sbe.style.cursor='pointer'; this.fRT=pm('Hex color code',11,false); this.fRT.style.textAlign='center'; this.taw.appendChild(this.fRT); this.lpZ=eT('ff00aa',70,'000000',function(value){ },function(BxY){ JA.kcV=BxY; }); this.kcV.onkeyup=function(){ if(JA.kcV.value.length==6){ JA.RT(JA.kcV.value.toUpperCase(),true); }}; this.kcV.onmouseup=this.kcV.onkeyup; this.lpZ.style.textAlign='center'; this.IGw.appendChild(this.lpZ); if(this.sKx){ this.eNV=pm('Cancel',11,false); this.eNV.style.textAlign='center'; this.eNV.style.textDecoration='underline'; this.eNV.style.cursor='pointer'; this.taU.appendChild(this.eNV); this.SmT=pm('OK',26,true); this.SmT.style.textAlign='center'; this.SmT.style.textDecoration='underline'; this.SmT.style.cursor='pointer'; this.tum.appendChild(this.SmT); this.LGD.vAlign='bottom'; }this.xNq=new Array(); for(var ww=0;ww<10;ww++){ var Px=document.createElement('div'); Px.style.position='absolute'; Px.style.width='25px'; Px.style.height='25px'; Px.style.left=(25*ww)+'px'; Px.style.top=0+'px'; this.xNq.push(Px); this.Sbe.appendChild(Px); }this.pTV=document.createElement('div'); this.pTV.position='absolute'; this.pTV.width='250px'; this.pTV.height='250px'; this.pTV.style.cursor='pointer'; var tZ=new Array(); this.tZ=tZ; for(var x=0;x<25;x++){ tZ.push(new Array()); for(var y=0;y<15;y++){ var oD=document.createElement('div'); oD.style.fontSize='1px'; oD.style.position='absolute'; oD.style.width='10px'; oD.style.height='10px'; oD.style.left=(10*x)+'px'; oD.style.top=(10*y)+'px'; tZ[x].push(oD); }}this.LD.appendChild(this.pTV); this.LD.appendChild(this.Sbe); this.LD.appendChild(this.Vpr); }sP.prototype.lm=function(MHo,KU,Teb){ var JA=this; var cH=new Object(); cH.NI=MHo; cH.poC=KU; var QD=this.xNq[0]; var Mv=10000000; var AC=parseInt(Teb,16); for(var ww=0;ww<10;ww++){ cH.HwY=1-(ww/9); var Kr=II.prototype.lh.call(cH,0,0,0); this.xNq[ww].style.backgroundColor='#'+Kr; this.xNq[ww].style.borderLeft='none'; this.xNq[ww].style.borderTop='none'; this.xNq[ww].style.borderRight='none'; this.xNq[ww].style.borderBottom='none'; this.xNq[ww].style.top='0px'; var DK=Math.abs(parseInt(Kr,16)-AC); if(DK<Mv){ QD=this.xNq[ww]; Mv=DK; }var iC=function(MHo,Pn,KU,Px,color){ Px.onmousedown=function(){ JA.Oj(Pn); JA.RT(color); JA.lm(MHo,KU,color); }; }(cH.NI,cH.HwY,cH.poC,this.xNq[ww],Kr); }if(KU!=0&&KU!=1){ QD.style.borderLeft='2px solid #ffffff'; QD.style.top='-1px'; QD.style.borderRight='2px solid #000000'; QD.style.borderBottom='2px solid #000000'; QD.style.zIndex=JA.tvU++; }}; sP.prototype.tt=function(uR){ var op=new II(uR); this.Oj(uR.toLowerCase()=='ffffff'?1:op.HwY); this.lm(op.NI,op.poC); this.RT(uR.toUpperCase(),true); this.kcV.value=uR.toUpperCase(); this.Xrw.style.backgroundColor='#'+this.color; }; sP.prototype.Oj=function(Pn){ var JA=this; this.hZs=new Array(); var cH=new Object(); cH.HwY=Pn; for(var y=0;y<15;y++){ cH.poC=1-(y/14); for(var x=0;x<25;x++){ cH.NI=(x/24); var oD=this.tZ[x][y]; var ao=II.prototype.lh.call(cH,0,0,0).toUpperCase(); if(!this.hZs[ao]) this.hZs[ao]=oD; oD.style.backgroundColor='#'+ao; var iC=function(oD,ao){ oD.onmousedown=function(eu){ JA.gPY=true; if(JA.KLw)  JA.KLw.style.border='none'; oD.style.borderLeft='2px solid #ffffff'; oD.style.borderTop='2px solid #ffffff'; oD.style.borderRight='2px solid #000000'; oD.style.borderBottom='2px solid #000000'; oD.style.zIndex=JA.tvU++; JA.KLw=oD; JA.RT(ao); JA.lm(JA.op.NI,JA.op.poC,JA.color); }; oD.onmouseup=function(eu){ setTimeout(function(){ JA.gPY=false; },1); }; oD.onmousemove=function(eu){ if(!JA.gPY) return; }; }(oD,ao); this.pTV.appendChild(oD); }}}; sP.prototype.RT=function(uR,Ypa){ if(this.color==uR.toUpperCase()) return; this.color=uR.toUpperCase(); this.op=new II(uR); this.kcV.value=this.color; this.Xrw.style.backgroundColor='#'+this.color; if(Ypa){ this.Oj(uR.toLowerCase()=='ffffff'?1:this.op.HwY); this.lm(this.op.NI,this.op.poC,this.color); var GR=null; var WC=10000000; for(var gv in this.hZs){ var color=gv; var LD=this.hZs[gv]; var DK=sP.QV(color,uR); if(DK<WC){ GR=LD; WC=DK; }}if(this.KLw) this.KLw.style.border='none'; GR.style.borderLeft='2px solid #ffffff'; GR.style.borderTop='2px solid #ffffff'; GR.style.borderRight='2px solid #000000'; GR.style.borderBottom='2px solid #000000'; GR.style.zIndex=this.tvU++; this.KLw=GR; }if(this.Om) this.Om(this.color); }; sP.QV=function(jZp,BTg){ var hw=parseInt(jZp.substring(0,2),16); var Er=parseInt(jZp.substring(2,4),16); var jl=parseInt(jZp.substring(4,6),16); var Dx=parseInt(BTg.substring(0,2),16); var xk=parseInt(BTg.substring(2,4),16); var Ts=parseInt(BTg.substring(4,6),16); return parseInt(Math.abs(hw-Dx)+Math.abs(Er-xk)+Math.abs(jl-Ts)); }; function pj(EA){ if(!EA) return; if(EA.substring(0,1)=='#') EA=EA.substring(1); this.OJU=EA; var var_OE=parseInt(EA.substring(0,2),16)/255; var var_LB=parseInt(EA.substring(2,4),16)/255; var var_Nn=parseInt(EA.substring(4,6),16)/255; var Vd=Math.min(Math.min(var_OE,var_LB),var_Nn); var bq=Math.max(Math.max(var_OE,var_LB),var_Nn); var KE=bq-Vd; this.owJ=bq; if(KE==0) { this.NI=0; this.HwY=0; }else { this.HwY=KE/bq; var del_OE=(((bq-var_OE)/6)+(KE/2))/KE; var del_LB=(((bq-var_LB)/6)+(KE/2))/KE; var del_Nn=(((bq-var_Nn)/6)+(KE/2))/KE; if(var_OE==bq) this.NI=del_Nn-del_LB; else if(var_LB==bq) this.NI=(1/3)+del_OE-del_Nn; else if(var_Nn==bq) this.NI=(2/3)+del_LB-del_OE; if(this.NI<0) this.NI+=1; if(this.NI>1) this.NI-=1; }}pj.prototype.lh=function(){ if(this.HwY==0) { var OE=this.owJ*255; var LB=this.owJ*255; var Nn=this.owJ*255; }else { var var_XB=this.NI*6; if(var_XB==6) var_XB=0; var var_gv=Math.floor(var_XB); var hq=this.owJ*(1-this.HwY); var Pw=this.owJ*(1-this.HwY*(var_XB-var_gv)); var mT=this.owJ*(1-this.HwY*(1-(var_XB-var_gv))); var var_FH; var var_Vj; if(var_gv==0){var_Eq=this.owJ;var_Vj=mT;var_FH=hq;}else if(var_gv==1){var_Eq=Pw;var_Vj=this.owJ;var_FH=hq;}else if(var_gv==2){var_Eq=hq;var_Vj=this.owJ;var_FH=mT;}else if(var_gv==3){var_Eq=hq;var_Vj=Pw;var_FH=this.owJ;}else if(var_gv==4){var_Eq=mT;var_Vj=hq;var_FH=this.owJ;}else{var_Eq=this.owJ;var_Vj=hq;var_FH=Pw;}var OE=var_Eq*255; var LB=var_Vj*255; var Nn=var_FH*255; }OE=Math.round(OE); LB=Math.round(LB); Nn=Math.round(Nn); var TW=uP(OE.toString(16))+uP(LB.toString(16))+uP(Nn.toString(16)); return TW; }; function uA(gX,vsr,Rab){ LM(gX); var CL=gX.offsetWidth; if(CL==0) CL=parseInt(gX.style.width); var fM=document.createElement('div'); fM.style.position='absolute'; fM.style.left='-10000px'; fM.style.top='-10000px'; uH().appendChild(fM); ci(fM,vsr,1,1); var Pk=fM.offsetWidth; uH().removeChild(fM); var nr=Math.floor(CL/Pk); var Kh=gX; ci(Kh,vsr,nr,Pk); }function ci(vJY,vsr,nr,Kkg){ var table=document.createElement('table'); table.border=0; table.cellPadding=0; table.cellSpacing=0; var FB=document.createElement('tbody'); table.appendChild(FB); var Kg=document.createElement('tr'); FB.appendChild(Kg); var sL=Math.ceil(vsr.length/nr); var Em=vsr.length%nr; var Tw=0; var Xv=null; for(var gv=0;gv<vsr.length;gv++){ var Ng=vsr[gv]; if(Tw==0){ Xv=document.createElement('td'); Xv.vAlign='top'; Kg.appendChild(Xv); }Xv.appendChild(Ng); Tw++; if((Tw==sL)||gv==(vsr.length-1)){ Tw=0; var YF=document.createElement('div'); var YL=GP(); YL.src='/web/images/spacer.gif'; YL.border=0; YL.width=Kkg; YL.height=1; YL.style.padding='0px'; YL.style.margin='0px'; YF.appendChild(YL); Xv.appendChild(YF); if(Em>0){ Em--; if(Em==0) sL--; }}}vJY.appendChild(table); }var AF=new Array('January','February','March','April','May','June','July','August','September','October','November','December','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'); var ZD=new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sun','Mon','Tue','Wed','Thu','Fri','Sat'); function dM(x){return(x<0||x>9?"":"0")+x}function Tg(OD,kn){ var AY=fe(OD,kn); if(AY==0){return false;}return true; }function iv(cfV,vn,eCq,Ba){ var Bg=fe(cfV,vn); var Fs=fe(eCq,Ba); if(Bg==0||Fs==0){ return-1; }else if(Bg>Fs){ return 1; }return 0; }function vA(AY,kn){ kn=kn+""; var aD=""; var gv_kn=0; var LL=""; var ZZ=""; var y=AY.getYear()+""; var lO=AY.getMonth()+1; var Ko=AY.getDate(); var E=AY.getDay(); var NI=AY.getHours(); var WZ=AY.getMinutes(); var ww=AY.getSeconds(); var Kc,Qn,QK,EK,BJ,Qb,XB,Bk,RM,iB,Ql,NI,hj,Ta,VW,nd; var value=new Object(); if(y.length<4){y=""+(y-0+1900);}value["y"]=""+y; value["yyyy"]=y; value["yy"]=y.substring(2,4); value["M"]=lO; value["MM"]=dM(lO); value["MMM"]=AF[lO-1]; value["NNN"]=AF[lO+11]; value["d"]=Ko; value["dd"]=dM(Ko); value["E"]=ZD[E+7]; value["EE"]=ZD[E]; value["H"]=NI; value["HH"]=dM(NI); if(NI==0){value["h"]=12;}else if(NI>12){value["h"]=NI-12;}else{value["h"]=NI;}value["hh"]=dM(value["h"]); if(NI>11){value["K"]=NI-12;}else{value["K"]=NI;}value["k"]=NI+1; value["KK"]=dM(value["K"]); value["kk"]=dM(value["k"]); if(NI>11){value["a"]="pm";}else{value["a"]="am";}value["m"]=WZ; value["mm"]=dM(WZ); value["s"]=ww; value["ss"]=dM(ww); while(gv_kn<kn.length){ LL=kn.charAt(gv_kn); ZZ=""; while((kn.charAt(gv_kn)==LL)&&(gv_kn<kn.length)){ ZZ+=kn.charAt(gv_kn++); }if(value[ZZ]!=null){aD=aD+value[ZZ];}else{aD=aD+ZZ;}}return aD; }function It(OD){ var digits="1234567890"; for(var gv=0;gv<OD.length;gv++){ if(digits.indexOf(OD.charAt(gv))==-1){return false;}}return true; }function Wg(IO,gv,rrf,wws){ for(var x=wws;x>=rrf;x--){ var ZZ=IO.substring(gv,gv+x); if(ZZ.length<rrf){return null;}if(It(ZZ)){return ZZ;}}return null; }function fe(OD,kn){ OD=OD+""; kn=kn+""; var gv_OD=0; var gv_kn=0; var LL=""; var ZZ=""; var hs=""; var x,y; var vY=new Date(); var oJ=vY.getYear(); var Yb=vY.getMonth()+1; var AY=1; var Qb=vY.getHours(); var Bk=vY.getMinutes(); var RM=vY.getSeconds(); var iB=""; while(gv_kn<kn.length){ LL=kn.charAt(gv_kn); ZZ=""; while((kn.charAt(gv_kn)==LL)&&(gv_kn<kn.length)){ ZZ+=kn.charAt(gv_kn++); }if(ZZ=="yyyy"||ZZ=="yy"||ZZ=="y"){ if(ZZ=="yyyy"){x=4;y=4;}if(ZZ=="yy"){x=2;y=2;}if(ZZ=="y"){x=2;y=4;}oJ=Wg(OD,gv_OD,x,y); if(oJ==null){return 0;}gv_OD+=oJ.length; if(oJ.length==2){ if(oJ>70){oJ=1900+(oJ-0);}else{oJ=2000+(oJ-0);}}}else if(ZZ=="MMM"||ZZ=="NNN"){ Yb=0; for(var gv=0;gv<AF.length;gv++){ var BC=AF[gv]; if(OD.substring(gv_OD,gv_OD+BC.length).toLowerCase()==BC.toLowerCase()){ if(ZZ=="MMM"||(ZZ=="NNN"&&gv>11)){ Yb=gv+1; if(Yb>12){Yb-=12;}gv_OD+=BC.length; break; }}}if((Yb<1)||(Yb>12)){return 0;}}else if(ZZ=="EE"||ZZ=="E"){ for(var gv=0;gv<ZD.length;gv++){ var UW=ZD[gv]; if(OD.substring(gv_OD,gv_OD+UW.length).toLowerCase()==UW.toLowerCase()){ gv_OD+=UW.length; break; }}}else if(ZZ=="MM"||ZZ=="M"){ Yb=Wg(OD,gv_OD,ZZ.length,2); if(Yb==null||(Yb<1)||(Yb>12)){return 0;}gv_OD+=Yb.length;}else if(ZZ=="dd"||ZZ=="d"){ AY=Wg(OD,gv_OD,ZZ.length,2); if(AY==null||(AY<1)||(AY>31)){return 0;}gv_OD+=AY.length;}else if(ZZ=="hh"||ZZ=="h"){ Qb=Wg(OD,gv_OD,ZZ.length,2); if(Qb==null||(Qb<1)||(Qb>12)){return 0;}gv_OD+=Qb.length;}else if(ZZ=="HH"||ZZ=="H"){ Qb=Wg(OD,gv_OD,ZZ.length,2); if(Qb==null||(Qb<0)||(Qb>23)){return 0;}gv_OD+=Qb.length;}else if(ZZ=="KK"||ZZ=="K"){ Qb=Wg(OD,gv_OD,ZZ.length,2); if(Qb==null||(Qb<0)||(Qb>11)){return 0;}gv_OD+=Qb.length;}else if(ZZ=="kk"||ZZ=="k"){ Qb=Wg(OD,gv_OD,ZZ.length,2); if(Qb==null||(Qb<1)||(Qb>24)){return 0;}gv_OD+=Qb.length;Qb--;}else if(ZZ=="mm"||ZZ=="m"){ Bk=Wg(OD,gv_OD,ZZ.length,2); if(Bk==null||(Bk<0)||(Bk>59)){return 0;}gv_OD+=Bk.length;}else if(ZZ=="ss"||ZZ=="s"){ RM=Wg(OD,gv_OD,ZZ.length,2); if(RM==null||(RM<0)||(RM>59)){return 0;}gv_OD+=RM.length;}else if(ZZ=="a"){ if(OD.substring(gv_OD,gv_OD+2).toLowerCase()=="am"){iB="am";}else if(OD.substring(gv_OD,gv_OD+2).toLowerCase()=="pm"){iB="pm";}else{return 0;}gv_OD+=2;}else{ if(OD.substring(gv_OD,gv_OD+ZZ.length)!=ZZ){return 0;}else{gv_OD+=ZZ.length;}}}if(gv_OD!=OD.length){return 0;}if(Yb==2){ if(((oJ%4==0)&&(oJ%100!=0))||(oJ%400==0)){ if(AY>29){return 0;}}else{if(AY>28){return 0;}}}if((Yb==4)||(Yb==6)||(Yb==9)||(Yb==11)){ if(AY>30){return 0;}}if(Qb<12&&iB=="pm"){Qb=Qb-0+12;}else if(Qb>11&&iB=="am"){Qb-=12;}var mM=new Date(oJ,Yb-1,AY,Qb,Bk,RM); return mM.getTime(); }function iw(OD){ var rr=(arguments.length==2)?arguments[1]:false; be=new Array('y-M-d','MMM d, y','MMM d,y','y-MMM-d','d-MMM-y','MMM d'); tp=new Array('M/d/y','M-d-y','M.d.y','MMM-d','M/d','M-d'); eI=new Array('d/M/y','d-M-y','d.M.y','d-MMM','d/M','d-M'); var wR=new Array('generalFormats',rr?'dateFirst':'monthFirst',rr?'monthFirst':'dateFirst'); var Ko=null; for(var gv=0;gv<wR.length;gv++){ var ms=window[wR[gv]]; for(var fJ=0;fJ<ms.length;fJ++){ Ko=fe(OD,ms[fJ]); if(Ko!=0){return new Date(Ko);}}}return null; }var fI=!true; var ic=null; var Ka=1; function log(message){ if(!fI) return; if(!ic){ ic=document.createElement('div'); ic.style.position='absolute'; ic.style.left='900px'; ic.style.top='1em'; ic.style.fontSize='10px'; ic.style.fontFamily='Arial, Helvetica, sans-serif'; ic.style.lineHeight='1.2em'; ic.innerHTML='debug log'; uH().appendChild(ic); }ic.innerHTML+='<br>'+Ka+++': '+message; ic.style.top=(10-Ka)*1.2+'em'; }function ae(){ this.Kck=null; this.eqv=null; this.VZo=null; this.mhJ=null; this.VYY=null; this.MkQ=null; this.VBJ=false; this.ZTK=new Array(); }ae.Lig=3; ae.prototype.YY=function(AhM,uIT,pTR,ZJK,ttJ,sb,lpC,SFb){ var JA=this; AhM.onmousedown=function(eu){ hW(eu,AhM,null,function(dj,CQ,QH,uK){ },function(dj,CQ,jw,jP,QH,uK,VNf,uGQ){ if(!JA.VBJ){ if((Math.abs(jw)>ae.Lig)||(Math.abs(jP)>ae.Lig)){ JA.VBJ=true; JA.ZTK=new Array(); JA.Kck=uIT; JA.VZo=pTR.offsetWidth; JA.mhJ=pTR.offsetHeight; pTR.parentNode.removeChild(pTR); JA.eqv=pTR; JA.VYY=ZJK; JA.MkQ=document.createElement('div'); JA.MkQ.style.zIndex=qh; JA.MkQ.style.position='absolute'; JA.MkQ.style.width=JA.VZo+'px'; JA.MkQ.style.height=JA.mhJ+'px'; JA.MkQ.appendChild(JA.eqv); uH().appendChild(JA.MkQ); ttJ(); }}if(JA.VBJ){ JA.MkQ.style.left=VNf+2+'px'; JA.MkQ.style.top=uGQ-2+'px'; }},function(dj,CQ,kf,mp,QH,uK){ if(!JA.VBJ){ sb(); }else{ JA.VBJ=false; uH().removeChild(JA.MkQ); if(JA.vga){ JA.vga(JA.Kck); }else{ lpC(); }for(var gv in JA.ZTK){ var GF=JA.ZTK[gv]; GF.style.display='none'; }JA.ZTK=new Array(); SFb(); }}); }; }; ae.prototype.ei=function(jL,hA,gh,vga){ var JA=this; MW(jL,function(YC){ YC.event.cancelBubble=true; if(JA.VBJ){ if(jL!=JA.eqv){ gh.style.display='block'; gh.style.width=JA.VZo-(isIE?0:2)+'px'; gh.style.height=JA.mhJ-(isIE?0:2)+'px'; gh.style.border='1px dashed #'+SH; JA.vga=vga; for(var gv in JA.ZTK){ var GF=JA.ZTK[gv]; if(vg(GF.parentNode,gh)&&gh!=GF) GF.style.display='none'; }if(!hB(JA.ZTK,gh)) JA.ZTK.push(gh); }}}); OI(jL,function(YC){ YC.event.cancelBubble=true; if(JA.VBJ){ if(jL!=JA.eqv){ gh.style.display='none'; JA.vga=null; Fe(gh,JA.ZTK); }}}); }; ae.prototype.rh=function(parentElement){ var gh=document.createElement('div'); parentElement.appendChild(gh); return gh; }; var dj,CQ,rR,xr,Eg; var QH,uK; var kf,mp; function hW(event,jL,mVY,KOD,aqq,RGl){ dj=jL; CQ=mVY; rR=KOD; xr=aqq; Eg=RGl; kf=0; mp=0; if(isIE||CO){ QH=window.event.clientX+(CO?0:document.documentElement.scrollLeft)+document.body.scrollLeft; uK=window.event.clientY+(CO?0:document.documentElement.scrollTop)+document.body.scrollTop; }else{ QH=event.clientX+window.scrollX; uK=event.clientY+window.scrollY; }if(isIE){ document.attachEvent(ck,RN); document.attachEvent(Pr,nR); window.event.cancelBubble=true; window.event.returnValue=false; }else{ document.addEventListener(Et,RN,false); document.addEventListener(Yi,nR,false); event.preventDefault(); }rR(dj,CQ,QH,uK); }function RN(event){ var x,y,jw,jP; if(isIE||CO){ x=window.event.clientX+(CO?0:document.documentElement.scrollLeft)+document.body.scrollLeft; y=window.event.clientY+(CO?0:document.documentElement.scrollTop)+document.body.scrollTop; }else{ x=event.clientX+window.scrollX; y=event.clientY+window.scrollY; }jw=x-QH; jP=y-uK; var FO=false; if(kf!=jw||mp!=jP) FO=true; kf=jw; mp=jP; if(FO){ xr(dj,CQ,jw,jP,QH,uK,x,y); }if(isIE){ window.event.cancelBubble=true; window.event.returnValue=false; }else{ event.preventDefault(); }}function nR(event){ if(isIE){ document.detachEvent(ck,RN); document.detachEvent(Pr,nR); }else{ document.removeEventListener(Et,RN,false); document.removeEventListener(Yi,nR,false); }Eg(dj,CQ,kf,mp,QH,uK); }function VP(parentElement,width,height,rJj,Om,Td,value,gD,fontWeight,SPf,weS,mQE){ var JA=this; this.parentElement=parentElement; this.rJj=rJj; this.Om=Om; this.Td=Td; this.mQE=mQE; this.value=value; this.gD=gD; this.fontWeight=fontWeight; this.SPf=SPf; this.width=width; this.height=height; this.weS=weS; this.xhU=false; this.LD=document.createElement('div'); this.LD.style.width=width+'px'; this.LD.style.height=height+'px'; this.MJP=document.createElement('textarea'); this.MJP.style.width=width+'px'; this.MJP.style.height=height+'px'; this.MJP.style.overflow='hidden'; this.MJP.style.border='none'; this.MJP.style.paddingTop='0px'; this.MJP.style.paddingLeft='0px'; this.MJP.style.paddingRight='0px'; this.MJP.style.paddingBottom='0px'; this.MJP.style.marginTop='0px'; this.MJP.style.marginLeft='0px'; this.MJP.style.marginRight='0px'; this.MJP.style.marginBottom='0px'; this.MJP.style.background='transparent'; this.MJP.className=JA.SPf; this.MJP.style.fontSize=JA.gD+'px'; this.MJP.style.fontWeight=JA.fontWeight; this.LD.appendChild(this.MJP); if(this.parentElement) this.parentElement.appendChild(this.LD); this.Om=Om; this.KH(this.value); this.cO(); if(loggedIn){ this.MJP.style.cursor='text'; }else{ this.MJP.style.cursor='pointer'; }this.MJP.onblur=function(){ if(JA.xhU) JA.CS(); }; this.MJP.onkeyup=function(eu){ if(mQE) if(mQE()){ JA.MJP.blur(); return; }if(!JA.xhU){ JA.xhU=true; JA.rJj(); }if(!JA.weS){ if(JA.MJP.value.indexOf('\n')!=-1){ JA.MJP.value=Xx(JA.MJP.value.replace('\n','')); }}var qc=eu; if(!qc) qc=window.event; if(qc) if(qc.keyCode==27){ JA.CS(false); return; }if(!JA.weS){ if(qc) if(qc.keyCode==13){ JA.CS(true); return; }}JA.value=JA.MJP.value; JA.cO(); Om(JA.value,false); return false; }; JA.MJP.onmouseup=JA.MJP.onkeyup; return false; }VP.prototype.aP=function(width,height,wRl){ this.width=width; this.LD.style.width=width+'px'; this.MJP.style.width=width+'px'; if(!wRl){ this.cO(height); }}; VP.prototype.Kt=function(gD){ if(gD==''||gD==null||gD==undefined) gD=11; this.gD=gD; this.MJP.style.fontSize=gD+'px'; this.cO(); }; VP.prototype.Ix=function(jVe){ if(jVe) this.MJP.style.textDecoration='underline'; else this.fq(this.MiP); }; VP.prototype.Qi=function(lX){ this.MJP.style.fontWeight=lX?'bold':'normal'; this.fq(this.MiP); }; VP.prototype.wE=function(vBj){ this.MJP.style.fontStyle=vBj?'italic':'normal'; }; VP.prototype.fq=function(aDR){ this.MiP=aDR; this.MJP.style.textDecoration=aDR?'line-through':'none'; }; VP.prototype.cO=function(krY){ var XB=dY(this.value,this.width,this.SPf,this.gD,false,false); if(krY) XB=Math.max(krY,XB); this.LD.style.height=XB+'px'; this.MJP.style.height=XB+'px'; this.Td(XB); }; VP.prototype.KH=function(value,OLQ){ this.value=value; this.MJP.value=value; }; VP.prototype.tn=function(width){ this.width=width; this.MJP.style.width=width+'px'; this.LD.style.width=width+'px'; this.cO(); }; VP.prototype.OR=function(){ this.MJP.focus(); this.MJP.onkeyup(); }; VP.prototype.CS=function(ovW){ this.xhU=false; this.MJP.blur(); this.Om(this.value,true,ovW); };function Ji(parentElement,Om,value,gD,fontWeight,SPf,BIi,LQW){ var JA=this; this.parentElement=parentElement; this.Om=function(){}; this.LQW=LQW; this.value=value; this.gD=gD; this.fontWeight=fontWeight; this.SPf=SPf; this.BIi=BIi; this.xhU=false; this.mei=false; this.LD=document.createElement('div'); this.LD.style.position='relative'; this.LD.style.overflow='hidden'; this.eD=document.createElement('a'); this.eD.style.textDecoration='none'; this.eD.style.display='block'; this.eD.className=this.SPf; this.eD.style.whiteSpace='nowrap'; this.eD.style.fontSize=this.gD+'px'; this.eD.style.fontWeight=this.fontWeight; this.eD.style.overflow='hidden'; this.KH(this.value); this.Om=Om; this.LD.appendChild(this.eD); this.parentElement.appendChild(this.LD); if(loggedIn){ this.eD.style.cursor='text'; }var bR=function(){ if(JA.xhU) return; if(JA.LQW) JA.LQW(); JA.xhU=true; var EH=document.createElement('input'); EH.setAttribute("autocomplete","off"); EH.style.position='absolute'; EH.style.left='0px'; EH.style.top='0px'; EH.style.width=JA.eD.offsetWidth+'px'; EH.style.height=JA.eD.offsetHeight+(isSafari?10:0)+'px'; EH.style.overflow='hidden'; EH.style.border='none'; EH.style.paddingTop='0px'; EH.style.paddingLeft='0px'; EH.style.paddingRight='0px'; EH.style.paddingBottom='0px'; EH.style.marginTop='0px'; EH.style.marginLeft='0px'; EH.style.marginRight='0px'; EH.style.marginBottom='0px'; EH.style.background='transparent'; LM(JA.eD); JA.eD.innerHTML='&nbsp;'; JA.eD.style.width='1px'; if(!isSafari) EH.className=JA.SPf; EH.style.fontSize=JA.gD+'px'; EH.style.fontWeight=JA.fontWeight; JA.LD.appendChild(EH); EH.value=JA.value; EH.onblur=function(){ JA.LD.removeChild(EH); JA.KH(JA.value,false); setTimeout(function(){ JA.xhU=false; },300); return false; }; EH.onkeyup=function(eu){ var qc=eu; if(!qc) qc=window.event; if(qc) if(qc.keyCode==13){ EH.blur(); return; }JA.value=EH.value; var JO=cu(JA.value,JA.SPf,JA.gD,JA.fontWeight=='bold',null); EH.style.width=JO+30+'px'; JA.LD.style.width=JO+30+'px'; Om(EH.value,false,JO+30); return false; }; EH.onmouseup=EH.onkeyup; EH.onkeyup(); setTimeout(function(){ EH.focus(); },100); return false; }; this.eD.onmousedown=function(eu){ if(JA.Xvm){ var vY=new Date().getTime(); JA.QvS=vY; }}; this.eD.onmouseup=function(eu){ if(JA.xhU) return true; var vY=new Date().getTime(); var fA=(vY-JA.QvS)>800; var pP=false; if(JA.BIi) pP=JA.BIi(); if(JA.Xvm&&!fA){ if(!pP) JA.mei=true; return false; }else{ if(!pP) bR(); return false; }}; }Ji.prototype.st=function(url){ var JA=this; this.EX=url; this.Xvm=true; this.eD.href=url; this.eD.style.cursor='pointer'; this.eD.style.textDecoration=''; this.eD.onclick=function(eu){ if(JA.mei){ JA.mei=false; return ia(JA.EX,eu); }else return false; }; }; Ji.prototype.EP=function(lX){ this.fontWeight=lX?'bold':'normal'; this.eD.style.fontWeight=this.fontWeight; this.dB(); }; Ji.prototype.Gq=function(gD){ this.gD=gD; this.eD.style.fontSize=gD+'px'; this.dB(); }; Ji.prototype.dB=function(){ var JO=cu(this.value,this.SPf,this.gD,this.fontWeight=='bold',null); JO=Math.max(JO,20); this.eD.style.width=JO+'px'; this.LD.style.width=JO+'px'; return JO; }; Ji.prototype.vZ=function(Npj){ this.eD.style.cursor=Npj?'text':'pointer'; }; Ji.prototype.KH=function(value,OLQ){ this.value=value; if(value==''||Xx(value)==''){ this.eD.innerHTML='&nbsp;'; }else{ LM(this.eD); this.eD.appendChild(document.createTextNode(value)); }var JO=this.dB(); this.Om(value,!OLQ,JO); };function OB(wSV,type,nTC,UlA){ this.wSV=wSV; this.type=type; this.nTC=nTC; this.UlA=UlA; }OB.prototype.remove=function(){ if(isIE){ this.wSV.detachEvent(this.type,this.nTC); }else{ this.wSV.removeEventListener(this.type,this.nTC,this.UlA); }}; var oT=0; var HJ='hbridge-'; function iK(){ oT++; return HJ+oT; }function fG(parent,es,lx){ var Hb=bD(); Hb.style.left='-10000px'; Hb.style.top='-10000px'; uH().appendChild(Hb); var cr=new Object(); var Yd=''; var Nb=es.split(' id="'); Yd+=Nb[0]; for(var gv=1;gv<Nb.length;gv++){ var ww=Nb[gv]; ww=Nb[gv]; Yd+=' id="'; var QS=iK(); Yd+=(QS+'"'); var ie=ww.indexOf('"'); var jR=ww.substring(0,ie); cr[jR]=QS; Yd+=ww.substring(ie+1); }Hb.innerHTML=Yd; for(var gv in cr){ lx[gv]=document.getElementById(cr[gv]); }uH().removeChild(Hb); while(Hb.childNodes&&Hb.childNodes.length>0){ var lw=Hb.firstChild; Hb.removeChild(lw); parent.appendChild(lw); }}function Yx(){ }Yx.prototype.WA=function(){ if(this.notifyCount>3000) return; if(this.wce) return; for(var gv in this.images){ if(!this.images[gv].complete){ return; }}this.wce=true; clearInterval(this.wWP); this.iYI(); }; Yx.prototype.mR=function(images,iYI){ this.wce=false; this.images=images; this.iYI=iYI; var JA=this; for(var gv in images){ images[gv].onload=function(){ JA.WA(); }; }this.WA(); this.wWP=setInterval(function(){ JA.WA(); },500); }; Yx.jD=function(image,QuP){ if(image.complete){ QuP(); return; }var cU=new Yx(); cU.mR([image],QuP); }; function Uo(MTX){ var BT=''; for(var gv in MTX){ BT+=Fx(gv,MTX[gv]); }return BT; }function Fx(name,OD){ if(OD==null) return ''; if(!(OD instanceof Array)){ return '<a n="'+escape(name)+'" v="'+escape(OD)+'"/>\n'; }else{ var BT=''; BT+='<a n="'+escape(name)+'">\n'; for(var gv in OD){ BT+=Fx(gv,OD[gv]); }BT+='</a>\n'; return BT; }}function rZ(COE){ if(COE==null||COE==''||COE=='null') return new Array(); var No=new RegExp('<a n="([^"]*)" v="([^"]*)"/>|<a n="([^"]*)">|(</a>)'); var Np=new Array(); var QZ=new Array(); var RO=new Array(); var tags=COE.split('\n'); for(var gv in tags){ var Yq=tags[gv]; var WZ=No.exec(Yq); if(WZ==null) continue; var Ma=false; var name=unescape(WZ[1]); var value=unescape(WZ[2]); if(WZ[3]){ Ma=true; name=unescape(WZ[3]); }var uO=WZ[4]; if(!uO){ if(!Ma){ RO[''+name]=value; }else{ Np.push(RO); QZ.push(name); RO=new Array(); }}else{ var Hr=Np.pop(); var pX=QZ.pop(); Hr[pX]=RO; RO=Hr; }}return RO; }var bM={ org:'http://www.JSON.org',copyright:'(c)2005 JSON.org',license:'http://www.crockford.com/JSON/license.html',stringify:function(WTi){ var LL,gv,ms,ww='',no; switch(typeof WTi){ case 'object': if(WTi){ if(WTi instanceof Array){ for(gv=0;gv<WTi.length;++gv){ no=this.stringify(WTi[gv]); if(ww){ ww+=','; }ww+=no; }return '['+ww+']'; }else if(typeof WTi.toString!='undefined'){ for(gv in WTi){ no=WTi[gv]; if(typeof no!='undefined'&&typeof no!='function'){ no=this.stringify(no); if(ww){ ww+=','; }ww+=this.stringify(gv)+':'+no; }}return '{'+ww+'}'; }}return 'null'; case 'number': return isFinite(WTi)?String(WTi):'null'; case 'string': ms=WTi.length; ww='"'; for(gv=0;gv<ms;gv+=1){ LL=WTi.charAt(gv); if(LL>=' '){ if(LL=='\\'||LL=='"'){ ww+='\\'; }ww+=LL; }else{ switch(LL){ case '\b': ww+='\\b'; break; case '\f': ww+='\\f'; break; case '\n': ww+='\\n'; break; case '\r': ww+='\\r'; break; case '\t': ww+='\\t'; break; default: LL=LL.charCodeAt(); ww+='\\u00'+Math.floor(LL/16).toString(16)+(LL%16).toString(16); }}}return ww+'"'; case 'boolean': return String(WTi); default: return 'null'; }},parse:function(text){ var tQ=0; var ch=' '; function error(WZ){ throw{ name:'JSONError',message:WZ,tQ:tQ-1,text:text
}; }function mJ(){ ch=text.charAt(tQ); tQ+=1; return ch; }function EC(){ while(ch!==''&&ch<=' '){ mJ(); }}function IO(){ var gv,ww='',Ul,HW; if(ch=='"'){ outer:while(mJ()){ if(ch=='"'){ mJ(); return ww; }else if(ch=='\\'){ switch(mJ()){ case 'b': ww+='\b'; break; case 'f': ww+='\f'; break; case 'n': ww+='\n'; break; case 'r': ww+='\r'; break; case 't': ww+='\t'; break; case 'u': HW=0; for(gv=0;gv<4;gv+=1){ Ul=parseInt(mJ(),16); if(!isFinite(Ul)){ break outer; }HW=HW*16+Ul; }ww+=String.fromCharCode(HW); break; default: ww+=ch; }}else{ ww+=ch; }}}error("Bad string"); }function vR(){ var sS=[]; if(ch=='['){ mJ(); EC(); if(ch==']'){ mJ(); return sS; }while(ch){ sS.push(OD()); EC(); if(ch==']'){ mJ(); return sS; }else if(ch!=','){ break; }mJ(); EC(); }}error("Bad array"); }function aF(){ var nd,dQ={}; if(ch=='{'){ mJ(); EC(); if(ch=='}'){ mJ(); return dQ; }while(ch){ nd=IO(); EC(); if(ch!=':'){ break; }mJ(); dQ[nd]=OD(); EC(); if(ch=='}'){ mJ(); return dQ; }else if(ch!=','){ break; }mJ(); EC(); }}error("Bad object"); }function qe(){ var ie='',no; if(ch=='-'){ ie='-'; mJ(); }while(ch>='0'&&ch<='9'){ ie+=ch; mJ(); }if(ch=='.'){ ie+='.'; while(mJ()&&ch>='0'&&ch<='9'){ ie+=ch; }}if(ch=='e'||ch=='E'){ ie+='e'; mJ(); if(ch=='-'||ch=='+'){ ie+=ch; mJ(); }while(ch>='0'&&ch<='9'){ ie+=ch; mJ(); }}no=+ie; if(!isFinite(no)){ error("Bad number"); }else{ return no; }}function vc(){ switch(ch){ case 't': if(mJ()=='r'&&mJ()=='u'&&mJ()=='e'){ mJ(); return true; }break; case 'f': if(mJ()=='a'&&mJ()=='l'&&mJ()=='s'&&mJ()=='e'){ mJ(); return false; }break; case 'n': if(mJ()=='u'&&mJ()=='l'&&mJ()=='l'){ mJ(); return null; }break; }error("Syntax error"); }function OD(){ EC(); switch(ch){ case '{': return aF(); case '[': return vR(); case '"': return IO(); case '-': return qe(); default: return ch>='0'&&ch<='9'?qe():vc(); }}return OD(); }}; document.onkeypress=function(eu){ var event=eu?eu:window.event; var rb=event.keyCode; var YW=String.fromCharCode(event.keyCode); for(var gv in dn) if(YW==dn[gv]){ if(tm.hOP){ preventDefault(eu); }}}; document.onkeyup=function(eu){ var event=eu?eu:window.event; var rb=event.keyCode; var YW=String.fromCharCode(event.keyCode); for(var gv in dn) if(YW==dn[gv]){ if(tm.hOP){ preventDefault(eu); }}}; var dn=['A','Z','Q','S','X','1']; document.onkeydown=function(eu){ var event=eu?eu:window.event; var rb=event.keyCode; var YW=String.fromCharCode(event.keyCode); if(tm.hOP){ Mr(eu,YW,'A',function(){tm.nW();}); Mr(eu,YW,'Z',function(){tm.ju();}); Mr(eu,YW,'Q',function(){tm.Oh();}); Mr(eu,YW,'S',function(){tm.Tr(false);}); Mr(eu,YW,'X',function(){tm.Tr(true);}); Mr(eu,YW,'1',function(){tm.IA();}); if(rb==27){ preventDefault(eu); tm.cY(); }}}; function Mr(eu,obX,bqb,YvY){ if(obX==bqb){ preventDefault(eu); YvY(); }};function sp(entries,rG,rS){ this.entries=entries; this.rG=rG; this.rS=rS; }sp.prototype.kV=function(){ var JA=this; this.LD=document.createElement('div'); var rG=this.rG; var rS=this.rS; var fs=false; if(rG){ for(var gv in this.entries){ var LK=this.entries[gv]; if(LK.Ab.length>0){ fs=true; break; }}}for(var gv in this.entries){ var LK=this.entries[gv]; if(!LK.fia){ LK.kV(this.LD,fs,rG,rS); }}}; sp.prototype.qL=function(OLM,GWa){ for(var gv=0;gv<this.entries.length;gv++){ var LK=this.entries[gv]; if(LK==GWa){ this.entries.splice(gv,0,OLM); this.kV(); GWa.LD.parentNode.insertBefore(OLM.LD,GWa.LD); break; }}}; sp.prototype.bd=function(OLM){ this.entries.push(OLM); this.kV(); }; sp.prototype.Hl=function(VFA,Ker){ for(var gv=0;gv<this.entries.length;gv++){ var LK=this.entries[gv]; if(LK==VFA){ if(Ker){ this.entries.splice(gv+1,0,Ker); this.kV(); Ker.LD.parentNode.replaceChild(Ker.LD,VFA.LD); }this.entries.splice(gv,1); break; }}}; sp.LNG=17; sp.prototype.Pb=function(iGv,pJ){ for(var gv in this.entries){ var nq=this.entries[gv].Pb(iGv,pJ); if(nq) break; }}; sp.prototype.tW=function(uf,RPH){ var pw=null; for(var gv in this.entries){ pw=this.entries[gv].tW(uf,RPH); if(pw!=null) break; }return pw; }; sp.prototype.tn=function(width){ for(var gv in this.entries){ this.entries[gv].tn(width); }}; function aM(isExpanded,dZ,Ab,lc,sb,wN,qo,uf){ this.isExpanded=isExpanded; this.dZ=dZ; this.lc=lc; this.sb=sb; this.wN=wN; this.qo=qo; this.Ab=Ab; this.uf=uf; this.fia=false; }aM.prototype.Pb=function(iGv,pJ){ if(this.uf){ var nq=iGv(this.uf,this); if(nq) return true; }if(!pJ){ for(var gv in this.Ab){ var nq=this.Ab[gv].Pb(iGv); if(nq) return true; }}return false; }; aM.prototype.tW=function(uf,RPH){ if(RPH){ if(RPH(this.uf)) return this; }if(this.uf==uf) return this; var pw=null; for(var gv in this.Ab){ pw=this.Ab[gv].tW(uf,RPH); if(pw!=null) break; }return pw; }; aM.prototype.hE=function(WBp){ this.Ab=WBp; this.tOC=false; LM(this.QkJ); if(this.isExpanded){ this.isExpanded=false; this.tC(true); }}; aM.prototype.tC=function(isExpanded,wxd){ if(this.isExpanded==isExpanded) return; this.isExpanded=isExpanded; if(this.Ab.length>0){ this.uu(this.oAG,this.rG,this.rS); if(this.qo) this.qo(this.isExpanded); }if(this.sb) this.sb(wxd); }; aM.prototype.kV=function(parentElement,oAG,rG,rS){ this.oAG=oAG; this.rG=rG; this.rS=rS; this.fia=true; this.parentElement=parentElement; var JA=this; this.LD=document.createElement('div'); this.LD.style.whiteSpace='nowrap'; this.tkt=document.createElement('div'); this.tkt.style.paddingBottom='4px'; this.QkJ=document.createElement('div'); this.ND=oAG?sp.LNG:0; this.QkJ.style.paddingLeft=sp.LNG+'px'; this.tis=null; this.sT=null; if(this.Ab.length>0){ this.tis=document.createElement('div'); this.tis.style.cursor='pointer'; this.tis.style.fontSize='1px'; this.tis.style.width=17+'px'; this.tis.style.height=14+'px'; this.Kcs=GP(); this.Kcs.width=14; this.Kcs.height=14; this.tis.appendChild(this.Kcs); this.tkt.appendChild(this.tis); }else if(oAG){ var sT=document.createElement('div'); sT.style.fontSize='1px'; this.sT=sT; sT.style.width='17px'; sT.style.height='14px'; this.tkt.appendChild(sT); }var leftMargin=(oAG||(this.Ab.length>0))?sp.LNG:0; this.XK=this.dZ(leftMargin,this.LD); var nP=Fk([this.tis,this.sT,this.XK],true); this.tkt.appendChild(nP); this.LD.appendChild(this.tkt); this.LD.appendChild(this.QkJ); this.QkJ.style.display='none'; if(this.Ab.length>0) this.uu(oAG,rG,rS); this.XK.style.cursor='pointer'; var MJ=function(eu){ JA.tC(!JA.isExpanded,eu); return true; }; var wQ=rS?this.tis:this.tkt; if(wQ){ wQ.onmousedown=MJ; if(isIE) wQ.ondblclick=function(eu){ wQ.onmousedown(eu); }}this.parentElement.appendChild(this.LD); }; aM.prototype.cF=function(uWa){ this.uWa=uWa; }; aM.prototype.tn=function(width){ if(this.uWa){ this.uWa(width); }for(var gv in this.Ab){ this.Ab[gv].tn(width-this.ND); }}; aM.prototype.uu=function(oAG,rG,rS){ if(!this.tOC&&this.isExpanded){ var fs=false; if(rG){ for(var gv in this.Ab){ var iZ=this.Ab[gv]; if(iZ.Ab.length>0){ fs=true; break; }}}for(var gv in this.Ab){ var iZ=this.Ab[gv]; iZ.kV(this.QkJ,oAG||fs,rG,rS); }}var DY='/web/images/twister-'+(this.isExpanded?'open.gif':'closed.gif'); this.Kcs.src=DY; this.QkJ.style.display=this.isExpanded?'':'none'; if(!this.tOC&&this.isExpanded) this.tOC=true; if(this.tOC) if(this.lc) this.lc(this.isExpanded); }; var ns=['Sun','Mon','Tue','Wed','Thu','Fri','Sat']; var tY=['January','February','March','April','May','June','July','August','September','October','November','December']; function RC(Ko){ var y=Ko.getYear(); if(y>2000) return y; if(y>100) return 1900+y; return 2000+y; }function hc(Ko){ var iB='am'; var Yc=Ko.getHours(); if(Yc>=12){ iB='pm'; Yc-=12; }if(Yc==0) Yc=12; var OK=Ko.getMinutes(); if(OK<10) OK="0"+OK; return Yc+':'+OK+' '+iB; }function sF(value,label,rim){ var kp=document.createElement('OPTION'); kp.value=value; if(isIE){ kp.text=label; rim.add(kp); }else{ kp.innerHTML=fH(label); rim.appendChild(kp); }}function NR(IO){ var LL=IO; LL=ov(LL,'&','&amp;'); LL=ov(LL,'<','&lt;'); LL=ov(LL,'>','&gt;'); LL=ov(LL,'\"','&quot;'); LL=ov(LL,'\'','&apos;'); return LL; }function fH(IO){ var LL=IO; LL=ov(LL,'<','&lt;'); LL=ov(LL,'>','&gt;'); return LL; }function KX(jL,BW,dSl,KkT){ if(NB||(BW.indexOf('.gif')!=-1)||(BW.indexOf('.jpg')!=-1)){ if(BW==null){ jL.style.backgroundImage=''; }else{ jL.style.backgroundImage='url('+BW+')'; jL.style.backgroundRepeat=dSl?'repeat':'no-repeat'; }}if(isIE){ if(BW==null){ jL.style.filter=''; }else{ var aI=KkT?'scale':'crop'; jL.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+BW+"', sizingMethod='"+aI+"')"; }}}function ov(ww,sS,FH){ if(!ww&&ww!=0) return ''; for(var gv=0;gv<ww.length;gv++){ if(ww.charAt(gv)==sS) ww=ww.substring(0,gv)+FH+ww.substring(gv+1,ww.length); }return ww; }function Yt(name,value,Hwx) { var AY=new Date(); AY.setTime(AY.getTime()+(1000*60*60*365*10)); var expires="; expires="+AY.toGMTString(); document.cookie=name+"="+value+"; domain=."+Zv.VQU+"; expires="+AY.toGMTString()+"; path="+Hwx; }function ih(name) { var vq=name+"="; var Yj=document.cookie.split(';'); var OD=null; for(var gv=0;gv<Yj.length;gv++) { var LL=Yj[gv]; while(LL.charAt(0)==' ') LL=LL.substring(1,LL.length); if(LL.indexOf(vq)==0) OD=LL.substring(vq.length,LL.length); }return OD; }function YK(name,Hwx){ var VF=new Date(); VF.setTime(VF.getTime()-1000); document.cookie=name+"=null; domain=."+Zv.VQU+"; expires="+VF.toGMTString()+"; path="+Hwx; }function aR(){ var fD=new Array(); var GH=0; var cC=0; var Yj=document.cookie.split(';'); for(var gv=0;gv<Yj.length;gv++) { var LL=Yj[gv]; while(LL.charAt(0)==' ') LL=LL.substring(1,LL.length); if(LL.indexOf('untitled-')==0){ var xD=LL.substring(0,LL.indexOf('=')); GH++; if(GH>cC){ fD.push(xD); }}}for(var gv in fD) YK(fD[gv],'/'); }function Pe(){ Yt(fl,'test','/'); if(ih(fl)==null){ return false; }else{ return true; }}function checkCookiesEnabled(){ if(!Pe()){ alert('You need to enable \'cookies\' in your web browser preferences before you can proceed'); return false; }return true; }function mr(){ var wX=navigator.userAgent; if(wX.indexOf('Mac')!=-1){ if(wX.indexOf('MSIE')!=-1) return 'Please use the Firefox web browser on the Mac (download it from www.getfirefox.com).'; }else if(wX.indexOf('Win')!=-1){ if(wX.indexOf('MSIE')!=-1){ var sS=wX.indexOf('MSIE'); var FH=wX.substring(sS).indexOf(' '); var LL=wX.substring(sS).indexOf(';'); var version=wX.substring(sS).substring(FH+1,LL); if(parseFloat(version)<5.5) return 'Please upgrade your version of Internet Explorer to version 6.0 or above, or use Firefox (www.getfirefox.com)'; }}return null; }function ii(EX){ window.open(EX,'',''); return false; }function ar(event){ var eu=event?event:window.event; var Wo=0; var Tt=0; var sQ=0; var oZ=0; if(eu!=null){ if(isIE){ sQ=eu.shiftKey; Tt=eu.altKey; Wo=eu.ctrlKey; }else{ sQ=eu.shiftKey; Wo=eu.ctrlKey; Tt=eu.altKey; oZ=eu.metaKey; }}if(Wo||oZ||sQ){ return true; }else return false
}function ia(EX,eu){ if(ar(eu)){ return true; }else{ if(colorsAndSettings.openLinksInNewWindow){ window.open(EX,'',''); return false; }else{ if(commandProcessor.qDj.length>0){ if(!(commandProcessor.qDj.length==1&&(commandProcessor.qDj[0].name=='save-panel-geometry'||commandProcessor.qDj[0].name=='save-multiple-panel-geometry'))){ alert('We are still saving your changes to the Protopage server - you cannot navigate away from this page until your changes have been saved. (You can use shift-click to open links in a new window until then...)'); return false; }}return true; }}}var NW=new Array(); function Xn(OU){ if(OU.name) return OU.name; if(!NW[OU]){ var code=OU.toString(); var sS=code.indexOf(' '); var FH=code.indexOf('('); var name=code.substring(sS+1,FH); NW[OU]=name; }return NW[OU]; }function gI(OU){return Xn(OU);}function co(OU){return Xn(OU)+'();';}function uS(){ if(isIE||CO||lj){ return(CO?0:document.documentElement.scrollTop)+document.body.scrollTop; }else{ return window.scrollY; }}function tN(){ if(isIE||CO||lj){ return(CO?0:document.documentElement.scrollLeft)+document.body.scrollLeft; }else{ return window.scrollX; }}function ge(){ if(isIE||CO||lj){ return(CO?0:document.documentElement.scrollLeft)+document.body.scrollLeft+document.body.clientWidth; }else{ return window.scrollX+document.width; }}function qn(){ if(isIE||CO||lj){ return document.body.clientWidth; }else{ return document.width; }}var Ua=null; function RV(){ if(isIE||CO||lj){ return(CO?0:document.documentElement.scrollTop)+document.body.scrollTop+document.body.clientHeight; }else{ if(!Ua){ Ua=document.createElement('div'); Ua.style.width='1px'; Ua.style.height='100%'; Ua.style.position='fixed'; Ua.style.left='-1px'; Ua.style.top='0px'; uH().appendChild(Ua); }var height=Ua.scrollHeight+window.scrollY; return height; }}function hH(ww){ try{ return parseInt(ww); }catch(eu){ return 0; }}function gS(Cp,eu){ var Dq; if(eu&&eu.which){ eu=eu; Dq=eu.which; }else{ eu=event; Dq=eu.keyCode; }if(Dq==13){ document.getElementById(Cp).submit(); Ac(false); return false; }else{ return true; }}function Xx(ww){ if(!ww==null||ww==undefined) return ''; return ww.replace(/^\s+/,'').replace(/\s+$/,''); }var Ki=new Date().getTime(); function uid(){ Ki+=1; return(Math.round(Math.random()*10000000))+'-'+Ki; }function uH(){ return document.body; }function LM(jL){ if(!jL) return; while(jL.childNodes.length>0) jL.removeChild(jL.childNodes[0]); }function du(x,y){ this.x=x; this.y=y; this.TU=function(Cj){ return new du(this.x-Cj.x,this.y-Cj.y); }; }function BR(sS){ var FH=new Array(); for(var gv in sS) FH[gv]=sS[gv][0]; return FH; }function GP(){ if(isSafari!=undefined&&isSafari) return document.createElement('img'); else return new Image(); }function preventDefault(event){ if(isIE){ if(window.event) window.event.returnValue=false; }else{ if(event) event.preventDefault(); }}function stopPropagation(event){ if(isIE){ window.event.cancelBubble=true; window.event.returnValue=false; }else{ event.cancelBubble=true; event.preventDefault(); event.stopPropagation(); }}function Du(aF){ return eval('('+bM.stringify(aF)+')'); }function nx(text,Mfr,lX,vBj){ var LD=document.createElement('div'); LD.className='scheme-body-text'; LD.style.fontSize=Mfr+'px'; if(vBj) LD.style.fontStyle='italic'; LD.style.fontWeight=lX?'bold':'normal'; var oe=text.split('\n'); for(var gv in oe){ var jf=document.createElement('div'); if(oe[gv]==''){ var DX=document.createElement('div'); DX.innerHTML='&nbsp;'; jf.appendChild(DX); }else{ jf.appendChild(document.createTextNode(oe[gv])); }LD.appendChild(jf); }return LD; }var Xo=new Array(); function dY(text,width,className,Mfr,lX,vBj){ for(var gv in Xo){ var LL=Xo[gv]; if(LL.className==className&&LL.Mfr==Mfr&&LL.lX==lX&&LL.vBj==vBj&&LL.text==text&&LL.width==width){ return LL.height; }}var LD=document.createElement('div'); LD.style.position='absolute'; LD.style.left='-10000000px'; LD.style.top='-10000000px'; LD.style.width=width+'px'; LD.className=className; LD.style.fontSize=Mfr+'px'; if(vBj) LD.style.fontStyle='italic'; LD.style.fontWeight=lX?'bold':'normal'; var oe=text.split('\n'); for(var gv in oe){ var jf=document.createElement('div'); jf.appendChild(document.createTextNode(Xx(oe[gv])==''?'anti-collapse':oe[gv])); LD.appendChild(jf); }uH().appendChild(LD); var XB=LD.offsetHeight; uH().removeChild(LD); var LL=new Object(); LL.className=className; LL.Mfr=Mfr; LL.lX=lX; LL.vBj=vBj; LL.text=text; LL.width=width; LL.height=XB; Xo.push(LL); return XB; }function Xu(Yd,width){ var LD=document.createElement('div'); LD.style.position='absolute'; LD.style.left='-10000000px'; LD.style.top='-10000000px'; LD.style.whiteSpace='nowrap'; LD.style.width=width+'px'; LD.appendChild(document.createTextNode('Ay')); uH().appendChild(LD); var XB=LD.offsetHeight; uH().removeChild(LD); return XB; }var Ow=new Array(); function eG(className,Mfr,lX,vBj){ for(var gv in Ow){ var LL=Ow[gv]; if(LL.className==className&&LL.Mfr==Mfr&&LL.lX==lX&&LL.vBj==vBj){ return LL.height; }}var LD=document.createElement('div'); LD.style.position='absolute'; LD.style.left='-10000000px'; LD.style.top='-10000000px'; LD.style.whiteSpace='nowrap'; LD.className=className; LD.style.fontSize=Mfr+'px'; if(vBj) LD.style.fontStyle='italic'; LD.style.fontWeight=lX?'bold':'normal'; LD.appendChild(document.createTextNode('Ay')); uH().appendChild(LD); var XB=LD.offsetHeight; uH().removeChild(LD); var LL=new Object(); LL.className=className; LL.Mfr=Mfr; LL.lX=lX; LL.vBj=vBj; LL.height=XB; Ow.push(LL); return XB; }var FS=null; var tK=new Array(); function cu(text,className,Mfr,lX,vBj){ for(var gv in tK){ var LL=tK[gv]; if(LL.text==text){ if(LL.className==className&&LL.Mfr==Mfr&&!!LL.lX==!!lX&&!!LL.vBj==!!vBj){ return LL.width; }}}log('textwidth:'+text+', '+className+', '+Mfr+', '+lX+', '+vBj); if(FS==null){ FS=document.createElement('div'); var LD=FS; LD.style.position='absolute'; LD.style.left='-8000px'; LD.style.top='-8000px'; LD.style.whiteSpace='nowrap'; uH().appendChild(LD); }var LD=FS; LD.className=className; LD.style.fontSize=Mfr+'px'; LD.style.fontStyle=vBj?'italic':'normal'; LD.style.fontWeight=lX?'bold':'normal'; LD.appendChild(document.createTextNode(text)); var JO=LD.offsetWidth; LM(LD); var LL=new Object(); LL.text=text; LL.className=className; LL.Mfr=Mfr; LL.lX=!!lX; LL.vBj=!!vBj; LL.width=JO; tK.push(LL); return JO; }function AV(aF,SF){ var Ot=new SF(); for(var gv in aF) Ot[gv]=aF[gv]; return Ot; }function GA(qA,SF){ for(var gv in qA) qA[gv]=AV(qA[gv],SF); }function gm(sS,FH,LL){ return((sS>=FH)&&(sS<=LL)); }function DE(url){ var WG=Ex(url,'/',3); return WG; }function Ex(ww,LL,ie){ var PR=0; for(var gv=0;gv<ww.length;gv++){ if(ww.charAt(gv)==LL) PR++; if(PR==ie) return ww.substr(0,gv); }return ww.substr(0,gv+1); }function Fk(elements,XnI,JGF){ var table=document.createElement('table'); table.cellPadding=0; table.cellSpacing=0; var FB=document.createElement('tbody'); var Kg=document.createElement('tr'); Kg.vAlign='middle'; if(XnI) Kg.vAlign='top'; if(XnI=='bottom') Kg.vAlign='bottom'; FB.appendChild(Kg); table.appendChild(FB); for(var gv in elements){ var jL=elements[gv]; if(jL==null) continue; var RF=document.createElement('td'); if(JGF&&JGF[gv]) RF.width=JGF[gv]; RF.appendChild(jL); RF.vAlign='middle'; if(XnI) RF.vAlign='top'; if(XnI=='bottom') RF.vAlign='bottom'; Kg.appendChild(RF); }return table; }function mA(aib,XnI,JGF){ var table=document.createElement('table'); table.cellPadding=0; table.cellSpacing=0; var FB=document.createElement('tbody'); table.appendChild(FB); for(var fJ in aib){ var MO=aib[fJ]; var cm=function(MO){ var Kg=document.createElement('tr'); Kg.vAlign='middle'; if(XnI) Kg.vAlign='top'; FB.appendChild(Kg); var elements=MO; var iC=function(elements){ for(var gv in elements){ var jL=elements[gv]; if(jL==null) continue; var RF=document.createElement('td'); if(JGF&&JGF[gv]) RF.width=JGF[gv]; RF.appendChild(jL); RF.vAlign='middle'; if(XnI) RF.vAlign='top'; Kg.appendChild(RF); }}(elements); }(MO); }return table; }function Jp(BW,YNu,acr){ var LD=document.createElement('div'); LD.style.width=YNu+'px'; LD.style.height=acr+'px'; KX(LD,BW,false); return LD; }function UD(BW,YNu,acr){ var JT=GP(); JT.src=BW; return JT; }function lA(GIh,vvJ){ if(!vvJ) vvJ='feed'; var Ti='http://images.'+Zv.VQU+'/favIcon/'+vvJ+'/'+GIh; return Ti; }function Vo(GIh){ return UD(lA(GIh),16,16); }function HL(MIZ){ var eE='/web/images/icons/'+MIZ+'.gif'; return eE; }function eT(tlg,width,kSq,cV,Ygp,fontSize){ fontSize=(fontSize?fontSize:11); var LD=document.createElement('div'); LD.style.position='relative'; LD.style.width=(width+(isIE?2:0))+'px'; LD.className='scheme-header-text'; LD.style.fontSize=fontSize+'px'; LD.style.fontWeight='normal'; LD.style.border='1px solid #'+kSq; var XB=eG('scheme-header-text',fontSize,false,false); LD.style.height=XB+(isSafari?5:0)+(isIE?2:0)+'px'; var EH=document.createElement('input'); EH.setAttribute("autocomplete","off"); EH.value=tlg; EH.onkeyup=function(eu){ var qc=eu; if(!qc) qc=window.event; if(qc) if(qc.keyCode==13){ cV(true,EH.value); return; }cV(false,EH.value); return false; }; EH.onmouseup=EH.onkeyup; cV(false,EH.value); EH.className='scheme-header-text'; EH.style.color='#000000'; EH.style.fontSize=fontSize+'px'; EH.style.fontWeight='normal'; EH.style.position='absolute'; EH.style.left='0px'; EH.style.top='0px'; EH.style.width=width+'px'; EH.style.overflow='hidden'; EH.style.border='none'; EH.style.paddingTop='0px'; EH.style.paddingLeft='0px'; EH.style.paddingRight='0px'; EH.style.paddingBottom='0px'; EH.style.marginTop='0px'; EH.style.marginLeft='0px'; EH.style.marginRight='0px'; EH.style.marginBottom='0px'; EH.style.height=XB+(isSafari?5:0)+'px'; LD.appendChild(EH); if(Ygp) Ygp(EH); return LD; }function iY(jL){ if(isIE) jL.style.styleFloat='left'; else jL.style.cssFloat='left'; }function jX(jL){ if(isIE) jL.style.styleFloat='right'; else jL.style.cssFloat='right'; }function OH(LD,text){ LM(LD); LD.appendChild(document.createTextNode(text)); }function pm(text,gD,lX,eFi){ var LD=document.createElement('div'); LD.className=eFi?'scheme-header-text':'scheme-body-text'; if(gD) LD.style.fontSize=gD+'px'; if(lX) LD.style.fontWeight=lX?'bold':'normal'; if(text) LD.appendChild(document.createTextNode(text)); return LD; }function gd(text,gD,lX,padding){ var span=document.createElement('span'); span.className='scheme-body-text'; if(gD) span.style.fontSize=gD+'px'; if(lX) span.style.fontWeight=lX?'bold':'normal'; if(padding) span.style.padding=padding+'px'; if(text) span.appendChild(document.createTextNode(text)); return span; }function CG(text,gD,VXA,padding){ var span=document.createElement('span'); span.className='scheme-header-text'; if(gD) span.style.fontSize=gD+'px'; if(VXA) span.style.fontWeight=!VXA?'bold':'normal'; if(padding) span.style.padding=padding+'px'; if(text) span.appendChild(document.createTextNode(text)); return span; }function Mw(text,gD,lX,margin,oHZ,nlL,jqo){ var sS=document.createElement('a'); sS.onclick=function(eu){ preventDefault(eu); oHZ(eu); }; sS.className='scheme-body-text links-panel-link'; sS.style.cursor='pointer'; if(jqo) sS.style.textDecoration='underline'; if(gD) sS.style.fontSize=gD+'px'; if(lX) sS.style.fontWeight=lX?'bold':'normal'; if(margin){ sS.style.margin=margin+'px'; }sS.style.lineHeight='1.5em'; if(text) sS.appendChild(document.createTextNode(text)); if(nlL){ fo.sw(sS,nlL); }return sS; }function AS(LD,eE){ if(eE){ if(isIE){ var BE=GP(); BE.width=1; BE.height=14; BE.url='/web/images/spacer.gif'; LD.appendChild(BE); LD.style.backgroundPosition='0px 1px'; }; if(!isIE) LD.style.paddingTop='1px'; LD.style.paddingLeft='21px'; LD.style.backgroundImage='url('+eE+')'; LD.style.backgroundRepeat='no-repeat'; LD.style.minHeight='16px'; }}function xZ(BW,YNu,acr){ var LD=document.createElement('div'); LD.style.width=YNu+'px'; LD.style.height=acr+'px'; LD.style.backgroundImage='url('+BW+')'; LD.style.backgroundRepeat='no-repeat'; return LD; }function HT(PFx,Fel,aUv,TBB){ var aD=new Object(); if(PFx<100&&Fel<100){ aD.JO=PFx; aD.XB=Fel; return aD; }var UP=aUv/TBB; var jU=PFx/Fel; var ER; if(jU>UP){ ER=aUv/PFx; }else{ ER=TBB/Fel; }var ZM=Math.floor(ER*PFx); var oj=Math.floor(ER*Fel); aD.JO=ZM; aD.XB=oj; return aD; }function pt(name,value){ var Yq=document.createElement('param'); Yq['name']=name; Yq['value']=value; return Yq; }; function Nm(left,top,width,height){ var LD=document.createElement('div'); LD.style.position='absolute'; LD.style.left=left+'px'; LD.style.top=top+'px'; LD.style.width=width+'px'; LD.style.height=height+'px'; return LD; }function Xb(parent){ var LD=document.createElement('div'); parent.appendChild(LD); return LD; }function mS(width){ var RF=document.createElement('td'); RF.appendChild(bW(width)); return RF; }function bW(width){ var LD=document.createElement('div'); LD.style.fontSize='1px'; LD.style.height='1px'; LD.style.width=width+'px'; return LD; }function Nq(mHQ){ var span=document.createElement('span'); span.style.fontSize='12px'; var Yd=''; for(var gv=0;gv<mHQ;gv++) Yd+='&nbsp;'; span.innerHTML=Yd; return span; }function ji(height){ var LD=document.createElement('div'); LD.style.fontSize='1px'; LD.style.height=height+'px'; LD.style.width=1+'px'; return LD; }function QI(url,width,height,Vp){ var tV=''; if(Vp){ tV=' flashvars="'; for(var gv in Vp){ tV+=(gv+'='+Vp[gv]+'&'); }tV+='" '; }var ww='<embed '+tV+' src="'+url+'" width="'+width+'" height="'+height+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>'; return ww; }function Lb(item,qA){ Fe(item,qA); }function Fe(item,qA){ for(var gv=0;gv<qA.length;gv++){ if(qA[gv]==item){ qA.splice(gv,1); gv--; }}}function hB(qA,item){ for(var gv in qA){ if(qA[gv]==item) return true; }return false; }var Lk=0; function nL(url,kIq,PgG){ var LD=document.createElement('div'); var Cp='postForm'+Lk++; var Yd='<form target="'+kIq+'" id="'+Cp+'" method="POST" action="'+url+'">'; for(var gv in PgG){ Yd+='<input type="hidden" name="'+NR(gv)+'" value="'+NR(PgG[gv])+'">'; }Yd+='</form>'; LD.innerHTML=Yd; uH().appendChild(LD); document.getElementById(Cp).submit(); setTimeout(function(){ uH().removeChild(LD); },60000); }function sk(url,ELG){ if(ok(ELG)==0) return url; if(url.indexOf('?')!=-1){ if(!mc(url,'?')){ if(!mc(url,'&')){ url=url+'&'; }}}else{ url=url+'?'; }var LL=0; for(var gv in ELG){ LL++; var name=gv; var value=ELG[gv]; url=url+name+'='+value+'&'; }if(LL!=0) url=IP(url,1); return url; }function IP(YPI,hR){ var gv=Math.min(YPI.length,hR); return YPI.substring(0,YPI.length-gv); }function mc(YPI,match){ if(YPI==null||match==null||YPI==undefined||match==undefined) return false; if(YPI.lastIndexOf(match)==(YPI.length-match.length)){ return true; }return false; }function NH(YPI,match){ if(YPI==null||match==null||YPI==undefined||match==undefined) return false; if(YPI.indexOf(match)==0){ return true; }return false; }function FG(LD,left,top,width,height){ LD.style.left=left+'px'; LD.style.top=top+'px'; LD.style.width=width+'px'; LD.style.height=height+'px'; }; function bD(){ var LD=document.createElement('div'); LD.style.position='absolute'; return LD; }function wJ(jL){ try{ if(jL.addEventListener&&!CO){ jL.addEventListener('DOMMouseScroll',function(tqP){ var YU=parseInt(jL.style.height); if(!YU) YU=jL.offsetHeight; var aO=jL.firstChild.offsetHeight; var Wh=(jL.scrollTop+YU)>=aO; var BK=jL.scrollTop==0; var ZA=tqP.detail<0; var GX=tqP.detail>0; if((ZA&&BK)||(GX&&Wh)){ tqP.preventDefault(); tqP.stopPropagation(); return false; }else return true; },false); }else{ jL.onmousewheel=function(){ var YU=parseInt(jL.style.height); if(!YU) YU=jL.offsetHeight; var aO=jL.firstChild.offsetHeight; var Wh=(jL.scrollTop+YU)>=aO; var BK=jL.scrollTop==0; var wheelDelta=event.wheelDelta; if(CO) wheelDelta=-1*wheelDelta; var ZA=wheelDelta>0; var GX=wheelDelta<0; if((ZA&&BK)||(GX&&Wh)){ window.event.cancelBubble=true; window.event.returnValue=false; return false; }else return true; }; }}catch(eu){ }}function Br(ww){ ww=ww.replace(/<[A-Za-z]/g,'<x'); return ww; }function Jl(ww){ if(!ww) return ww; var Eq=''; var wg=false; for(var gv=0;gv<ww.length;gv++){ var LL=ww.charAt(gv); if(LL=='<'){ wg=true; continue; }if(ww.charAt(gv)=='>'){ wg=false; Eq+=" "; continue; }if(!wg) Eq+=LL; }return Eq; }function ok(aF){ var LL=0; for(var gv in aF) LL++; return LL; }function oa(url){ var YN=new Image(); YN.src=url; }function Sk(url,PgG){ var LD=document.createElement('div'); var Cp='postForm'+Lk++; var Yd='<form id="'+Cp+'" method="POST" action="'+url+'">'; for(var gv in PgG){ Yd+='<input type="hidden" name="'+NR(gv)+'" value="'+NR(PgG[gv])+'">'; }Yd+='</form>'; LD.innerHTML=Yd; uH().appendChild(LD); document.getElementById(Cp).submit(); }function RU(){ var anchor=document.createElement('a'); anchor.href='#'; var LD=document.createElement('div'); LD.appendChild(anchor); LD.style.position='absolute'; LD.style.left=gw()+50+'px'; LD.style.top=sB()+50+'px'; uH().appendChild(LD); anchor.focus(); uH().removeChild(LD); }function kL(parentElement,JO,XB,Yd,url,dIU){ var OU; OU=document.createElement('iframe'); OU.scrolling='no'; OU.allowTransparency=true; OU.border=0; OU.frameBorder='no'; OU.hideFocus=true; OU.BBI=0; OU.Xuu=0; OU.hspace=0; OU.vspace=0; OU.width=JO; OU.height=XB; OU.style.width=JO+'px'; OU.style.height=XB+'px'; OU.style.position='absolute'; OU.style.left='0px'; OU.style.top='0px'; parentElement.appendChild(OU); if(url){ setTimeout(function(){ OU.src=url; },dIU); }if(Yd){ setTimeout(function(){ var GI=OU.contentWindow.document; GI.open(); GI.write(Yd); GI.close(); },dIU); }return OU; }function Ml(jL,hCu){ jL.onmousemove=function(event){hCu(new MP(jL,event));}; }function BD(jL,hCu){ jL.onmousedown=function(event){hCu(new MP(jL,event));}; }function JU(jL,hCu){ jL.onmouseover=function(event){hCu(new MP(jL,event));}; }function Vr(jL,hCu){ jL.onmouseup=function(event){hCu(new MP(jL,event));}; }function ri(jL,hCu){ jL.onmouseout=function(event){hCu(new MP(jL,event));}; }function HV(jL,hCu){ jL.onclick=function(event){hCu(new MP(jL,event));}; }function WV(jL,hCu){ jL.ondblclick=function(event){hCu(new MP(jL,event));}; }function dk(jL,hCu){ tR(jL,kI,AR,hCu); }function wP(jL,hCu){ tR(jL,Fh,Yo,hCu); }function MW(jL,hCu){ return tR(jL,tc,Bb,hCu); }function gs(jL,hCu){ return tR(jL,Yi,Pr,hCu); }function OI(jL,hCu){ var We; if(isIE){ We=function(event){ hCu(new MP(jL,event)); }; jL.attachEvent(bl,We); return new OB(jL,bl,We,false); }else{ We=function(event){ var VY,Jg; VY=event.currentTarget; Jg=event.relatedTarget; if(VY==jL&&VY!=Jg&&!vg(VY,Jg)){ hCu(new MP(jL,event)); }}; jL.addEventListener(SK,We,false); return new OB(jL,SK,We,false); }}function HQ(jL,hCu){ if(isIE){ jL.onmouseleave=function(event){ hCu(new MP(jL,event)); }; }else{ jL.onmouseout=function(event){ var VY,Jg; VY=event.currentTarget; Jg=event.relatedTarget; if(VY==jL&&VY!=Jg&&!vg(VY,Jg)){ hCu(new MP(jL,event)); }}; }}function RW(elements,hCu){ if(isIE){ for(var gv in elements){ var jL=elements[gv]; jL.onmouseleave=Al(jL,elements,hCu); }}else{ for(var gv in elements){ var jL=elements[gv]; jL.onmouseout=bg(jL,elements,hCu); }}}function bg(jL,elements,hCu){ return function(event){ var VY,Jg; VY=event.currentTarget; Jg=event.relatedTarget; if(VY==jL&&VY!=Jg&&!vg(VY,Jg)){ for(var fJ in elements) if(Jg==elements[fJ]) return; hCu(new MP(jL,event)); }}; }function Al(jL,elements,hCu){ return function(){ for(var fJ in elements) if(window.event.toElement==elements[fJ]) return; hCu(new MP(jL,window.event)); }; }function vg(QBQ,nub){ try{ if(!nub) return false; while(nub.parentNode) if((nub=nub.parentNode)==QBQ) return true; return false; }catch(eu){ return false; }}function MP(jL,event){ this.jL=jL; this.event=event; this.rkV=null; this.RHP=null; this.bL=function(){ if(this.rkV==null){ var LL=gx(jL,event); this.rkV=LL.x; this.RHP=LL.y; }return this.rkV; }; this.ta=function(){ if(this.rkV==null){ this.bL(); }return this.RHP; }; }function tR(jL,Nqr,DJs,hCu){ var OU=function(event){ var YC=new MP(jL,event); hCu(YC); }; if(isIE){ jL.attachEvent(DJs,OU); return new OB(jL,DJs,OU,false); }else{ jL.addEventListener(Nqr,OU,false); return new OB(jL,Nqr,OU,false); }}function ew(jL,mVY,cFF,IJI,hjX){ BD(jL,function(YC){ hW(YC.event,jL,mVY,cFF,IJI,hjX); }); }function Xt(oPc){ return uj(oPc); }; function gx(jL,event){ if(isIE||isSafari){ return new du(window.event.offsetX,window.event.offsetY); }return uj(event).TU(Oc(jL)); }function uj(event){ if(isIE||CO){ var x=window.event.clientX+(CO?0:document.documentElement.scrollLeft)+document.body.scrollLeft; var y=window.event.clientY+(CO?0:document.documentElement.scrollTop)+document.body.scrollTop; }else{ var x=event.clientX+window.scrollX; var y=event.clientY+window.scrollY; }return new du(x,y); }function Oc(jL){ var eu=jL; var x=0; var y=0; while(true){ var Di=eu.offsetParent; if(Di==undefined) break; x+=eu.offsetLeft; y+=eu.offsetTop; eu=Di; }return new du(x,y); }function LF(LD,Jis,POk){ if(!POk) if(!rY()) return; try{ if(Jis==100){ LD.style.filter=''; LD.style.mozOpacity=''; LD.style.opacity=''; }else{ LD.style.filter='alpha(opacity='+Jis+')'; LD.style.mozOpacity=Jis/100; LD.style.opacity=Jis/100; }}catch(eu){ }}function sB(){ if(isIE||CO) return(CO?0:document.documentElement.scrollTop)+document.body.scrollTop; else return window.scrollY; }function gw(){ if(isIE||CO) return(CO?0:document.documentElement.scrollLeft)+document.body.scrollLeft; else return window.scrollX; }function lM(url,RP,iYI){ var LI=bM.stringify(RP); DL(url,LI,function(wT){ if(iYI) iYI(eval('('+wT+')')); }); }function DL(url,HK,iYI){ var rcV=BA(); rcV.open(HK==null?"GET":"POST",url,true); if(isSafari) rcV.setRequestHeader("Content-Type","text/xml"); rcV.onreadystatechange=function(){ var qH=false; qH=(rcV.readyState==4); if(qH){ var wT=rcV.responseText; iYI(wT); }}; rcV.send(HK); }function BA(){ var rcV=false; try{ rcV=new ActiveXObject("Msxml2.XMLHTTP"); }catch(eu){ try{ rcV=new ActiveXObject("Microsoft.XMLHTTP"); }catch(EM){ rcV=false; }}if(!rcV&&typeof XMLHttpRequest!=undefined){ rcV=new XMLHttpRequest(); }return rcV; }function mt(jHI){ for(var gv in panelDatas){ var TK=panelDatas[gv]; if(!TK.hn){ if(TK.tD==XE){ TK.cH=null; TK.colSpan=null; TK.AFv=true; TK.Yak=TK.left; TK.RcG=TK.top; TK.QC(true,4); }}}Ax['positioning']=jHI; Ax.xu(); DZ(XE); AD(); }function vh(){ for(var gv in panelDatas){ var TK=panelDatas[gv]; if(TK.tD!=XE) continue; if(!TK.hn){ if(!isNaN(TK.cH)||!isNaN(TK.colSpan)){ TK.cH=null; TK.colSpan=null; TK.AFv=true; }if(TK.Yak||TK.Yak==0){ TK.left=TK.Yak; TK.top=TK.RcG; TK.AFv=true; if(TK.LD) Tv(TK,TK.left,TK.top); TK.Yak=null; TK.RcG=null; }}}Ax['positioning']='free'; Ax.xu(); AD(); }function NU(){ }NU.SJ=[ new ConfigFieldAlignedGroup([ new ConfigTextField('correction','Time offset (hours)','E.g. if you are on the US West Coast then enter -3 to make this clock display East Coast times.',0,30) ]) ]; NU.prototype=new pa(); NU.prototype.JX=function(){ var JA=this; if(!this.prR.getAttribute('correction')) this.prR.setAttribute('correction',0); this.prR.NY.QW(true); this.prR.OP(); this.gj(); var Vp=new Array(); Vp['correction']=parseInt(this.prR.getAttribute('correction'))*3600*1000; Vp['faceColor']='0xffffff'; Vp['bodyColor']='0x72a2d2'; this.prR.De().innerHTML=QI('/web/images/flash/clockWidgetAnalog.swf',this.Ows,this.LvD,Vp); this.prR.Bu(function(innerWidth,QcS,wRl){ if(!wRl){ JA.gj(); JA.JX(); }}); }; NU.prototype.gj=function(){ this.Ows=this.prR.NY.innerWidth; this.LvD=this.prR.NY.QcS-6; }; function ConfigTable(Onq,fhd,geZ){ this.Onq=Onq; this.fhd=fhd; this.geZ=geZ; this.Tk=function(bH,ePV){ return new NC(this,bH,ePV,Onq,fhd,geZ); }; }function ConfigRichTextArea(Onq,defaultValue){ this.Onq=Onq; this.defaultValue=defaultValue; this.Tk=function(){ return new VU(this,Onq,defaultValue); }; }function ConfigFieldAlignedGroup(kqB){ this.kqB=kqB; this.Tk=function(bH,ePV){ return new DB(this,bH,ePV,kqB); }; }function ConfigAttribute(Onq,defaultValue){ this.Onq=Onq; this.defaultValue=defaultValue; this.Tk=function(){ return new Lc(this,Onq,defaultValue); }; }function ConfigLabelField(Onq,label,description,defaultValue,qaX,GaD){ this.Onq=Onq; this.label=label; this.description=description; this.defaultValue=defaultValue; this.qaX=qaX; this.GaD=GaD; this.Tk=function(){ return new Pq(this,Onq,label,description,defaultValue,qaX,GaD); }; }function ConfigCustomField(WAH,sS,FH,LL,Ko,eu,OU,Vj,XB,gv,fJ,nd,ms,WZ,ie,dQ,Di,hUu,Eq,ww,Ul,HW,no,JO,x,y,Hqj){ this.WAH=WAH; this.Tk=function(bH,ePV){ return new this.WAH(this,bH,ePV,sS,FH,LL,Ko,eu,OU,Vj,XB,gv,fJ,nd,ms,WZ,ie,dQ,Di,hUu,Eq,ww,Ul,HW,no,JO,x,y,Hqj); }; }function ConfigTextArea(Onq,label,description,defaultValue,qaX){ this.Onq=Onq; this.label=label; this.description=description; this.defaultValue=defaultValue; this.qaX=qaX; this.Tk=function(){ return new Dl(this,Onq,label,description,defaultValue,qaX); }; }function ConfigTextField(Onq,label,description,defaultValue,qaX,GaD){ this.Onq=Onq; this.label=label; this.description=description; this.defaultValue=defaultValue; this.qaX=qaX; this.GaD=GaD; this.Tk=function(){ return new xn(this,Onq,label,description,defaultValue,qaX,GaD); }; }function ConfigPasswordField(Onq,label,description,defaultValue,qaX,GaD){ this.Onq=Onq; this.label=label; this.description=description; this.defaultValue=defaultValue; this.qaX=qaX; this.GaD=GaD; this.Tk=function(){ return new xc(this,Onq,label,description,defaultValue,qaX,GaD); }; }function ConfigCheckbox(Onq,label,description,defaultValue){ this.Onq=Onq; this.label=label; this.description=description; this.defaultValue=defaultValue; this.Tk=function(){ return new kj(this,Onq,label,description,defaultValue); }; }function ConfigDivider(label,description){ this.label=label; this.description=description; this.Tk=function(){ return new Po(this,label,description); }; }function ConfigOptionGroup(Onq,label,description,gcb){ this.Onq=Onq; this.gcb=gcb; this.label=label; this.description=description; this.Tk=function(){ return new wn(this,Onq,label,description,gcb); }; }function ConfigOption(label,value,pgk){ this.label=label; this.value=value; this.pgk=pgk; }function ConfigFreeformHtml(Yd){ this.Yd=Yd; this.Tk=function(){ return new Sh(this,Yd); }; }function VU(HIM,Onq,defaultValue){ this.HIM=HIM; this.vID=null; this.uU=function(iYI){ this.vID=iYI; }; this.PT=function(){ if(this.vID!=null) this.vID(); }; this.LS=function(rm,ITu,LjQ){ var mYc=this.Dfw.contentWindow; mYc.focus(); try{ mYc.document.execCommand(rm,false,ITu); }catch(eu){}mYc.focus(); }; this.uM=function(GM){ if(isIE){ var grf=this.Dfw.contentWindow.document.selection.createRange(); var ww=grf.htmlText; var pLt=new RegExp('<font size=([^>]+)>'); var WZ=pLt.exec(ww.toLowerCase()); var ArF=null; if(WZ==null){ ArF=3; }else{ for(var gv=1;gv<WZ.length;gv++){ if(ArF==null) ArF=parseInt(WZ[gv]); if(ArF<parseInt(WZ[gv])) ArF=parseInt(WZ[gv]); }if(ArF==7) ArF--; }this.LS('FontSize',ArF+GM); }else if(isSafari){ this.LS('FontSizeDelta',GM); }else{ if(GM==1) this.LS('IncreaseFontSize',''); else this.LS('DecreaseFontSize',''); }}; this.ZB=function(Yd){ if(isIE){ var Eq=this.Dfw.contentWindow.document.selection.createRange(); Eq.pasteHTML(Yd); Eq.collapse(false); Eq.select(); }else{ this.LS('insertHTML',Yd); }}; this.jx=function(){ var window=this.Dfw.contentWindow; var document=this.Dfw.contentWindow.document; if(window.getSelection){ window.getSelection().collapseToEnd(); }else if(document.selection){ document.selection.empty(); }}; this.Vfr=false; this.hd=function(){ if(this.Vfr) return; if(this.vD()){ this.eQ('rich'); this.GnO.checked=true; this.JnW.checked=false; }else{ this.eQ('html'); this.GnO.checked=false; this.JnW.checked=true; }this.er(); }; this.vD=function(){ var GBd=false; if(this.value.toLowerCase().indexOf('<iframe')!=-1) GBd=true; if(this.value.toLowerCase().indexOf('<object')!=-1) GBd=true; if(this.value.toLowerCase().indexOf('<embed')!=-1) GBd=true; if(this.ko()&&!GBd){ return true; }else{ return false; }}; this.er=function(){ var JA=this; if(this.XZj=='rich'){ if((this.Dfw==undefined)||(this.Dfw.contentWindow==undefined)||(this.Dfw.contentWindow.document.getElementById('body')==undefined)){ setTimeout(function(){ JA.er(); },100); return; }}this.Vfr=true; this.KH(this.value); if(this.XZj=='rich'){ this.LS('insertHTML',' '); this.LS('Undo',''); }}; this.Il=function(){ if(!this.Vfr) return; clearInterval(this.heightCheckIntervalHandle); this.Vfr=false; }; this.ko=function(){ return true; }; this.ATm=new Array(); this.aK=function(){ for(var gv in this.ATm)  this.ATm[gv](); }; this.ra=function(pCw,DEb,gX,BW,x,y,jdu,iYI,fbP){ var button=GP(); button.style.left=x+'px'; button.style.top=y+'px'; button.style.position='absolute'; button.src=BW; button.title=DEb; var Lxu=document.createElement('div'); Lxu.style.visibility='visible'; Lxu.style.left=x+'px'; Lxu.style.top=y+'px'; Lxu.style.width=29+'px'; Lxu.style.height=27+'px'; Lxu.style.position='absolute'; KX(Lxu,Is+'/web/images/richtext/button-shadow.png',false); gX.appendChild(Lxu); gX.appendChild(button); var qNc=this; var AE=function(){ if(Lxu.style.visibility=='hidden') return; button.style.top=(parseInt(button.style.top)+1)+'px'; button.style.left=(parseInt(button.style.left)+1)+'px'; Lxu.style.visibility='hidden'; pCw(); return false; }; if(isIE){ HV(button,AE); WV(button,AE); }else if(isSafari&&fbP){ JU(button,AE); }else BD(button,AE); var Ps=function(){ if(Lxu.style.visibility=='visible') return; button.style.top=(parseInt(button.style.top)-1)+'px'; button.style.left=(parseInt(button.style.left)-1)+'px'; Lxu.style.visibility='visible'; return false; }; Vr(button,Ps); ri(button,Ps); this.ATm.push(Ps); }; this.GG=function(lWX){ var window=this.Dfw.contentWindow; var document=this.Dfw.contentWindow.document; if(window.getSelection){ if(window.getSelection()==''){ alert(lWX); return false; }}else if(document.selection){ if(document.selection.createRange().htmlText==''){ alert(lWX); return false; }}return true; }; this.Kl=function(JO){ var frame=document.createElement('iframe'); frame.frameBorder='0px'; frame.style.border='1px solid #000000'; frame.style.width=JO+'px'; frame.style.height=264+'px'; frame.scrolling='auto'; return frame; }; this.YJ=function(frame){ var QMr='<body id="body" style="padding:5px; margin:5px; font-family: Arial, Helvetica, sans-serif;	font-size: 12px;"></body>'; var GI=frame.contentWindow.document; GI.open(); GI.write(QMr); GI.close(); GI.designMode="On"; if(isSafari) GI.body.contentEditable='true'; }; this.tf=function(window,frame,lUZ){ if(this.XZj!='rich') return; if(isIE){ var oon=lUZ; while(true){ if(oon.className.indexOf('scheme-body')!=-1) break; oon=oon.parentNode; }var JA=this; if(frame.contentWindow.document.getElementById('body')==undefined){ setTimeout(function(){ JA.tf(window,frame,lUZ); },100); return; }frame.contentWindow.document.getElementById('body').style.color=oon.currentStyle.color; frame.contentWindow.document.getElementById('body').style.backgroundColor=oon.currentStyle.backgroundColor; setTimeout(function(){ if(isIE){ colorsAndSettings.backgroundHueOffset+=1; rQ(true,false,false,false); colorsAndSettings.backgroundHueOffset-=1; }},100); }else{ frame.contentWindow.document.getElementById('body').style.color=window.getComputedStyle(lUZ,null).color; frame.contentWindow.document.getElementById('body').style.backgroundColor=window.getComputedStyle(lUZ,null).backgroundColor; }}; this.gT=function(oGa,YWd){ var JA=this; this.we(oGa,YWd,function(x,y){ var color=JA.lJ(x,y); JA.LS('ForeColor',color,true); }); }; this.Xm=function(oGa,YWd){ var JA=this; this.we(oGa,YWd,function(x,y){ var color=JA.lJ(x,y); if(isIE||isSafari) JA.LS('BackColor',color,true); else JA.LS('hilitecolor',color,true); }); }; this.we=function(x,y,frM){ this.wTx.style.visibility='visible'; if(isSafari){ this.wTx.style.left=(x-20)+'px'; this.wTx.style.top=(y-48)+'px'; this.aK(); }else{ this.wTx.style.left=(x-202)+'px'; this.wTx.style.top=y+'px'; }var JA=this; BD(this.wTx,function(YC){ frM(YC.bL(),YC.ta()); JA.wTx.style.visibility='hidden'; }); }; this.lJ=function(x,y){ if(this.Ox(x,y,2,2,34,22)) return '#000000'; if(this.Ox(x,y,2,24,34,45)) return '#ffffff'; var ME=new II('B2B8FF'); var Cj=new II('0015FF'); var vbn=new II('000D9C'); var sS=36; for(var gv=0;gv<=10;gv++){ if(this.Ox(x,y,sS,2,sS+13,15)){ if(gv==10) return ME.lh(0,-100); else return ME.lh(gv*36,0); }if(this.Ox(x,y,sS,17,sS+13,30)){ if(gv==10) return Cj.lh(0,-100); else return Cj.lh(gv*36,0); }if(this.Ox(x,y,sS,32,sS+13,45)){ if(gv==10) return vbn.lh(0,-100); else return vbn.lh(gv*36,0); }sS+=15; }return null; }; this.Ox=function(x,y,FZA,mDZ,UKi,Itd){ if(((x<=UKi)&&(x>=FZA))&&((y<=Itd)&&(y>=mDZ))) return true; return false; }; this.WN=function(LD){ var uII=0; var y=0; var TXm=31; var qVq=40; var JA=this; if(!isSafari){ this.ra(function(){JA.uM(1);},'Make text larger',LD,Is+'/web/images/richtext/larger-font.gif',uII,y,null,null); uII+=TXm; this.ra(function(){JA.uM(-1);},'Make text smaller',LD,Is+'/web/images/richtext/smaller-font.gif',uII,y,null,null); }if(!isSafari) uII+=qVq; this.ra(function(){JA.LS('Bold','');},'Bold',LD,Is+'/web/images/richtext/bold.gif',uII,y,null,null); this.ra(function(){JA.LS('Italic','');},'Italic',LD,Is+'/web/images/richtext/italic.gif',uII+=TXm,y,null,null); this.ra(function(){JA.LS('Underline','');},'Underline',LD,Is+'/web/images/richtext/underline.gif',uII+=TXm,y,null,null); if(!isSafari) this.ra(function(){JA.LS('Strikethrough','');},'Strikethrough',LD,Is+'/web/images/richtext/strikethrough.gif',uII+=TXm,y,null,null); if(!isSafari) this.ra(function(){JA.LS('InsertUnorderedList','');},'Create bulleted list',LD,Is+'/web/images/richtext/bullets.gif',uII+=qVq,y,null,null); if(!isSafari) this.ra(function(){JA.LS('InsertOrderedList','');},'Create numbered list',LD,Is+'/web/images/richtext/numbered-bullets.gif',uII+=TXm,y,null,null); if(!isSafari) this.ra(function(){JA.LS('Indent','');},'Indent text',LD,Is+'/web/images/richtext/indent.gif',uII+=TXm,y,null,null); if(!isSafari) this.ra(function(){JA.LS('Outdent','');},'Outdent text',LD,Is+'/web/images/richtext/outdent.gif',uII+=TXm,y,null,null); if(!isSafari) this.ra(function(){JA.jx();JA.LS('InsertHorizontalRule','');},'Insert horizontal text divider',LD,Is+'/web/images/richtext/horiz-rule.gif',uII+=TXm,y,null,null); uII+=qVq; var Kuo=uII+22; this.ra(function(){JA.gT(Kuo,y+26);},'Change text color',LD,Is+'/web/images/richtext/font-color.gif',uII,y,null,null,true); uII+=TXm; var Oac=uII+22; this.ra(function(){JA.Xm(Oac,y+26);},'Change text background color',LD,Is+'/web/images/richtext/font-bg-color.gif',uII,y,null,null,true); if(!isSafari) this.ra(function(){ if(JA.GG('Before pressing this button, first select the text you would like to turn into a link')==false) return false; var url=prompt('Enter the url for your new link:','http://'); if(url!=null&&url!='') JA.LS('CreateLink',url); },'Create web link',LD,Is+'/web/images/richtext/link.gif',uII+=qVq,y,null,null); this.ra(function(){JA.LS('Undo','');},'Undo action',LD,Is+'/web/images/richtext/undo.gif',uII+=qVq,y,null,null); this.ra(function(){JA.LS('Redo','');},'Redo action',LD,Is+'/web/images/richtext/redo.gif',uII+=TXm,y,null,null); this.ra(function(){ JA.Dfw.contentWindow.focus(); JA.Dfw.contentWindow.print(); },'Print',LD,Is+'/web/images/richtext/print.gif',uII+=qVq,y,null,null); LD.style.height='31px'; LD.style.overflow='visible'; this.wTx=document.createElement('div'); var JT=GP(); JT.src=''+Is+'/web/images/richtext/color-selection.png'; JT.style.cursor='pointer'; this.wTx.appendChild(JT); this.wTx.style.position='absolute'; this.wTx.style.visibility='hidden'; this.wTx.style.width='218px'; this.wTx.style.height='48px'; this.wTx.style.zIndex='10'; this.wTx.style.cursor='pointer'; LD.appendChild(this.wTx); }; this.qq=function(LD){ LD.style.paddingTop='10px'; var YCE=uid(); var IJh=uid(); var AkP=uid(); var Yd=''; Yd+='Edit as:&nbsp;&nbsp;<input type="radio" name="'+AkP+'" value="'+YCE+'" checked>&nbsp;&nbsp;Rich text&nbsp;&nbsp;'; Yd+='<input type="radio" name="'+AkP+'" value="'+IJh+'" >&nbsp;&nbsp;HTML'; LD.innerHTML=Yd; LD.style.textAlign='left'; var JA=this; var xdj=LD.getElementsByTagName('input'); this.GnO=xdj[0]; this.JnW=xdj[1]; this.GnO.style.width='3ex'; this.JnW.style.width='3ex'; this.GnO.onclick=function(){return JA.sU(JA.GnO,JA.JnW,JA.GnO);}; this.JnW.onclick=function(){return JA.sU(JA.GnO,JA.JnW,JA.JnW);}; }; this.sU=function(GnO,JnW,frd){ if(frd==GnO){ if(this.XZj=='rich') return true; if(!this.ko()){ alert('Your browser does not support this feature. \n\nThe following browsers support rich text editing: Firefox, Safari 2.0, Internet Explorer'); JnW.selected='true'; GnO.selected='false'; return false; }this.eQ('rich'); }if(frd==JnW){ this.eQ('html'); if(this.Dfw!=undefined){ if(this.Dfw.style.height!=undefined){ this.vkN.style.height=parseInt(this.Dfw.style.height)+'px'; }}}this.PT(); return true; }; this.Onq=Onq; this.defaultValue=defaultValue; this.LD=document.createElement("div"); this.WT=document.createElement("div"); this.WT.style.zIndex=100; this.WT.style.position='relative'; this.Rm=document.createElement("div"); this.Rm.style.zIndex=1; this.BS=document.createElement("div"); this.BS.style.zIndex=1; this.LD.appendChild(this.Rm); this.LD.appendChild(this.BS); this.WN(this.WT); this.qq(this.BS); this.XZj=''; this.Dfw=null; this.vkN=null; this.kM=function(JO){ var jL=document.createElement('textarea'); jL.style.width=580+'px'; jL.style.height='264px'; jL.style.padding=''; jL.style.margin=''; return jL; }; this.PC=function(){ this.tf(window,this.Dfw,this.LD); }; this.eQ=function(iD){ if((iD=='rich')&&(!this.ko())) iD='html'; if(this.XZj==iD) return; this.XZj=iD; var gtS=''; if(iD=='rich'){ this.LD.insertBefore(this.WT,this.LD.firstChild); if(this.vkN!=null){ gtS=this.vkN.value; this.Rm.removeChild(this.vkN); this.value=gtS; }if(this.Dfw==null) this.Dfw=this.Kl(this.width); this.Rm.appendChild(this.Dfw); this.YJ(this.Dfw); this.KH(this.value); this.tf(window,this.Dfw,this.LD); }else if(iD=='html'){ try{ if(this.WT!=null) this.LD.removeChild(this.WT); }catch(eu){ }if(this.Dfw!=null){ gtS=this.Dfw.contentWindow.document.getElementById('body').innerHTML; this.Rm.removeChild(this.Dfw); }if(this.vkN==null) this.vkN=this.kM(this.width); this.Rm.appendChild(this.vkN); this.vkN.value=gtS; }else alert('mode '+iD+' unrecognised'); }; this.width=300; this.tn=function(JO){ this.width=JO; this.LD.style.width=JO+'px'; if(this.vkN!=null) this.vkN.style.width=JO+'px'; if(this.Dfw!=null) this.Dfw.style.width=JO+'px'; }; this.cO=function(Plh){ var height=Math.round(Plh-100); if(height<0) height=0; if(this.vkN!=null) this.vkN.style.height=height+'px'; if(this.Dfw!=null) this.Dfw.style.height=height+'px'; this.PT(); }; this.KH=function(gtS){ this.value=gtS; if(!this.Vfr) return; if(this.XZj=='rich'){ var QMr=''; QMr+='<head><style>'; QMr+='ol, ul { padding-left: 0px; margin-left: 3ex; }'; QMr+='big { font-size:116%; }'; QMr+='small { font-size:86%; }'; QMr+='p { padding-top:0px; padding-bottom:0px; margin-top:0px; margin-bottom:0px }'; QMr+='blockquote { margin:0 0 0 3ex; }'; QMr+='</style></head>'; QMr+='<body id="body" class="rich-text" style="padding:5px; margin:5px; font-family: Arial, Helvetica, sans-serif;	font-size: 12px;">'; QMr+=gtS
QMr+='</body>'; var GI=this.Dfw.contentWindow.document; GI.open(); GI.write(QMr); GI.close(); try{ this.Dfw.contentWindow.focus(); }catch(eu){}this.PC(); }if(this.XZj=='html') this.vkN.value=gtS; }; this.LT=function(){ if(this.XZj=='rich') return this.Dfw.contentWindow.document.getElementById('body').innerHTML; if(this.XZj=='html') return this.vkN.value; alert('editMode unrecognised'); }; }function NC(HIM,bH,ePV,Onq,fhd,geZ){ this.HIM=HIM; this.bH=bH; this.ePV=ePV; this.vID=null; this.uU=function(iYI){ this.vID=iYI; }; this.PT=function(){ if(this.vID!=null) this.vID(); }; this.GDY=6; this.wLF=3; this.Onq=Onq; this.fhd=fhd; this.geZ=geZ; this.ND=24; this.Zk=9; this.qaX=0; for(var gv=0;gv<fhd.length;gv++) this.qaX+=fhd[gv].qaX; this.qaX+=(this.ND+this.Zk); this.Glt=new Array(); this.rows=new Array(); this.LD=document.createElement("div"); this.WT=document.createElement("div"); this.WT.style.position='relative'; this.WT.style.left=this.ND+'px'; this.ODX=null; this.iNI=null; this.je=function(jL,mVY,ef,bca){ var YV=mVY; YV.LD.style.zIndex=10; this.ODX=parseInt(YV.LD.offsetTop); this.iNI=null; }; this.he=function(jL,mVY,jw,jP,ef,bca){ var YV=mVY; var Hi=this.ODX+jP; var EId=null; var VuB=0; for(var gv=0;gv<this.rows.length;gv++){ var LL=this.rows[gv]; if(LL==YV) continue; var y=parseInt(LL.LD.offsetTop); y-=50; if(EId==null) EId=y; if(EId>y) EId=y; }for(var gv=0;gv<this.rows.length;gv++){ var LL=this.rows[gv]; if(LL==YV) continue; var y=LL.LD.offsetTop+LL.LD.offsetHeight; y+=50; if(VuB<y) VuB=y; }if(Hi<EId){ Hi=EId; }if(Hi>VuB){ Hi=VuB; }YV.LD.style.top=Hi+'px'; if(this.iNI==null) this.iNI=this.ODX; var IXZ=false; for(var gv=0;gv<this.rows.length;gv++){ var LL=this.rows[gv]; if(LL==YV) continue; oX=parseInt(LL.LD.offsetTop); if((oX>=Hi)&&(oX<this.iNI)){ LL.Wdk++; LL.uF(); YV.Wdk--; IXZ=true; }else if((oX<=Hi)&&(oX>this.iNI)){ LL.Wdk--; LL.uF(); YV.Wdk++; IXZ=true; }}if(IXZ) this.iNI=Hi; }; this.gr=function(jL,mVY,jw,jP,ef,bca){ var YV=mVY; YV.LD.style.zIndex=0; var Hi=this.ODX+jP; var meu=null; var RgV=null; var Lgt=null; var WfC=null; for(var gv=0;gv<this.rows.length;gv++){ var LL=this.rows[gv]; if(LL==YV) continue; oX=parseInt(LL.LD.offsetTop); if(Hi>oX){ if(Lgt==null){ Lgt=oX; meu=LL; }if(oX>Lgt){ Lgt=oX; meu=LL; }}if(Hi<oX){ if(WfC==null){ WfC=oX; RgV=LL; }if(oX<WfC){ WfC=oX; RgV=LL; }}}if(meu!=null) YV.Wdk=meu.Wdk+1; else if(RgV!=null) YV.Wdk=RgV.Wdk-1; this.rows.sort(tv); this.aG(); }; this.KH=function(LZO){ var lVb=LZO.length+this.wLF; if(lVb<this.GDY) lVb=this.GDY; this.rows=new Array(); while(this.Rm.childNodes.length>0) this.Rm.removeChild(this.Rm.childNodes[0]); for(var gv=0;gv<lVb;gv++){ var ZsD; if(gv<LZO.length) ZsD=LZO[gv]; else{ ZsD=new Array(); for(var fJ=0;fJ<this.fhd.length;fJ++) ZsD[fJ]=''; }this.bQ(ZsD); }}; this.bQ=function(ZsD){ var JA=this; for(var gv=0;gv<this.rows.length;gv++){ var LL=this.rows[gv]; }var Wdk=this.rows.length+1; var YV=new cJ(this.Glt,ZsD,Wdk,this.ND,this.Zk,this); for(var gv in YV.Kja){ if(!YV.Kja[gv].CB) continue; YV.Kja[gv].CB(function(){ JA.nA(); }); }this.rows.push(YV); this.Rm.appendChild(YV.LD); }; this.VB=function(ZsD){ for(var gv in this.rows){ if(this.rows[gv].Ra()){ var YV=this.rows[gv]; for(var fJ in YV.Kja) YV.Kja[fJ].KH(ZsD[fJ]); return; }}this.bQ(ZsD); }; this.nA=function(){ var APn=0; var ajN=0; for(var gv in this.rows){ if(this.rows[gv].Ra()) ajN++; }if(ajN<this.wLF) APn=this.wLF-ajN; if((this.rows.length+APn)<this.GDY) APn=this.GDY-(this.rows.length+APn); for(var gv=0;gv<APn;gv++) this.bQ(null); if(APn!=0){ this.tn(this.width); this.PT(); }}; for(var gv=0;gv<fhd.length;gv++){ var xSY=fhd[gv]; var ZNd=new gb(xSY); if(xSY.cHM) continue; this.Glt[gv]=ZNd; this.WT.appendChild(ZNd.LD); }this.Rm=document.createElement("div"); this.Rm.style.whiteSpace='nowrap'; this.Rm.style.position='relative'; this.KH(geZ); this.LD.appendChild(this.WT); this.LD.appendChild(this.Rm); this.LT=function(){ var LZO=new Array(); for(var gv in this.rows){ var YV=this.rows[gv]; if(!YV.Ra()) LZO.push(YV.LT()); }return LZO; }; this.tn=function(JO){ this.width=JO; if(JO<this.qaX) JO=this.qaX; this.LD.style.width=JO+'px'; var innerWidth=JO-(this.ND+this.Zk); var uxp=this.Glt.length; var eQS=0; var qON=0; var Set=new Array(); var Xjj=new Array(); eQS+=(this.ND+this.Zk); for(var gv=0;gv<uxp;gv++){ var AFI=this.Glt[gv]; var x=AFI.xSY.qaX; if(isNaN(x)||x==undefined||x==null) x=0; Set[gv]=x; eQS+=x; var Di=AFI.xSY.GaD; if(isNaN(Di)||Di==undefined||Di==null) Di=Math.floor(innerWidth/uxp); Xjj[gv]=Di; qON+=Di; }var OhC=JO-eQS; var oeD=0; var vZT=new Array(); for(var gv=0;gv<uxp;gv++){ vZT[gv]=Set[gv]+Math.floor((Xjj[gv]/qON)*OhC); this.Glt[gv].tn(vZT[gv]); this.Glt[gv].Rf(oeD); oeD+=vZT[gv]; }for(var gv=0;gv<this.rows.length;gv++){ var YV=this.rows[gv]; YV.tn(JO,vZT,this.ND,this.Zk); }this.LD.style.height=((this.rows.length+1.5)*1.5)+'em'; }; this.aG=function(){ for(var gv=0;gv<this.rows.length;gv++){ var LL=this.rows[gv]; LL.Wdk=gv+1; LL.uF(); }}; }function cJ(Glt,ZsD,Wdk,ND,Zk,IUA){ var JA=this; this.IUA=IUA; this.Wdk=Wdk; this.crx=1.5; this.Glt=Glt; this.ZsD=ZsD; if(this.ZsD==null){ this.ZsD=new Array(); for(var gv=0;gv<this.Glt.length;gv++) this.ZsD.push(''); }this.LD=document.createElement("div"); this.LD.style.whiteSpace='nowrap'; this.LD.style.position='absolute'; this.uF=function(){ this.LD.style.top=(this.Wdk*this.crx)+'em'; for(var gv in JA.Kja){ var Ir=JA.Kja[gv]; if(Ir.Nd) Ir.Nd(this.Wdk+gv); }}; this.Ra=function(){ for(var gv in JA.Kja){ var Ir=JA.Kja[gv]; if(Ir.LT()!='') return false; }return true; }; this.uF(); this.vlS=document.createElement("div"); this.vlS.style.position='absolute'; this.vlS.style.left='0px'; this.vlS.style.top='5px'; this.vlS.style.overflow='visible'; this.vlS.style.cursor='n-resize'; this.vlS.innerHTML='<img src="/web/dynamicImages/'+SH+'/vert-reorder.gif">'; ew(this.vlS,this,function(sS,FH,LL,Ko,eu,OU){ JA.IUA.je(sS,FH,LL,Ko,eu,OU); },function(sS,FH,LL,Ko,eu,OU){ JA.IUA.he(sS,FH,LL,Ko,eu,OU); },function(sS,FH,LL,Ko,eu,OU){ JA.IUA.gr(sS,FH,LL,Ko,eu,OU); }); this.LD.appendChild(this.vlS); this.YJV=document.createElement("div"); this.YJV.style.position='absolute'; this.YJV.style.left=ND+'px'; this.YJV.style.top='0px'; this.LD.appendChild(this.YJV); this.Kja=new Array(); for(var gv=0;gv<Glt.length;gv++){ var ZNd=this.Glt[gv]; var tUb=ZNd.xSY.Tk(IUA.bH,IUA.ePV); if(tUb.cHM) continue; tUb.LD.style.position='absolute'; tUb.LD.style.top='0px'; tUb.LD.style.left='0px'; tUb.KH(this.ZsD[gv]); this.Kja[gv]=tUb; this.YJV.appendChild(tUb.LD); }this.tKJ=document.createElement('div'); this.tKJ.style.position='absolute'; this.tKJ.style.left='0px'; this.tKJ.style.top='5px'; this.tKJ.style.overflow='visible'; this.tKJ.style.cursor='pointer'; this.tKJ.innerHTML='<img src="/web/dynamicImages/'+SH+'/cross.gif">'; this.LD.appendChild(this.tKJ); this.tKJ.onmousedown=function(){ var rows=JA.IUA.rows; for(var gv=0;gv<rows.length;gv++){ var LL=rows[gv]; if(LL==JA){ JA.IUA.Rm.removeChild(LL.LD); rows.splice(gv,1); }}JA.IUA.aG(); JA.IUA.nA(); JA.IUA.tn(JA.IUA.width); JA.IUA.PT(); }; this.tn=function(JO,vZT){ var uxp=this.Glt.length; var oeD=0; for(var fJ=0;fJ<this.Kja.length;fJ++){ var tUb=this.Kja[fJ]; tUb.tn(vZT[fJ]); tUb.LD.style.left=oeD+'px'; oeD+=vZT[fJ]; }this.tKJ.style.left=oeD+24+'px'; }; this.LT=function(){ var nnl=new Array(); for(var gv=0;gv<this.Kja.length;gv++){ var tUb=this.Kja[gv]; nnl[gv]=tUb.LT(); }return nnl; }; }function tv(sS,FH){ if(sS.Wdk<FH.Wdk) return-1; if(sS.Wdk==FH.Wdk) return 0; if(sS.Wdk>FH.Wdk) return 1; }function gb(xSY){ this.xSY=xSY; this.LD=document.createElement("div"); this.LD.style.position='absolute'; this.LD.style.overflow='hidden'; this.LD.style.whiteSpace='nowrap'; this.LD.style.width=xSY.qaX+'px'; this.LD.style.top='0px'; this.LD.style.height='1.7em'; this.LD.innerHTML=xSY.label; this.tn=function(JO){ this.LD.style.width=JO+'px'; }; this.Rf=function(x){ this.LD.style.left=x+'px'; }; }function Sh(HIM,Yd){ this.HIM=HIM; this.Yd=Yd; this.LD=document.createElement('div'); this.LD.style.className='scheme-body'; this.LD.style.fontSize='12px'; this.LD.innerHTML=Yd; }function Lc(HIM,Onq,defaultValue){ this.HIM=HIM; this.Onq=Onq; this.defaultValue=defaultValue; this.cHM=true; this.GaD=0; this.qaX=0; this.value=defaultValue; this.label='wha?'; this.KH=function(no){ this.value=no; }; this.LT=function(){ return this.value; }; }function Dl(HIM,Onq,label,description,defaultValue,qaX){ this.HIM=HIM; this.Onq=Onq; this.label=label; this.description=description; this.defaultValue=defaultValue; this.qaX=qaX; this.Qjp=document.createElement("textarea"); this.Qjp.value=defaultValue; this.Qjp.style.padding='0px'; this.Qjp.style.margin='0px'; this.Qjp.style.width=qaX+'px'; this.Qjp.rows=6; this.LD=document.createElement("div"); this.LD.appendChild(this.Qjp); this.CB=function(iYI){ this.Qjp.onmousedown=iYI; this.Qjp.onkeypress=iYI; }; this.Nd=function(gv){ this.Qjp.tabIndex=gv; }; this.KH=function(value){ this.Qjp.value=value; }; this.LT=function(){ return this.Qjp.value; }; this.tn=function(JO){ if(JO<this.qaX) JO=this.qaX; this.Qjp.style.width=(JO-10)+'px'; this.LD.style.width=JO+'px'; }; }function xn(HIM,Onq,label,description,defaultValue,qaX,GaD){ this.HIM=HIM; this.Onq=Onq; this.label=label; this.description=description; this.defaultValue=defaultValue; this.qaX=qaX; this.GaD=GaD; this.input=document.createElement("input"); this.input.value=defaultValue; this.input.style.padding='0px'; this.input.style.margin='0px'; this.LD=document.createElement("div"); this.LD.appendChild(this.input); this.CB=function(iYI){ this.input.onmousedown=iYI; this.input.onkeypress=iYI; }; this.Nd=function(gv){ this.input.tabIndex=gv; }; this.KH=function(value){ this.input.value=value; }; this.LT=function(){ return this.input.value; }; this.tn=function(JO){ if(JO<this.qaX) JO=this.qaX; this.input.style.width=(JO-10)+'px'; this.LD.style.width=JO+'px'; }; this.tn(qaX); }function Pq(HIM,Onq,label,description,defaultValue,qaX,GaD){ this.HIM=HIM; this.Onq=Onq; this.label=label; this.description=description; this.defaultValue=defaultValue; this.qaX=qaX; this.GaD=GaD; this.LD=document.createElement("div"); this.LD.className='scheme-body-text'; this.LD.style.fontWeight='bold'; this.KH=function(value){ this.value=value; LM(this.LD); this.LD.appendChild(document.createTextNode(defaultValue)); }; this.KH(defaultValue); this.LT=function(){ return this.value; }; this.tn=function(JO){ if(JO<this.qaX) JO=this.qaX; this.LD.style.width=JO+'px'; }; this.tn(qaX); }function xc(HIM,Onq,label,description,defaultValue,qaX,GaD){ this.HIM=HIM; this.Onq=Onq; this.label=label; this.description=description; this.defaultValue=defaultValue; this.qaX=qaX; this.GaD=GaD; this.input=document.createElement("input"); this.input.type='password'; this.input.value=defaultValue; this.input.style.padding='0px'; this.input.style.margin='0px'; this.LD=document.createElement("div"); this.LD.appendChild(this.input); this.CB=function(iYI){ this.input.onmousedown=iYI; this.input.onkeypress=iYI; }; this.Nd=function(gv){ this.input.tabIndex=gv; }; this.KH=function(value){ this.input.value=value; }; this.LT=function(){ return this.input.value; }; this.tn=function(JO){ if(JO<this.qaX) JO=this.qaX; this.input.style.width=(JO-10)+'px'; this.LD.style.width=JO+'px'; }; this.tn(qaX); }function kj(HIM,Onq,label,description,defaultValue){ this.HIM=HIM; this.Onq=Onq; this.label=label; this.description=description; this.defaultValue=defaultValue; this.input=document.createElement("input"); this.input.type='checkbox'; this.input.value='isChecked'; this.input.style.padding='0px'; this.input.style.margin='0px'; this.LD=document.createElement("div"); this.LD.appendChild(this.input); this.CB=function(iYI){ this.input.onmousedown=iYI; this.input.onkeypress=iYI; }; this.Nd=function(gv){ this.input.tabIndex=gv; }; this.KH=function(value){ setTimeout(function(SL,checked){ return function(){ SL.checked=checked; }; }(this.input,value),1); }; this.LT=function(){ return this.input.checked; }; this.tn=function(JO){ if(JO<this.qaX) JO=this.qaX; this.input.style.width=(JO-10)+'px'; this.LD.style.width=JO+'px'; }; if(this.defaultValue) this.KH(true); }function Po(HIM,label,description){ this.HIM=HIM; this.label=label; this.description=description; this.LD=document.createElement("div"); this.LD.style.fontSize='12px'; this.LD.style.fontWeight='bold'; this.LD.style.borderBottom='1px solid'; this.LD.appendChild(document.createTextNode(label)); this.LD.style.marginTop='20px'; this.LD.style.marginBottom='20px'; this.tn=function(JO){ this.LD.style.width=JO+'px'; }; this.XW=function(state){ this.LD.style.marginTop='0px'; }; }function wn(HIM,Onq,label,description,gcb){ this.HIM=HIM; this.Onq=Onq; this.gcb=gcb; this.label=label; this.description=description; var JA=this; this.jL=document.createElement('div'); this.LD=this.jL; this.AkP=uid(); var Yd=''; for(var gv in this.gcb){ Yd+='<INPUT type="radio" name="'+this.AkP+'" value="'+this.gcb[gv].value+'">'; }this.jL.innerHTML=Yd; this.jL.style.textAlign='left'; this.jL.style.whiteSpace='nowrap'; var lL=this.jL.getElementsByTagName('INPUT'); this.cLx=new Array(); this.YoG=new Array(); for(var gv=0;gv<lL.length;gv++){ this.cLx[gv]=lL[gv]; this.cLx[gv].style.margin='0px'; this.cLx[gv].style.padding='0px'; this.cLx[gv].style.width='3ex'; this.cLx[gv].align='left'; this.cLx[gv].onclick=function(){JA.Ih();}; }for(var gv in this.cLx){ var Pa=document.createElement('div'); this.YoG[gv]=Pa; Pa.style.display='inline'; Pa.className='scheme-body-text'; Pa.style.paddingLeft='10px'; Pa.appendChild(document.createTextNode(this.gcb[gv].label)); this.jL.replaceChild(Pa,this.cLx[gv]); this.jL.insertBefore(this.cLx[gv],Pa); }var span=document.createElement('span'); span.style.width='100%'; this.jL.appendChild(span); for(var gv in this.gcb){ if(this.gcb[gv].pgk) this.KH(this.gcb[gv].value); }}wn.prototype.Ih=function(){ for(var gv in this.cLx){ if(this.cLx[gv].checked){ if(typeof this.value=='boolean') this.value=(this.cLx[gv].value=='true'); else this.value=this.cLx[gv].value; break; }}if(this.AeK){ this.AeK(); }}; wn.prototype.KH=function(no){ var JA=this; this.value=no; for(var gv in this.cLx){ var checked; if(typeof no=='boolean'){ checked=(this.cLx[gv].value==(''+no)); }else{ checked=this.cLx[gv].value==no; }setTimeout(function(BsE,checked){ return function(){ BsE.checked=checked; }; }(this.cLx[gv],checked),1); }}; wn.prototype.LT=function(){ return this.value; }; wn.prototype.tn=function(JO){ this.LD.style.width=JO+'px'; }; wn.prototype.Dw=function(){ var max=0; for(var gv in this.YoG){ var JO=parseInt(this.YoG[gv].offsetWidth); if(JO>max) max=JO; }return max; }; wn.prototype.Qg=function(JO){ for(var gv in this.YoG){ var x=parseInt(this.YoG[gv].offsetWidth); this.YoG[gv].style.paddingRight=(JO-x)+15+'px'; }}; wn.prototype.CB=function(iYI){ this.AeK=iYI; }; function DB(HIM,bH,ePV,kqB){ this.HIM=HIM; this.kqB=kqB; this.bH=bH; this.ePV=ePV; var JA=this; this.vID=null; this.uU=function(iYI){ this.vID=iYI; }; this.PT=function(vvU){ if(this.vID!=null) this.vID(vvU); }; this.rJi=new Array(); for(var gv in this.kqB){ var Ir=this.kqB[gv].Tk(bH,ePV); this.rJi[gv]=Ir; if(Ir.uU) Ir.uU(function(){ JA.PT(); }); }this.LD=document.createElement('div'); var table=document.createElement('table'); table.className='scheme-body-text'; table.cellPadding=0; table.cellSpacing=0; this.LD.appendChild(table); var FB=document.createElement('tbody'); table.appendChild(FB); this.sfs=new Array(); this.crQ=new Array(); for(var gv in this.rJi){ var Ir=this.rJi[gv]; if(Ir.isDisplayOnly) continue; var Kg=document.createElement('tr'); FB.appendChild(Kg); var Zgj=document.createElement('td'); var PJU=document.createElement('td'); Zgj.vAlign='top'; PJU.vAlign='top'; PJU.style.fontSize='1px'; Kg.appendChild(Zgj); Kg.appendChild(PJU); var label=document.createElement('span'); label.style.fontSize='13px'; label.style.fontWeight='bold'; label.style.whiteSpace='nowrap'; label.style.paddingRight='5ex'; label.appendChild(document.createTextNode(Ir.label)); label.className='scheme-body-text'; Zgj.appendChild(label); PJU.appendChild(Ir.LD); PJU.style.paddingBottom='0.3em'; this.sfs.push(label); if(Ir.description!=undefined&&Ir.description!=null&&Ir.description!=''){ var qcB=document.createElement('tr'); FB.appendChild(qcB); var Qku=document.createElement('td'); var nYR=document.createElement('td'); qcB.appendChild(Qku); qcB.appendChild(nYR); var BHE=document.createElement('span'); BHE.style.fontSize='11px'; nYR.style.paddingTop='0.3em'; nYR.style.paddingBottom='0.3em'; BHE.appendChild(document.createTextNode(Ir.description)); nYR.appendChild(BHE); this.crQ[gv]=BHE; }var ahd=document.createElement('tr'); FB.appendChild(ahd); var PLa=document.createElement('td'); PLa.colSpan=2; ahd.appendChild(PLa); PLa.style.height='1ex'; }}DB.prototype.hd=function(){ var max=0; for(var gv in this.rJi){ var Ir=this.rJi[gv]; if(Ir instanceof wn){ var JO=Ir.Dw(); if(JO>max) max=JO; }}for(var gv in this.rJi){ var Ir=this.rJi[gv]; if(Ir instanceof wn){ Ir.Qg(max); }if(Ir.hd) Ir.hd(); }}; DB.prototype.ht=function(MTX){ for(var gv in this.rJi){ var Ir=this.rJi[gv]; var adL=MTX[Ir.Onq]; if(adL!=undefined) Ir.KH(adL); }}; DB.prototype.NM=function(){ for(var gv in this.rJi){ var Ir=this.rJi[gv]; if(Ir.KH){ this.bH.prR.setAttribute(Ir.Onq,Ir.LT()); }if(Ir.NM){ Ir.NM(); }}for(var gv in this.rJi){ var Ir=this.rJi[gv]; if(Ir.ZI) Ir.ZI(); }}; DB.prototype.tn=function(JO){ this.LD.style.width=JO+'px'; }; function pE(){ return [new ConfigTextField('attributeName','title','description','defaultValue',200,100)]; }function pQ(){ return [new ConfigRichTextArea('content','')]; }function AK(){ var OFf=new ConfigTextField('link','Link label (e.g. BBC News)','','',200,20); var qsl=new ConfigTextField('url','URL (e.g. www.bbc.co.uk/news or http://www.bbc.co.uk/news)','','',300,80); return [ new ConfigTable('links',[OFf,qsl],[['Example link','http://www.bbc.co.uk/news']]) ]; }function JV(Htc,gv){ return function(){ Htc(gv); }; }function UJ(QxT){ var LD=document.createElement("div"); var NG=6; var mSY='#5D5D5D'; var la=16; var WF=5; var aX=0; for(var gv=0;gv<=10;gv++){ var hueOffset=36*gv; var lDc=0; if(gv==10){ hueOffset=0; lDc=-100; }var pA=VH(aX+(la+WF)*gv,0,la,la,NG,(new II(ZS)).lh(hueOffset,lDc),(new II(CE)).lh(hueOffset,lDc),mSY); LD.appendChild(pA); pA.onmousedown=JV(QxT,gv); }var sK=aX+(11*(la+WF))-WF; var YB=la; LD.style.width=sK+'px'; LD.style.height=YB+'px'; LD.style.position='relative'; LD.style.height=la+'px'; return LD; }function VH(left,top,width,height,fg,dHw,bodyColor,mSY){ var LD=document.createElement('div'); LD.style.cursor='pointer'; LD.style.fontSize='1px'; LD.style.position='absolute'; LD.style.left=left+'px'; LD.style.top=top+'px'; LD.style.width=(width-2)+'px'; LD.style.height=(height-2)+'px'; LD.style.border='1px solid '+mSY; LD.innerHTML='		<div style="width:'+(width-2)+'px; height:'+fg+'px; background-color: #'+dHw+'"></div>		<div style="width:'+(width-2)+'px; height:'+((height-2)-fg)+'px; background-color: #'+bodyColor+'"></div>'; return LD; }function lg(qIh,kqB,MTX,bH,ePV,vID){ var rJi=new Array(); var FRk=false; for(var gv=0;gv<kqB.length;gv++){ var aVH=kqB[gv]; var CiO=aVH.Tk(bH,ePV); rJi[gv]=CiO; if(gv==0&&CiO.XW) CiO.XW(true); if((!FRk)&&CiO instanceof Po){ FRk=true; CiO.LD.marginTop='0px'; }if(CiO.KH){ if(MTX!=null&&MTX!=undefined){ var adL=MTX[aVH.Onq]; if(adL!=undefined) CiO.KH(adL); }}if(CiO.ht){ if(MTX!=null&&MTX!=undefined){ CiO.ht(MTX); }}if(!Ou(CiO)){ qIh.appendChild(CiO.LD); }if(CiO.uU) CiO.uU(vID); }return rJi; }function Bo(rJi,width,Ga){ for(var gv=0;gv<rJi.length;gv++){ var CiO=rJi[gv]; if(!Ou(CiO)){ if(CiO.tn) CiO.tn(width); if(CiO.cO) CiO.cO(Ga); }}}function KW(rJi){ var qIh=document.getElementById('panel-edit'); var JO=ge()-50; qIh.style.width=JO+'px'; for(var gv=0;gv<rJi.length;gv++){ var CiO=rJi[gv]; if(!Ou(CiO)){ CiO.tn(JO); }}}function Ou(CiO){ if(CiO.cHM) return true; else return false; }function pa(){ }pa.prototype.JX=function(){ }; function ql(NY,ouU){ var JA=this; this.ouU=ouU; this.attributes=new Object(); this.xhB=new Object(); this.NY=NY; this.Xe(); this.CD(function(){ JA.AT().JX(); }); }ql.prototype.JZ=function(){ return this.ouU.SJ; }; ql.prototype.KR=function(){ if(this.aoW) this.aoW.call(this.AT()); }; ql.prototype.CD=function(aoW){ this.aoW=aoW; }; ql.prototype.Ct=function(){ if(this.qVN) this.qVN.call(this.AT()); }; ql.prototype.BO=function(qVN){ this.qVN=qVN; }; ql.prototype.ai=function(){ return(this.NY.iD=='MAXIMIZED'); }; ql.prototype.KY=function(){ if(this.kaW) this.kaW.call(this.AT(),this.ai()); }; ql.prototype.ML=function(kaW){ this.kaW=kaW; }; ql.prototype.Xe=function(){ try{ this.attributes=eval('('+this.NY.content+')'); }catch(eu){alert(eu);alert(this.NY.content);}if(this.attributes==null||this.attributes==undefined) this.attributes=new Object(); }; ql.prototype.sW=function(){ this.NY.content=bM.stringify(this.attributes); fZ(this.NY); }; ql.prototype.AT=function(){ return this.NY.bH; }; ql.prototype.uo=function(Yd){ this.De().innerHTML=Yd; this.US(); }; ql.prototype.De=function(){ return this.NY.Xh; }; ql.prototype.Cg=function(){ return this.NY.pK; }; ql.prototype.OP=function(){ LM(this.De()); }; ql.prototype.US=function(){ this.NY.US(); }; ql.prototype.DW=function(state){ }; ql.prototype.hY=function(){ this.NY.OqC.style.display='none'; }; ql.prototype.MA=function(state){ this.NY.Kx.style.visibility=state?'visible':'hidden'; }; ql.prototype.getAttribute=function(name){ return this.attributes[name]; }; ql.prototype.setAttribute=function(name,value){ this.attributes[name]=value; }; ql.prototype.removeAttribute=function(name){ delete this.attributes[name]; }; ql.prototype.wD=function(){ return this.attributes; }; ql.prototype.kR=function(name){ return this.xhB[name]; }; ql.prototype.bh=function(name,value){ this.xhB[name]=value; }; ql.prototype.qF=function(name){ delete this.xhB[name]; }; ql.prototype.BB=function(){ return this.xhB; }; ql.prototype.Co=function(){}; ql.prototype.KD=function(){}; ql.prototype.cE=function(){}; ql.prototype.mo=function(){}; ql.prototype.Hf=function(){}; ql.prototype.wk=function(name){}; ql.prototype.If=function(name,value){}; ql.prototype.nB=function(name){}; ql.prototype.Lj=function(){}; ql.prototype.hD=function(){}; ql.prototype.rV=function(){}; ql.prototype.fS=function(){}; ql.prototype.fr=function(){}; ql.prototype.Lp=function(){}; ql.prototype.Le=function(){}; ql.prototype.Lr=function(){}; ql.prototype.tn=function(){}; ql.prototype.KG=function(){}; ql.prototype.oq=function(){}; ql.prototype.Hj=function(no){ this.NY.Hj(no); }; ql.prototype.rc=function(){}; ql.prototype.NJ=function(){}; ql.prototype.hU=function(){}; ql.prototype.ew=function(){}; ql.prototype.gc=function(){}; ql.prototype.IV=function(){}; ql.prototype.Bu=function(abq){ this.abq=abq; }; ql.prototype.BL=function(wRl,innerWidth,QcS){ if(this.abq) this.abq.call(this.AT(),innerWidth,QcS,wRl); }; ql.prototype.cL=function(iKS){ this.iKS=iKS; }; ql.prototype.WI=function(){ if(this.iKS) return this.iKS.call(this.AT()); else return false; }; ql.prototype.sV=function(vHP){ this.vHP=vHP; }; ql.prototype.NS=function(){ if(this.vHP) this.vHP.call(this.AT()); else return false; }; ql.prototype.Av=function(HYq){ this.HYq=HYq; }; ql.prototype.Do=function(){ if(this.HYq) this.HYq.call(this.AT()); else return false; }; ql.prototype.XY=function(){}; ql.prototype.GC=function(){}; ql.prototype.sq=function(id){}; ql.prototype.DL=function(){}; ql.prototype.xQ=function(){}; ql.prototype.Aq=function(){}; ql.prototype.cX=function(){}; ql.prototype.Rj=function(){}; ql.prototype.FC=function(vXW){}; ql.prototype.Ik=function(){}; ql.prototype.nu=function(){}; ql.prototype.Jj=function(vsf,pEp,iYI){ var HK=bM.stringify(pEp); DL("/"+protopagePath+"/_api/ws/"+vsf,HK,function(wT){ var aD=eval('('+wT+')'); iYI(aD); }); }; var Jpk=new Array(); var gKa=-1; var KiX=-2; var oha=-3; var MdN=-4; var qSk=-5; var ZVe=-6; var xYB=-7; var fRZ=-8; var PWY=-9; var ImJ=-10; var dxI=-11; var WPT=-12; var PLg=-13; var BTm=-14; function Eo(){ Jpk[gKa]=uw; Jpk[KiX]=MX; Jpk[oha]=Ap; Jpk[MdN]=fK; Jpk[qSk]=pr; Jpk[ZVe]=Uj; Jpk[xYB]=fF; Jpk[fRZ]=gY; Jpk[BTm]=wd; Jpk[PWY]=cG; Jpk[ImJ]=mN; Jpk[dxI]=NU; Jpk[WPT]=ZU; Jpk[PLg]=vE; Jpk[Pc]=JP; Jpk[In]=Bn; Jpk[FT_ARCHIVE_ZVe]=CA; Jpk[kU]=Ro; }function XU(pH,cW,iYI,PBd){ if(pH>0){ iYI(ir); return; }if(!Jpk[pH]){ var mNU=false; if(mNU){ DL('/_api/widgetSource?id='+pH,function(data){ var ouU=new Function(); ouU.prototype=new pa(); var PZJ=ouU.prototype; var Iwc=eval(data); var jcB=Iwc[0]; var SJ=eval('('+Iwc[1]+')'); var Xus=Iwc[2]; ouU.SJ=SJ; var XrE=new Array(); eval(jcB); Jpk[widgetClassId]=ouU; }); }}iYI(Jpk[pH]); }function vE(){ }vE.SJ=[ new ConfigFieldAlignedGroup([ new ConfigOptionGroup('startWeekOnMonday','First day of the week','',[new ConfigOption('Sunday',false,true),new ConfigOption('Monday',true,false)]) ]) ]; vE.prototype=new pa(); vE.prototype.JX=function(){ var JA=this; this.startWeekOnMonday=this.prR.getAttribute('startWeekOnMonday'); if(!this.prR.getAttribute('items')){ var eqZ=new Date(); eqZ.setHours(0,0,0,0); var AY=eqZ.getDate(); eqZ.setDate(AY>25?26:AY+2); var TNa=new Date(eqZ.getTime()); TNa.setDate(TNa.getDate()+1); this.prR.setAttribute('items',[JA.VG(eqZ.getTime(),'Lunchtime: Buy a new beanie hat'),JA.VG(TNa.getTime(),'6pm: Go rollerblading')]); }var items=this.prR.getAttribute('items'); this.items=items; var Ko=new Date(); Ko.setDate(1);Ko.setHours(0,0,0,0); this.ZaK=Ko; this.lu(); this.prR.US(); }; vE.prototype.VG=function(datestamp,text){ var item=new Object(); item['datestamp']=datestamp; item['text']=text; return item; }; vE.prototype.lu=function(text){ this.Mou=gk[this.prR.NY.XG]; this.prR.OP(); this.LD=document.createElement('div'); this.LD.style.cursor='default'; this.LD.appendChild(this.so(this.ZaK)); this.prR.De().appendChild(this.LD); }; vE.prototype.Nf=function(ZaK){ var JA=this; var Abo=document.createElement('div'); Abo.style.width='10px'; Abo.style.height='14px'; Abo.style.cursor='pointer'; Abo.onclick=function(){ var WZ=JA.ZaK.getMonth(); if(WZ==0){ JA.ZaK.setMonth(11); JA.ZaK.setFullYear(JA.ZaK.getFullYear()-1); }else{ JA.ZaK.setMonth(WZ-1); }JA.lu(); }; if(isIE) Abo.ondblclick=Abo.onclick; KX(Abo,'/web/dynamicPng/'+SH+'/chevron-left.png'); var BBe=document.createElement('div'); BBe.style.width='10px'; BBe.style.height='14px'; BBe.style.cursor='pointer'; BBe.onclick=function(){ var WZ=JA.ZaK.getMonth(); if(WZ==11){ JA.ZaK.setMonth(0); JA.ZaK.setFullYear(JA.ZaK.getFullYear()+1); }else{ JA.ZaK.setMonth(WZ+1); }JA.lu(); }; if(isIE) BBe.ondblclick=BBe.onclick; KX(BBe,'/web/dynamicPng/'+SH+'/chevron-right.png'); var LYO=document.createElement('div'); LYO.style.width='100%'; LYO.className='scheme-body-text'; LYO.style.paddingTop='3px'; LYO.style.paddingBottom='3px'; LYO.style.fontSize='14px'; LYO.style.fontWeight='bold'; LYO.appendChild(document.createTextNode(vA(ZaK,'MMM  yyyy'))); LYO.style.cursor='pointer'; LYO.onmouseup=function(){ var vY=new Date(); JA.ZaK.setMonth(vY.getMonth()); JA.ZaK.setFullYear(vY.getFullYear()); JA.lu(); }; var Kg=document.createElement('tr'); var Lip=document.createElement('td'); Lip.align='center'; Lip.vAlign='middle'; Kg.appendChild(Lip); Lip.appendChild(Abo); var UbQ=document.createElement('td'); UbQ.colSpan=5; UbQ.align='center'; UbQ.vAlign='middle'; Kg.appendChild(UbQ); UbQ.appendChild(LYO); var vOp=document.createElement('td'); vOp.align='center'; vOp.vAlign='middle'; Kg.appendChild(vOp); vOp.appendChild(BBe); return Kg; }; vE.prototype.so=function(ZaK){ var JA=this; var erm=this.startWeekOnMonday; var vY=new Date(); var fXb=['Sun','Mon','Tue','Wed','Thu','Fri','Sat']; if(erm) fXb=['Mon','Tue','Wed','Thu','Fri','Sat','Sun']; var table=document.createElement('table'); table.cellPadding=0; table.cellSpacing=0; table.align='center'; table.border=0; table.className='scheme-body-text'; table.style.textAlign='center'; var FB=document.createElement('tbody'); table.appendChild(FB); FB.appendChild(this.Nf(ZaK)); var LuI=document.createElement('tr'); var YjZ=document.createElement('td'); YjZ.appendChild(ji(5)); LuI.appendChild(YjZ); FB.appendChild(LuI); var JXC=document.createElement('tr'); FB.appendChild(JXC); for(var gv in fXb){ var RF=document.createElement('td'); JXC.appendChild(RF); var oQm=document.createElement('div'); RF.appendChild(oQm); oQm.className='scheme-body-text'; oQm.style.fontSize='10px'; oQm.style.whiteSpace='nowrap'; oQm.appendChild(document.createTextNode(fXb[gv])); }var kYj=erm?1:0; var Ko=new Date(ZaK.getTime());; Ko.setDate(1); var Rbl=Ko.getDay(); Ko=new Date(ZaK.getTime());; var puX=0; Ko.setDate(27); var hrA=Ko.getMonth(); while(true){ Ko.setTime(Ko.getTime()+1000*60*60*24); if(Ko.getMonth()==ZaK.getMonth()) puX=Ko.getDate(); else break; }var rAR=document.createElement('tr'); for(var gv=kYj;gv<(Rbl+((erm&&Rbl==0)?7:0));gv++){ rAR.appendChild(document.createElement('td')); }var YUo=new Date(ZaK.getTime()); for(var pHx=1;pHx<=puX;pHx++) { YUo.setDate(pHx); if(rAR==null) rAR=document.createElement('tr'); var uTu=document.createElement('td'); var rUi=document.createElement('div'); rUi.className='scheme-body-text'; rUi.style.whiteSpace='nowrap'; rUi.style.cursor=JA.prR.NY.IH()?'pointer':'default'; rUi.style.textAlign='center'; rUi.style.paddingLeft='8px'; rUi.style.paddingRight='8px'; rUi.style.paddingTop='8px'; rUi.style.paddingBottom='4px'; if(isIE) rUi.style.width='32px'; uTu.vAlign='middle'; uTu.align='center'; uTu.appendChild(rUi); rAR.appendChild(uTu); var xES=null; if((YUo.getDay()==0)||(YUo.getDay()==6)){ xES='#'+this.Mou; }var phw=null; var ZKJ=null; var XmH=(YUo.getDate()==vY.getDate()&&YUo.getMonth()==vY.getMonth()&&YUo.getFullYear()==vY.getFullYear()); if(XmH){ phw='bold'; ZKJ='14px'; }if(phw) rUi.style.fontWeight=phw; if(ZKJ){ rUi.style.fontSize=ZKJ; }else{ rUi.style.fontSize='14px'; }if(xES) rUi.style.color=xES; rUi.appendChild(document.createTextNode(''+pHx)); if(XmH) rUi.style.textDecoration='underline'; var IWg=null; for(var gv in this.items){ var fvP=this.items[gv]; if(fvP['datestamp']==YUo.getTime()) IWg=fvP; }var iC=function(IWg,YUo){ if(IWg){ KX(rUi,'/web/dynamicPng/'+(XmH?SH:JA.Mou)+'/date-loop2.png'); var text=IWg['text']; var jtq=document.createElement('div'); jtq.style.width='260px'; var KHA=pm(vA(YUo,'MMM d, y'),12,!false); KHA.style.paddingBottom='8px'; jtq.appendChild(KHA); var eD=nx(text,12,false); eD.style.whiteSpace='normal'; jtq.appendChild(eD); fo.sw(rUi,null,null,jtq,false); }rUi.onmousedown=function(oPc){ if(!JA.prR.NY.IH()) return; if(IWg==null){ IWg=JA.VG(YUo.getTime(),''); JA.items.push(IWg); }var jtq=document.createElement('div'); jtq.style.width='260px'; jtq.style.padding='5px 10px 5px 10px'; var KHA=pm('Editing: '+vA(YUo,'MMM d, y'),12,!false); KHA.style.paddingBottom='8px'; jtq.appendChild(KHA); var REc=new VP(null,240,Math.max(40,dY(IWg['text'],240,'scheme-body-text',12,false,false)),function(){ },function(value,lho,ovW){ if(lho){ if(Xx(value)==''){ Lb(IWg,JA.items); }else{ IWg['text']=value; }vE.Sxl.position(-10000,-10000); JA.prR.sW(); JA.lu(); }},function(){ if(vE.Sxl) vE.Sxl.Cw(); },IWg['text'],12,'normal','scheme-body-text',true,function(){ return!JA.prR.NY.IH(); }); jtq.appendChild(REc.LD); var cn=Xt(oPc); cn.x+=10; if(!vE.Sxl){ vE.Sxl=new QF(cn.x,cn.y,false,vs-2,'00',jtq,false,!true,null); }else{ if(vE.edO) vE.edO.CS(); vE.Sxl.KT(jtq); vE.Sxl.position(cn.x,cn.y,false); }vE.edO=REc; setTimeout(function(){REc.OR();},200); }; }(IWg,new Date(YUo)); if(YUo.getDay()==(erm?0:6)) { FB.appendChild(rAR); rAR=null; }}if(rAR!=null) FB.appendChild(rAR); return table; }; function ZU(){ }ZU.SJ=[]; ZU.Plu=15; ZU.prototype=new pa(); ZU.prototype.JX=function(){ var JA=this; this.prR.OP(); this.IHR=new Array(); var lqM=document.createElement('div'); this.lqM=lqM; if(!this.prR.getAttribute('items')){ this.prR.setAttribute('items',[JA.VG()]); }var items=this.prR.getAttribute('items'); this.items=items; for(var gv in items){ var item=items[gv]; this.lqM.appendChild(this.Ub(item,this.prR.NY.innerWidth)); }this.prR.De().appendChild(lqM); if(this.prR.NY.IH()) this.prR.De().appendChild(this.MN()); this.prR.Bu(function(innerWidth,QcS,wRl){ if(!wRl){ JA.prR.US(); JA.dB(); JA.prR.US(); }}); this.prR.US(); this.dB(); }; ZU.prototype.MN=function(item,width){ var JA=this; var bYR=document.createElement('div'); bYR.style.cursor='pointer'; bYR.style.paddingTop='7px'; var WiU=GP(); WiU.width=11; WiU.height=11; WiU.src='/web/images/add-item.gif'; var Pa=pm('new item',11,false); bYR.style.paddingBottom='10px'; bYR.appendChild(Fk([WiU,bW(5),Pa])); bYR.onmouseover=function(){ Pa.style.textDecoration='underline'; }; bYR.onmouseout=function(){ Pa.style.textDecoration='none'; }; bYR.onclick=function(){ var NT=JA.VG(''); JA.items.push(NT); var REc; JA.lqM.appendChild(JA.Ub(NT,JA.prR.NY.innerWidth,function(aF){ REc=aF; })); JA.prR.US(); JA.dB(); JA.prR.US(); REc.OR(); }; return bYR; }; ZU.prototype.Ub=function(item,width,WCA){ var JA=this; var LD=document.createElement('div'); var REc=new VP(null,width-ZU.Plu,eG('scheme-body-text',12,false,false),function(){ },function(value,lho,ovW){ if(lho){ item['text']=value; JA.prR.sW(); }if(ovW&&value!=''){ }},function(){ JA.prR.US(); },item['text'],12,item['isBold']?'bold':'normal','scheme-body-text',false,function(){ return!JA.prR.NY.IH(); }); if(WCA) WCA(REc); this.IHR.push(REc); var xK=document.createElement('div'); xK.style.fontSize='0px'; xK.style.width='11px'; xK.style.height='11px'; xK.style.marginTop='2px'; xK.style.marginLeft='5px'; xK.style.cursor='pointer'; KX(xK,'/web/images/todo-cross.png'); xK.onclick=function(){ Lb(item,JA.items); JA.prR.sW(); LD.parentNode.removeChild(LD); JA.dB(); JA.prR.US(); JA.dB(); JA.prR.US(); }; if(!this.prR.NY.IH()) xK.style.display='none'; var table=Fk([REc.LD,xK],true); table.style.paddingTop='5px'; table.style.paddingBottom='5px'; LD.appendChild(table); var Mou=gk[this.prR.NY.XG]; LD.style.borderBottom='1px solid #'+Mou; var DUc=vA(new Date(item['createDate']),'MMM d, y       hh:mm a'); fo.sw(LD,'Created: '+DUc,null,null,false); return LD; }; ZU.prototype.dB=function(){ for(var gv in this.IHR){ this.IHR[gv].tn(this.prR.NY.innerWidth-ZU.Plu); }}; ZU.prototype.VG=function(text){ var item=new Object(); item['createDate']=new Date().getTime(); item['text']=text!=null?text:'Hello, world!'; return item; }; function mN(){ }mN.SJ=[ new ConfigFieldAlignedGroup([ new ConfigOptionGroup('digits','Display mode','',[new ConfigOption('12 hour','12',true),new ConfigOption('24 hour','24',false)]),new ConfigTextField('correction','Time offset (hours)','E.g. if you are on the US West Coast then enter -3 to make this clock display East Coast times.',0,30) ]) ]; mN.prototype=new pa(); mN.prototype.JX=function(){ var JA=this; if(!this.prR.getAttribute('digits')) this.prR.setAttribute('digits','12'); if(!this.prR.getAttribute('correction')) this.prR.setAttribute('correction',0); this.prR.NY.QW(true); this.prR.OP(); this.gj(); var Vp=new Array(); Vp['correction']=parseInt(this.prR.getAttribute('correction'))*3600*1000; Vp['digits']=this.prR.getAttribute('digits'); Vp['faceColor']='0xffffff'; Vp['bodyColor']='0x0066FF'; Vp['type']='ANALOG'; this.prR.De().innerHTML=QI('/web/images/flash/clockWidgetDigital.swf',this.Ows,this.LvD,Vp); this.prR.Bu(function(innerWidth,QcS,wRl){ if(!wRl){ JA.gj(); JA.JX(); }}); }; mN.prototype.gj=function(){ this.Ows=this.prR.NY.innerWidth; this.LvD=this.prR.NY.QcS-5; }; function ir(){ }ir.prototype=new pa(); ir.SJ=[]; ir.mq=function(bH){ var LD=document.createElement('div'); LD.appendChild(Mw('Safe mode enabled. Click here to load this widget',12,false,0,function(){ bH.prR.OP(); bH.JX(); })); LD.style.textDecoration='underline'; bH.prR.De().appendChild(LD); }; ir.prototype.JX=function(TT){ this.dgM=0; this.uSi=0; this.QFw=false; if(TT){ ir.mq(this); return; }var JA=this; this.prR.BO(function(){ JA.JX(); }); this.prR.JZ=function(){ var YTp=eval('('+this.NY.eo['configElementsJson']+')'); return [ new ConfigFieldAlignedGroup(YTp) ]; }; this.prR.OP(); this.prR.CD(function(){ JA.JX(); }); var eo=this.prR.NY.eo; var url; var KUY=false; var jbm=new Array(); var SJ=eval('('+eo['configElementsJson']+')'); var mC=new Object(); for(var gv in SJ){ var aVH=SJ[gv]; if(aVH.defaultValue) mC[aVH.Onq]=aVH.defaultValue; if(aVH.geZ) mC[aVH.Onq]=bM.stringify(aVH.geZ); }for(var gv in this.prR.attributes){ var value=this.prR.attributes[gv]; if(typeof value=='object') value=bM.stringify(value); mC[gv]=value; }DWp=eo['sourceUrl']!=''; if(DWp){ for(var gv in mC){ jbm[gv]=mC[gv]; }if(eo['sendUserToken']) jbm['ppUserId']=this.prR.NY.hM; if(eo['horizontalOffset']) this.dgM=eo['horizontalOffset']; if(eo['verticalOffset']) this.uSi=eo['verticalOffset']; if(eo['disableScrollbars']) this.QFw=eo['disableScrollbars']; if((this.dgM!=0)||(this.uSi!=0)) this.QFw=true; if(eo['attributeTransmission']=='GET'){ url=eo['sourceUrl']; }else{ url=eo['sourceUrl']; KUY=true; }}else{ jbm['widgetId']=this.prR.NY.pH; if(eo['widgetSourceId']||eo['widgetSourceId']==0) jbm['widgetSourceId']=eo['widgetSourceId']; if(ok(mC)==0){ KUY=false; url=ir.tJ(jbm); }else{ KUY=true; jbm['widgetAttributes']=bM.stringify(mC); url=ir.tJ(jbm); }}if(eo['state']=='REMOVED'||eo['state']=='REMOVED'){ url='http://www.google.com'; KUY=false; jbm=new Array(); this.prR.OP(); this.prR.De().appendChild(document.createTextNode('This widget is no longer available. Please remove it from your page.')); }else{ if(KUY){ var TnS=this.kL(); setTimeout(function(){ nL(url,TnS,jbm); },1); }else{ setTimeout(function(){ JA.kL(sk(url,jbm)); },1); }}}; ir.IDm=0; ir.prototype.kL=function(url){ var JA=this; this.prR.NY.QW(true); this.prR.NY.pK.style.padding='0px'; this.prR.NY.Xh.style.padding='0px'; var HAY='externalFrame'+ir.IDm++; var OU; if(isIE){ OU=document.createElement('<iframe name="'+HAY+'">'); }else{ OU=document.createElement('iframe'); OU.name=HAY; }this.iframe=OU; if(this.QFw){ OU.scrolling='no'; }else OU.scrolling='auto'; OU.allowTransparency=true; OU.border=0; OU.frameBorder='no'; OU.hideFocus=true; OU.BBI=0; OU.Xuu=0; OU.hspace=0; OU.vspace=0; this.gi(); this.prR.De().appendChild(OU); this.prR.De().style.margin='0px'; this.prR.De().style.padding='0px'; if(url){ OU.src=url; }OU.style.position='absolute'; OU.style.left='0px'; OU.style.top='0px'; this.gi(); this.prR.Bu(function(){ JA.gi(); }); return HAY; }; ir.prototype.gi=function(){ var uSi=Math.abs(hH(this.uSi)); var dgM=Math.abs(hH(this.dgM)); var TK=this.prR.NY; var y=TK.height; y-=8; y-=TK.Lo(); var JO=TK.width+dgM; var XB=y+uSi; this.iframe.width=JO; this.iframe.height=XB; this.iframe.style.width=JO+'px'; this.iframe.style.height=XB+'px'; this.iframe.style.left=(-1*dgM)+'px'; this.iframe.style.top=(-1*uSi)+'px'; }; ir.tJ=function(Pl){ var url; url='http://w'+Pl['widgetId']+'.'+XR+'/source/markup.html'; return url; }; ir.Eu=function(pH){ return 'http://widgets.protopage.com/index.php5?p=widgetView&w='+pH; }; function wd(){ }wd.SJ=[]; wd.prototype=new pa(); wd.prototype.huX="85fde294fc072ebab93da4f2eab515cb"; wd.prototype.JX=function(){ var JA=this; this.prR.OP(); this.prR.De().innerHTML='Fetching Facebook data...'; var abw=JA.prR.getAttribute("sessionKey"); if(!abw){ this.prR.Jj('facebookService',{"methodName":"createAuthToken"},function(aD){ JA.Qd(aD); }); return; }this.qV(JA.prR.getAttribute("sessionKey")); }; wd.prototype.Qd=function(pfs){ this.prR.OP(); var LD=document.createElement('div'); this.prR.De().appendChild(LD); if(pfs["error"]){ LD.innerHTML="There was a problem fetching Facebook data, please try again later."; }else{ LD.style.textAlign="center"; LD.appendChild(this.MC(pfs["authToken"],"Log in to Facebook")); LD.appendChild(document.createElement("br")); LD.appendChild(document.createElement("br")); LD.appendChild(this.MC(pfs["authToken"],null,"http://static.ak.facebook.com/images/devsite/facebook_login.gif")); LD.appendChild(document.createElement("br")); LD.appendChild(document.createElement("br")); LD.appendChild(document.createTextNode("(If you check 'Save my login info' you will only need to do this once)")); }}; wd.prototype.MC=function(nQ,text,Gjr){ var JA=this; var sS=document.createElement("a"); if(text) sS.appendChild(document.createTextNode(''+text)); if(Gjr){ var JT=document.createElement("img"); JT.src=Gjr; JT.style.border="0px"; sS.appendChild(JT); }sS.href="javascript:void(0)"; var BYq="http://www.facebook.com/login.php?popup=1&api_key="+this.huX+"&v=1.0&auth_token="+nQ; sS.onclick=function(){ var mmT=window.open(BYq,"fb-login",'height=300,width=460'); if(window.focus) mmT.focus(); JA.QP(); var YcZ=setInterval(function(){ try{ var sS=mmT.location; }catch(xDJ){ JA.qV(nQ); clearInterval(YcZ); }},500); }; return sS; }; wd.prototype.QP=function(){ this.prR.OP(); var LD=document.createElement('div'); this.prR.De().appendChild(LD); LD.style.textAlign="center"; LD.appendChild(document.createTextNode("A popup window has been opened for you to log in to Facebook.")); LD.appendChild(document.createElement("br")); LD.appendChild(document.createElement("br")); LD.appendChild(document.createTextNode("When you have logged and closed that window your latest Facebook info will display here.")); }; wd.prototype.qV=function(abw,nQ){ var JA=this; this.prR.Jj('facebookService',{"methodName":"getFacebookData","authToken":nQ,"sessionKey":abw},function(aD){ if(aD["error"]){ if(aD["error"]=="Invalid parameter"){ JA.UI("There was an error fetching your Facebook data, your session may have timed out..."); JA.prR.Jj('facebookService',{"methodName":"createAuthToken"},function(aD){ JA.Qd(aD); }); }else{ JA.UI("There was an error fetching your Facebook data: "+aD["error"]); }}else{ if(aD["sessionKey"]){ JA.prR.setAttribute("sessionKey",aD["sessionKey"]); JA.prR.sW(); }JA.gp(aD); }}); }; wd.prototype.gp=function(ZbA){ this.prR.OP(); var LD=document.createElement('div'); this.prR.De().appendChild(LD); LD.appendChild(this.GT('mail',ZbA['mail'],'http://www.facebook.com/inbox','New messages')); LD.appendChild(this.GT('poke',ZbA['poke'],'http://www.new.facebook.com/notifications.php','New pokes')); LD.appendChild(this.GT('friend',ZbA['friend'],'http://www.new.facebook.com/reqs.php','New friend requests')); LD.appendChild(this.GT('event',ZbA['event'],'http://www.new.facebook.com/reqs.php','New groups')); LD.appendChild(this.GT('group',ZbA['group'],'http://www.new.facebook.com/reqs.php','New events')); var ZYZ=document.createElement('div'); }; wd.prototype.UI=function(error){ this.prR.OP(); var LD=document.createElement('div'); this.prR.De().appendChild(LD); LD.appendChild(document.createTextNode(error)); }; wd.prototype.GT=function(HLb,value,link,xOK){ var sS=document.createElement('a'); sS.style.textDecoration='none'; sS.style.margin='0px 1px'; sS.style.padding='0px 3px'; sS.href=link; sS.alt=xOK; var JT=document.createElement('img'); JT.style.margin='1px 0px'; JT.style.padding='0px 3px 0px 0px'; JT.style.verticalAlign='middle'; JT.src='/web/images/widgets/facebook/'+HLb+'.gif'; sS.appendChild(JT); sS.appendChild(document.createTextNode(''+value)); return sS; }; function Db(){ }function SM(ww){ if(!ww) return ''; var gv=ww.indexOf('http://'); if(gv==-1){ if(ww.indexOf('://')!=-1) return ww; else return 'http://'+ww; }if(gv==0) return ww; return ww.substring(gv); }function uE(feedContentRequests,QuP){ if(feedContentRequests.length==0) QuP(new Array()); for(var gv in feedContentRequests) feedContentRequests[gv].locatorUrl=SM(feedContentRequests[gv].locatorUrl); var rm=new Object(); rm.name='requestFeedContent'; rm.feedContentRequests=feedContentRequests; var HK=bM.stringify(rm); var il=LH.SR(); DL('/_api/feed',HK,function(wT){ var nfA=eval('('+wT+')'); var feeds=nfA.feeds; var error=nfA.error; if(feeds){ for(var gv in feeds){ feeds[gv].feedContentRequest=feedContentRequests[gv]; }}if(feeds){ il.qa(feeds); }QuP(feeds,error); }); }function uw(){ this.nRC=new Array(); this.IjC=null; }function sf(){ var qsl=new ConfigTextField('locatorUrl','News page or feed URL (e.g. www.cnn.com or http://rss.cnn.com/rss/cnn_topstories.rss)',null,'www.cnn.com',300,100); return [ new ConfigDivider('News feed options',''),new ConfigFieldAlignedGroup([ new ConfigTextField('maxHeadlinesPerFeed','Maximum number of headlines to display per news feed','','7',30) ]),new ConfigFieldAlignedGroup([ new ConfigOptionGroup('headlinesOnly','Display','',[new ConfigOption('Headlines only',true,true),new ConfigOption('Headlines and previews',false,false)]),new ConfigOptionGroup('mode','Mode','',[new ConfigOption('Regular feed','regular',true),new ConfigOption('Photo thumbnails','thumbnails',false),new ConfigOption('Single image / video','singleImage',false)]) ]),new ConfigDivider('Multiple news feed configuration',''),
new ConfigTable('feeds',[qsl],[]) ]; }uw.Wl=function(HIM,bH,ePV){ this.HIM=HIM; var JA=this; this.bH=bH; var JlX=24; this.LD=document.createElement("div"); this.LD.style.paddingLeft=JlX+'px'; this.LD.style.paddingRight=JlX+'px'; this.LD.style.paddingBottom=20+'px'; this.LD.style.width='200px'; this.xlc=document.createElement('input'); this.xlc.style.width='3ex'; this.xlc.style.padding='0px'; this.xlc.style.margin='0px'; this.xlc.type='checkbox'; this.xlc.checked=(this.bH.prR.getAttribute('headlinesOnly')); if(isIE&&JA.xlc.checked){ setTimeout(function(){ JA.xlc.checked=true; },1); }this.dKJ=document.createElement('input'); this.dKJ.style.width='3ex'; this.dKJ.style.textAlign='center'; this.dKJ.style.padding='0px'; this.dKJ.style.marginLeft='0ex'; this.dKJ.style.marginRight='0ex'; this.dKJ.type='text'; if(this.bH.prR.getAttribute('maxHeadlinesPerFeed')) this.dKJ.value=this.bH.prR.getAttribute('maxHeadlinesPerFeed'); else this.dKJ.value='3'; this.CKh=document.createElement('input'); this.CKh.style.width='3ex'; this.CKh.style.padding='0px'; this.CKh.style.margin='0px'; this.CKh.type='checkbox'; this.CKh.checked=true; this.CKh.checked=(this.bH.prR.getAttribute('showFullArticlesWhenMaximized')==true); if(isIE&&JA.CKh.checked){ setTimeout(function(){ JA.CKh.checked=true; },1); }this.Hah=document.createElement('input'); this.Hah.style.width='3ex'; this.Hah.style.textAlign='center'; this.Hah.style.padding='0px'; this.Hah.style.marginLeft='0ex'; this.Hah.style.marginRight='0ex'; this.Hah.type='text'; if(this.bH.prR.getAttribute('maxHeadlinesPerFeedWhenMaximized')) this.Hah.value=this.bH.prR.getAttribute('maxHeadlinesPerFeedWhenMaximized'); else this.Hah.value='7'; var DHi=document.createElement('table'); DHi.cellPadding=2; DHi.cellSpacing=0; DHi.border=0; var Bct=document.createElement('tbody'); DHi.appendChild(Bct); var Mxv=document.createElement('tr'); var qcB=document.createElement('tr'); Bct.appendChild(Mxv); Bct.appendChild(qcB); var QB=document.createElement('td'); var ur=document.createElement('td'); var Fwa=document.createElement('td'); var swO=document.createElement('td'); var aqS=document.createElement('td'); var Ukd=document.createElement('td'); var bsl=document.createElement('td'); var qaZ=document.createElement('td'); var ggq=document.createElement('td'); var DpC=document.createElement('td'); QB.className='scheme-body-text'; ur.className='scheme-body-text'; Fwa.className='scheme-body-text'; swO.className='scheme-body-text'; aqS.className='scheme-body-text'; Ukd.className='scheme-body-text'; bsl.className='scheme-body-text'; qaZ.className='scheme-body-text'; ggq.className='scheme-body-text'; DpC.className='scheme-body-text'; Mxv.appendChild(QB); Mxv.appendChild(ur); Mxv.appendChild(Fwa); Mxv.appendChild(swO); Mxv.appendChild(aqS); qcB.appendChild(Ukd); qcB.appendChild(bsl); qcB.appendChild(qaZ); qcB.appendChild(ggq); qcB.appendChild(DpC); var XPx=document.createElement('span'); XPx.style.fontWeight='bold'; XPx.style.paddingRight='12px'; XPx.appendChild(document.createTextNode('Normal display:')); XPx.style.whiteSpace='nowrap'; QB.appendChild(XPx); ur.appendChild(document.createTextNode('Show headlines only')); Fwa.appendChild(this.xlc); this.xlc.style.marginRight='16px'; this.xlc.style.marginLeft='0px'; swO.appendChild(document.createTextNode('Max. headlines per news feed')); swO.style.whiteSpace='nowrap'; aqS.appendChild(this.dKJ); var EUG=document.createElement('span'); EUG.style.fontWeight='bold'; EUG.style.paddingRight='12px'; EUG.style.whiteSpace='nowrap'; EUG.appendChild(document.createTextNode('When maximized:')); Ukd.appendChild(EUG); bsl.appendChild(document.createTextNode('Show full articles (where available)')); bsl.style.whiteSpace='nowrap'; qaZ.appendChild(this.CKh); this.CKh.style.marginRight='16px'; this.CKh.style.marginLeft='0px'; ggq.appendChild(document.createTextNode('Max. headlines per news feed')); DpC.appendChild(this.Hah); this.LD.appendChild(DHi); this.qaX=100; this.tn=function(JO){ if(JO<this.qaX) JO=this.qaX; this.LD.style.width=(JO-JlX*2)+'px'; }; this.NM=function(){ this.bH.prR.setAttribute('headlinesOnly',this.xlc.checked); this.bH.prR.setAttribute('maxHeadlinesPerFeed',this.dKJ.value); this.bH.prR.setAttribute('showFullArticlesWhenMaximized',this.CKh.checked); this.bH.prR.setAttribute('maxHeadlinesPerFeedWhenMaximized',this.Hah.value); }; }; uw.wI=function(HIM,bH,ePV){ this.HIM=HIM; var JA=this; var JlX=24; this.bH=bH; this.LD=document.createElement("div"); this.LD.className='scheme-body-text'; this.LD.style.paddingLeft=JlX+'px'; this.LD.style.paddingRight=JlX+'px'; this.LD.style.width='200px'; this.DG=document.createElement('div'); this.DG.appendChild(document.createTextNode('You can also add feeds to the table above by choosing from our directory:')); this.DG.paddingBottom='16px'; this.fpa=document.createElement('div'); this.jsU=new Array(); this.IuJ=null; for(var gv in feedList){ var LL=document.createElement('div'); LL.className='scheme-body-text'; LL.style.marginLeft='0px'; LL.style.marginRight='14px'; LL.style.marginTop='4px'; LL.style.marginBottom='4px'; LL.style.fontWeight='bold'; LL.style.cursor='pointer'; LL.style.whiteSpace='nowrap'; LL.onmousedown=function(aF,gv){ return function(){ var CCU=new Array(); JA.CCU=CCU; JA.EDf=gv; for(var fJ in JA.jsU){ if(fJ!=gv) JA.jsU[fJ].className='scheme-body-text'; }var dIE=feedList[gv][1]; for(var fJ in dIE){ var OU=document.createElement('div'); OU.className='scheme-body-text'; OU.style.marginLeft='0px'; OU.style.marginRight='14px'; OU.style.marginTop='4px'; OU.style.marginBottom='4px'; OU.style.cursor='pointer'; OU.style.whiteSpace='nowrap'; var gO=document.createElement('a'); var LCP=document.createTextNode('(add)'); gO.appendChild(LCP); gO.style.fontSize='11px'; gO.style.textDecoration='underline'; gO.style.paddingRight='6px'; gO.onclick=function(label,PF,SQm,LCP){ return function(){ LCP.replaceData(0,LCP.length,'(added)'); var wAc=null; for(var nd in ePV.rJi) if(ePV.rJi[nd].Onq=='feeds') wAc=ePV.rJi[nd]; var pHT=(SQm!=null)?SQm:PF; wAc.VB(['('+label+')     '+pHT]); wAc.nA(); }; }(dIE[fJ][0],dIE[fJ][1],dIE[fJ][2],LCP); var dc=document.createElement('a'); dc.appendChild(document.createTextNode('(preview)')); dc.className='scheme-body-text'; dc.style.fontSize='11px'; dc.style.textDecoration='underline'; dc.style.paddingRight='6px'; dc.onclick=function(PF){ return function(){ ii(PF); return false; }; }(dIE[fJ][1]); OU.appendChild(dc); OU.appendChild(gO); OU.appendChild(document.createTextNode(dIE[fJ][0])); CCU.push(OU); }uA(JA.EBd,CCU); JA.PT(); }; }(LL,gv); LL.onmouseover=function(aF){ return function(){ aF.className='scheme-header scheme-header-text'; }; }(LL); LL.onmouseout=function(aF,gv){ return function(){ if(JA.EDf!=gv) aF.className='scheme-body scheme-body-text'; }; }(LL,gv); LL.appendChild(document.createTextNode(feedList[gv][0])); this.jsU.push(LL); }this.EBd=document.createElement('div'); this.LD.appendChild(this.DG); this.LD.appendChild(this.fpa); this.LD.appendChild(this.EBd); this.qaX=100; this.tn=function(JO){ if(JO<this.qaX) JO=this.qaX; this.LD.style.width=(JO-JlX*2)+'px'; this.fpa.style.width=this.LD.style.width; this.EBd.style.width=this.LD.style.width; uA(this.fpa,this.jsU); if(this.CCU) uA(this.EBd,this.CCU); }; this.vID=null; this.uU=function(iYI){ this.vID=iYI; }; this.PT=function(){ if(this.vID!=null) this.vID(); }; }; uw.SJ=sf(); uw.prototype=new pa(); uw.prototype.JX=function(){ var JA=this; this.prR.OP(); this.ZF(); this.prR.BO(function(){ var AwT=1000*60; JA.ZF(null,AwT); }); }; uw.prototype.OY=function(CWT){ if(this.Yqh==undefined) this.Yqh=1; this.Yqh++; if(this.Yqh>30) return; var Kdp=CWT?CWT:4000; var JA=this; setTimeout(function(){ JA.ZF(Kdp); },1000+Kdp); }; uw.prototype.ZF=function(YRZ,AwT){ if(YRZ!=undefined&&YRZ!=null){ var vY=(new Date()).getTime(); if((vY-BI)<YRZ) return; }var JA=this; JA.prR.OP(); var Ype=document.createElement('div'); Ype.appendChild(document.createTextNode('Retrieving feeds...')); this.prR.De().appendChild(Ype); this.prR.US(); var Ejr=BR(this.prR.getAttribute('feeds')); this.dDw=(Ejr.length>1); var xqY=this.prR.wD(); var headlinesOnly=xqY['headlinesOnly']; var maxHeadlinesPerFeed=xqY['maxHeadlinesPerFeed']; var iD=xqY['mode']; var feedContentRequests=new Array(); for(var gv in Ejr){ var HD=new Db(); if(AwT!=undefined) HD['maxLastFeedUpdateAttemptAgeMs']=AwT; HD.locatorUrl=SM(Ejr[gv]); HD.includeBylines=true; var ruW=this.nRC[HD.locatorUrl]!=undefined; HD.includeFullEntryBodies=(iD=='singleImage'||ruW); HD.maxEntries=maxHeadlinesPerFeed; HD.lastReadTimestamp=0; if(xqY.lastReadTimestamps!=undefined){ if(xqY.lastReadTimestamps[HD.locatorUrl]!=undefined){ HD.lastReadTimestamp=xqY.lastReadTimestamps[HD.locatorUrl]; }}feedContentRequests.push(HD); }uE(feedContentRequests,function(feeds,error){ JA.jYA=0; JA.feeds=feeds; JA.error=error; JA.VO(); }); this.fn(); }; uw.prototype.fn=function(){ var JA=this; if(this.IjC!=null) clearTimeout(this.IjC); this.IjC=setTimeout(function(){ JA.IjC=null; if(!tm.hOP){ JA.ZF(3500000); }else{ JA.fn(); }},3600000); }; uw.prototype.VO=function(){ var JA=this; if(this.ihf) this.ihf.innerHTML=''; this.prR.OP(); this.prR.De().appendChild(this.fL(this.feeds,this.error)); if(isIE) setTimeout(function(){JA.prR.US();},500); this.prR.US(); }; uw.prototype.fL=function(feeds,error){ var JA=this; this.Mou=gk[this.prR.NY.XG]; this.hVw=new Array(); this.prR.Bu(function(innerWidth,QcS,wRl){ for(var gv in JA.hVw) JA.hVw[gv](innerWidth,QcS,wRl); }); var xqY=this.prR.wD(); var headlinesOnly=xqY['headlinesOnly']; var maxHeadlinesPerFeed=xqY['maxHeadlinesPerFeed']; var iD=xqY['mode']; var maxEntries=maxHeadlinesPerFeed; var LD=document.createElement('div'); LD.style.width='100%'; LD.style.overflow='hidden'; LD.style.paddingBottom='5px'; var mGv=false; if(feeds){ for(var gv=0;gv<feeds.length;gv++){ var Mo=feeds[gv]; var wAJ=(gv==(feeds.length-1)); var Wru=feeds.length>1; var pq=(!Mo.state); var jYp=document.createElement('div'); if(wAJ){ jYp.style.paddingBottom='0px'; }else{ if(Mo.entries&&Mo.entries.length==0){ jYp.style.paddingBottom='0px'; }else{ jYp.style.paddingBottom='8px'; }}if(this.dDw){ var mU=document.createElement('div'); AS(mU,lA(Mo.link)); mU.style.fontSize='11px'; mU.style.paddingBottom='3px'; mU.style.clear='both'; mU.style.fontWeight='bold'; if(pq){ var OHo=document.createElement('a'); OHo.appendChild(document.createTextNode(Mo.title)); OHo.href=Mo.link; OHo.style.textDecoration='none'; mU.appendChild(OHo); OHo.onclick=function(url){ return function(eu){ return ia(url,eu); }; }(Mo.link); }else{ mU.appendChild(document.createTextNode(Mo.locatorUrl)); }jYp.appendChild(mU); }else{ if(pq){ this.prR.NY.WY.src=lA(Mo.link); this.prR.NY.fVc.st(Mo.link); if(Mo.title=='gapingvoid: "cartoons drawn on the back of business cards"') Mo.title='gapingvoid'; var gNG=this.prR.NY.title!=Mo.title; if(this.prR.NY.title!='News feed'&&this.prR.NY.title!='CNN.com') gNG=false; if(!loggedIn) gNG=false; var JO=this.prR.NY.width; var XB=this.prR.NY.height; if(gNG) this.prR.NY.Hj(Mo.title); this.prR.NY.hS(JO,XB); this.prR.NY.hS(JO,XB); if(gNG) this.prR.sW(); }}if(pq){ var Ykb=true; for(var fJ in Mo.entries){ var LK=Mo.entries[fJ]; var ENg=(LK.byline==''||LK.byline==null||LK.byline==undefined||Xx(LK.byline)==''); if(!ENg){ Ykb=false; break; }}var VYg=true; for(var fJ in Mo.entries){ var LK=Mo.entries[fJ]; var Ra=(LK.content==''||LK.content==null||LK.content==undefined||Xx(LK.content)==''); if(!Ra){ VYg=false; break; }}var die; if(iD==undefined) iD='regular'; if(iD=='regular') die=this.pb(Mo,maxEntries,headlinesOnly,Ykb,VYg,wAJ,Wru); if(iD=='thumbnails') die=this.Rk(Mo,maxEntries,headlinesOnly,Ykb,VYg,wAJ); if(iD=='singleImage') die=this.EO(Mo,maxEntries,headlinesOnly,Ykb,VYg,wAJ); jYp.appendChild(die); }else{ var VVr='This feed is not available'; if(Mo.state=='AWAITING_DISCOVERY'||Mo.state=='AWAITING_INITIAL_FEED_RETRIEVAL'){ VVr='We are currently indexing this feed. Please wait...'; mGv=true; }if(Mo.state=='NO_FEED_FOUND'){ VVr='No news feed could be detected from this source. Please enter the RSS/ATOM feed URL directly if one exists.'; }if(Mo.state=='LOCATOR_URL_UNREACHABLE'){ VVr='We could not connect to this page address to retrieve the news feed. Please check you have entered the address correctly.'; }if(Mo.state=='FEED_URL_UNREACHABLE'){ VVr='We could not connect to the feed address you have specified. The service may be down or the address may be incorrect.'; }if(Mo.state=='FEED_UNPARSEABLE'){ VVr='There appears to be an error with the news feed from this source.'; }if(Mo.state=='AWAITING_REFRESH_COMPLETION'){ VVr='Feed retrieval and reindexing in progress..'; mGv=true; }jYp.appendChild(document.createTextNode(VVr)); }LD.appendChild(jYp); }}if(error){ LD.appendChild(document.createTextNode('News feeds are temporarily unavailable. Service will resume shortly.')); this.OY(1000*30); }else if(feeds.length==0) LD.appendChild(document.createTextNode('Click \'edit\' to choose some news feeds for this panel.')); if(mGv) this.OY(); return LD; }; uw.prototype.EO=function(Mo,maxEntries,headlinesOnly,Ykb,VYg,wAJ){ var JA=this; var die=document.createElement('div'); var EQI=this.Sb(Mo); var pHh=null; if(EQI.length==0){ pHh=this.tO(Mo,false); if(pHh.length==0){ die.appendChild(document.createTextNode('No images found.')); return die; }}var ThX=pHh?pHh:EQI; for(var gv=0;gv<this.jYA;gv++) ThX.shift(); var OSt=ThX.shift(); var pxQ=ThX.length>1; var VBC=this.jYA>0; var LD=document.createElement('div'); var DnS=document.createElement('div'); DnS.style.display='inline'; DnS.style.fontSize='12px'; DnS.style.overflow='hidden'; DnS.style.whiteSpace='nowrap'; iY(DnS); if(!colorsAndSettings.disableNewsPreviewBubbles){ di.sw(DnS,null,uw.qd(OSt.LK)); }DnS.innerHTML=OSt.LK.headline; var Dqp=Jp('/web/images/right-arrow.png',17,22); Dqp.style.fontSize='11px'; Dqp.style.whiteSpace='nowrap'; Dqp.style.textDecoration='underline'; Dqp.style.marginLeft='20px'; Dqp.style.cursor='pointer'; Dqp.style.display='none'; if(pxQ){ Dqp.style.display='block'; Dqp.onmousedown=function(){ JA.jYA++; JA.VO(); }; }var CVj=Jp('/web/images/left-arrow.png',17,22); CVj.style.fontSize='11px'; CVj.style.whiteSpace='nowrap'; CVj.style.textDecoration='underline'; CVj.style.marginLeft='20px'; CVj.style.cursor='pointer'; CVj.style.display='none'; if(VBC){ CVj.style.display='block'; CVj.onmousedown=function(){ JA.jYA--; JA.VO(); }; }var GKe=Fk([DnS,CVj,Dqp],null,[null,20,20]); GKe.width=this.prR.NY.innerWidth-30; GKe.align='center'; LD.appendChild(GKe); if(OSt.type=='image'){ var JT=GP(); JT.src=OSt.src; JT.style.clear='both'; JT.style.display='block'; JT.style.padding='0px'; if(OSt.width!=0) JT.width=OSt.width; if(OSt.height!=0) JT.height=OSt.height; var hig=document.createElement('a'); hig.href=OSt.LK.link; hig.style.textDecoration='none'; hig.style.display='block'; hig.appendChild(JT); LD.appendChild(hig); hig.onclick=function(wKW,LK,Mo){ return function(eu){ return tm.bU(wKW,LK.link,LK.guid,Mo,LK,eu,JA); }; }(Jl(OSt.LK.headline),OSt.LK,Mo); }if(OSt.type=='video'&&(!this.qMZ)){ var PfT=document.createElement('div'); var JO=JA.prR.NY.innerWidth-20; var XB=JA.prR.NY.QcS-eG('scheme-body-text',12,false,false)-25; var OZJ=document.createElement('div'); KX(OZJ,'/web/images/video-play-large.png'); OZJ.style.position='absolute'; OZJ.style.left=parseInt((JO-150)/2)+20+'px'; OZJ.style.top=parseInt((XB-150)/2)+20+'px'; OZJ.style.width='150px'; OZJ.style.height='150px'; OZJ.style.zIndex=2; PfT.appendChild(OZJ); var JT=GP(); JT.src=Mo['iTunesImageUrl']?Mo['iTunesImageUrl']:Mo['feedImageUrl']; if(Mo.locatorUrl.toLowerCase().indexOf('commandn')!=-1) JT.src='/web/images/misc/podcasts/commandn-splash.jpg'; JT.style.clear='both'; JT.style.display='block'; JT.style.padding='0px'; JT.width=JO; JT.height=XB; JT.style.zIndex=1; PfT.appendChild(JT); PfT.style.textAlign='center'; PfT.style.cursor='pointer'; LD.appendChild(PfT); PfT.onmousedown=function(){ JA.qMZ=true; JA.VO(); }; }else if(OSt.type=='video'){ var ihf=document.createElement('div'); this.ihf=ihf; if(!isIE) var Eqi=document.createElement('object'); var EN=function(){ var JO=JA.prR.NY.innerWidth-30; var XB=JA.prR.NY.QcS-eG('scheme-body-text',12,false,false)-25; GKe.width=JO; ihf.style.width=JO+'px'; ihf.style.height=XB+'px'; if(Mo.locatorUrl.toLowerCase().indexOf('youtube.com')!=-1){ var Nbf=425/350; if(JO/XB<Nbf){ XB=Math.floor(JO/Nbf); }else{ JO=Math.floor(XB*Nbf); }}if(!isIE){ Eqi.width=JO; Eqi.height=XB; }var dimensions=new Object(); dimensions.JO=JO; dimensions.XB=XB; return dimensions; }; this.hVw.push(function(){ EN(); }); var cJk=EN(); if(isIE){ var xim='<embed src="'+OSt.LK.enclosureUrl+'" width="'+cJk.JO+'" height="'+cJk.XB+'" TYPE="video/quicktime" PLUGINSPAGE="http://www.apple.com/quicktime/download/" autoPlay="true" Controller="true" Scale="aspect"></embed>'; ihf.innerHTML=xim; this.prR.sV(function(){ ihf.innerHTML=''; }); this.prR.Av(function(){ ihf.innerHTML=xim; }); this.prR.cL(function(){ ihf.innerHTML=''; tm.reset(); }); }else{ ihf.appendChild(Eqi); Eqi.osZ="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"; Eqi.MCN="http://www.apple.com/qtactivex/qtplugin.cab"; Eqi.appendChild(pt('src',OSt.LK.enclosureUrl)); Eqi.data=OSt.LK.enclosureUrl; Eqi.appendChild(pt('Controller','true')); Eqi.appendChild(pt('AutoPlay','true')); Eqi.appendChild(pt('Scale','aspect')); }ihf.style.textAlign='center'; LD.appendChild(ihf); }var table=Fk([LD]); table.align='center'; die.style.paddingTop='2px'; die.appendChild(table); return die; }; uw.prototype.pb=function(Mo,maxEntries,headlinesOnly,Ykb,VYg,wAJ,Wru){ var JA=this; var die=document.createElement('div'); var Ltx=null; if(Mo.locatorUrl.indexOf('leoville.tv/podcasts/itn.xml')!=-1) Ltx='/web/images/misc/podcasts/amber.png'; if(Mo.locatorUrl.indexOf('leoville.tv/podcasts/dgw.xml')!=-1) Ltx='/web/images/misc/podcasts/dick.png'; if(Mo.locatorUrl.indexOf('leoville.tv/podcasts/sn.xml')!=-1) Ltx='/web/images/misc/podcasts/steve.png'; if(Mo.locatorUrl.indexOf('leoville.tv/podcasts/twit.xml')!=-1) Ltx='/web/images/misc/podcasts/leo.png'; if(Ltx){ KX(die,Ltx); die.style.paddingLeft='75px'; if(isIE){ die.style.height='70px'; }}if(!!colorsAndSettings.enableNewsThumbnails&&!Ltx&&!Wru){ var PR=0; var sD=0; for(var fJ in Mo.entries){ PR++; if(PR>maxEntries) break; var Ywv=(fJ==(Mo.entries.length-1)); var LK=Mo.entries[fJ]; if(LK['mediaThumbnailUrl']==null) continue; var iQr=60; die.style.paddingLeft=iQr+8+'px'; var JT=GP(); if(UC()&&!NK){ JT.src=LK['mediaThumbnailUrl']; }else{ JT.src='http://images.protopage.com/imageProxy?u='+encodeURIComponent(LK['mediaThumbnailUrl'])+'&w=60'; }JT.width=iQr; var jF=Math.floor((iQr/parseInt(LK['mediaThumbnailWidth']))*parseInt(LK['mediaThumbnailHeight'])); JT.height=jF; JT.style.position='absolute'; JT.style.left='0px'; JT.style.top=sD+'px'; JT.style.width=iQr+'px'; JT.style.height=jF+'px'; var hig=document.createElement('a'); hig.href=LK.link; hig.style.textDecoration='none'; hig.style.display='block'; die.appendChild(hig); hig.appendChild(JT); hig.onclick=function(wKW,LK,Mo){ return function(eu){ return tm.bU(wKW,LK.link,LK.guid,Mo,LK,eu,JA); }; }(Jl(LK.headline),LK,Mo); sD+=(jF+6); if(!colorsAndSettings.disableNewsPreviewBubbles){ var iC=function(JT){ di.sw(JT,null,uw.qd(LK)); }(JT); }}}var PR=0; for(var fJ in Mo.entries){ PR++; if(PR>maxEntries) break; var Ywv=(fJ==(Mo.entries.length-1)); var LK=Mo.entries[fJ]; var tkt=document.createElement('div'); if(YR.tj(Mo.locatorUrl,LK.guid)) JA.PQ(tkt); tkt.style.paddingBottom=headlinesOnly?'0px':'12px'; if((wAJ&&Ywv)||(Ykb&&VYg)) tkt.style.paddingBottom='0px'; var DnS=document.createElement('div'); DnS.style.fontSize=HY+'px'; if(!headlinesOnly) DnS.style.fontWeight='bold'; if(headlinesOnly){ DnS.style.whiteSpace='nowrap'; if(!colorsAndSettings.disableNewsPreviewBubbles){ di.sw(DnS,null,uw.qd(LK)); }}DnS.innerHTML='<span class="feed-widget-headline" style="border-bottom:1px solid #'+dW+'">'+Jl(LK.headline)+'</span>'; DnS.style.marginBottom=(Ywv?0:sm)+'px'; tkt.appendChild(DnS); if(!headlinesOnly){ if(!Ykb){ var Aok=document.createElement('div'); Aok.style.fontSize='11px'; Aok.style.fontWeight='normal'; Aok.innerHTML=LK.byline; tkt.appendChild(Aok); }if(!VYg){ var KMl=document.createElement('div'); KMl.style.fontSize='11px'; KMl.style.paddingBottom='10px'; KMl.style.fontWeight='normal'; KMl.innerHTML=LK.content; tkt.appendChild(KMl); }}var ZWH=null; if(!VYg){ die.appendChild(tkt); }else{ if(uw.cA(LK)){ ZWH=uw.Zh(LK,Mo,null,null,this); if(!colorsAndSettings.disableNewsPreviewBubbles){ di.sw(ZWH,null,uw.qd(LK)); }}var hig=document.createElement('a'); hig.href=LK.link; hig.style.textDecoration='none'; hig.appendChild(tkt); if(!ZWH){ die.appendChild(hig); }else{ die.appendChild(Fk([ZWH,hig])); }hig.onclick=function(wKW,LK,Mo,tkt){ return function(eu){ return tm.bU(wKW,LK.link,LK.guid,Mo,LK,eu,JA); }; }(Jl(LK.headline),LK,Mo,tkt); }}return die; }; uw.prototype.PQ=function(tkt){ if(!loggedIn) return; tkt.style.color='#'+this.Mou; tkt.style.textDecoration='line-through'; if(!!colorsAndSettings.hideReadHeadlines) tkt.style.display='none'; }; uw.prototype.Rk=function(Mo,maxEntries,headlinesOnly,Ykb,VYg,wAJ){ var JA=this; this.prR.NY.QW(true); var die=document.createElement('div'); var ruW=this.nRC[Mo.locatorUrl]!=undefined; var pHh=this.tO(Mo,!ruW); if((pHh.length==0)&&(!ruW)){ this.nRC[Mo.locatorUrl]=true; this.ZF(0); return document.createElement('div'); }if(pHh.length==0){ die.appendChild(document.createTextNode('No images found.')); return die; }var LD=document.createElement('div'); var Mls=LD; var ihf=document.createElement('div'); ihf.style.display='none'; if(!isIE) var Eqi=document.createElement('object'); var EN=function(){ var JO=JA.prR.NY.innerWidth-20; var XB=JA.prR.NY.QcS-20; ihf.style.width=JO+'px'; ihf.style.height=XB+'px'; if(Mo.locatorUrl.toLowerCase().indexOf('youtube.com')!=-1){ var Nbf=425/350; if(JO/XB<Nbf){ XB=Math.floor(JO/Nbf); }else{ JO=Math.floor(XB*Nbf); }}if(!isIE){ Eqi.width=JO; Eqi.height=XB; }var dimensions=new Object(); dimensions.JO=JO; dimensions.XB=XB; return dimensions; }; var cJk=EN(); var xtn=document.createElement('div'); KX(xtn,'/web/images/left-arrow.png'); xtn.style.display='none'; xtn.style.right='12px'; xtn.style.cursor='pointer'; xtn.style.top='16px'; xtn.style.width='17px'; xtn.style.height='14px'; xtn.style.position='absolute'; die.appendChild(xtn); xtn.onclick=function(){ Mls.style.display='block'; xtn.style.display='none'; ihf.style.display='none'; LM(ihf); cl(); }; fo.sw(xtn,'Return to thumbnails'); die.appendChild(ihf); var NPw=new Array(); var cl=function(innerWidth){ uA(LD,NPw,innerWidth); }; this.hVw.push(function(innerWidth,QcS,wRl){ EN(); if(true||!wRl) cl(innerWidth); }); for(var gv in pHh){ var vxg=pHh[gv]; var pY=function(vxg){ var JT=GP(); JT.src=vxg.src; JT.style.display='none'; JT.style.backgroundColor='#ffffff'; JT.style.overflow='hidden'; JT.style.padding='0px'; JT.style.margin='0px'; JT.style.marginRight='5px'; JT.style.marginBottom='5px'; JT.style.textAlign='center'; JT.style.verticalAlign='middle'; Yx.jD(function(JT){return JT;}(JT),function(JT){ return function(){ var JO=JT.width; var XB=JT.height; var iWT=HT(JO,XB,100,100).JO; var bha=HT(JO,XB,100,100).XB; JT.width=iWT; JT.height=bha
JT.style.display='block'; setTimeout(function(){cl(JA.prR.NY.innerWidth);},500); }}(JT)); var hig=document.createElement('a'); hig.href=vxg.LK.link; hig.style.textDecoration='none'; hig.style.display='inline'; hig.appendChild(JT); NPw.push(hig); if(vxg.LK.enclosureType=='application/x-shockwave-flash'){ hig.onclick=function(LK,JO,XB){ return function(eu){ stopPropagation(eu); Mls.style.display='none'; xtn.style.display='block'; ihf.style.display='block'; if(isIE){ ihf.innerHTML='<embed src="'+LK.enclosureUrl+'" width="'+JO+'" height="'+XB+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>'; }else{ ihf.appendChild(Eqi); Eqi.appendChild(pt('quality','best')); Eqi.type='application/x-shockwave-flash'; Eqi.data=LK.enclosureUrl; Eqi.appendChild(pt('quality','best')); Eqi.appendChild(pt('wmode','transparent')); Eqi.appendChild(pt('movie','transparent')); }return false; }; }(vxg.LK,cJk.JO,cJk.XB); }else{ hig.onclick=function(wKW,LK,Mo){ return function(eu){ return tm.bU(wKW,LK.link,LK.guid,Mo,LK,eu,JA); }; }(Jl(vxg.LK.headline),vxg.LK,Mo); }if(!colorsAndSettings.disableNewsPreviewBubbles){ di.sw(JT,null,uw.qd(vxg.LK)); }}(vxg); }die.appendChild(LD); return die; }; uw.qd=function(LK){ var Vic='<b>'+LK.headline+'</b><div style="font-size:1px;padding:2px"></div>'+LK.byline; if(!!colorsAndSettings.enableNewsThumbnails){ if(LK['mediaThumbnailUrl']!=null){ var jF=Math.floor((100/parseInt(LK['mediaThumbnailWidth']))*parseInt(LK['mediaThumbnailHeight'])); var nn='<img style="width:100px; height:'+jF+'px; margin-right:10px;" src="'+LK['mediaThumbnailUrl']+'" width=100 height='+jF+'/>'; return '<table cellpadding=0 cellspacing=0 border=0><tbody><tr><td valign=top class="scheme-body-text">'+nn+'</td><td valign=top class="scheme-body-text">'+Vic+'</td></tr></tbody></table>'; }}return Vic; }; uw.prototype.tO=function(Mo,dNW){ var pHh=new Array(); if(dNW){ for(var fJ in Mo.entries){ var LK=Mo.entries[fJ]; if(LK['mediaThumbnailUrl']!=null){ var vxg=new Object(); vxg.src=LK['mediaThumbnailUrl']; vxg.width=LK['mediaThumbnailWidth']; vxg.height=LK['mediaThumbnailHeight']; vxg.LK=LK; pHh.push(vxg); }; }}else{ for(var fJ in Mo.entries){ var LK=Mo.entries[fJ]; var content=LK.content; var rFw=/<img[^>]+>/gi
var pZI=/ src=("|')([^"']*)("|')/i
var PpA=/ width=("|')([^"']*)("|')/i
var fWH=/ height=("|')([^"']*)("|')/i
var OPa=-1; var PKd=null; var oPo=0; var lYs=0; while(true){ var DqF=rFw.exec(content); if(DqF==null) break; var rXI=DqF[0]; var src=pZI.exec(rXI)[2]; var width=0; var height=0; try{ width=parseInt(PpA.exec(rXI)[2]); height=parseInt(fWH.exec(rXI)[2]); }catch(eu){}if(((width==0&&height==0)||(width>100&&height>100))&&(src.indexOf('/ba~f/')==-1)){ if(OPa<width*height){ OPa=width*height; PKd=src; if(width!=null) oPo=width; if(height!=null) lYs=height; }; }}if(PKd!=null){ if(LK['headline']=='GoDaddy Coupon Code') continue; var vxg=new Object(); vxg.src=PKd; vxg.width=oPo; vxg.height=lYs; vxg.LK=LK; vxg.content=content; vxg.type='image'; pHh.push(vxg); }}; }return pHh; }; uw.prototype.Sb=function(Mo){ var EQI=new Array(); for(var fJ in Mo.entries){ var LK=Mo.entries[fJ]; if(LK.enclosureType=='video/mp4'||LK.enclosureType=='video/x-m4v'||LK.enclosureType=='video/quicktime'||mc(LK.enclosureUrl,'m4v')||mc(LK.enclosureUrl,'mov')){ var oRq=new Object(); oRq.MNk=LK.enclosureUrl; oRq.LK=LK; oRq.type='video'; EQI.push(oRq); }}return EQI; }; uw.cA=function(LK){ return(LK.enclosureType=='audio/mpeg'||LK.enclosureType=='audio/mp3'||mc(LK.enclosureUrl,'mp3')); }; uw.Zh=function(LK,Mo,gD,UHl,dA){ foL=document.createElement('div'); foL.style.fontSize=gD?(gD+'px'):(HY+'px'); foL.className=UHl?'scheme-header-text':'scheme-body-text'; foL.appendChild(document.createTextNode('Play')); foL.style.paddingRight='4px'; foL.style.paddingBottom='3px'; foL.style.textDecoration='underline'; dBd=document.createElement('div'); dBd.style.fontSize='1px'; dBd.style.width='18px'; dBd.style.height='11px'; var Lpl=GP(); Lpl.style.padding='0px'; Lpl.style.margin='0px'; Lpl.style.paddingBottom='5px'; Lpl.src="/web/dynamicImages/"+(UHl?KN:SH)+"/play-button.gif"; dBd.appendChild(Lpl); ZWH=Fk([foL,dBd]); ZWH.style.cursor='pointer'; ZWH.onmousedown=function(LK,Mo){ return function(){ VQ.aB(LK.enclosureUrl,LK.headline,LK.byline,Mo,LK); YR.YQ(Mo.locatorUrl,LK.guid); setTimeout(function(){if(dA) dA.VO();},1); }; }(LK,Mo); return ZWH; }; function CA(){ }CA.SJ=function(){ return [ ]; }(); CA.prototype=new pa(); CA.prototype.JX=function(){ var JA=this; this.prR.OP(); this.prR.De().innerHTML='  <iframe style="margin-left: 0px;	margin-top: 0px;	margin-right: 0px;	margin-bottom: 0px;" width="100%" allowtransparency="true" background-color="transparent" border=0 height=250 width=470 frameborder=0 marginheight=0 marginwidth=0 scrolling=no src="/web/static/ft/archives-search-frame.html">'; }; function JP(){ }JP.SJ=function(){ return [ ]; }(); JP.prototype=new pa(); JP.prototype.JX=function(){ var JA=this; this.prR.OP(); this.prR.De().innerHTML='  <iframe style="margin-left: 0px;	margin-top: 0px;	margin-right: 0px;	margin-bottom: 0px;" width="100%" height=84 border=0 allowtransparency="true" background-color="transparent" frameborder=0 marginheight=0 marginwidth=0 scrolling=no src="/web/static/ft/currency-converter-frame.html">'; }; function Bn(){ }Bn.SJ=function(){ return [ ]; }(); Bn.prototype=new pa(); Bn.prototype.JX=function(){ var JA=this; this.prR.OP(); this.prR.De().innerHTML='	<div align="center">	<a href="http://mwprices.ft.com/custom/ft-com/html-marketsDataTools.asp" target="_NEW">    <img src="http://chart.bigcharts.com/custom/ft-com/indices-xx.gifquote" border=0>  </a></div>'; }; function Ro(){ }Ro.SJ=function(){ return [ ]; }(); Ro.prototype=new pa(); Ro.prototype.JX=function(){ var JA=this; this.prR.OP(); this.prR.De().innerHTML='  <iframe style="margin-left: 0px;    margin-top: 0px;    margin-right: 0px;    margin-bottom: 0px;" width="100%" height=74 border=0 allowtransparency="true" background-color="transparent" frameborder=0 marginheight=0 marginwidth=0 scrolling=no src="/web/static/ft/news-quotes-search.html">'; }; function pr(){ }pr.prototype=new pa(); pr.SJ=[ new ConfigFieldAlignedGroup([ new ConfigTextField('url','Web site address','Please note that some web sites may try to redirect you away from page when they are loaded by this widget.','http://www.google.com',400),new ConfigCheckbox('disableScrollbars','Never display scrollbars','If the web page is larger than the size of your widget, scrollbars will normally be displayed. Tick this box to prevent scrollbars from appearing.',false),new ConfigTextField('verticalOffset','Vertical offset','You can increase this value to crop out the top part of the web page displayed.','0',40),new ConfigTextField('horizontalOffset','Horizontal offset','You can increase this value to crop out the left part of the web page displayed.','0',40) ]) ]; pr.prototype.JX=function(TT){ var JA=this; if(TT){ ir.mq(this); return; }this.prR.BO(function(){ JA.JX(); }); this.prR.OP(); this.prR.CD(function(){ JA.loW=true; JA.prR.setAttribute('safetyTimeoutCompleted',false); JA.prR.sW(); JA.JX(); setTimeout(function(){ JA.prR.setAttribute('safetyTimeoutCompleted',true); JA.prR.sW(); },15000); }); var url=this.prR.getAttribute('url'); var FQa=this.prR.getAttribute('safetyTimeoutCompleted'); if(FQa==null) FQa=false; if(this.loW==undefined) this.loW=false; var GIh=url; var Ti='http://images.'+Zv.VQU+'/favIcon/document/'+GIh; this.prR.NY.WY.src=Ti; if(!url||url==''){ var LD=this.prR.De(); LD.appendChild(document.createTextNode('Click the edit button to enter a web page address, or ')); var sS=document.createElement('a'); sS.appendChild(document.createTextNode('click here')); sS.href='#'; LD.appendChild(sS); LD.appendChild(document.createTextNode(' to display a sample web page.')); sS.onclick=function(){ JA.prR.setAttribute('url','http://maps.google.com?q=London'); JA.prR.setAttribute('safetyTimeoutCompleted',true); JA.prR.setAttribute('disableScrollbars',false); JA.prR.setAttribute('verticalOffset','0'); JA.prR.setAttribute('horizontalOffset','0'); JA.prR.sW(); JA.JX(); return false; }; }else{ if(FQa||this.loW){ this.kL(url); }else{ this.prR.De().innerHTML='Web page failed safety check. Because some web pages may attempt to redirect you away from your page, we use a safety check which waits 15 seconds before confirming the web address that you have entered. To try loading the page again, click the edit button and then click Save Changes. Then, make sure you wait at least 15 seconds before navigating away from your page.'; }}}; pr.prototype.kL=function(url){ var JA=this; this.prR.NY.QW(true); this.prR.NY.pK.style.padding='0px'; this.prR.NY.Xh.style.padding='0px'; var OU=document.createElement('iframe'); this.iframe=OU; if(this.prR.getAttribute('disableScrollbars')==true){ OU.scrolling='no'; }else OU.scrolling='auto'; OU.allowTransparency=true; OU.border=0; OU.frameBorder='no'; OU.hideFocus=true; OU.BBI=0; OU.Xuu=0; OU.hspace=0; OU.vspace=0; this.gi(); this.prR.De().appendChild(OU); this.prR.De().style.margin='0px'; this.prR.De().style.padding='0px'; OU.src=url; OU.style.position='absolute'; OU.style.left='0px'; OU.style.top='0px'; this.gi(); this.prR.Bu(function(){ JA.gi(); }); }; pr.prototype.gi=function(){ var uSi=Math.abs(hH(this.prR.getAttribute('verticalOffset'))); var dgM=Math.abs(hH(this.prR.getAttribute('horizontalOffset'))); var TK=this.prR.NY; var y=TK.height; y-=8; y-=TK.Lo(); var JO=TK.width+dgM; var XB=y+uSi; this.iframe.width=JO; this.iframe.height=XB; this.iframe.style.width=JO+'px'; this.iframe.style.height=XB+'px'; this.iframe.style.left=(-1*dgM)+'px'; this.iframe.style.top=(-1*uSi)+'px'; }; function Ap(){ if(!Ap.SJ) Ap.SJ=nm(); }function nm(){ var sS=new ConfigOptionGroup('serviceType','Inbox type','',[new ConfigOption('POP3','pop3',true),new ConfigOption('IMAP','imap',false),new ConfigOption('Gmail','gmail',false)]); var FH=new ConfigTextField('username','Login','','',200); var LL=new ConfigPasswordField('password','Password','','',200); var Ko=new ConfigTextField('serverAddress','POP3/IMAP server address','','',200); var eu=new ConfigTextField('port','IMAP server port (Optional)','','',40); var OU=new ConfigCheckbox('useSSL','Server uses SSL','',false); var Vj=new ConfigTextField('webmailUrl','Webmail URL (Optional)','e.g., http://www.mywebmail.com/','',200); var XB=new ConfigTextField('maxMessages','Maximum no. of emails to display','','7',40); var gv=new ConfigCheckbox('includeBodyPreviews','Include message preview','',true); return [ new ConfigFieldAlignedGroup([ sS,FH,LL,Ko,eu,OU,Vj,XB,gv
]),new ConfigCustomField(Ap.Bx,sS) ]; }Ap.Bx=function(HIM,bH,ePV,TVD){ this.HIM=HIM; this.bH=bH; this.ePV=ePV; this.TVD=TVD; var JA=this; this.cHM=true; this.xo=function(){ var value=this.GjQ.LT(); if(value=='gmail'){ this.Am(this.ePV.rJi[0].rJi[3].LD,false); this.Am(this.ePV.rJi[0].rJi[4].LD,false); this.Am(this.ePV.rJi[0].rJi[5].LD,false); this.Am(this.ePV.rJi[0].rJi[6].LD,false); }else{ this.Am(this.ePV.rJi[0].rJi[3].LD,true); this.Am(this.ePV.rJi[0].rJi[4].LD,true); this.Am(this.ePV.rJi[0].rJi[5].LD,true); this.Am(this.ePV.rJi[0].rJi[6].LD,true); }if(value=='pop3'||value=='imap'){ var eGV=this.ePV.rJi[0].sfs[3]; LM(eGV); eGV.appendChild(document.createTextNode(value=='pop3'?'POP3 server address':'IMAP server address')); JA.ePV.rJi[0].rJi[3].input.value=(value=='pop3'?Zv.lUN:''); JA.ePV.rJi[0].rJi[6].input.value=(value=='pop3'?Zv.gDv:''); eGV=this.ePV.rJi[0].sfs[4]; LM(eGV); eGV.appendChild(document.createTextNode(value=='pop3'?'POP3 server port (Optional)':'IMAP server port (Optional)')); }this.ePV.rJi[0].PT(true); }; this.Am=function(hTN,state){ var Kg=this.XX(hTN); var YLP=Kg.nextSibling; Kg.style.display=state?(isIE?'block':'table-row'):'none'; YLP.style.display=state?(isIE?'block':'table-row'):'none'; }; this.XX=function(jL){ var eu=jL; while(eu!=undefined&&eu!=null){ if(eu.tagName.toLowerCase()=='tr') return eu; if(eu=eu.parentNode); }}; }; Ap.Bx.prototype.hd=function(){ var JA=this; var jVf=this.ePV.rJi[0].rJi[2]; delete jVf.KH; delete jVf.LT; jVf.NM=function(){}; jVf.ZI=function(){ if(jVf.input.value!='') JA.bH.prR.setAttribute('passwordSet',true); if(jVf.input.value!='*__pp_ibp_set'&&jVf.input.value!=''){ JA.bH.nC(0,false,jVf.input.value,function(aD){ JA.bH.BF(aD); }); }else{ JA.bH.nC(0,false,null,function(aD){ JA.bH.BF(aD); }); }}; var Op=function(){ if(jVf.input.value=='*__pp_ibp_set'){ jVf.input.value=''; JA.bH.prR.setAttribute('passwordSet',false); alert('For security reasons, you must re-enter your password if you change your email inbox settings.'); }}; this.ePV.rJi[0].rJi[0].CB(function(){ JA.xo(); Op(); }); this.ePV.rJi[0].rJi[1].CB(Op); this.ePV.rJi[0].rJi[3].CB(Op); this.ePV.rJi[0].rJi[4].CB(Op); this.ePV.rJi[0].rJi[5].CB(Op); this.ePV.rJi[0].rJi[6].CB(Op); if(this.bH.prR.getAttribute('passwordSet')) jVf.input.value='*__pp_ibp_set'; this.GjQ=this.ePV.rJi[0].rJi[0]; this.xo(); }; Ap.prototype=new pa(); Ap.prototype.JX=function(){ var JA=this; this.prR.CD(function(){}); this.prR.OP(); if(loggedIn==false){ this.prR.De().appendChild(document.createTextNode('For security reasons, you must be logged in to view the contents of this email inbox.')); return; }this.LD=this.prR.De(); this.iNd=document.createElement('div'); this.Kid=document.createElement('div'); this.Lar=document.createElement('div'); this.Lar.style.paddingTop='11px'; this.Lar.style.overflow='hidden'; this.Lar.style.width='100%'; this.LD.appendChild(this.iNd); this.LD.appendChild(this.Kid); this.LD.appendChild(this.Lar); this.hEe=document.createElement('div'); if(this.prR.getAttribute('username')==undefined){ this.hEe.appendChild(document.createTextNode('This widget provides a preview of the unread messages in your email inbox. Click the edit button to set up your email account details...')); }else this.hEe.appendChild(document.createTextNode('Retrieving inbox...')); this.prR.De().appendChild(this.hEe); if(this.prR.getAttribute('username')!=undefined){ this.nC(5*60*1000,true,null,function(aD){ JA.BF(aD); }); }}; Ap.prototype.Cr=function(XNC){ var JA=this; LM(this.iNd); this.iNd.style.textDecoration='none'; this.iNd.style.fontSize='11px'; if(isIE) this.iNd.style.styleFloat='right'; else this.iNd.style.cssFloat='right'; if(XNC){ this.iNd.appendChild(document.createTextNode('checking...')); this.iNd.style.cursor='default'; this.iNd.onclick=function(){}; }else{ this.iNd.appendChild(document.createTextNode('check now')); this.iNd.style.cursor='pointer'; this.iNd.onclick=function(){ ZX('inbox_manual_refresh',JA.prR.NY.pH+'',{'widgetId':JA.prR.NY.pH,'widgetTitle':JA.prR.NY.title}); JA.nC(10*1000,false,null,function(aD){ JA.BF(aD); }); }; }}; Ap.prototype.nC=function(srD,qQi,vjI,iYI){ this.Cr(true); var HD=new Object(); HD['methodName']='getInboxPreview'; HD['accountId']=accountId; HD['returnInboxPreviewIfOutOfDate']=qQi; HD['maxTimeSinceLastUpdateMs']=srD+''; HD['username']=this.prR.getAttribute('username'); if(vjI!=null) HD['password']=vjI; HD['serverAddress']=this.prR.getAttribute('serverAddress'); HD['useSSL']=this.prR.getAttribute('useSSL'); HD['port']=this.prR.getAttribute('port'); HD['serviceType']=this.prR.getAttribute('serviceType'); HD['maxMessages']=this.prR.getAttribute('maxMessages'); HD['includeBodyPreviews']=this.prR.getAttribute('includeBodyPreviews'); this.prR.Jj('inboxService',HD,function(aD){iYI(aD);}); }; Ap.prototype.BF=function(IDo){ var JA=this; if(IDo['error']!=undefined){ LM(this.hEe); this.hEe.style.display='block'; this.iNd.style.display='none'; this.Kid.style.display='none'; this.Lar.style.display='none'; var rjI=IDo['error']; var message; if(rjI=='AUTH_FAILED'){ message='The username and password combination you have specified is incorrect.'; }else if(rjI=='UNKNOWN_HOST'){ message='The email server address you specified cannot be reached.'; }else if(rjI=='GENERAL_RETRIEVAL_FAILURE'){ message='There has been a problem connecting to your email server. This may happen often with some email providers when their servers are under heavy load.'; }else if(rjI=='PASSWORD_NOT_SET'){ message='Please check that you have entered a password for this email inbox. For security reasons, you must re-enter your password if you change the email server configuration settings.'; }else if(rjI=='AWAITING_INITIAL_RETRIEVAL'){ message='Retrieving inbox...'; setTimeout(function(){ JA.nC(60*1000,true,null,function(aD){ JA.BF(aD); }); },4*1000); }else{ message='This widget is temporarily unavailable. Service will resume shortly.'; }this.hEe.appendChild(document.createTextNode(message)); return; }else{ this.hEe.style.display='none'; this.iNd.style.display='block'; this.Kid.style.display='block'; this.Lar.style.display='block'; }LM(this.Kid); LM(this.Lar); var status=IDo['status']; var IQp=IDo['totalUnreadMessages']; var nZE=IDo['updateDurationMs']; var Opl=IDo['messagePreviews']; if(status=='MESSAGES_ENCLOSED_AWAITING_INITIAL'){ this.Cr(true); setTimeout(function(){ JA.nC(4*60*1000,true,null,function(aD){ JA.BF(aD); }); },nZE+1700); }else if(status=='AWAITING_RETRIEVAL'){ setTimeout(function(){ JA.nC(60*1000,true,null,function(aD){ JA.BF(aD); }); },4*1000); var Cug=document.createElement('div'); Cug.style.clear='both'; this.Kid.appendChild(Cug); return; }else{ this.Cr(false); setTimeout(function(){ JA.Cr(true); JA.nC(4*60*1000,true,null,function(aD){ JA.BF(aD); }); },5*60*1000); }this.Kid.style.fontSize='11px'; this.Kid.appendChild(document.createTextNode(IQp+' '+' new messages')); this.Kid.style.paddingBottom='4px'; this.Kid.style.borderBottom='1px solid'; for(var gv in Opl){ var aKq=Opl[gv]; var Ukh=document.createElement('div'); Ukh.style.paddingBottom=this.prR.getAttribute('includeBodyPreviews')?'6px':'2px'; Ukh.style.whiteSpace='nowrap'; var KV=document.createElement('img'); KV.src='/web/images/widgets/inbox/email-icon.gif'; KV.border=0; var sxT=document.createElement('div'); sxT.style.whiteSpace='nowrap'; sxT.style.paddingLeft='7px'; var xiA=document.createElement('span'); xiA.style.fontSize='11px'; xiA.style.whiteSpace='nowrap'; xiA.style.fontWeight='bold'; xiA.appendChild(document.createTextNode(aKq['senderName'])); var vot=document.createElement('span'); vot.appendChild(document.createTextNode('-')); vot.style.paddingLeft='5px'; vot.style.paddingRight='5px'; vot.style.whiteSpace='nowrap'; vot.style.fontSize='11px'; var BTf=document.createElement('span'); BTf.style.whiteSpace='nowrap'; BTf.style.overflow='hidden'; BTf.style.fontSize='11px'; BTf.appendChild(document.createTextNode(aKq['subject'])); sxT.appendChild(xiA); sxT.appendChild(vot); sxT.appendChild(BTf); var table=document.createElement('table'); table.className='scheme-body-text'; table.cellSpacing=0; table.cellPadding=0; table.border=0; var FB=document.createElement('tbody'); var Kg=document.createElement('tr'); var QB=document.createElement('td'); QB.appendChild(KV); var ur=document.createElement('td'); ur.appendChild(sxT); Kg.appendChild(QB); Kg.appendChild(ur); FB.appendChild(Kg); table.appendChild(FB); Ukh.appendChild(table); var qcB=document.createElement('tr'); var Fwa=document.createElement('td'); var swO=document.createElement('td'); FB.appendChild(qcB); qcB.appendChild(Fwa); qcB.appendChild(swO); var qQQ=true; var EX=aKq['link']; if(!EX) qQQ=false; if(EX!=undefined&&EX=='') qQQ=false; if(!qQQ&&this.prR.getAttribute('webmailUrl')){ if(this.prR.getAttribute('webmailUrl')!=''){ qQQ=true; EX=this.prR.getAttribute('webmailUrl'); if(EX.toLowerCase().indexOf('http')==-1) EX='http://'+EX; }}Kg.onclick=function(EX,qQQ){ return function(){ if(!qQQ) return; ii(EX); qQQ=true; }; }(EX,qQQ); if(qQQ) Kg.style.cursor='pointer'; if(this.prR.getAttribute('includeBodyPreviews')){ var gtY=document.createElement('div'); gtY.style.whiteSpace='nowrap'; gtY.style.overflow='hidden'; gtY.style.fontSize='11px'; gtY.style.paddingLeft='7px'; gtY.appendChild(document.createTextNode(aKq['bodyPreview'])); swO.appendChild(gtY); qcB.onclick=Kg.onclick; if(qQQ) qcB.style.cursor='pointer'; }this.Lar.appendChild(Ukh); }this.prR.US(); }; function fK(){ }fK.prototype=new pa(); fK.SJ=[ new ConfigFieldAlignedGroup([ new ConfigTextArea('description','Description','This text will appear underneath the photo.','',400) ]) ]; fK.prototype.JX=function(){ var JA=this; this.prR.OP(); var url=this.prR.getAttribute('url'); var description=this.prR.getAttribute('description'); if(url!=null){ this.prR.NY.QW(true); this.prR.NY.pK.style.top='0px'; this.prR.NY.Xh.style.top='0px'; this.prR.NY.pK.style.width=this.prR.NY.width+'px'; this.prR.NY.Xh.style.width=this.prR.NY.width+'px'; this.prR.NY.pK.style.padding='0px'; this.prR.NY.Xh.style.padding='0px'; this.prR.NY.pK.style.margin='0px'; this.prR.NY.Xh.style.margin='0px'; this.sv(); }else{ this.prR.NY.HhE=1; var mAU=document.createElement('div'); mAU.appendChild(document.createTextNode('Uploading, please wait...')); mAU.style.display='none'; this.prR.De().appendChild(mAU); var wjv=document.createElement('div'); this.prR.De().appendChild(wjv); var table=document.createElement('table'); table.className='scheme-body-text'; table.align='center'; table.cellSpacing=0; table.cellPadding=5; table.border=0; var FB=document.createElement('tbody'); var Mxv=document.createElement('tr'); var qcB=document.createElement('tr'); var ahd=document.createElement('tr'); var HWt=document.createElement('tr'); var ivs=document.createElement('tr'); var fIu=document.createElement('tr'); var QB=document.createElement('td'); var ur=document.createElement('td'); var Fwa=document.createElement('td'); var swO=document.createElement('td'); var aqS=document.createElement('td'); var Ukd=document.createElement('td'); var Qmf=document.createElement('a'); Qmf.href=''; Qmf.onclick=function(eu){ stopPropagation(eu); JA.prR.setAttribute('url','/web/images/widgets/photo/orchid-sample.jpg'); JA.prR.setAttribute('description','The word "orchis" was first used by Theophrastos, in his book "De historia plantarum". He was a student of Aristotle and is considered the father of botany and ecology.'); JA.prR.setAttribute('imageWidth',256); JA.prR.setAttribute('imageHeight',192); JA.oO(); JA.JX(); return false; }; var IUr=document.createElement('div'); var hAm=document.createElement('div'); IUr.style.whiteSpace='nowrap'; hAm.style.whiteSpace='nowrap'; IUr.appendChild(document.createTextNode('Upload a photo from your computer,')); hAm.appendChild(document.createTextNode('or ')); hAm.appendChild(Qmf); Qmf.appendChild(document.createTextNode('click here')); hAm.appendChild(document.createTextNode(' to see a sample photo')); QB.appendChild(IUr); QB.appendChild(hAm); var gqh=CallbackNotify.vT(function(GST){ if(GST['error']!=null){ alert("There was a problem with the image file you uploaded - please check it is a valid JPG or GIF file"); table.style.display='block'; mAU.style.display='none'; return; }; var JO=GST['width']; var XB=GST['height']; JA.prR.setAttribute('imageWidth',JO); JA.prR.setAttribute('imageHeight',XB); JA.prR.setAttribute('url','http://images.'+Zv.VQU+GST['url']); JA.prR.setAttribute('imageId',GST['imageId']); JA.oO(); JA.JX(); }); var Cp=gqh+'-formId'; var EGI=gqh+'-maxWidth'; var uQw=gqh+'-maxHeight'; var UWC=gqh+'-accountId'; var SYt=gqh+'-protopageId'; var mhe=gqh+'-optionGroup'; var Xii=mhe+'-A'; var TRY=mhe+'-B'; var SVm=gqh+'-maxWidthTextFieldId'; var CcP=gqh+'-maxHeightTextFieldId'; var jgi=gqh+'-photoTitleTextFieldId'; var eUa=gqh+'-photoDescriptionTextAreaId'; var Rfc=gqh+'-uploadButtonId'; var kg=document.createElement('div'); kg.innerHTML='      <form id="'+Cp+'" method="post" enctype="multipart/form-data" action="'+'/'+protopagePath+'/_api/imageUploadGateway" target="'+CallbackNotify.Xl(gqh)+'">			'+CallbackNotify.eY(gqh)+'			<input type="file" name="image" style="min-width: 0px; padding: 1px; margin: 0px;">			<input type="hidden" name="maxWidth" id="'+EGI+'" value="'+20+'">			<input type="hidden" name="maxHeight" id="'+uQw+'" value="'+20+'">			<input type="hidden" name="accountId" id="'+UWC+'" value="'+accountId+'">			<input type="hidden" name="protopageId" id="'+SYt+'" value="'+protopageId+'">			<input type="hidden" name="type" value="photo-widget"></form>'; ur.appendChild(kg); var TcK=document.createElement('div'); TcK.innerHTML=CallbackNotify.Fq(gqh); uH().appendChild(TcK); var Cjk=document.createElement('table'); Cjk.className='scheme-body-text'; var Cdd=document.createElement('tbody'); var Dri=document.createElement('tr'); var rTb=document.createElement('tr'); var BtB=document.createElement('tr'); var sBr=document.createElement('td'); var PLE=document.createElement('td'); var fik=document.createElement('td'); var lvW=document.createElement('td'); var YkP=document.createElement('td'); var VCf=document.createElement('td'); Cjk.appendChild(Cdd); Cdd.appendChild(Dri); Cdd.appendChild(rTb); Cdd.appendChild(BtB); Dri.appendChild(sBr); Dri.appendChild(PLE); rTb.appendChild(fik); rTb.appendChild(lvW); BtB.appendChild(YkP); BtB.appendChild(VCf); sBr.align='left'; sBr.innerHTML='<input align="left" style="margin:0px; padding:0px" type="radio" id="'+Xii+'" name="'+mhe+'" value="true" checked>'; var TMe=document.createElement('div'); TMe.style.display='inline'; TMe.style.padding='5px'; TMe.style.whiteSpace='nowrap'; TMe.appendChild(document.createTextNode('Resize photo to fit inside this widget')); PLE.appendChild(TMe); fik.align='left'; fik.innerHTML='<input align="left" style="margin:0px; padding:0px" type="radio" id="'+TRY+'" name="'+mhe+'" value="true">'; var jGE=document.createElement('div'); jGE.style.display='inline'; jGE.style.padding='5px'; jGE.style.whiteSpace='nowrap'; jGE.appendChild(document.createTextNode('Resize photo to fit dimensions:')); lvW.appendChild(jGE); VCf.innerHTML='<span style="padding-left:5px"><input id="'+SVm+'" type="text" disabled="true" style="width:4.5ex; margin:0px; padding:0px;" value="100"></span> x <span><input id="'+CcP+'" type="text" disabled="true" style="width:4.5ex; margin:0px; padding:0px;" value="100"></span> pixels'; Fwa.appendChild(Cjk); swO.innerHTML='<div style="white-space:nowrap">Title your photo (optional)</div><input id="'+jgi+'" type="text" style="width:30ex; margin:0px; padding:0px;">'; aqS.innerHTML='<div style="white-space:nowrap">Add a description (optional)</div><textarea  id="'+eUa+'" rows="3" class="scheme-body-text" style="color:#000000; background-color:#ffffff; width:200px; margin:0px; padding:0px;">'; Ukd.innerHTML='<input type="button" id="'+Rfc+'" value="Upload" style="min-width: 0px; padding: 1px 1px 1px 1px; margin: 1px 1px 1px 1px;">'; wjv.appendChild(table); table.appendChild(FB); FB.appendChild(Mxv); FB.appendChild(qcB); FB.appendChild(ahd); FB.appendChild(HWt); FB.appendChild(ivs); FB.appendChild(fIu); Mxv.appendChild(QB); qcB.appendChild(ur); ahd.appendChild(Fwa); HWt.appendChild(swO); ivs.appendChild(aqS); fIu.appendChild(Ukd); document.getElementById(Xii).onmousedown=function(){ document.getElementById(SVm).disabled=true; document.getElementById(CcP).disabled=true; JA.OM(); }; document.getElementById(TRY).onmousedown=function(){ document.getElementById(SVm).disabled=false; document.getElementById(CcP).disabled=false; }; document.getElementById(Xii).onkeypress=document.getElementById(Xii).onmousedown; document.getElementById(TRY).onkeypress=document.getElementById(TRY).onmousedown; document.getElementById(Rfc).onclick=function(){ var QiX=document.getElementById(SVm).value; document.getElementById(EGI).value=QiX; var LBj=document.getElementById(CcP).value; document.getElementById(uQw).value=LBj; JA.prR.Hj(document.getElementById(jgi).value); JA.prR.setAttribute('description',document.getElementById(eUa).value); Yt('photoWidgetLastUsedMaxWidthDimension',QiX,'/'); Yt('photoWidgetLastUsedMaxHeightDimension',LBj,'/'); table.style.display='none'; mAU.style.display='block'; JA.prR.US(); document.getElementById(Cp).submit(); }; var HiP=ih('photoWidgetLastUsedMaxWidthDimension'); var UdR=ih('photoWidgetLastUsedMaxHeightDimension'); if(HiP!=null&&HiP!=''){ document.getElementById(Xii).checked=false; document.getElementById(TRY).checked=true; document.getElementById(SVm).value=HiP; document.getElementById(CcP).value=UdR; document.getElementById(SVm).disabled=false; document.getElementById(CcP).disabled=false; }this.prR.Bu(function(){ if(document.getElementById(Xii)){ if(document.getElementById(Xii).checked){ JA.OM(); }}}); }this.prR.cL(function(){ if(JA.prR.getAttribute('imageId')==undefined){ return; }var HD=new Object(); HD['accountId']=''+accountId; HD['command']='delete'; HD['imageId']=JA.prR.getAttribute('imageId'); lM('/'+protopagePath+'/_api/imageManageGateway',HD); }); this.OM=function(){ document.getElementById(SVm).value=JA.prR.NY.width; document.getElementById(CcP).value=JA.prR.NY.height-JA.prR.NY.Lo(); }; this.oO=function(){ var y=0; y+=1; y+=JA.prR.NY.Lo(); y+=JA.prR.getAttribute('imageHeight'); var UpM=JA.prR.getAttribute('description'); if(UpM!=null&&UpM!=''){ var Kfi=document.createElement('div'); Kfi.style.visibility='hidden'; Kfi.style.fontSize='11px'; Kfi.style.paddingLeft='10px'; Kfi.style.paddingTop='3px'; Kfi.style.width=JA.prR.getAttribute('imageWidth')+'px'; Kfi.className='scheme-body-text'; Kfi.appendChild(document.createTextNode(UpM)); uH().appendChild(Kfi); y+=Kfi.offsetHeight; uH().removeChild(Kfi); }var TK=JA.prR.NY; TK.width=JA.prR.getAttribute('imageWidth'); TK.height=y; TK.hS(TK.width,TK.height); TK.HhE=0; TK.Wj(); JA.prR.sW(); DZ(XE); AD(); }; this.prR.Bu(function(innerWidth,QcS,wRl){ if(!wRl){ JA.sv(); }}); JA.sv(); }; fK.prototype.sv=function(){ var TK=this.prR.NY; var url=this.prR.getAttribute('url'); if(!url) return; var description=this.prR.getAttribute('description'); var oIq=uid(); var width=this.prR.getAttribute('imageWidth'); var height=this.prR.getAttribute('imageHeight'); var ER=this.prR.NY.width/width; width=Math.ceil(ER*width); height=Math.ceil(ER*height); this.prR.De().innerHTML='<table class="scheme-body-text" align="center" cellpadding=0 cellspacing=0><tr><td align="center"><image width="'+width+'" height="'+height+'" src="'+url+'"></td></tr><tr><td align="left" style="padding-left:10px; padding-top:3px; font-size:11px;" id="'+oIq+'"></td></tr></table>'; document.getElementById(oIq).appendChild(document.createTextNode(description)); var y=0; y+=1; y+=this.prR.NY.Lo(); y+=height; var UpM=this.prR.getAttribute('description'); if(UpM!=null&&UpM!=''){ var Kfi=document.createElement('div'); Kfi.style.visibility='hidden'; Kfi.style.fontSize='11px'; Kfi.style.paddingLeft='10px'; Kfi.style.paddingTop='3px'; Kfi.style.width=width+'px'; Kfi.className='scheme-body-text'; Kfi.appendChild(document.createTextNode(UpM)); uH().appendChild(Kfi); y+=Kfi.offsetHeight; uH().removeChild(Kfi); }TK.height=y; TK.hS(TK.width,TK.height); TK.HhE=0; }; function fF(){ }fF.DwS=null; fF.SJ=[ new ConfigFieldAlignedGroup([ new ConfigTextField('fontSize','Font size','',12,30),]),new ConfigFreeformHtml('This is an edit-in-place sticky note. To edit it, simply click inside the widget and start typing.') ]; fF.prototype=new pa(); fF.prototype.JX=function(){ var JA=this; this.xhU=false; var JO=this.prR.NY.innerWidth; var XB=this.prR.NY.QcS; var value=this.prR.getAttribute('content'); if(value==undefined||value==null) value='Click here to type'; value=value.replace(/\r\n/g,'\n'); if(isIE) value=value.replace(/\n/g,'\r\n'); var fontSize=this.prR.getAttribute('fontSize'); if(fontSize==undefined||fontSize==null) fontSize=12; this.prR.CD(function(){ JA.REc.Kt(this.prR.getAttribute('fontSize')); }); this.REc=new VP(this.prR.De(),JO,XB,function(){ var soU=JA.prR.NY.left+Math.floor(JA.prR.NY.width/2); var Tgc=JA.prR.NY.top+vC+YG+10; JA.xhU=true; if(!fF.DwS){ var LD=document.createElement('div'); LD.style.fontSize='12px'; LD.style.paddingLeft='15px'; LD.style.paddingRight='15px'; LD.style.paddingTop='7px'; LD.style.paddingBottom='7px'; LD.className='scheme-body-text'; LD.style.textAlign='left'; LD.appendChild(document.createTextNode('Edit in progress')); fF.DwS=new QF(soU,Tgc,true,Yg,'00',LD,false,false); }else{ fF.DwS.position(soU,Tgc); }},function(value,wFP){ if(wFP){ JA.prR.NY.Wj(); DZ(XE); AD(); if(value.length>60000) value=value.substr(0,60000); fF.DwS.position(-2000000,-200000); JA.xhU=false; JA.prR.setAttribute('content',value); JA.prR.sW(); }},function(GFG){ if(!JA.xhU) return; var dbe=JA.prR.NY.height; JA.prR.NY.QC(true); var lZw=JA.prR.NY.height; if(lZw!=dbe){ JA.prR.NY.Wj(); DZ(XE); AD(); }},value,fontSize,'normal','scheme-body-text',true,function(){ return!JA.prR.NY.IH(); }); this.prR.Bu(function(innerWidth,QcS,wRl){ JA.REc.aP(innerWidth,QcS,wRl); }); }; function gY(){ }gY.SJ=[]; gY.prototype=new pa(); gY.prototype.JX=function(){ var JA=this; this.prR.OP(); this.gj(); this.prR.De().innerHTML='<embed src="'+Zv.DDe+'" width="'+this.Ows+'" height="'+this.LvD+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>'; this.prR.Bu(function(innerWidth,QcS,wRl){ if(!wRl){ JA.gj(); JA.JX(); }}); }; gY.prototype.gj=function(){ this.Ows=this.prR.NY.innerWidth; this.LvD=this.prR.NY.QcS-5; }; function Uj(){ }function Hp(){ var kpo=new ConfigLabelField('searchTitle','Quick search title',null,'',300,100); var qsl=new ConfigAttribute('searchUrl',''); return [ new ConfigTable('searches',[kpo,qsl],[]),new ConfigCustomField(Uj.YP),]; }Uj.YP=function(HIM,bH,ePV){ this.HIM=HIM; var JA=this; var JlX=24; this.bH=bH; this.LD=document.createElement("div"); this.LD.className='scheme-body-text'; this.LD.style.paddingLeft=JlX+'px'; this.LD.style.paddingRight=JlX+'px'; this.LD.style.width='200px'; this.DG=document.createElement('div'); this.DG.appendChild(document.createTextNode('You can also add feeds to the table above by choosing from our directory:')); this.DG.paddingBottom='16px'; this.fpa=document.createElement('div'); this.jsU=new Array(); this.IuJ=null; for(var gv in feedList){ var LL=document.createElement('div'); LL.className='scheme-body-text'; LL.style.marginLeft='0px'; LL.style.marginRight='14px'; LL.style.marginTop='4px'; LL.style.marginBottom='4px'; LL.style.fontWeight='bold'; LL.style.cursor='pointer'; LL.style.whiteSpace='nowrap'; LL.onmousedown=function(aF,gv){ return function(){ var CCU=new Array(); JA.CCU=CCU; JA.EDf=gv; for(var fJ in JA.jsU){ if(fJ!=gv) JA.jsU[fJ].className='scheme-body-text'; }var dIE=feedList[gv][1]; for(var fJ in dIE){ var OU=document.createElement('div'); OU.className='scheme-body-text'; OU.style.marginLeft='0px'; OU.style.marginRight='14px'; OU.style.marginTop='4px'; OU.style.marginBottom='4px'; OU.style.cursor='pointer'; OU.style.whiteSpace='nowrap'; var gO=document.createElement('a'); var LCP=document.createTextNode('(add)'); gO.appendChild(LCP); gO.style.fontSize='11px'; gO.style.textDecoration='underline'; gO.style.paddingRight='6px'; gO.onclick=function(label,PF,SQm,LCP){ return function(){ LCP.replaceData(0,LCP.length,'(added)'); var wAc=null; for(var nd in ePV.rJi) if(ePV.rJi[nd].Onq=='feeds') wAc=ePV.rJi[nd]; var pHT=(SQm!=null)?SQm:PF; wAc.VB(['('+label+')     '+pHT]); wAc.nA(); }; }(dIE[fJ][0],dIE[fJ][1],dIE[fJ][2],LCP); var dc=document.createElement('a'); dc.appendChild(document.createTextNode('(preview)')); dc.className='scheme-body-text'; dc.style.fontSize='11px'; dc.style.textDecoration='underline'; dc.style.paddingRight='6px'; dc.onclick=function(PF){ return function(){ ii(PF); return false; }; }(dIE[fJ][1]); OU.appendChild(dc); OU.appendChild(gO); OU.appendChild(document.createTextNode(dIE[fJ][0])); CCU.push(OU); }uA(JA.EBd,CCU); JA.PT(); }; }(LL,gv); LL.onmouseover=function(aF){ return function(){ aF.className='scheme-header scheme-header-text'; }; }(LL); LL.onmouseout=function(aF,gv){ return function(){ if(JA.EDf!=gv) aF.className='scheme-body scheme-body-text'; }; }(LL,gv); LL.appendChild(document.createTextNode(feedList[gv][0])); this.jsU.push(LL); }this.EBd=document.createElement('div'); this.LD.appendChild(this.DG); this.LD.appendChild(this.fpa); this.LD.appendChild(this.EBd); this.qaX=100; this.tn=function(JO){ if(JO<this.qaX) JO=this.qaX; this.LD.style.width=(JO-JlX*2)+'px'; this.fpa.style.width=this.LD.style.width; this.EBd.style.width=this.LD.style.width; uA(this.fpa,this.jsU); if(this.CCU) uA(this.EBd,this.CCU); }; this.vID=null; this.uU=function(iYI){ this.vID=iYI; }; this.PT=function(){ if(this.vID!=null) this.vID(); }; }; Uj.SJ=Hp(); Uj.prototype=new pa(); Uj.prototype.JX=function(){ var JA=this; this.prR.OP(); var XK=this.prR.De(); var hjC=this.prR.getAttribute('searches'); for(var gv in hjC){ var search=hjC[gv]; var title=search[0]; var url=search[1]; var Yin=url.indexOf('&'); if(Yin==-1) Yin=url.length; var Fwf=url.substring(0,Yin); var llU=url.substring(Yin,url.length); var form=document.createElement('form'); form.action=Fwf; form.method='GET'; form.target='_NEW'; var PNg=llU.split('&'); for(var fJ in PNg){ var lro=PNg[fJ].split('='); var input=document.createElement('input'); input.name=lro[0]; if(fJ==PNg.length-1){ input.style='width:140px;'; input.value=title; input.onmousedown=function(input){ return function(){ input.select(); }; }(input); input.onfocus=input.onmousedown; }else{ input.type='hidden'; input.value=lro[1]; }form.appendChild(input); }var submit=document.createElement('input'); submit.type='submit'; submit.value='Go'; }}; function cG(){ }cG.SJ=[]; cG.DQP=60; cG.prototype=new pa(); cG.prototype.JX=function(){ var JA=this; this.prR.OP(); if(!this.prR.getAttribute('items')){ this.prR.setAttribute('items',[JA.VG(null,[JA.VG()])]); }var items=this.prR.getAttribute('items'); this.items=items; this.HpQ=document.createElement('div'); this.Sf(); this.prR.De().appendChild(this.HpQ); var bYR=document.createElement('div'); var Rr=Da.rh(bYR); Da.ei(bYR,'todo-item',Rr,function(Kck){ var gG=Kck; JA.items.push(gG); JA.prR.sW(); JA.Sf(); JA.NA(); JA.prR.US(); }); bYR.style.cursor='pointer'; var WiU=GP(); WiU.width=11; WiU.height=11; WiU.src='/web/images/add-item.gif'; var Pa=pm('new item',11,false); bYR.style.paddingBottom='10px'; bYR.appendChild(Fk([WiU,bW(5),Pa])); bYR.onmouseover=function(){ Pa.style.textDecoration='underline'; }; bYR.onmouseout=function(){ Pa.style.textDecoration='none'; }; bYR.onclick=function(){ var NT=JA.VG(); items.push(NT); JA.prR.sW(); JA.Sf(); var WQF=JA.LX.tW(NT); WQF.OR(); }; if(this.prR.NY.IH()) this.prR.De().appendChild(bYR); this.NA=function(){ JA.LX.tn(JA.prR.NY.innerWidth); }; this.prR.Bu(function(innerWidth,QcS,wRl){ if(!wRl){ JA.LX.tn(innerWidth); }}); this.prR.US(); this.NA(); }; cG.prototype.Sf=function(){ var JA=this; LM(this.HpQ); var items=this.prR.getAttribute('items'); var bWP=new Array(); var Td=function(){ JA.prR.US(); }; var pjm=0; for(var gv in items){ var item=items[gv]; if(item['children'].length>0){ pjm=sp.LNG; break; }}for(var gv in items){ var item=items[gv]; bWP.push(JA.xS(item,JA.prR.NY.innerWidth,pjm,Td,function(item,NGT){ JA.Oa(item,NGT); JA.prR.sW(); })); }this.LX=new sp(bWP,true,true); this.LX.kV(); this.HpQ.appendChild(this.LX.LD); Td(); }; cG.prototype.VG=function(text,children){ var item=new Object(); item['text']=text!=null?text:'To-do item'; item['checked']=false; item['bold']=false; item['isExpanded']=children?true:false; item['children']=children?children:[]; return item; }; cG.Fj=function(GmT,ntF,wGY,rHv){ for(var gv in ntF){ var currentItem=ntF[gv]; if(currentItem==GmT){ wGY(ntF,parseInt(gv),rHv); break; }cG.Fj(GmT,currentItem['children'],wGY,currentItem); }}; cG.prototype.vt=function(item,LK,tBk,GZ,OFd,bpA){ var JA=this; var LD=document.createElement('div'); LD.style.padding='5px 10px 5px 10px'; LD.appendChild(gd('To-do item options',11,true,5)); LD.appendChild(ji(5)); LD.appendChild(Mw(item['isBold']?'Regular text':'Bold text',11,false,5,function(){ item['isBold']=!item['isBold']; LK.REc.Qi(item['isBold']); tBk(); GZ(); })); LD.appendChild(document.createElement('br')); var VrF; cG.Fj(item,JA.items,function(ntF,gv,KHv){ VrF=(gv!=0); }); var TxL; cG.Fj(item,JA.items,function(ntF,gv,KHv){ TxL=KHv!=undefined; }); if(VrF){ LD.appendChild(Mw('Indent',11,false,5,function(){ cG.Fj(item,JA.items,function(ntF,gv,KHv){ ntF.splice(gv,1); ntF[gv-1]['children'].push(item); ntF[gv-1]['isExpanded']=true; tBk(); GZ(); OFd(); }); })); }if(VrF&&TxL) LD.appendChild(gd('/',11,false,0)); if(TxL){ LD.appendChild(Mw('Outdent',11,false,5,function(){ cG.Fj(item,JA.items,function(ntF,gv,KHv){ ntF.splice(gv,1); cG.Fj(KHv,JA.items,function(ntF,gv,KHv){ ntF.splice(gv+1,0,item); }); tBk(); GZ(); OFd(); }); })); }if(VrF||TxL) LD.appendChild(document.createElement('br')); LD.appendChild(Mw('Insert before',11,false,5,function(){ cG.Fj(item,JA.items,function(ntF,gv,KHv){ var NT=bpA(); ntF.splice(gv,0,NT); tBk(); GZ(); OFd(NT); }); })); LD.appendChild(gd('/',11,false,5)); LD.appendChild(Mw('Insert after',11,false,5,function(){ cG.Fj(item,JA.items,function(ntF,gv,KHv){ var NT=bpA(); ntF.splice(gv+1,0,NT); tBk(); GZ(); OFd(NT); }); })); LD.appendChild(document.createElement('br')); LD.appendChild(Mw('Insert indented',11,false,5,function(){ cG.Fj(item,JA.items,function(ntF,gv,KHv){ var NT=bpA(); item['isExpanded']=true; item['children'].push(NT); tBk(); GZ(); OFd(NT); }); })); var FY=document.createElement('div'); FY.style.cursor='default'; FY.style.padding='5px 5px 0px 5px'; FY.style.width='160px'; FY.style.fontSize='11px'; FY.className='scheme-body-text'; FY.appendChild(document.createTextNode('Tip: You can reorder to-do items by dragging their checkboxes')); LD.appendChild(FY); return LD; }; cG.prototype.Oa=function(item ){ var JA=this; cG.Fj(item,JA.items,function(ntF,gv,KHv){ ntF.splice(gv,1); }); this.Sf(); this.NA(); this.prR.US(); }; cG.prototype.xS=function(item,width,ucM,Td,iGT){ var JA=this; if(item['text']=='aaaa'){ }var LD=document.createElement('div'); var Ab=new Array(); for(var gv in item['children']){ var iZ=this.xS(item['children'][gv],width-cG.DQP,ucM,Td,iGT); Ab.push(iZ); }var lc=function(){}; var sb=function(){}; var wN=function(){}; var qo=function(isExpanded){ item['isExpanded']=isExpanded; JA.NA(); JA.prR.US(); if(JA.prR.NY.IH()) JA.prR.sW(); }; var REc=new VP(null,width-cG.DQP-ucM,eG('scheme-body-text',12,false,false),function(){ },function(value,lho,ovW){ if(lho){ if(value==''){ JA.Oa(item); }else{ item['text']=value; }JA.prR.sW(); }if(ovW&&value!=''){ cG.Fj(item,JA.items,function(ntF,gv,KHv){ var NT=JA.VG(''); ntF.splice(gv+1,0,NT); JA.Sf(); var WQF=JA.LX.tW(NT); WQF.OR(); JA.NA(); JA.prR.US(); }); }},function(){ Td(); },item['text'],12,item['isBold']?'bold':'normal','scheme-body-text',false,function(){ return!JA.prR.NY.IH(); }); var LK=new aM(item['isExpanded'],function(leftMargin,tkt){ REc.tn(width-cG.DQP-leftMargin); var Rr=Da.rh(tkt); Da.ei(tkt,'todo-item',Rr,function(Kck){ var gG=Kck; cG.Fj(item,JA.items,function(ntF,gv,KHv){ ntF.splice(gv,0,gG); JA.prR.sW(); JA.Sf(); JA.NA(); JA.prR.US(); }); }); Da.YY(SL,item,LK.LD,'todo-item',function(){ cG.Fj(item,JA.items,function(ntF,gv,KHv){ ntF.splice(gv,1); jNa=gv; Zao=ntF; }); },function(){ if(!JA.prR.NY.IH()) return; item['checked']=!item['checked']; Ck(); JA.prR.sW(); },function(){ Zao.splice(jNa,0,item); JA.Sf(); JA.NA(); JA.prR.US(); },function(){ JA.Sf(); JA.prR.sW(); JA.NA(); JA.prR.US(); }); return LD; },Ab,lc,sb,wN,qo,item); LK.cF(function(width){ REc.tn(width-cG.DQP-ucM); }); LK.REc=REc; var SL=document.createElement('div'); SL.style.fontSize='0px'; SL.style.width='13px'; SL.style.height='13px'; SL.style.marginTop='1px'; SL.checked=item['checked']; var Ck=function(){ KX(SL,item['checked']?'/web/images/checkbox-ticked.gif':'/web/images/checkbox.gif'); REc.fq(item['checked']); }; Ck(); var xK=document.createElement('div'); xK.style.fontSize='0px'; xK.style.width='11px'; xK.style.height='11px'; xK.style.marginTop='2px'; KX(xK,'/web/images/todo-cross.png'); var options=document.createElement('div'); options.style.fontSize='0px'; options.style.width='13px'; options.style.height='11px'; options.style.marginTop='2px'; KX(options,'/web/images/todo-options.png'); if(!this.prR.NY.IH()){ options.style.display='none'; xK.style.display='none'; }options.onmousedown=function(eu){ var cn=Xt(eu); cn.x+=10; cn.y-=40; var ZUZ=JA.vt(item,LK,function(){ JA.prR.sW(); },function(){ cG.urN.position(-10000,-10000); },function(NT){ JA.Sf(); if(NT){ var WQF=JA.LX.tW(NT); WQF.OR(); }JA.NA(); JA.prR.US(); },function(){ return JA.VG(); }); if(!cG.urN){ cG.urN=new QF(cn.x,cn.y,false,vs-2,'00',ZUZ,false,true,null); cG.urN.eV(function(){ cG.urN.position(-10000,-10000); }); }else{ cG.urN.KT(ZUZ); cG.urN.position(cn.x,cn.y,false); cG.urN.Cw(); }}; var jNa; var Zao; var table=Fk([SL,bW(6),REc.LD,bW(10),xK,bW(10),options],true); LD.appendChild(table); xK.onclick=function(){ iGT(item,LK); }; xK.onmouseover=function(){ REc.Ix(true); }; xK.onmouseout=function(){ REc.Ix(false); }; options.onmouseover=xK.onmouseover; options.onmouseout=xK.onmouseout; LK.OR=function(){ REc.OR(); }; return LK; }; function MX(){ }function pW(){ return [ new ConfigFieldAlignedGroup([ new ConfigCustomField(MX.SW),new ConfigOptionGroup('speedUnits','Wind speed units','',[new ConfigOption('mph','m',true),new ConfigOption('km/h','k',false)]),new ConfigOptionGroup('temperatureUnits','Temperature units','',[new ConfigOption('Celsius','c',false),new ConfigOption('Fahrenheit','f',true)]),new ConfigCheckbox('compactMode','Compact display mode','',false) ]) ]; }MX.SW=function(HIM,bH,ePV){ this.HIM=HIM; this.label='City (Worldwide) or zip code (U.S. only)'; this.description=null; var JA=this; this.bH=bH; this.ePV=ePV; this.LD=document.createElement('div'); this.MmU=document.createElement('div'); this.lEl=document.createElement('div'); this.LD.appendChild(this.MmU); this.LD.appendChild(this.lEl); var khM=bH.prR.getAttribute('locationLabel'); this.SAX=bH.prR.getAttribute('locationLabel'); this.uVs=bH.prR.getAttribute('locationId'); this.input=document.createElement("input"); this.input.value=khM; this.input.style.padding='0px'; this.input.style.paddingRight='5px'; this.input.style.margin='0px'; this.input.style.display='inline'; this.eIH=document.createElement('input'); this.eIH.type='button'; this.eIH.value='Search'; this.eIH.style.padding='0px'; this.eIH.style.margin='0px'; this.eIH.style.display='inline'; this.eIH.style.fontSize='12px'; this.eIH.onclick=function(){ if(JA.input.value==null||JA.input.value=='') return false; JA.eIH.disabled=true; var HD=new Object(); HD['methodName']='searchLocations'; HD['searchTerm']=JA.input.value; LM(JA.lEl); JA.bH.prR.Jj('weatherService',HD,function(aD){ JA.dr(aD); }); return false; }; this.input.onkeyup=function(eu){ var qc=eu; if(!qc) qc=window.event; if(qc) if(qc.keyCode==13) JA.eIH.onclick(); }; this.dr=function(aD){ JA.eIH.disabled=false; var IJJ=aD['locationMatches']; var RKo=new Array(); if(IJJ.length==0){ JA.lEl.style.paddingTop='6px'; JA.lEl.style.paddingBottom='10px'; JA.lEl.className='scheme-body-text'; JA.lEl.appendChild(document.createTextNode('No matching cities found. Please try another search.')); }else{ if(IJJ.length>1){ var WlS=document.createElement('div'); WlS.className='scheme-body-text'; WlS.appendChild(document.createTextNode('Select one of the following matches:')); JA.lEl.appendChild(WlS); }for(var gv in IJJ){ var match=IJJ[gv]; var Rbw=document.createElement('div'); Rbw.style.textDecoration='underline'; Rbw.style.cursor='pointer'; Rbw.style.fontSize='12px'; Rbw.appendChild(document.createTextNode(match.label)); JA.lEl.appendChild(Rbw); JA.lEl.style.paddingTop='6px'; JA.lEl.style.paddingBottom='10px'; RKo.push(Rbw); Rbw.onclick=function(match,Rbw){ return function(){ for(var fJ in RKo){ if(RKo[fJ]==Rbw) Rbw.className='scheme-header scheme-header-text'; else RKo[fJ].className='scheme-body scheme-body-text'; }JA.input.value=match.label; var guL=match.label; if(guL.indexOf(',')!=-1) guL=guL.substring(0,guL.indexOf(',')); ePV.ASq.value=guL; JA.uVs=match.id; JA.SAX=match.label; }}(match,Rbw); if(IJJ.length==1) Rbw.onclick(); }}ePV.prR.NY.QC(); JA.PT(); }; this.MmU.appendChild(this.input); this.MmU.appendChild(this.eIH); this.tn=function(JO){ this.LD.style.width=JO+'px'; }; this.vID=null; this.uU=function(iYI){ this.vID=iYI; }; this.PT=function(){ if(this.vID!=null) this.vID(); }; this.hd=function(){ this.input.select(); }; this.NM=function(){ this.bH.prR.setAttribute('locationId',this.uVs); this.bH.prR.setAttribute('locationLabel',this.SAX); }; }; MX.SJ=pW(); MX.prototype=new pa(); MX.prototype.JX=function(){ var JA=this; this.prR.OP(); this.prR.De().appendChild(document.createTextNode('Retrieving weather...')); if(this.prR.getAttribute('locationId')==undefined){ this.prR.setAttribute('locationId','USCA1024'); this.prR.setAttribute('locationLabel','Santa Monica, CA'); this.prR.setAttribute('speedUnits','m'); this.prR.setAttribute('temperatureUnits','f'); }this.jr(); }; MX.prototype.jr=function(){ var JA=this; var HD=new Object(); HD['methodName']='getWeather'; HD['locId']=this.prR.getAttribute('locationId'); this.prR.Jj('weatherService',HD,function(aD){ JA.Vt(aD); }); }; MX.prototype.Vt=function(vCn){ var JA=this; this.prR.OP(); if(vCn['error']!=undefined){ this.prR.De().appendChild(document.createTextNode('This widget is temporarily unavailable. Service will resume shortly.')); return; }if(this.prR.getAttribute('compactMode')) this.gM(vCn); else this.HA(vCn); this.prR.US(); setTimeout(function(){ JA.jr(); },30*60*1000); }; MX.prototype.gM=function(vCn){ var JA=this; var table=document.createElement('table'); table.className='scheme-body-text'; table.cellPadding=0; table.cellSpacing=0; table.style.width='100%'; table.align='center'; table.border=0; var FB=document.createElement('tbody'); var qjB=document.createElement('tr'); var rsM=document.createElement('td'); var UIF=document.createElement('td'); var mbQ=document.createElement('tr'); var OSn=document.createElement('td'); OSn.colSpan=2; OSn.align='center'; var qss=document.createElement('tr'); var QnQ=document.createElement('td'); QnQ.colSpan=2; QnQ.align='center'; rsM.width='50%'; UIF.width='50%'; rsM.align='center'; UIF.align='center'; rsM.vAlign='middle'; UIF.vAlign='middle'; table.appendChild(FB); FB.appendChild(qjB); qjB.appendChild(rsM); qjB.appendChild(UIF); FB.appendChild(mbQ); mbQ.appendChild(OSn); FB.appendChild(qss); qss.appendChild(QnQ); var wUT=this.prR.getAttribute('temperatureUnits')=='f'?vCn['currentConditions']['tempF']:vCn['currentConditions']['tempC']; rsM.appendChild(document.createTextNode(wUT+'\u00b0')); rsM.style.fontSize='28px'; var dWT=vCn['currentConditions']['icon']; if(dWT.length==1) dWT='0'+dWT; var eE='/web/images/weather/small_icons/'+dWT+'.png'; var jlu=document.createElement('div'); jlu.style.width='64px'; jlu.style.height='48px'; KX(jlu,eE,false); UIF.appendChild(jlu); OSn.appendChild(document.createTextNode(vCn['currentConditions']['desc'])); var FRR=document.createElement('div'); FRR.style.fontSize='9px'; FRR.style.paddingTop='4px'; FRR.innerHTML='<a style="text-decoration:none; white-space:nowrap" href="http://www.weather.com" target="_NEW">Weather by weather.com&reg;</a>'; QnQ.appendChild(FRR); this.prR.De().appendChild(table); }; MX.prototype.HA=function(vCn){ var JA=this; var table=document.createElement('table'); table.className='scheme-body-text'; table.cellPadding=0; table.cellSpacing=0; table.style.width='100%'; table.align='center'; var FB=document.createElement('tbody'); var qjB=document.createElement('tr'); var rsM=document.createElement('td'); var UIF=document.createElement('td'); var ZTf=document.createElement('td'); rsM.width='33%'; UIF.width='33%'; ZTf.width='33%'; rsM.align='center'; UIF.align='center'; ZTf.align='center'; var mbQ=document.createElement('tr'); var OSn=document.createElement('td'); OSn.colSpan=3; var qss=document.createElement('tr'); var QnQ=document.createElement('td'); QnQ.colSpan=3; table.appendChild(FB); FB.appendChild(qjB); FB.appendChild(mbQ); FB.appendChild(qss); qjB.appendChild(rsM); qjB.appendChild(UIF); qjB.appendChild(ZTf); mbQ.appendChild(OSn); qss.appendChild(QnQ); rsM.appendChild(this.aq(vCn)); UIF.appendChild(this.DO(vCn)); var dWT=vCn['currentConditions']['icon']; if(dWT.length==1) dWT='0'+dWT; var eE='/web/images/weather/medium_icons/'+dWT+'.png'; var jlu=document.createElement('div'); jlu.style.width='100px'; jlu.style.height='75px'; KX(jlu,eE,false); ZTf.appendChild(jlu); OSn.appendChild(this.cI(vCn)); QnQ.appendChild(this.PG(vCn)); this.prR.De().appendChild(table); }; MX.prototype.aq=function(vCn){ var table=document.createElement('table'); table.className='scheme-body-text'; var FB=document.createElement('tbody'); var qjB=document.createElement('tr'); var mbQ=document.createElement('tr'); var rsM=document.createElement('td'); var OSn=document.createElement('td'); table.appendChild(FB); FB.appendChild(qjB); FB.appendChild(mbQ); qjB.appendChild(rsM); mbQ.appendChild(OSn); var wUT=this.prR.getAttribute('temperatureUnits')=='f'?vCn['currentConditions']['tempF']:vCn['currentConditions']['tempC']; rsM.appendChild(document.createTextNode(wUT+'\u00b0')); rsM.style.fontSize='32px'; rsM.align='center'; OSn.align='center'; OSn.appendChild(document.createTextNode(vCn['currentConditions']['desc'])); return table; }; MX.prototype.DO=function(vCn){ var table=document.createElement('table'); table.className='scheme-body-text'; var FB=document.createElement('tbody'); var qjB=document.createElement('tr'); var mbQ=document.createElement('tr'); var qss=document.createElement('tr'); var IfJ=document.createElement('tr'); var rsM=document.createElement('td'); var OSn=document.createElement('td'); var QnQ=document.createElement('td'); var EYx=document.createElement('td'); rsM.style.fontSize='11px'; OSn.style.fontSize='11px'; QnQ.style.fontSize='11px'; EYx.style.fontSize='11px'; table.appendChild(FB); FB.appendChild(qjB); FB.appendChild(mbQ); FB.appendChild(qss); FB.appendChild(IfJ); qjB.appendChild(rsM); mbQ.appendChild(OSn); qss.appendChild(QnQ); IfJ.appendChild(EYx); rsM.align='left'; OSn.align='left'; QnQ.align='left'; EYx.align='left'; var wUT=this.prR.getAttribute('temperatureUnits')=='f'?vCn['currentConditions']['feelsLikeF']:vCn['currentConditions']['feelsLikeC']; rsM.appendChild(document.createTextNode('Feels like '+wUT+'\u00b0')); var hqw=this.prR.getAttribute('speedUnits')=='m'?vCn['currentConditions']['windSpeedMph']:vCn['currentConditions']['windSpeedKmh']; if(!isNaN(hqw)) hqw+=this.prR.getAttribute('speedUnits')=='m'?' mph':' km/h'; OSn.appendChild(document.createTextNode('Wind '+hqw)); QnQ.appendChild(document.createTextNode('Humidity '+vCn['currentConditions']['humidityPercent']+'%')); EYx.appendChild(document.createTextNode('UV Index '+vCn['currentConditions']['uvIndex'])); return table; }; MX.prototype.cI=function(vCn){ var table=document.createElement('table'); table.width='100%'; table.cellPadding=0; table.cellSpacing=0; var FB=document.createElement('tbody'); var qjB=document.createElement('tr'); var rsM=document.createElement('td'); var UIF=document.createElement('td'); var ZTf=document.createElement('td'); var Isj=document.createElement('td'); table.appendChild(FB); FB.appendChild(qjB); qjB.appendChild(rsM); qjB.appendChild(UIF); qjB.appendChild(ZTf); qjB.appendChild(Isj); rsM.align='center'; UIF.align='center'; ZTf.align='center'; Isj.align='center'; var eqG=new Array(); for(var gv in vCn['forecast']['forecasts']){ if(vCn['forecast']['forecasts'][gv]['partOfDay']=='d'){ eqG.push(vCn['forecast']['forecasts'][gv]); }}rsM.appendChild(this.xa(eqG[0])); UIF.appendChild(this.xa(eqG[1])); ZTf.appendChild(this.xa(eqG[2])); Isj.appendChild(this.xa(eqG[3])); return table; }; MX.prototype.xa=function(Bdm){ var table=document.createElement('table'); table.className='scheme-body-text'; var FB=document.createElement('tbody'); var qjB=document.createElement('tr'); var mbQ=document.createElement('tr'); var qss=document.createElement('tr'); var IfJ=document.createElement('tr'); var rsM=document.createElement('td'); var OSn=document.createElement('td'); var QnQ=document.createElement('td'); var EYx=document.createElement('td'); table.appendChild(FB); FB.appendChild(qjB); FB.appendChild(mbQ); FB.appendChild(qss); FB.appendChild(IfJ); qjB.appendChild(rsM); mbQ.appendChild(OSn); qss.appendChild(QnQ); IfJ.appendChild(EYx); rsM.align='center'; OSn.align='center'; QnQ.align='center'; EYx.align='center'; rsM.style.fontSize='11px'; OSn.style.fontSize='11px'; QnQ.style.fontSize='11px'; EYx.style.fontSize='11px'; var dWT=Bdm['icon']; if(dWT.length==1) dWT='0'+dWT; var eE='/web/images/weather/small_icons/'+dWT+'.png'; var jlu=document.createElement('div'); jlu.style.width='64px'; jlu.style.height='48px'; KX(jlu,eE,false); rsM.appendChild(jlu); var fDb=this.prR.getAttribute('temperatureUnits')=='f'?Bdm['dayHighTempF']:Bdm['dayHighTempC']; var Rdp=this.prR.getAttribute('temperatureUnits')=='f'?Bdm['dayLowTempF']:Bdm['dayLowTempC']; OSn.appendChild(document.createTextNode(Bdm['dayOfWeekLabel'])); QnQ.appendChild(document.createTextNode(fDb+'\u00b0'+' / '+Rdp+'\u00b0')); EYx.appendChild(document.createTextNode(Bdm['desc'])); return table; }; MX.prototype.PG=function(vCn){ var table=document.createElement('table'); table.className='scheme-body-text'; table.align='center'; table.cellPadding=0; table.cellSpacing=0; table.border=0; table.style.paddingTop='14px'; var FB=document.createElement('tbody'); var qjB=document.createElement('tr'); var rsM=document.createElement('td'); var UIF=document.createElement('td'); table.appendChild(FB); FB.appendChild(qjB); qjB.appendChild(rsM); qjB.appendChild(UIF); rsM.align='center'; UIF.align='center'; var vJh=document.createElement('a'); vJh.href='http://www.weather.com'
vJh.target='_NEW'; var AhC=new Image(); AhC.src='/web/images/weather/twc-logo.gif'; AhC.border=0; vJh.appendChild(AhC); rsM.appendChild(vJh); var LD=document.createElement('div'); LD.style.paddingLeft='14px'; LD.style.fontSize='9px'; var FRR=document.createElement('div'); FRR.innerHTML='<a style="text-decoration:none" href="http://www.weather.com" target="_NEW">Weather data provided by weather.com&reg;</a>'; LD.appendChild(FRR); var XEc=document.createElement('div'); LD.appendChild(XEc); var links=vCn['promoLinks']['links']; for(var gv in links){ var link=links[gv]; var sS=document.createElement('a'); sS.href=link.url; sS.appendChild(document.createTextNode(link.label)); sS.target='_NEW'; sS.style.paddingRight='4px'; XEc.appendChild(sS); }UIF.appendChild(LD); return table; }; function rC(entries){ entries.push(new aM(false,function(){return pk.kE(lA('http://maps.google.com'),'Google Maps');},[],null,pk.JD(pk.SZ(qSk,'Google Maps',{'url':'http://maps.google.com?q=London','safetyTimeoutCompleted':true,'disableScrollbars':false,'verticalOffset':'0','horizontalOffset':'0'}),360,390))); }function fC(){ XT='protopage'; Zv.gfU='Protopage'; Zv.vsf='Protopage'; Zv.AGp='www.cnn.com'; Zv.GPA='flickr.com/photos/tags/dogs'; Zv.lUN=''; Zv.gDv=''; hK='www.protopage.com/yourname'; Zv.VQU='protopage.com'; Zv.JJe='http://www.protopage.com'; Zv.DDe='http://images.protopage.com/protopuppy/protopuppy.swf'; Zv.ohd=[new LinkData('Yahoo!','http://www.yahoo.com'),new LinkData('Wikipedia','http://en.wikipedia.org'),new LinkData('Protopage Blog','http://blog.protopage.com')]; XR='protopage-widgets.com'; Zv.RCv='/web/terms.html'; Zv.Hdr='/web/help/introduction.jsp'; Zv.AHq='/web/help/working-with-tabs.jsp'; Zv.NLj=[ ["Read the Protopage manual","/web/help/introduction.jsp"],["Read the Protopage news blog","http://blog.protopage.com"],["Set this as your homepage",'/_api/setAsHomepage?path='+protopagePath],["Invite a friend",'/'+protopagePath+'/_api/sendInvitations'],["Contact us / Send us feedback","/_api/contact"],["Your account settings",'/'+protopagePath+'/_api/editAccount']
]; Vc=false; YG=0; Ij=!true; xJ=false; Zv.colorsAndSettings=new Object(); Zv.colorsAndSettings.headerForegroundColor='FFFFFF'; Zv.colorsAndSettings.headerBackgroundColor='213571'; Zv.colorsAndSettings.bodyForegroundColor='000000'; Zv.colorsAndSettings.bodyBackgroundColor='FFFFFF'; Zv.colorsAndSettings.backgroundColor='FFFFFF'; Zv.colorsAndSettings.backgroundMode='WALLPAPER_IMAGE'; Zv.colorsAndSettings.backgroundPattern='diagonal-tubes2'; Zv.colorsAndSettings.backgroundHueOffset=-4; Zv.colorsAndSettings.backgroundSaturationOffset=75.55555555555556; Zv.colorsAndSettings.backgroundLightnessOffset=71.11111111111111; Zv.colorsAndSettings.wallpaperImageUrl='/web/images/wallpaper/curve.png'; Zv.colorsAndSettings.wallpaperMode='TILE'; Zv.colorsAndSettings.panelDropShadowPreference='ALWAYS'; Zv.colorsAndSettings.openLinksInNewWindow=true; Zv.wallpaperChoices=[new ol('(No wallpaper)',''),new ol('Curve','/web/images/wallpaper/curve.png'),new ol('Dove','/web/images/wallpaper/dove.jpg'),new ol('Leaf floating in pond','/web/images/wallpaper/floating-leaf.jpg'),new ol('Blue sky','/web/images/wallpaper/blue-sky.jpg'),new ol('Blue sky 2','/web/images/wallpaper/blue-sky2.jpg'),new ol('Blue sky 3','/web/images/wallpaper/blue-sky3.jpg'),new ol('Blue sky 4','/web/images/wallpaper/blue-sky4.jpg'),new ol('Night sky','/web/images/wallpaper/night-sky.jpg'),new ol('Green leaf','/web/images/wallpaper/green-leaf.gif'),new ol('Green leaf 2','/web/images/wallpaper/green-leaf-2.jpg'),new ol('Coffee beans','/web/images/wallpaper/coffee-beans.jpg'),new ol('Garden','/web/images/wallpaper/garden.jpg'),new ol('Red and yellow flower','/web/images/wallpaper/red-and-yellow-flower.jpg'),new ol('Winter berries','/web/images/wallpaper/winter-berries.jpg'),new ol('Peppercorns','/web/images/wallpaper/peppercorns.jpg'),new ol('Dog','/web/images/wallpaper/dog.jpg'),new ol('Purple flower','/web/images/wallpaper/purple-flower.jpg'),new ol('Cat','/web/images/wallpaper/cat.jpg'),new ol('Frozen grass','/web/images/wallpaper/frozen-grass.jpg'),new ol('Blueberries','/web/images/wallpaper/blueberries.jpg'),new ol('Daisies','/web/images/wallpaper/daisies.jpg'),new ol('Tropical','/web/images/wallpaper/tropical.jpg'),new ol('Swan','/web/images/wallpaper/swan.jpg'),new ol('Laser trace','/web/images/wallpaper/laser-trace.jpg'),new ol('Shore','/web/images/wallpaper/shore.jpg')]; }function OQ(){ if(protopagePath=='eircomdemo'){ YG=60; var Yd='<div style="font-size:12px; font-weight:bold; padding-bottom:0px">Special offer</div>      <div style="float:right; font-size:11px;"><br><a target="_BLANK" href="http://www.eircom.net">more</a>...</div><div style="font-size:11px;">Get 1 month’s free broadband when you recommend a friend</div>'; jV(uH(),Yd,117,225); Su('web/images/branding/eircom/sample-ad.jpg'); }if(protopagePath=='newbay-demo'){ YG=60; var Yd='<div style="font-size:12px; font-weight:bold; padding-bottom:0px">Special offer</div>      <div style="float:right; font-size:11px;"><br><a target="_BLANK" href="http://www.vodafone.co.uk">more</a>...</div><div style="font-size:11px;">Get 1 month’s free line rental when you recommend a friend</div>'; if(pageParams['motd']) jV(uH(),Yd,244,225); Su('web/images/branding/newbay/sample-ad.jpg'); }}var jV=function(gX,Yd,PDG,YNu){ var LD=document.createElement('div'); LD.className='scheme-body-text'; LD.style.padding='0px 10px'; LD.innerHTML='<div style="width:'+YNu+'px">'+Yd+'</div>'; var bs=new QF(PDG,3,false,1,'00',LD,true,false,null,gX); return bs; }; 