slideShowURL = 'SlideShow_assets/SlideShow.html';       // parameter from openSlideShowWindow.js
slideShowNS4URL = 'SlideShow_assets/SlideShowNS4.html'; // parameter from openSlideShowWindow.js

slides = new Array();
slides[0] = new Slide('../Labels_with_photos_files/10077.jpg', '563', '599', 'F.M. Howell in Elmira, NY, was the largest\nprinter of vanity labels. Founded in 1883, the company was one of the first to adopt photographic techniques for not only vanities, but all label production. Hard and soft cover label catalogs from all printers are sought by the Museum. [10077]');
slides[1] = new Slide('../Labels_with_photos_files/10073.jpg', '439', '600', 'Typical Howell half-tone labels. A customer could order the label as offered, or include a photograph of their choice. Sample labels are recognizable by the addition of pricing and ordering information.\n1,000 custom labels cost $17.  [10073]');
slides[2] = new Slide('../Labels_with_photos_files/vanity644.jpg', '450', '616', 'Very finely screened (rotogravure?) created around 1895. Cigars by John Roeder’s four man shop in Boston for C.A. Weston & Co., Portland Maine.\n[6404]');
slides[3] = new Slide('../Labels_with_photos_files/vanity6418.jpg', '361', '432', 'Half-tone. Cigars by Barnes, Smith & Co., Binghamton, NY for Wm. Philips, Cheshire, NY \nin 1905. “Made in an Independent Factory” sticker\nto show lack of involvement with the Trust.\n[6418]');
slides[4] = new Slide('../Labels_with_photos_files/vanity6417.jpg', '378', '616', 'Half-tone of the cigar-maker’s son. Cigars by Andy J. Holmes, Chariton, IA, Fact. 122, 4th Dist, Iowa.\nF.M. Howell stock label used in 1898.\n[6417]');
slides[5] = new Slide('../Labels_with_photos_files/vanity6414.jpg', '403', '616', 'Half-tone with unusual farming scene background made for Fred Ambs, Sr., Moorhead, Minnesota by Kuhles & Stock in St. Paul, one of Minnesota’s two largest cigar factories, with 100 rollers. Fred Jr.\ndied at age seven. This may have been a memorial. [6414]');
slides[6] = new Slide('../Labels_with_photos_files/vanity647.jpg', '429', '616', 'Another fine-screen or rotogravure created for \nG.A. Howland of Lime Springs, Iowa, by Moers & mannheimer, whose 100 rollers made it one of the two largest cigar factories in Cincinnati in the 1890’s.  A curator’s favorite. [6407]');
slides[7] = new Slide('../Labels_with_photos_files/vanity6429.jpg', '389', '616', 'Made for Nels Hansen, Wautoma, Wisconsin. Half tone depicts Carlton Hansen, Nels’ sister’s son whom he adopted when she died in childbirth, An avid hunter, Nels included his dogs, gun and skins in the photo.  Cigars by Wautoma Cigar Co., Fact 149, 1st Wisconsin. 1901-1904.  [6429]');
slides[8] = new Slide('../Labels_with_photos_files/vanity643.jpg', '409', '616', 'Stock blank label with fancy typeface brand name and half tone depiction of two sons of cigar maker, C.B. Spofford, Claremont, NH. Fact. 96. 1905.   [6403]');
slides[9] = new Slide('../Labels_with_photos_files/vanity6413.jpg', '398', '616', 'Howell stock label with half tone depicting three of Henry’s sons. Cigars made by Joe Reinstein, Westpoint, Iowa  (Fact. 100. 4th IA)  in 1903.\n[6413]');
slides[10] = new Slide('../Labels_with_photos_files/vanity6411.jpg', '343', '616', 'Unusual vanity created by laying a photo of the twins on a blank stock label and re-photographing it.\nReal photo on photo paper label. Cigars made by Joseph Heller in Fact. 122, 1st Wisconsin,\nMilwaukee, 1905.\n[6411]');
slides[11] = new Slide('../Labels_with_photos_files/vanity6424.jpg', '367', '616', 'Unknown children (TR’s sons?) used as a label by Charles Timmerman, Fact. 931, Mankato, MN c1905.   [6424]');
slides[12] = new Slide('../Labels_with_photos_files/vanity6426.jpg', '616', '423', 'Salesman sample size NW12/6 boxes are rarely found with vanity labels. Cigars by W.H. Snyder, Fact. 752, 9th Windson, PA for W.M. Siers, \nAltoona, PA  c1910.\n[6426]');
slides[13] = new Slide('../Labels_with_photos_files/vanity6427.jpg', '320', '415', 'Two jaunty three year olds in boots, hats and jackets. A handful for mom.  \n[6427]');
slides[14] = new Slide('../Labels_with_photos_files/9514.jpg', '489', '570', 'Three children posed in a studio with cigar props. Cigars by John N. Stadler, Fact. 1318, 28th Dist. Lockport, NY. 1906. \nBequeathed to the NCM by Chuck Tuthill.\n[9514]');
slides[15] = new Slide('../Labels_with_photos_files/9516.jpg', '413', '570', 'One of my favorite vanities. One child is stripping, one is rolling and the third is packing. \nExceptional vanity in very fine condition.\n[9516]');
slides[16] = new Slide('../Labels_with_photos_files/vanity6419.jpg', '616', '555', 'Cigars made by Ashland Cigar & Tobacco Co., Ashland Wisconsin Fact. 157, 2nd Dist. WI., for John I. Hahn Company.  “Cigars to burn.” c1905\n[6419]');
slides[17] = new Slide('../Labels_with_photos_files/vanity6421.jpg', '302', '385', 'Unusual tableau of child boxer and sporting men. Why does fine print imbedded in the image say ©Scioto Sign Co., Chicago?\n[6421]');
slides[18] = new Slide('../Labels_with_photos_files/vanity649.jpg', '519', '616', 'Cigar maker George Dillon of Mt. Pleasant, Michigan (fact. 153, 1st MI) put his five daughters on this 1911 box.\n[6409]');
slides[19] = new Slide('../Labels_with_photos_files/vanity648.jpg', '260', '345', 'Straight five is a delightful play on words referring to five straight daughters. In the cigar industry, straight five also means nickel cigars sold without quantity discount no matter how many you buy.\n[6408]');
slides[20] = new Slide('../Labels_with_photos_files/vanity6422.jpg', '397', '616', 'Three pictures of the same infant adorn Singer & Swoyer’s brand made in their Factory 233, 12th (Jersey Shore) PA in 1905.\n[6422]');
slides[21] = new Slide('../Labels_with_photos_files/10276.jpg', '477', '600', 'The same three photos appear on a stock label in F.M. Howell’s catalog. Who copied whom?\nDid S&S save $4/100 by buying the infant along with the border and passing Joe off as someone they knew or did Howell like S&S’s Joe label so much\nthey used it as a sample?  [10276]');
slides[22] = new Slide('../Labels_with_photos_files/vanity6425.jpg', '391', '616', 'Unusual staged photo half-tone vanity on brand made by Nicolas Weber, Fact. 639 Milwaukee \nfor an unknown customer. c1928. Cute ambiguous “try it” refers to the cigars and rocket-riding.\n[6425]');
slides[23] = new Slide('../Labels_with_photos_files/vanity6425_2.jpg', '132', '176', 'Close-up of previous.\n[6425CU]');
slides[24] = new Slide('../Labels_with_photos_files/vanity6458.jpg', '339', '604', 'Half-tone vanity labels are very rare on large\nNW250 dropfront boxes. The label is standard\nsize for a 50/13 box, looking a little lost on this.\nCigars by Cincinnati giant J.H. Lucke owner of\nFactory 567, 1st Dist. Ohio.\n[6458]');
slides[25] = new Slide('../Labels_with_photos_files/vanity6439.jpg', '403', '616', 'Cigarmaker H. Payenkop, Fact. 717 Milwaukee, packed this box of cigars for dog-lover and likely owner, H.G. Tess between 1901-1910. Champion animals frequently were the subject of vanity labels. \n[6439]');
slides[26] = new Slide('../Labels_with_photos_files/vanity6438.jpg', '438', '616', 'Glade City Cigar Co., Fact. 82, 8th District Illinois\n(Blandinsville) made this box in 1902, probably for C.E. Ballou, to whom the brand is registered.\n[6438]');
slides[27] = new Slide('../Labels_with_photos_files/vanity6440.jpg', '431', '616', 'Bab and Bob were champions of something, probably having to do with the fire apparatus they’re hitched to. Cigars by T.W. Schroeder & Sons, \nFact. 71, 4th Dist. (Clinton) Iowa.1901-1910.\n[6440]');
slides[28] = new Slide('../Labels_with_photos_files/vanity6432.jpg', '575', '616', 'Joe Ditz made these for the East Side Gun Club in Saginaw Michigan in 1904. Rich people’s club with fancy building, 125+ people, 27 men with guns, \n15 piece band, spotting tower, judges. Long-lived brand featuring the armed society of Saginaw.\n[6432]');
slides[29] = new Slide('../Labels_with_photos_files/vanity6433.jpg', '412', '616', 'Jockam “Joe” Ditz, Factory 160, 1st Michigan.\n[6433]');
slides[30] = new Slide('../Labels_with_photos_files/vanity6435.jpg', '527', '616', 'The West Side Gun Club of Saginaw in 1912 was not as blessed, consisting of 11 armed men and boys, two dogs, and 23 hangers-on standing in front of a cloth banner by the local cemetery.\n[6435]');
slides[31] = new Slide('../Labels_with_photos_files/vanity6434.jpg', '386', '616', 'George Schulz, Factory 479, 1st Michigan, created this as a satire on the popular group and cigars.\nThe addition of Perfectos frontmark alongside the\nlabel was probably a taunt. Much more difficult\nto find this box than the East Side.\nA curator’s favorite pair. [6434]');
slides[32] = new Slide('../Labels_with_photos_files/228a.jpg', '451', '772', 'Rotogravure or real photo label? Nice trophy label\nnot in the NCM collection.\n[w0000]');
slides[33] = new Slide('../Labels_with_photos_files/vanity6430.jpg', '386', '616', 'Four deer and two bears qualified as Extra Good Luck for these hunters and their dogs. Trophy label box from late 1920’s by Quakertown Cigar Co. \nFactory 428, 1st District Pennsylvania.\n[6430]');
slides[34] = new Slide('../Labels_with_photos_files/vanity6436.jpg', '407', '616', 'Twenty-seven guys and a boat and one oar. \nNo guns or fishing gear. What were they up to? They’re holding a banner, but it’s unreadable.\nCigars by William N. Nase, 510 W. Dauphin St., Philadelphia 1916.\n[6436]');
slides[35] = new Slide('../Labels_with_photos_files/vanity6459.jpg', '616', '570', 'The “club” referred to “good ol’ boys” who hung out at Cook’s cigar factory and store in Dansville, NY. The brand was around for a couple decades. \nFact. 152, 28th Dist. NY 1921.\n[6459]');
slides[36] = new Slide('../Labels_with_photos_files/vanity6455.jpg', '372', '616', 'Depression era box style created to encourage men to buy an entire box, then give it to their wives as a jewelry box. Many other similar 1930’s Novelty boxes are on display in the NCM.  [6455]');
slides[37] = new Slide('../Labels_with_photos_files/vanity6456.jpg', '441', '616', 'Most boxes of this style had mirrors inside. This has a team photo of the 1935 Green Bay Packers.\nFootball team photos are very rare on cigar boxes, especially this late and in this type box. Cigars by fan George Barth, Fact. 283, Green Bay.\n[6456]');
slides[38] = new Slide('../Labels_with_photos_files/10281.jpg', '587', '600', 'The Somersworth, NH, football team of 1917 was immortalized by C.N. Hurd, who pasted the label for the short lived brand on top of the black and gold label of his leading SPIDER brand. The top brand and edging of SPIDER were not changed.\nSee SPIDER in the Bad Brands exhibit. [10281]');
slides[39] = new Slide('../Labels_with_photos_files/10266.jpg', '391', '600', 'Chicago’s National Soccer League was dominated by Sparta, champions every year from 1928 through 1938. Sparta was one of the all-time great amateur soccer teams. The 1928 team is featured on this vanity by Chicago cigarmaker Thomas Verve\nFact. 1201, 1st Dist, Illinois.  [10266]');
slides[40] = new Slide('../Labels_with_photos_files/vanity6437.jpg', '435', '616', 'The 1908 Cobleskill, NY, baseball team is pictured and identified on this 1908 box by Harry Kelso, Factory 519, 14th Dist (Cobleskill) NY. \n[6437]');
slides[41] = new Slide('../Labels_with_photos_files/10282.jpg', '373', '600', 'One of the longest running baseball labels features Al Simmons, a Hall of Famer with Philadelphia and 6 other teams. Labeled “Milwaukee’s favorite” but he was traded from AA Milwaukee to the Athletics in 1923. Cigars by Erlinda Cigar Co., Milwaukee, 1960.  This Howell stock label was used often. [10282]');
slides[42] = new Slide('../Labels_with_photos_files/lategold8167.jpg', '563', '616', 'Military units are surprisingly scarce on vanity labels considering their popularity and that of the Spanish-American War coincide. Cigars made in Factory 190 South Dakota (tax District of Nebraska) in 1899, most likely by Fred Kurth or A. Reichert.\n[8167]');
slides[43] = new Slide('../Labels_with_photos_files/vanity6454.jpg', '392', '616', 'Why a Milwaukee cigar maker named Ramon Garcia (Fact 156) features a German men’s choir from 1938 on this 1945 box of cigars is\nanyone’s guess. Did they tour the US in 1938?\n[6454]');
slides[44] = new Slide('../Labels_with_photos_files/vanity6449.jpg', '542', '616', 'Local marching bands are a popular vanity topic frequently packed in book-shaped boxes. I suspect without proof that they were used as fundraisers. This reads “ [illegible] Champions” on top.\nCigars by L.O. Coleman, Fact. 196 Beloit, KS.\n[6449]');
slides[45] = new Slide('../Labels_with_photos_files/vanity6451.jpg', '368', '616', 'Vanity label of previous box, 1898.\nGift of Joe Davidson.\n[6451]');
slides[46] = new Slide('../Labels_with_photos_files/vanity6463.jpg', '495', '616', '1906. Twenty-eight members of the Dayton, Ohio, Bar Association are pictured on this brand by Dayton cigar maker C.W. Alday. \nFactory 469, 1st District Ohio.\n[6463]');
slides[47] = new Slide('../Labels_with_photos_files/10277.jpg', '400', '600', '1921. Same brand, same top oval, same edging, same Caution Notice, fourteen different lawyers.\nWas the Bar Association limited to only 28 members or did Mr. Alday not want to change the label’s layout? How many different versions are there?Unusual “Solid Comfort” frontmark.  [10277]');
slides[48] = new Slide('../Labels_with_photos_files/vanity6443.jpg', '551', '616', '1908. Two men and a boy in clown costumes along with a donkey pulling a flag-decorated sulky. Sign reads: “When not a going, we stop at Hittemiller’s Palace Saloon” Founded in the 1870’s, the saloon was still in Dyerville, Iowa, a century later.\n[6443]');
slides[49] = new Slide('../Labels_with_photos_files/vanity6444.jpg', '381', '616', 'Actual photo on photo paper, with multiple creases.\nPossibly a one-of-a-kind created by a family member. Cigars by John Mitch, Manchester, Iowa, Factory 279, 3rd Iowa.  A curator’s favorite.\n[6444]');
slides[50] = new Slide('../Labels_with_photos_files/vanity6442.jpg', '537', '616', 'Unusual sport of high-kicking featured on equally unusual side by side half-tone sequential photos. Another book-shaped box by the Hittemillers, this one featuring J.J. Hittemiller doing the 9’ 8” kick.\nSpine reads “J.J. Hittemiller Special.”\n[6442]');
slides[51] = new Slide('../Labels_with_photos_files/vanity6441.jpg', '377', '616', 'Doing the stunt AND getting the photos wasn’t easy. Landing must have hurt!\nCigars by William. Hartley, Dyersville, Fact. 133, \n3rd District of Iowa.\n[6441]');
slides[52] = new Slide('../Labels_with_photos_files/vanity6460.jpg', '543', '616', 'Unusual photographic vanity of six men. Top brand reads SOCIAL SIX. Lack of inside brand name may mean short-run custom work, not for retail trade. \nCigars by H.E. Walter & Co., Fact. 34, 3rd NYC for E.L. Rushton, Canton, NY. Is he one of the six? What makes them social?   [6460]');
slides[53] = new Slide('../Labels_with_photos_files/vanity6461.jpg', '606', '472', 'Photographic vanity of dapper mustachioed gent.\nUnusual configuration for a 50 box. No brand name but reads “Manuf’d expressly for A.F. Burhop” on side liner. Unusual placement of Caution Notice.\nCigars by George Schivibringer/Schwibinger,\nMilwaukee, Fact. 512, 1st Wisconsin   [6461]');
slides[54] = new Slide('../Labels_with_photos_files/vanity6472.jpg', '538', '616', 'Who is Knaup and what was he diplomatic about?\nCigars by Lazarus Levy, NYC, Fact. 861, 3rd NYC.\nOdd brand name.  1898. Very popular style\nof blank stock label used for vanities. \n[6472]');
slides[55] = new Slide('../Labels_with_photos_files/vanity6465.jpg', '556', '616', 'Brand name is SILVER’S BEST, most likely named after the retailer. Portrait is of Cedar Rapids, Iowa, distributor James Plumb. Cigars by Charles Hass, \nFact. 21, 1st Dist. Ohio, Cincinnati 1905.\n[6465]');
slides[56] = new Slide('../Labels_with_photos_files/vanity6469.jpg', '405', '616', 'Half-tone photo, probably of wholesaler or retailer. Cigars by big-timer Yocum Bros., Fact. 103, \n1st Dist. PA. c1905.\n[6469]');
slides[57] = new Slide('../Labels_with_photos_files/vanity6466.jpg', '384', '616', 'Photograph pasted onto stock label by Joseph Weinreich, 1015 East 5th, Dayton, Ohio for \nT.J. Schmitt, Graf, Iowa in 1905.\nFact. 495, 1st Ohio. \n[6466]');
slides[58] = new Slide('../Labels_with_photos_files/vanity6484.jpg', '576', '616', 'Early 1920’s stock label with portrait of dad surrounded by cherubs. Cigars by Gay & Sons, Fact. 129, 1st (Hastings) Nebraska. \n[6484]');
slides[59] = new Slide('../Labels_with_photos_files/vanity6496.jpg', '616', '384', 'Vanity labels are almost never found on cans. Unusual portrait of a gent sitting at a table with a box of cigars and a jumbo torpedo. Cigars by \nS. Kauffman & Bro., Dallastown, Fact. 961, 9th PA.\n[6496]');
slides[60] = new Slide('../Labels_with_photos_files/vanity6476.jpg', '393', '616', 'Who is “Our” and why do they have someone who annoys young horses?  A mystery. Appears to be a leaf salesmen. Cigars by Schrier Brothers, Athens, PA Fact. 124, 12th Dist. PA c1896.\n[6476]');
slides[61] = new Slide('../Labels_with_photos_files/vanity6475.jpg', '386', '616', 'Same brand, same guy, same cigar maker, probably not the same tobacco leaf, but the same mystery. Only the pose has changed. c1904\n[6475]');
slides[62] = new Slide('../Labels_with_photos_files/vanity6474.jpg', '539', '616', 'The gloves suggest a fire department captain, but it’s not certain. The stylized signature on the front panel of the box is that of D.N. Kelley, Sabetha, Kansas cigar maker, Fact. 135 Kansas, c1904\n[6474]');
slides[63] = new Slide('../Labels_with_photos_files/vanity6462.jpg', '473', '616', 'Nine salesmen? working for Boston distributor Silas S. Peirce & Co. Cigars by George A. Kent, Fact. 3, 21st. Dist. New York (Binghamton). c1905.\n[6462]');
slides[64] = new Slide('../Labels_with_photos_files/vanity6487.jpg', '452', '616', 'Full page half-tone of a tobacconist with 63 open boxes of cigars on display along with large numbers of cigarettes, pipes, tobacco and accessories. \nNote plaster Indians on top of cabinet. Cigars by \nT. Thorne, Binghamton, Fact. 1404, 21st NY, 1918. \n[6487]');
slides[65] = new Slide('../Labels_with_photos_files/vanity6446.jpg', '554', '616', 'Unusual vanity sold only at the R.G. Sullivan factory in Manchester, NH. Label refers to “New 7-20-4 factory” and pictures the exterior of the factory on the top and the interior of the factory’s salesroom as an inner. 7-20-4 was one of nation’s biggest selling\n10¢ cigars. 1915.  [6446]');
slides[66] = new Slide('../Labels_with_photos_files/vanity6448.jpg', '367', '616', 'Puzzling vanity. Why is the band pictured along with the building and horse and buggies? Why did the band order cigars from Michael Becker, Brillon WI (pop. 845) only cigar maker instead of one of the three cigar factories in Kasson (pop.1112), MN?\nc 1900.   [6448]');
slides[67] = new Slide('../Labels_with_photos_files/vanity6486.jpg', '397', '616', 'Half-tone of Barton & Wheadon, wholesale grocers in Elmira, NY. Cigars made by Binghamton’s Barnes, Smith & Co. Wholesale grocers were responsible for creating hundreds of thousands of brands as they were the leading distributors of cigars. Box c1905.  [6486]');
slides[68] = new Slide('../Labels_with_photos_files/vanity6494.jpg', '212', '616', 'Exceptionally rare 250 (not a dropfront) with real photo pasted on inside lid. Pictures Armstrong Hotel, staff and vehicles, c1890.\nFact. 11, 9th PA. Warren or E.C. Beck, York.\n[6494]');
slides[69] = new Slide('../Labels_with_photos_files/vanity6497.jpg', '384', '616', 'Full page, blue tinted half-tone of Seaside resort.\nLid only.\n[6497]');
slides[70] = new Slide('../Labels_with_photos_files/vanity6481.jpg', '391', '616', 'Odd vanity with picture and text on photographed label, with previous maker crossed out. Different factory ID on lid and bottom. Cigars by C.T, Goodrich, Kasson, MN Fact. 191.\n[6481]');
slides[71] = new Slide('../Labels_with_photos_files/vanity6482.jpg', '428', '616', 'No idea who the oil man was, but this unusual vanity was made by J.B. Milleysack, Lancaster, Fact. 41, 9th PA, and distributed by Tinkham Bros. from Jamestown NY, 1918. Price was raised from 7¢ to 8¢ probably in response to WWI revised taxes.\n[6482]');
slides[72] = new Slide('../Labels_with_photos_files/vanity6479.jpg', '426', '616', 'Event vanities are rare, with disasters especially desirable photos.  This commemorates a tornado that hit St. Louis May 27, 1896. The photograph is \nof Broadway looking South. Cigars by unlisted maker, owner of Fact. 246, 1st Dist. Missouri.\n[6479]');
slides[73] = new Slide('../Labels_with_photos_files/vanity6480.jpg', '472', '616', 'Honors a fountain built in the New Haven green in 1907. The fountain was modeled after the Choragic Monument of Lysicrates in Athens. Cigars by James Manning, 371 State St., Fact 110, New Haven, CT.\nBox made between 1926-1931.  [6480]');
slides[74] = new Slide('../Labels_with_photos_files/10029.jpg', '392', '600', 'Grant Park, Chicago, is pictured on this 1921 box. Site of my first date with my wife, during the 1968 Democratic Convention. Cigars by unlisted maker, owner of Factory 29, 4th Dist. Michigan. Box contained packs of 5 cigars sold for a quarter.\n[10029]');
slides[75] = new Slide('../Labels_with_photos_files/vanity6477.jpg', '413', '616', 'First vanity in the NCM collection, obtained by Howard Richards in 1953. View is of scenic overlook above Riverside, Calif. Cigars by Julius Hess, owner of Fact. 11, 6th Dist. Riverside.  1910.\n[6477]');
slides[76] = new Slide('../Labels_with_photos_files/vanity6488.jpg', '434', '616', 'Interior pictures are rare. This bowling alley box held cigars by George E. Eichinger, Fact. 131, Red Wing, Minnesota. No indication of whose bowling alley it was, or where. 1929.  FM Howell stock frame.\n[6488]');
slides[77] = new Slide('../Labels_with_photos_files/vanity6498.jpg', '403', '616', 'Half-tone label pictures local telephone operator. \nBack panel reads Kreutz & Niedbalski, La Crosse, Wisconsin but doesn’t say whether they were cigar makers, distributors or the retailer. Cigars made in Fact. 310, 2nd Wisconsin  c1908.\n[6498]');
slides[78] = new Slide('../Labels_with_photos_files/vanity6489.jpg', '380', '586', 'The first fire truck in Cortland, NY, made it onto a vanity label used by local cigar maker M.P. Crain\nFactory 1109, 21st Dist. NY in 1907.  \n[6489]');
slides[79] = new Slide('../Labels_with_photos_files/vanity6490.jpg', '470', '616', 'Some town’s fire chief riding in a parade. This oddly colored vanity with dropped background was used by E. Renninger & Sons, Fact. 67, 1st PA in 1930.\n[6490]');
slides[80] = new Slide('../Labels_with_photos_files/vanity6492.jpg', '524', '616', 'Lehigh Valley railroad so nicknamed because of its frequent cargo of anthracite coal was the subject of a popular 1896 and 1900 Edison movie short as well as this popular 1898 brand of cigars picturing the train. Cigars by H.M. Ferguson, Fact. 239, 21st NY Waverly. F.M. Howell litho.  [6492]');
slides[81] = new Slide('../Labels_with_photos_files/vanity6495.jpg', '571', '616', 'Custom  brand picturing the facilities of the General Engineering and Dry Dock Co. in Alameda, Calif. When these 1940 cigars were made the company had no idea how active it would become repairing and modifying ships for the US Navy during WWII.  Cigars made in Fact 83, 1st CA. [6495]');
slides[82] = new Slide('../Labels_with_photos_files/vanity6499.jpg', '464', '616', 'A type of cargo ship used on the Great Lakes, 44 of which were built 1889-1896. Oil, grain, iron ore, etc. were hauled. By 1910, only 6 were still in service. The SS Meteor, pictured?, is berthed today in Superior, WI. Cigars made by Jacob Vanden Berge, Grand Rapids, Fact. 168, 4th MI, 1917  [6499]');
slides[83] = new Slide('../Labels_with_photos_files/vanity64100.jpg', '548', '616', 'One of the Whale-backs, thought to be the Meteor, passes through the locks at Sou-Sainte Marie. The brand was still around in 1933, and shows typical Depression era price drop. The NCM owns the original photo used for this label.\n[6400]');
isPureISOLatin1 = true;
contentEncodingConstant = 4;
feedbackURL = "TODO";
showFeedbackButton = false;
feedbackEnabled = true;

var MINIMUM_FONT = "10";
var UNITS = "";

function elementFontSize(element)
{
    var fontSize = MINIMUM_FONT; 

    if (document.defaultView)
    {
        var computedStyle = document.defaultView.getComputedStyle(element, null);
        if (computedStyle)
        {
            fontSize = computedStyle.getPropertyValue("font-size");
        }
    }
    else if (element.currentStyle)
    {
        fontSize = element.currentStyle.fontSize;
    }

    if ((UNITS.length == 0) && (fontSize != MINIMUM_FONT))
    {
        UNITS = fontSize.substring(fontSize.length - 2, fontSize.length)
    }

    return parseFloat(fontSize);
}

function adjustFontSizeIfTooBig(idOfElement)
{
    var oTextBoxOuterDiv;
    var oTextBoxMiddleDiv;
    var oTextBoxInnerDiv;
    var oTextBoxOuterDiv = document.getElementById(idOfElement);
    
    if (oTextBoxOuterDiv)
    {
        oTextBoxMiddleDiv = getChildOfType(oTextBoxOuterDiv, "DIV", 0);
        if (oTextBoxMiddleDiv)
        {
            oTextBoxInnerDiv = getChildOfType(oTextBoxMiddleDiv, "DIV", 0);
            if (oTextBoxInnerDiv)
            {
                var offsetHeight = oTextBoxInnerDiv.offsetHeight;
                var specifiedHeight = offsetHeight;
                if (oTextBoxMiddleDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxMiddleDiv.style.height);
                }
                else if (oTextBoxOuterDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxOuterDiv.style.height);
                }
                if (offsetHeight > specifiedHeight)
                {
                    var smallestFontSize = 200;
                    
                    var aParaChildren = getParaDescendants(oTextBoxInnerDiv);
                    var oneLine = false;
                    for (i = 0; i < aParaChildren.length; i++)
                    {
                        var oParagraphDiv = aParaChildren[i];
                        var lineHeight = elementLineHeight(oParagraphDiv);
                        oneLine = oneLine || (lineHeight * 1.5 >= specifiedHeight);
                        if (oParagraphDiv.nodeName == "DIV")
                        {
                            var fontSize = elementFontSize(oParagraphDiv);
                            smallestFontSize = Math.min( smallestFontSize, fontSize );
                            for (j = 0; j < oParagraphDiv.childNodes.length; j++)
                            {
                                var oSpan = oParagraphDiv.childNodes[j];
                                if ((oSpan.nodeName == "SPAN") || (oSpan.nodeName == "A"))
                                {
                                    fontSize = elementFontSize(oSpan);
                                    smallestFontSize = Math.min( smallestFontSize, fontSize );
                                }
                            }
                        }
                    }
                    var minimum = parseFloat(MINIMUM_FONT);
                    
                    var count = 0
                    while ((smallestFontSize > minimum) && (offsetHeight > specifiedHeight) && (count < 10))
                    {
                        ++ count;
                        if (oneLine)
                        {
                            var oldWidth = parseInt(oTextBoxOuterDiv.style.width);
                            oTextBoxInnerDiv.style.width =
                                "" + oldWidth * Math.pow(1.05, count) + "px";
                        }
                        else
                        {
                            var scale = Math.max(0.95, minimum / smallestFontSize);
                            
                            for (i = 0; i < aParaChildren.length; i++)
                            {
                                var oParagraphDiv = aParaChildren[i];
                                if (oParagraphDiv.nodeName == "DIV")
                                {
                                    var paraFontSize = elementFontSize(oParagraphDiv) * scale;
                                    var paraLineHeight = elementLineHeight(oParagraphDiv) * scale;
                                    for (j = 0; j < oParagraphDiv.childNodes.length; j++)
                                    {
                                        var oSpan = oParagraphDiv.childNodes[j];
                                        if ((oSpan.nodeName == "SPAN") || (oSpan.nodeName == "A"))
                                        {
                                            var spanFontSize = elementFontSize(oSpan) * scale;
                                            var spanLineHeight = elementLineHeight(oSpan) * scale;
                                            oSpan.style.fontSize = spanFontSize + UNITS;
                                            oSpan.style.lineHeight = spanLineHeight + UNITS;
                                            smallestFontSize = Math.min( smallestFontSize, spanFontSize );
                                        }
                                    }
                                    oParagraphDiv.style.fontSize = paraFontSize + UNITS;
                                    oParagraphDiv.style.lineHeight = paraLineHeight + UNITS;
                                    smallestFontSize = Math.min( smallestFontSize, paraFontSize );
                                }
                            }
                        }
                        
                        offsetHeight = oTextBoxInnerDiv.offsetHeight;
                    }
                }
            }
        }
    }
}


function elementLineHeight(element)
{
    var lineHeight = MINIMUM_FONT; 
    
    if (document.defaultView)
    {
        var computedStyle = document.defaultView.getComputedStyle(element, null);
        if (computedStyle)
        {
            lineHeight = computedStyle.getPropertyValue("line-height");
        }
    }
    else if (element.currentStyle)
    {
        lineHeight = element.currentStyle.lineHeight;
    }
    
    if ((UNITS.length == 0) && (lineHeight != MINIMUM_FONT))
    {
        UNITS = lineHeight.substring(lineHeight.length - 2, lineHeight.length)
    }
    
    return parseFloat(lineHeight);
}

function adjustLineHeightIfTooBig(idOfElement)
{
    var oTextBoxOuterDiv;
    var oTextBoxMiddleDiv;
    var oTextBoxInnerDiv;
    var oTextBoxOuterDiv = document.getElementById(idOfElement);
    
    if (oTextBoxOuterDiv)
    {
        oTextBoxMiddleDiv = getChildOfType(oTextBoxOuterDiv, "DIV", 0);
        if (oTextBoxMiddleDiv)
        {
            oTextBoxInnerDiv = getChildOfType(oTextBoxMiddleDiv, "DIV", 0);
            if (oTextBoxInnerDiv)
            {
                var offsetHeight = oTextBoxInnerDiv.offsetHeight;
                var specifiedHeight = offsetHeight;
                if (oTextBoxMiddleDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxMiddleDiv.style.height);
                }
                else if (oTextBoxOuterDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxOuterDiv.style.height);
                }
                if (offsetHeight > specifiedHeight)
                {
                    var adjusted = true;
                    var count = 0;
                    while ((adjusted) && (offsetHeight > specifiedHeight) && (count < 10))
                    {
                        adjusted = false;
                        ++ count;
                        
                        var aParaChildren = getParaDescendants(oTextBoxInnerDiv);
                        for (i = 0; i < aParaChildren.length; i++)
                        {
                            var oParagraphDiv = aParaChildren[i];
                            if (oParagraphDiv.nodeName == "DIV")
                            {
                                var fontSize = elementFontSize(oParagraphDiv);
                                var lineHeight = elementLineHeight(oParagraphDiv) * 0.95;
                                if (lineHeight >= (fontSize * 1.1))
                                {
                                    oParagraphDiv.style.lineHeight = lineHeight + UNITS;
                                    adjusted = true;
                                }
                                
                                
                                
                                for (j = 0; j < oParagraphDiv.childNodes.length; j++)
                                {
                                    var oSpan = oParagraphDiv.childNodes[j];
                                    if ((oSpan.nodeName == "SPAN") || (oSpan.nodeName == "A"))
                                    {
                                        var fontSize = elementFontSize(oSpan);
                                        var lineHeight = elementLineHeight(oSpan) * 0.95;
                                        if (lineHeight >= (fontSize * 1.1))
                                        {
                                            oSpan.style.lineHeight = lineHeight + UNITS;
                                            var adjusted = true;
                                        }
                                    }
                                }
                            }
                        }
                        
                        offsetHeight = oTextBoxInnerDiv.offsetHeight;
                    }
                }
            }
        }
    }
}

var smallTransparentGif = "";
function fixupIEPNG(strImageID, transparentGif) 
{
    smallTransparentGif = transparentGif;
    if (windowsInternetExplorer && (browserVersion < 7))
    {
        var img = document.getElementById(strImageID);
        if (img)
        {
            var src = img.src;
            img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')";
            img.src = transparentGif;
            img.attachEvent("onpropertychange", imgPropertyChanged);
        }
    }
}

function fixupIEPNGBG(oBlock) 
{
    if (oBlock)
    {
        var currentBGImage = oBlock.currentStyle.backgroundImage;
        var currentBGRepeat = oBlock.currentStyle.backgroundRepeat;
        var urlStart = currentBGImage.indexOf('url(');
        var urlEnd = currentBGImage.indexOf(')', urlStart);
        var imageURL = currentBGImage.substring(urlStart + 4, urlEnd);

        if (imageURL.charAt(0) == '"')
        {
            imageURL = imageURL.substring(1);
        }
        
        if (imageURL.charAt(imageURL.length - 1) == '"')
        {
            imageURL = imageURL.substring(0, imageURL.length - 1);
        }

        var overrideRepeat = false;

        var filterStyle =
            "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +
            imageURL +
            "', sizingMethod='crop');";

        if (RegExp("/C[0-9A-F]{8}.png$").exec(imageURL) != null)
        {
            filterStyle =
                "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +
                imageURL +
                "', sizingMethod='scale');";

            overrideRepeat = true;
        }

        var backgroundImage = new Image();
        backgroundImage.src = imageURL;
        var tileWidth = backgroundImage.width;
        var tileHeight = backgroundImage.height; 
        
        var blockWidth = 0;
        var blockHeight = 0;
        if (oBlock.style.width)
        {
            blockWidth = parseInt(oBlock.style.width);
        }
        else
        {
            blockWidth = oBlock.offsetWidth;
        }
        if (oBlock.style.height)
        {
            blockHeight = parseInt(oBlock.style.height);
        }
        else
        {
            blockHeight = oBlock.offsetHeight;
        }

        if ((blockWidth == 0) || (blockHeight == 0))
        {
            return;
        }
        
        var wholeRows = 1;
        var wholeCols = 1;
        var extraHeight = 0;
        var extraWidth = 0;
        
        if ((currentBGRepeat.indexOf("no-repeat") != -1) ||
              ((tileWidth == 0) && (tileHeight == 0)) ||
              overrideRepeat)
        {
            tileWidth = blockWidth;
            tileHeight = blockHeight;

        }
        else if ((currentBGRepeat.indexOf("repeat-x") != -1) ||
              (tileHeight == 0))
        {
            wholeCols = Math.floor(blockWidth / tileWidth);
            extraWidth = blockWidth - (tileWidth * wholeCols);
            tileHeight = blockHeight;

        }
        else if (currentBGRepeat.indexOf("repeat-y") != -1)
        {
            wholeRows = Math.floor(blockHeight / tileHeight);
            extraHeight = blockHeight - (tileHeight * wholeRows);
            tileWidth = blockWidth;

        }
        else
        {
            wholeCols = Math.floor(blockWidth / tileWidth);
            wholeRows = Math.floor(blockHeight / tileHeight);
            extraWidth = blockWidth - (tileWidth * wholeCols);
            extraHeight = blockHeight - (tileHeight * wholeRows);
        }
        
        var wrappedContent = document.createElement("div");
        wrappedContent.style.position = "relative";
        wrappedContent.style.zIndex = "1";
        wrappedContent.style.left = "0px";
        wrappedContent.style.top = "0px";
        if (!isNaN(parseInt(oBlock.style.width)))
        {
            wrappedContent.style.width = "" + blockWidth + "px";
        }
        if (!isNaN(parseInt(oBlock.style.height)))
        {
            wrappedContent.style.height = "" + blockHeight + "px";
        }
        var pngBGFixIsWrappedContentEmpty = true;
        while (oBlock.hasChildNodes())
        {
            if (oBlock.firstChild.nodeType == 3)
            {
                if (RegExp("^ *$").exec(oBlock.firstChild.data) == null)
                {
                    pngBGFixIsWrappedContentEmpty = false;
                }
            }
            else
            {
                pngBGFixIsWrappedContentEmpty = false;
            }
            wrappedContent.appendChild(oBlock.firstChild);
        }
        if (pngBGFixIsWrappedContentEmpty)
        {
            wrappedContent.style.lineHeight = "0px";
        }
        
        var newMarkup = "";
        for (var currentRow = 0; 
             currentRow < wholeRows; 
             currentRow++)
        {
            for (currentCol = 0; 
                 currentCol < wholeCols; 
                 currentCol++)
            {
                newMarkup += "<div style=" +
                        "\"position: absolute; line-height: 0px; " +
                        "width: " + tileWidth + "px; " +
                        "height: " + tileHeight + "px; " +
                        "left:" + currentCol *  tileWidth + "px; " +
                        "top:" + currentRow *  tileHeight + "px; " +
                        "filter:" + filterStyle + 
                        "\" > </div>";
            }
            
            if (extraWidth != 0)
            {
                newMarkup += "<div style=" +
                        "\"position: absolute; line-height: 0px; " +
                        "width: " + extraWidth + "px; " +
                        "height: " + tileHeight + "px; " +
                        "left:" + currentCol *  tileWidth + "px; " +
                        "top:" + currentRow *  tileHeight + "px; " +
                        "filter:" + filterStyle + 
                        "\" > </div>";
            }
        }
        
        if (extraHeight != 0)
        {
            for (currentCol = 0; 
                 currentCol < wholeCols; 
                 currentCol++)
            {
                newMarkup += "<div style=" +
                        "\"position: absolute; line-height: 0px; " +
                        "width: " + tileWidth + "px; " +
                        "height: " + extraHeight + "px; " +
                        "left:" + currentCol *  tileWidth + "px; " +
                        "top:" + currentRow *  tileHeight + "px; " +
                        "filter:" + filterStyle + 
                        "\" > </div>";
            }
            
            if (extraWidth != 0)
            {
                newMarkup += "<div style=" +
                        "\"position: absolute; line-height: 0px; " +
                        "width: " + extraWidth + "px; " +
                        "height: " + extraHeight + "px; " +
                        "left:" + currentCol *  tileWidth + "px; " +
                        "top:" + currentRow *  tileHeight + "px; " +
                        "filter:" + filterStyle + 
                        "\" > </div>";
            }
        }
        oBlock.innerHTML = newMarkup;

        oBlock.appendChild(wrappedContent);
        oBlock.style.background= "";
    }
}

function fixupAllIEPNGBGs()
{
    if (windowsInternetExplorer && (browserVersion < 7))
    {
        try
        {
            var oDivNodes = document.getElementsByTagName('DIV');
            for (var iIndex=0; iIndex<oDivNodes.length; iIndex++)
            {
                var oNode = oDivNodes.item(iIndex);
                if (oNode.currentStyle &&
                    oNode.currentStyle.backgroundImage &&
                    (oNode.currentStyle.backgroundImage.indexOf('url(') != -1) &&
                    (oNode.currentStyle.backgroundImage.indexOf('.png")') != -1))
                {
                    fixupIEPNGBG(oNode);
                }
            }
        }
        catch (e)
        {
        }
    }
}

function getChildOfType(oParent, sNodeName, requestedIndex)
{
    var childrenOfType = oParent.getElementsByTagName(sNodeName);
    return (requestedIndex < childrenOfType.length) ?
           childrenOfType.item(requestedIndex) : null;
}

function getParaDescendants(oAncestor)
{
    var oParaDescendants = new Array();
    var oPotentialParagraphs = oAncestor.getElementsByTagName('DIV');
    for (var iIndex=0; iIndex<oPotentialParagraphs.length; iIndex++)
    {
        var oNode = oPotentialParagraphs.item(iIndex);
        if (oNode.className.lastIndexOf('paragraph') != -1)
        {
            oParaDescendants.push(oNode);
        }
    }
    return oParaDescendants;
}

function onPageLoad()
{
    detectBrowser();
    adjustLineHeightIfTooBig("id1");
    adjustFontSizeIfTooBig("id1");
    adjustLineHeightIfTooBig("id2");
    adjustFontSizeIfTooBig("id2");
    adjustLineHeightIfTooBig("id3");
    adjustFontSizeIfTooBig("id3");
    fixupAllIEPNGBGs();
    fixupIEPNG("id4", "Labels_with_photos_files/transparent.gif");
    return true;
}

function NBmouseover(index)
{
    var normal = document.getElementById("navbar_"+index+"_normal");
    var rollover = document.getElementById("navbar_"+index+"_rollover");
    if (normal && rollover)
    {
        normal.style.visibility = "hidden";
        rollover.style.visibility = "visible";
    }
    return true;
}

function NBmouseout(index)
{
    var normal = document.getElementById("navbar_"+index+"_normal");
    var rollover = document.getElementById("navbar_"+index+"_rollover");
    if (normal && rollover)
    {
        normal.style.visibility = "visible";
        rollover.style.visibility = "hidden";
    }
    return true;
}

var windowsInternetExplorer = false;
var browserVersion = 0;
function detectBrowser()
{
    windowsInternetExplorer = false;
    var appVersion = navigator.appVersion;
    if ((appVersion.indexOf("MSIE") != -1) &&
        (appVersion.indexOf("Macintosh") == -1))
    {
        var temp = appVersion.split("MSIE");
        browserVersion = parseFloat(temp[1]);
        windowsInternetExplorer = true;
    }
}

var inImgPropertyChanged = false;
function imgPropertyChanged()
{
    if ((window.event.propertyName == "src") && (! inImgPropertyChanged))
    {
        inImgPropertyChanged = true;
        var el = window.event.srcElement;
        if (el.src != smallTransparentGif)
        {
            el.filters.item(0).src = el.src;
            el.src = smallTransparentGif;
        }
        inImgPropertyChanged = false;
    }
}


