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('../Early_Cuban_labels_files/cc 7405.jpg', '708', '537', 'Brand name only LONDRES, one of the two most popular sizes of cigars.  Signed Carvajal, though Melchor T. Luna is listed as maker.\n[7405]');
slides[1] = new Slide('../Early_Cuban_labels_files/bf 7423.jpg', '708', '459', 'WASHINGTON MANUFACTORY and a portrait decorate this early box top label. This style and placement of the label does not seem to have been used after the 1850’s. Fortunately, the use of black ink on blue paper was also short-lived.  [7423]');
slides[2] = new Slide('../Early_Cuban_labels_files/bg 7424.jpg', '644', '570', 'Same brand and box, with elaborately framed \nfarm scene as an inner. The entire outside of the box was paper covered, the front with a green patterned paper. Blue edging, but no liner.\nLate 1840’s or early 1850’s.  [7424]');
slides[3] = new Slide('../Early_Cuban_labels_files/bh 7425.jpg', '514', '708', 'Inner to the brand. Note there is no text identifying the brand or maker, though the scene is captioned\nin English in the style of commercial art prints.\nBoxes sat on shelves, not displayed open.\n[7425]');
slides[4] = new Slide('../Early_Cuban_labels_files/bl7421.jpg', '570', '647', 'The outer label says the box contained 100 very dark (nearly black) Regalia shaped cigars\nof less than first quality. Box uses a combination of edging and full size paper.\n[7421]');
slides[5] = new Slide('../Early_Cuban_labels_files/bq 7417.jpg', '509', '708', 'Top brands (marcas) quickly replaced top labels. The standard form included brand name, maker and place of origin. These cigars were made in Santiago \n(St. Iago) Cuba in the 1840’s or 50’s. The ribbon tie\nwas typical on boxes until the 1880’s. [7417]');
slides[6] = new Slide('../Early_Cuban_labels_files/bp 7416.jpg', '623', '570', 'FLOR DE REGIO COSTALES on the label doesn’t match the top brand which has y (and) between the names. Discrepancies are common on very early boxes. Note the string tie, oval inner, and flaps from all four sides on this early box of 100/13. [7416]');
slides[7] = new Slide('../Early_Cuban_labels_files/bt 7418.jpg', '630', '570', 'LA CHICA’s similarly sized oval label also featuring a woman fills the inside lid of a 25/5 box of short cigars. Early boxes have lids which rest on top of all four sides of the box. Pre 1860.\n[7418]');
slides[8] = new Slide('../Early_Cuban_labels_files/ce 7412.jpg', '570', '599', 'An 1838 2” Boston newspaper ad lists imported and domestic tobacco products. RIFLE and DOS AMIGOS were the only two brands of Cuban cigars specified. Brand names were rarely advertised, tho origin and style usually were.  [7412]');
slides[9] = new Slide('../Early_Cuban_labels_files/bv 8385.jpg', '562', '708', 'An early member of the pantheon of Cuban brands,  this FIGARO is from 1848. Note the sloppy cut and fit within the box, suggestive of how little importance the label had. The sticker on the left is notice of an award, hand dated 1847. [8385]');
slides[10] = new Slide('../Early_Cuban_labels_files/cubaearlyjpg8640.jpg', '560', '708', 'A loose label version of the above tri-lingual classic. \nCut quite differently, tight to the border. Office paper cutters that we take for granted didn’t exist.\nCuts are often rough on early labels.\n[8640]');
slides[11] = new Slide('../Early_Cuban_labels_files/cubalabel74B4.jpg', '556', '708', 'A LO FIGARO a name and design knock-off,\ncreated by Vicente Martinez Ybor. Selling cigars was a competitive business and knockoffs of names and designs were as common as on today’s TV.\n[7404]');
slides[12] = new Slide('../Early_Cuban_labels_files/cubaearly8613.jpg', '465', '708', 'If there was a rule, it probably had something to do with pretty girls. 19th century label ladies seemed to spend inordinate amounts of time languishing in hammocks or on couches. Pre 1870.\n[8613]');
slides[13] = new Slide('../Early_Cuban_labels_files/ci 8611.jpg', '708', '433', 'An early tribute to a hero by a cigar maker named Marquette. High quality tobacco was attracting European investors and entrepreneurs to Cuba,\nespecially from Spain, the Canaries, Germany\nand China.  [8611]');
slides[14] = new Slide('../Early_Cuban_labels_files/momisc3720.jpg', '708', '543', 'The three giants of American politics at the time. Clay visited Cuba around 1850 causing an ultimately long-lived brand, HENRY CLAY, to be immediately named after him.\n[3720]');
slides[15] = new Slide('../Early_Cuban_labels_files/miscearly50.jpg', '705', '570', 'Advertisers quickly discovered the power of celebrities, heroes and political figures. This configuration of text above and square picture below\nis the style adopted for nearly all US and Cuban boxes of 100 cigars in the 1860’s and 70’s. [1150]');
slides[16] = new Slide('../Early_Cuban_labels_files/ck 7420.jpg', '708', '539', 'European prima ballerina FANNY ELSSLER toured Cuba in 1845 and instantly appeared on a\ncigar label. The artist of this top label has \ndressed her on stage in heavy costume.\nThe earliest celebrity label reported so far. [7420]');
slides[17] = new Slide('../Early_Cuban_labels_files/cn 8631.jpg', '570', '580', 'JENNY LIND, the Swedish Nightingale, toured \nCuba in the late 1840’s with similar results. \n[8631]');
slides[18] = new Slide('../Early_Cuban_labels_files/xx132.jpg', '704', '482', 'Blue ink on white paper was an early effort to produce a colored label depicting the disastrous hurricane which destroyed the 1844 tobacco crop.\nLabel not in the NCM collection. Photo courtesy of Thomas Wangler.   [xx132]');
slides[19] = new Slide('../Early_Cuban_labels_files/xx137.jpg', '752', '510', 'Red ink on white paper was another effort to produce a colored label depicting the hurricane.\nLabel not in the NCM collection. Photo courtesy  \nof Thomas Wangler.   \n[xx137]');
slides[20] = new Slide('../Early_Cuban_labels_files/xx101.jpg', '673', '454', 'Interesting two color version of the hurricane, combining the blue and red on white paper.\nLabel not in the NCM collection. Photo \ncourtesy of Thomas Wangler.\n[xx101]');
slides[21] = new Slide('../Early_Cuban_labels_files/cubalabel74B13.jpg', '708', '481', 'Another very early effort to create a two-color label. This 1845 depiction of the hurricane of 1844 was printed in black and dark green.\n[7413]');
slides[22] = new Slide('../Early_Cuban_labels_files/cp 8633.jpg', '708', '515', 'Bare breasted almost full nude with a basket of flowers. Advertisers quickly learned that bosoms were a bigger seller than flowers.\nTop label, pre 1860.\n[8633]');
slides[23] = new Slide('../Early_Cuban_labels_files/cg 8624.jpg', '697', '570', 'LA ALEMANA, (the German) named after the export customer they sought. Black ink on dark blue paper remained popular into the 1850’s but, thank Heaven, is rarely seen thereafter. \n[8624]');
slides[24] = new Slide('../Early_Cuban_labels_files/cg 8635.jpg', '708', '521', 'Another pre 1860 export market directed brand.\n[8635]');
slides[25] = new Slide('../Early_Cuban_labels_files/cr 8604.jpg', '570', '672', 'LA LEGALIDAD tried a creatively designed,\nshaped and cut label. The figure at the top\nis an allegorical catch-all.\n[8604]');
slides[26] = new Slide('../Early_Cuban_labels_files/cubaearly8610.jpg', '519', '708', 'Printer-signed early small inner featuring a bare breasted Indian lass holding a bird. \n[8610]');
slides[27] = new Slide('../Early_Cuban_labels_files/cubaearly8618.jpg', '588', '570', 'Early LA SALVADORA by Maximilio Mensuro. \nEarlier style label has image above text.\n[8618]');
slides[28] = new Slide('../Early_Cuban_labels_files/cubaearly8617.jpg', '704', '529', 'Later version of same brand, annexed and now owned by Antonio Roig, who would ultimately go on to great success as a cigarmaker in Philadelphia.\nBy the 1860’s, outer (end) cigar labels tended to have square pictures below, text above.  [8617]');
slides[29] = new Slide('../Early_Cuban_labels_files/cubaearly8619.jpg', '570', '671', 'Evaristo Moran tried a patriotic sell with eagle topped E PLURIBUS UNUM. Trilingual (English, French, Spanish) gave the illusion of international markets.  [8619]');
slides[30] = new Slide('../Early_Cuban_labels_files/cubaearly8621.jpg', '550', '708', 'They experimented with labels that were square, rectangular, round, octagonal and, most popular of all in the 1830’s and 40’s, oval shaped.  These appear to have been used primarily as inners.\n[8621]');
slides[31] = new Slide('../Early_Cuban_labels_files/cubaearly8620.jpg', '570', '570', 'Torenato Valasco did the same with his intentionally[?] misspelled E PLURIBUS UNAM brand. Round impression with an octagonal cut made \nfor a distinctive label. Black on dark blue was\nvery difficult to read.  [8620]');
slides[32] = new Slide('../Early_Cuban_labels_files/cubalable7407.jpg', '583', '570', 'Another round label with an uneven octagonal cut. \n[7409]');
slides[33] = new Slide('../Early_Cuban_labels_files/xx055.jpg', '391', '397', 'Same label printed on different paper.\nLabel not in the NCM collection. Photo \ncourtesy of Thomas Wangler.\n[xx055]');
slides[34] = new Slide('../Early_Cuban_labels_files/cubaearly8616.jpg', '570', '679', 'Simple framed factory name surrounded by stock printer’s elements pieced together. Could have been an outer or small inner label. Rarely used ink color.\nFabrica de Tabacos means “cigar factory.”\n[8616]');
slides[35] = new Slide('../Early_Cuban_labels_files/ch 74B6.jpg', '708', '558', 'California was a surprisingly large market for Cuban cigars. An 1852 newspaper advertised more than a dozen available brands. Francisco P. Del Rio and other major Cuban companies opened cigar factories in San Francisco.  [7406]');
slides[36] = new Slide('../Early_Cuban_labels_files/cubaearly8629.jpg', '708', '472', 'Odd early style label with the picture on top.\nCrudely drawn image, the relevance of which\nI haven’t attempted to research. The use of\nGerman and English text may give a clue.\n[8629]');
slides[37] = new Slide('../Early_Cuban_labels_files/cubaearlyjpg8629.jpg', '764', '800', 'Strange illustration combining a sad little girl, tree, chicken, caduceus, barrel, tobacco bales, box of 1,000 cigars, negro worker, hills, body of water, \na rowboat and passenger,,,whew!  [8629]\nWhat did it all mean in 1850? ¿Quien sabe? ');
slides[38] = new Slide('../Early_Cuban_labels_files/cubaearly8625.jpg', '708', '506', 'Another “who’s he?” Someone in the 1850’s thought smokers would care than Hank went fishing. Te square picture with text above precursors US and\nCuban label style of the 1860’s and 70’s.\n[8625]');
slides[39] = new Slide('../Early_Cuban_labels_files/cubaearly8630.jpg', '708', '495', 'The “Olive Pit” brand name doesn’t fit the dancer, unless the reference is to a stage character. \nPop culture became part of advertising as soon\nas labels and brand names began being used.\n[8630]');
slides[40] = new Slide('../Early_Cuban_labels_files/cubaearly8628.jpg', '708', '486', 'Father Gerundio seems to be a hellfire and brimstone preacher railing at the ocean. \nHoohee?  Perhaps a pop culture reference \nfrom literature or theater.  \nCigars by Pedro Gutierrez.  [8628]');
slides[41] = new Slide('../Early_Cuban_labels_files/cubalabel74B14.jpg', '708', '511', 'The sun shines behind an Indian and boxes of cigars in this early lithographer-signed label used by Jose Cresencio Borges.  EL SOL was a brand that\nlasted longer than most (not all) of the others seen here.  [7414]');
slides[42] = new Slide('../Early_Cuban_labels_files/cubaearly8632.jpg', '708', '548', 'Women appear on labels as soon as there are labels. Pre-1860 Cuban labels seem to feature them standing more often than languishing. This early, pre-standardization label says tobacco was ‘conditioned and warranted’ by Jose Aranda. [8632]');
slides[43] = new Slide('../Early_Cuban_labels_files/cubaearly8626.jpg', '668', '570', 'Label with languishing lady, guitar, book, serving girl and a fountain in back. Life on labels was good. Mentero & Broth as listed as makers. Their address\nExtramuros means “outside the walls” of the old city.\n[8626]');
slides[44] = new Slide('../Early_Cuban_labels_files/cubaearly8622.jpg', '692', '570', 'LA GUADALUPE by Bernardo de Quintana shows a lady in a rural setting clutching a crucifix to her bosom. Illustration is signed either by the artist\nof the lithographer. Naive drawing.\n[8622]');
slides[45] = new Slide('../Early_Cuban_labels_files/cubaearly8623.jpg', '699', '570', 'LA CRUZ is another Quintana brand, the label of which shares many of the same design elements, tho this lady stands while reading a book in her forest setting.\n[8623]');
slides[46] = new Slide('../Early_Cuban_labels_files/cubalabel74B18.jpg', '708', '491', 'The label for LA FE by Francisco Bances depicts a women in a vertical panel highly reminiscent of the woman’s pose on HONRADEZ’s cigarette labels.\nJust another friendly knock-off?  [7418]');
slides[47] = new Slide('../Early_Cuban_labels_files/cubalabel74B19.jpg', '708', '453', 'Early somewhat successful brand, quickly copied.\n[7419]');
slides[48] = new Slide('../Early_Cuban_labels_files/cubalabel74B21.jpg', '708', '466', 'Gonzalo del Vello made these according to \nthe label. Was he real or is the name a knock-off \nof well-known Anselmo del Valle.\n[7421]');
slides[49] = new Slide('../Early_Cuban_labels_files/cubalabel74B20.jpg', '708', '474', 'The design is copied, but not exactly, on this label attributing the cigars to John Campbell. Was the brand legally annexed, or just ripped off. Whichever, the printing plate was done by a different artist.\n[7420]');
slides[50] = new Slide('../Early_Cuban_labels_files/cubaearly8636.jpg', '593', '570', 'Orion’s belt is the subject on this square label. The original placement of the label on a box is not\nknown. It may have been either an end label on a\n100/13 box or an inner on an oddly shaped box\nin this very experimental time.  [8636]');
slides[51] = new Slide('../Early_Cuban_labels_files/cubalabel74B5.jpg', '685', '570', 'From giant figures in the sky to giant figures on the ground. The long-gone colossus of Rhodes. How many of the seven wonders made it onto a cigar label? Probably all of them. 1860’s style design.\n[74B5]');
slides[52] = new Slide('../Early_Cuban_labels_files/cubalable7419.jpg', '708', '514', 'Two early labels featuring Neptune. Which came first?  This one used by Lopez y Gordey.\n[7419]');
slides[53] = new Slide('../Early_Cuban_labels_files/74cuba19.jpg', '554', '800', 'Artwork from this period was frequently naive.\nPrinting was frequently of marginal quality. The novelty of having local artwork printed onto paper for advertising was so new expectations were low.\n[7419]');
slides[54] = new Slide('../Early_Cuban_labels_files/cubaearly8627.jpg', '708', '433', 'Bernardino Crespo’s label shared a lot of design features in a similar naive portrayal. \nBoth are pre 1860.\n[8627]');
slides[55] = new Slide('../Early_Cuban_labels_files/cubaearlyjpg8627.jpg', '572', '800', '\n[8627]');
slides[56] = new Slide('../Early_Cuban_labels_files/cubalable7413.jpg', '708', '505', 'Stark angularity marks what looks like an engineering draftsman’s version of artwork.\nSmoking cigars, drinking and hanging out, favorite pastimes of many a 19th century male. This brand was sold internationally for decades.    [7413]');
slides[57] = new Slide('../Early_Cuban_labels_files/cubalabel74B12.jpg', '691', '570', 'With EL PRINCIPE DE GALES came PRICE OF WALES\npicturing a little boy instead of the plumed mature\nprince on horseback later featured in Ybor’s brand.\nCigars by Bernardo de Quintana whose LA CRUZ\nand LA GUADALUPE are seen above.  [7412]');
slides[58] = new Slide('../Early_Cuban_labels_files/cubaearly8639.jpg', '708', '555', 'Believed to be the earliest known (late 1850’s) label  of the long-lived EL PRINCIPE DE GALES. Signed Martinez Ybor. The top 1855 medal uses the “Ibor” spelling. Lower medal is 1852.\n[8639]');
slides[59] = new Slide('../Early_Cuban_labels_files/cubaearlyjpg8638.jpg', '708', '559', 'H.UPMANN label issued shortly after receiving \nthe same Paris 1855 medal as Ybor.\n[8638]');
slides[60] = new Slide('../Early_Cuban_labels_files/xx214.jpg', '330', '425', 'Believed to be the first H. UPMANN cigar label.\nWhether this diminutive 5.5” x 4.25” label was\npasted as an inner or outer is not known.\n[9834]');
slides[61] = new Slide('../Early_Cuban_labels_files/9828.jpg', '287', '500', 'Monarque, the horse honored on JOCKEY CLUB, was one of Europe’s most important horses 1854-58 and like many a horse after him, quickly emblazoned on a cigar label. The brand was most popular in France and England. See horseracing exhibit.  [9828]');
slides[62] = new Slide('../Early_Cuban_labels_files/74cuba15.jpg', '619', '800', 'If this is a genuine pre Hija (1848) Cabañas, why is the label signed Partagas y Compania? Was this\na knock-off of the internationally successful\nCabañas brand? Or is this what their label looked like in the early 1840’s?    [7415]');
slides[63] = new Slide('../Early_Cuban_labels_files/74cuba6.jpg', '800', '749', 'First known label after the brand was renamed\nto acknowledge the daughter’s 1848 take-over of the company. Issued before the brand was called \nH De CABANAS Y CARVAJAL or used the \nscript initials as a logo. Early 1850’s.   [7406]');
slides[64] = new Slide('../Early_Cuban_labels_files/9830.jpg', '330', '500', 'This is believed to be the first HENRY CLAY label after the brand was created in the late 1840’s. Long trilingual text is reminiscent of FIGARO from the same period.  Label not owned by the NCM. \n[9830]');
slides[65] = new Slide('../Early_Cuban_labels_files/9832.jpg', '337', '500', 'The Julian Alvarez version of HENRY CLAY used\non boxes made in the U.S. as late as the 1930’s.\n[9832]');
slides[66] = new Slide('../Early_Cuban_labels_files/cubalabel74B7.jpg', '708', '522', 'Street address, but no maker’s name on this wonderfully misspelled brand probably created\nwith a very specific market in mind. The\nMISISIPI VOLONTERS were not long lived.\n[74B7]');
slides[67] = new Slide('../Early_Cuban_labels_files/cubalabel74B9.jpg', '708', '489', 'No maker on this Spanish-English-German label with the cigar world’s most popular flower. Brand name lived on for decades used by a half dozen U.S. companies as well, including Straiton & Storm\n[7409]');
slides[68] = new Slide('../Early_Cuban_labels_files/cubalable7408.jpg', '585', '570', 'Very naive out of perspective view of Havana on this very early LA CUBANA label by an unknown maker.\nWhere was this 4” label used on what kind of box?\nPerhaps as an inner on a box of 25, with the lower text inside on the back panel of the box.  [7408]');
slides[69] = new Slide('../Early_Cuban_labels_files/cubalabel74B2.jpg', '683', '570', 'Naive but nicely done view of Havana harbor. This Pearl of the Antilles brand, created by the Regalado y Chinchurreta partnership was annexed and continued for a few decades.\n[7402]');
slides[70] = new Slide('../Early_Cuban_labels_files/cubalabel74B3.jpg', '708', '494', 'Unusual highly geometric interpretation of tobacco fields, stored bales of leaves, and a strange checker-board floored factory with rollers\nlining and facing the walls. \n[7403B]');
slides[71] = new Slide('../Early_Cuban_labels_files/xx155.jpg', '728', '510', 'Black ink on different colored paper was the\nfirst attempt to add color to cigar labels.\nOrange paper label not in the NCM collection.\nPhoto courtesy of Thomas Wangler.\n[xx155]');
slides[72] = new Slide('../Early_Cuban_labels_files/cubalabel74B8.jpg', '529', '708', 'Small inner label picturing the LA HIGUERA factory.\n[7408]');
slides[73] = new Slide('../Early_Cuban_labels_files/cubaearly8634.jpg', '708', '473', 'Early top label depicting a factory alternately identified as belonging to “J.F. Castañon” and “Fransisco Javier Castanon” so take your pick\nAccuracy on labels was never guaranteed.\n[8634]');
slides[74] = new Slide('../Early_Cuban_labels_files/cubalabel74B10.jpg', '708', '516', 'Distinctive unidentified outdoor scene probably recognizable to the 1850’s smoker wherever the brand was sold. The cigars are identified as \n“por Antonio Garcia y Ca.”\n[7410B]');
slides[75] = new Slide('../Early_Cuban_labels_files/cubalable749.jpg', '708', '542', 'LA VENECIANA by Federico Abzamora has the finest detail and best perspective of any early Cuban label in the collection. Lithographer identified as \n“Lit. del Comercio  Obispo No. 44.”\n[7409]');
slides[76] = new Slide('../Early_Cuban_labels_files/cubalabel74B11.jpg', '708', '518', 'EL FELIZ ENCUENTRO depicts a happy encounter \nin the forest on a very early top label.\nCigar maker listed only as C.C. Use of initials was\ncommon on shipping manifests of the early 1800’s.\n[7411]');
slides[77] = new Slide('../Early_Cuban_labels_files/cubalabel74B17.jpg', '708', '526', 'The EL AGUILA eagle looks a lot like the one used by Gustave Bock for his EL AGUILA del ORO, \na brand offered for a century. \nCigars made by Mitjans  y Ca.\n[7417B]');
slides[78] = new Slide('../Early_Cuban_labels_files/cubalabel74B16.jpg', '708', '496', 'A vigilant rooster decorated the label\nused by Fernando Salay Company.\nLithographer signed. Decorative border still used\ntho relationship between text and picture moving toward the 1860’s standard. [7416]');
slides[79] = new Slide('../Early_Cuban_labels_files/cubalabel74B15.jpg', '565', '708', 'LA EMPRESA used a naive allegorical to \nsell cigars by D. Felipe Higues.\n[7415]');
slides[80] = new Slide('../Early_Cuban_labels_files/cubalable7454.jpg', '668', '570', 'EL DORADO Sigarros by M.U. Grisiti used this label for goods sent to England. In Cuba cigarros are cigarettes.  \n[7454]');
slides[81] = new Slide('../Early_Cuban_labels_files/cubalable7455.jpg', '643', '570', 'Similar crudely printed and equally crudely cut\nEL DORADO by Mateo Saenz y Cia. is either a \nBritish knock-off, or the same label before or \nafter annexation. \n[7455]');
slides[82] = new Slide('../Early_Cuban_labels_files/ba8642.jpg', '707', '570', 'Large two color 8.5” x 10.5” label for a “box”\nof 1,000 cigars. Yara cigars shipped out of\nthe town of Puerto Principe were an acquired\ntaste with distinctive strong tobacco.\nCigars by Juan of God Perez.  [8642]');
slides[83] = new Slide('../Early_Cuban_labels_files/bb8641.jpg', '708', '448', 'Large exterior label for “half box” of 500 Yara cigars shipped by Juan de Dios Perez from Puerto Principe, Cuba, probably in the 1840’s or 50’s.\nLarge labels are very rare. [8641]');
slides[84] = new Slide('../Early_Cuban_labels_files/cubalable7457.jpg', '708', '500', 'Anselmo del Valle’s H. DE CABANAS Y CARVAJAL label sports the same Paris 1855 medal as \nUpmann and Ybor.  Late 1850’s. Multi-color \nlabels before 1860 are rare.\n[7457]');
slides[85] = new Slide('../Early_Cuban_labels_files/cubalable7458.jpg', '387', '708', 'Stylized fake medals decorate this 1850’s British knock-off of the Cabañas label. Cigars reported \nas made by “Saneemo del Vella” were probably\nEuropean or Slavic in origin. It’s a genuine cigar\nlabel, just not a genuine Cabañas. [7458]');
slides[86] = new Slide('../Early_Cuban_labels_files/74cuba44.jpg', '341', '469', 'Full size, beautifully printed, probably for the English market. No brand name. No address. Cigars credited to Fernando de Arrigunaga.\n[7444]');
slides[87] = new Slide('../Early_Cuban_labels_files/cubalable7411.jpg', '570', '604', '“The best of one day” is an interesting choice to name a cigar on a simple inner label.\n[7411]');
slides[88] = new Slide('../Early_Cuban_labels_files/cubaearly8605.jpg', '570', '635', 'Juan de Chincurreta used a simple squashed\ncircle on a squashed square label. Quite\npossibly an end label for a standard 100/13.\n[8605]');
slides[89] = new Slide('../Early_Cuban_labels_files/cubaearly8608.jpg', '489', '708', 'Ferreria y Busto, a short-lived partnership, \nadded LA ELECCION to the world’s offerings\na half century before Cuba held its first\nnational election.\n[8608]');
slides[90] = new Slide('../Early_Cuban_labels_files/cubaearly8609.jpg', '508', '707', 'Jose Pasqual eventually sold out, and this brand ultimately moved to New York City.\n[8609]');
slides[91] = new Slide('../Early_Cuban_labels_files/cubaearly8614.jpg', '487', '708', 'Plain standing woman on a small inner. Pose is very similar to a good many other brands of the 1840’s.\n[8614]');
slides[92] = new Slide('../Early_Cuban_labels_files/cubaearly8612.jpg', '506', '708', 'Both the LA INTIMIDAD brand and its maker went on to some prominence, the former lasting more \nthan a half century.\n[8612]');
slides[93] = new Slide('../Early_Cuban_labels_files/cubaearly8615.jpg', '497', '708', 'Small early label for 25’s.\n[8615]');
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");
    fixupAllIEPNGBGs();
    fixupIEPNG("id3", "Early_Cuban_labels_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;
    }
}

