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('../Tin_Cans_files/9193.jpg', '377', '522', 'Standard round cans printed on tin with undecorated slip lids. Stogie and panatela cans are typically an inch taller than cigar cans. Stogies are not made the same way as cigars. Panatelas are.\n[9193]');
slides[1] = new Slide('../Tin_Cans_files/9194.jpg', '378', '517', 'Standard size but rare brand 50/up with paper label, paper label 25/up with key-to-open vacuum pack lid missing, and 10/up litho on tin with decorated lid. \n[9194]');
slides[2] = new Slide('../Tin_Cans_files/9192.jpg', '378', '486', 'Square 25/up and 50/up slip tops litho on tin. \nThe IGA was a custom brand for the grocery chain.\n\n[9192]');
slides[3] = new Slide('../Tin_Cans_files/9191.jpg', '338', '570', 'Rectangular hinged 25/up paper label and\noval hinged 50/up litho on tin. \nPrinted lids were an extra expense and used judiciously in this cost conscious industry.\n[9191]');
slides[4] = new Slide('../Tin_Cans_files/30tincan4.jpg', '401', '734', 'A 10/up oval slip top, 12/up rectangular slip top and a 25/up hinged rectangle, all litho on tin. \nOf these, ELIMINATOR is by far the\nmost rare brand and box shape.  \u000d[3004]');
slides[5] = new Slide('../Tin_Cans_files/30tincan3.jpg', '674', '570', 'How cigars are packed in a 50/up can.\nFrequently, one cigar will have a pull tab  \nof some sort to facilitate removal of the 1st cigar.\n[3003]');
slides[6] = new Slide('../Tin_Cans_files/30tincan5.jpg', '570', '635', 'Hand fabricated brass device that compresses cigars slightly so they will fit inside cans of various sizes. Probably used 1910-1940.\n[3005]');
slides[7] = new Slide('../Tin_Cans_files/30tincan6.jpg', '734', '401', '“Push” used to push cigars from the \nbrass device into the can.\n[3006]');
slides[8] = new Slide('../Tin_Cans_files/30tincan65.jpg', '570', '612', 'The law was very strict regarding ID on tin boxes and cans. It must be stamped into the metal. It’s rare to find a CN and ID not agree. Both factories were owned by the same company, probably using up pieces from old stock. [3065]');
slides[9] = new Slide('../Tin_Cans_files/30tincan12.jpg', '658', '570', 'The Lindbergh flight.\nFact. 1532, 1st PA  c1929\n[3012]');
slides[10] = new Slide('../Tin_Cans_files/30tincan13.jpg', '734', '508', 'Used by Kipp Cigar Co., Fact. 94, Hastings. \nNebraska’s biggest cigar maker. 1918.\n[3013]');
slides[11] = new Slide('../Tin_Cans_files/30tincan16.jpg', '686', '570', 'Joseph Weinreich, Dayton Fact. 495, 1st OH\nFor: J.S. Brown Mercantile Co., Denver,\na town with a big contingent of Yalies. 1922.\n[3016]');
slides[12] = new Slide('../Tin_Cans_files/30tincan15.jpg', '699', '570', 'Cigars: W.H. Snyder & Sons, Fact. 752, 1st PA\nTin by Federal Tin Co., Baltimore.  1925.\nSame design as on the box.\n[3015]');
slides[13] = new Slide('../Tin_Cans_files/30tincan20.jpg', '648', '570', 'Cigars: W.H. Snyder & Sons, Fact. 875, 1st PA\nPerkasie, PA  1925.\nTin maker not indicated.  [3020]\nCheck out other brands with fishing themes.');
slides[14] = new Slide('../Tin_Cans_files/30tincan17.jpg', '734', '541', 'Unique inset lid on this box originally from\nthe sample room at Tindeco, Baltimore.\nObtained with the help of Dennis and George.\nCan made originally for Fact. 5, 3rd NY City.\n[3017]');
slides[15] = new Slide('../Tin_Cans_files/30tincan18.jpg', '693', '570', 'Cigars: Fleck Cigar Co., Fact. 77, 1st Reading PA\nTin: Liberty Can.  Printed lid. Delicate colors make this one of the all around best printing jobs \nLiberty ever did. In my opinion. 1920’s.\n[3018]');
slides[16] = new Slide('../Tin_Cans_files/30tincan22.jpg', '648', '570', 'Cigars by Antonio Roig & Langsdorf, Fact. 872, \n1st PA   Philadelphia  1920’s.\nTin: Another nice job by Liberty Can.  [3022]\nCheck out other brands named after famous men.');
slides[17] = new Slide('../Tin_Cans_files/30tincan23.jpg', '648', '570', 'Halpern Cigar Co.  Fact 1542,  1st PA\nPhiladelphia  1920’s. Tin by Liberty Can.  [3023]\nCheck out other brands named after famous men.');
slides[18] = new Slide('../Tin_Cans_files/10243.jpg', '754', '600', 'Not pictorial, but distinctive. Shouldn’t it\nbe Los Contentos?\n[10243]');
slides[19] = new Slide('../Tin_Cans_files/10244.jpg', '779', '600', 'The back. Minimalist all the way.\nA rare tin.  Fact. 311, 2nd Dist NYC. c1910.\n[10244]');
slides[20] = new Slide('../Tin_Cans_files/30tincan24.jpg', '670', '570', 'Swisher & Sons, Fact 110 Jacksonville FL\nTin maker unidentified, 1931  [3024]\nVisit the exhibit of brands named after famous men. Visit the exhibit of other brands from Florida.\nVisit the John H. Swisher Exhibit.');
slides[21] = new Slide('../Tin_Cans_files/30tincan14.jpg', '641', '570', 'Progressive Cigar Corp, Fact. 1501,  1st PA\nPhiladelphia  1918\nTin by Ritter Can Co., Philadelphia [3014]\nVisit the exhibit of theatrical brands of cigar.');
slides[22] = new Slide('../Tin_Cans_files/eboxearly8.jpg', '733', '570', ' Fact. 775,  1st District Illinois.\nCan by Heekin Can Co, Cincinnati  1916\nDistinctive design make this a personal favorite.\nVisit the Stogie Story exhibit.');
slides[23] = new Slide('../Tin_Cans_files/lategold8171.jpg', '734', '540', 'Thomas Colburn, Fact 8, 11th Ohio\nCincinnati  1918  A seldom seen tin\nfrom one of the great stogie centers.  [8171] \nVisit the Stogie Story exhibit.');
slides[24] = new Slide('../Tin_Cans_files/30tincan19.jpg', '734', '525', 'One color, but the design stands out\non a shelf.  Isn’t that the point?\nFact 216,  18th Ohio  Bethesda  1917.\nTin by Heekin Can Co.  Cincinnati  \n[3019]');
slides[25] = new Slide('../Tin_Cans_files/30tincan26.jpg', '734', '533', 'General Cigar Co. brand inherited from United Cigar Mfr.,  Fact. 16,  9th PA (York)  c1920\nA rare can.\n[3026]');
slides[26] = new Slide('../Tin_Cans_files/31tintoo31.jpg', '570', '307', 'Fact. 1000, 2nd New York City  1922.\nTin cans of 10, 12 and 100 are all rare. This is\nthe prettiest tin I’ve seen in one of those sizes.\n[3131]');
slides[27] = new Slide('../Tin_Cans_files/31tintoo29.jpg', '436', '375', 'Fact. 1000, 3rd New York City \nOne of the smallest 50 tins you’ll encounter.\nSame factory as previous can, but made after 2nd district was incorporated into 3rd Dist. \n[3129]');
slides[28] = new Slide('../Tin_Cans_files/30tincan30.jpg', '626', '570', 'An exceptionally pretty blue.\nFact. 54, 3rd NY City  1920\n[3030]');
slides[29] = new Slide('../Tin_Cans_files/30tincan21.jpg', '648', '570', 'Jugate design is common on boxes, but\nrare on cans. Fact. 331,  1st PA  c1920.\n[3021]');
slides[30] = new Slide('../Tin_Cans_files/30tincan27.jpg', '678', '570', 'Named after a famous tree at Canal & Elm.\nHeavily embossed can. Central Cigar Mfg Co, \nFact 14, 2nd District New York City\n [3027]\nVisit the exhibit of brands named after places. ');
slides[31] = new Slide('../Tin_Cans_files/30tincan25.jpg', '648', '570', 'Cigars: Allan Wright, Hicksville,  Fact. 198, 10th OH\nHow many different occupations were turned\n into brands of cigars? .\n[3025]');
slides[32] = new Slide('../Tin_Cans_files/30tincan29.jpg', '626', '570', 'Bressler Cigar Mfg Co.  Fact. 309,  12th PA\nFreeland, PA\n[3029]');
slides[33] = new Slide('../Tin_Cans_files/30tincan78.jpg', '668', '570', 'One of the giants of package innovation, \u2028Consolidated Cigar used this beautiful can\nbefore switching this brand to plastic. \n[3078]\nVisit the Consolidated Cigar exhibit. ');
slides[34] = new Slide('../Tin_Cans_files/31tintoo3.jpg', '439', '375', 'Juan F. Portuondo 50th anniversary can, 1869-1919\nin an appropriate gold color. Fact. 540, 1st PA 1923.\nWhen a Portuondo box label is b/w the cigars cost 5¢; colored labels were used on 10¢ cigars.\n[3103]');
slides[35] = new Slide('../Tin_Cans_files/31tintoo14.jpg', '418', '375', 'Fact. 22,  5th New Jersey  c1922.\nNot colorful, but distinctive.\n[3114]');
slides[36] = new Slide('../Tin_Cans_files/30tincan34.jpg', '734', '518', 'Good design use of minimal color.\nFact. 771,  9th tax District PA  c1913.\nTin Maker unknown.\n[3034]');
slides[37] = new Slide('../Tin_Cans_files/30tincan35.jpg', '734', '514', 'Factory 1945,  9th tax District, PA  c1913.\nPatriotic impression. What’s second?\n[3035]');
slides[38] = new Slide('../Tin_Cans_files/war54.jpg', '800', '670', 'Excellent example of a decorated lid, an\nexpense most tin can users chose to forego.\nCigars by William Ward & Sons, Ltd., London Ontario, Factory 11, Port 24E.  \nNo longer in the NCM collection.  [1454]');
slides[39] = new Slide('../Tin_Cans_files/31tintoo39.jpg', '446', '375', 'Seldom seen frontmark from a prominent Florida maker. Design is the same as on boxes.\nFact. 17  Tampa, Florida  1970’s?\n[3139]');
slides[40] = new Slide('../Tin_Cans_files/9804.jpg', '488', '400', 'Unusual novelty can used by more than one\ncigar maker. This is a rare Oregon can.\n[9804]');
slides[41] = new Slide('../Tin_Cans_files/31tintoo16.jpg', '375', '406', 'A true oval-shaped can used by one of Florida’s premier cigar makers. 1923.\nEduardo H. Gato, Fact. 38 Key West Fla\n[3116]');
slides[42] = new Slide('../Tin_Cans_files/31tintoo36.jpg', '402', '375', 'Fact. 201, 1st tax District PA  1920’s\nHinged rectangular can by American Can Co 50A.\n[3136]');
slides[43] = new Slide('../Tin_Cans_files/misc8862.jpg', '598', '570', 'Beautifully printed, but unimaginatively designed, portrait tin by Liberty Can Co. is merely a cigar inner printed on a can. Factory 45, 1st tax district PA.\nFrom the 1920’s.  [8862]');
slides[44] = new Slide('../Tin_Cans_files/0580_1_lg.jpg', '367', '366', 'Good design pictures the contents, promotes their quality, gives the price, and explains why the cigars\nwere packed in tin. Tin is not in the NCM collection.\n[w0000]');
slides[45] = new Slide('../Tin_Cans_files/30tincan52.jpg', '570', '608', 'Robert Barker, Fact. 241, 1st Ohio  Dayton 1920’s\nFor whom they were made is unknown.\nCan maker not recorded. \n[3052]');
slides[46] = new Slide('../Tin_Cans_files/30tincan53.jpg', '585', '570', 'Unimaginative inner label style, but very popular with collectors. Fact. 1171, 1st PA. Distributed in California by Haas, Baruch & Co, Los Angeles, \nlate 1920’s.  [3053] ');
slides[47] = new Slide('../Tin_Cans_files/31tintoo40.jpg', '374', '392', 'A fairly common tin, more so than most others in \nthe exhibit. Fact. 57,  11th Ohio  c.1919\n[3140]');
slides[48] = new Slide('../Tin_Cans_files/30tincan55.jpg', '570', '570', 'Yocum Bros.,  Fact. 103, 1st PA c1930\nTin made by Federal Tin Company, Baltimore, for La Cubana Cigar Factory.  [3055]\nVisit the Yocum Bros. exhibit.');
slides[49] = new Slide('../Tin_Cans_files/30tincan56.jpg', '585', '570', 'Cincinnati Cigar Co, Fact. 127.  11th Ohio\nWellston, Ohio  1933\nPrice drops are an almost certain indicator \nthe can is from the 1930’s.   [3056][2377]');
slides[50] = new Slide('../Tin_Cans_files/30tincan57.jpg', '599', '570', 'Fact. 463,  1st PA  c1928\n[3057]');
slides[51] = new Slide('../Tin_Cans_files/30tincan58.jpg', '599', '570', 'Fact. 361, 1st PA  1931\n[3058]');
slides[52] = new Slide('../Tin_Cans_files/31tintoo34.jpg', '466', '374', 'M & N Cigar Co.,  Fact. 5,  11th Ohio  1934\n“A fair trial will give a verdict in favor of this cigar”\n[3134]');
slides[53] = new Slide('../Tin_Cans_files/31tintoo26.jpg', '491', '375', 'Geo. Kent Co.  Fact 3,  21st New York  \nBinghamton NY,  1925\nCat by Liberty Can Co., Lancaster, PA\n[3126]');
slides[54] = new Slide('../Tin_Cans_files/30tincan68.jpg', '734', '549', 'Factory 813, 1st tax district Michigan\nfor Rothenberg & Schloss Distributors  KC, MO c1922  The brand was possibly exclusive. \n[3068]');
slides[55] = new Slide('../Tin_Cans_files/31tintoo30.jpg', '493', '375', 'Fact. 155,  10th Ohio  1920’s\nTin by Heeken Can Co. Cincinnati\n[3130]');
slides[56] = new Slide('../Tin_Cans_files/30tincan70.jpg', '734', '552', 'Joseph Schaefer,  Fact. 484,  1st Ohio\nDayton 1930’s.\nNational Can Co., Detroit\n[3070]');
slides[57] = new Slide('../Tin_Cans_files/30tincan69.jpg', '734', '536', 'Spanish themes have been popular as long as cigars have been smoked. That “La” in the name allegedly implied quality. The brand was possibly exclusive for Rotherberg & Schloss, huge distributors. Fact. 202, 1st PA   [3069]');
slides[58] = new Slide('../Tin_Cans_files/30tincan74.jpg', '734', '494', 'Otto Eisenlohr, Philadelphia  Fact. 202, 1st PA\nCinco is five in Spanish so it’s no shock this was \nthe company’s 5¢ brand. c1920   \n[3074]\n');
slides[59] = new Slide('../Tin_Cans_files/30tincan73.jpg', '734', '527', 'Henrietta was an ostrich in the Philadelphia zoo, featured on Eisenlohr boxes. Why? ¿Quien sabe?\nOtto Eisenlohr, Philadelphia  Fact. 202, 1st PA\n[3073]\n');
slides[60] = new Slide('../Tin_Cans_files/30tincan62.jpg', '734', '432', 'A lovely tin by American Can Co. 70-A\nSan Telmo,  Fact. 990,  1st Michigan 1919.\n[3062]');
slides[61] = new Slide('../Tin_Cans_files/30tincan63.jpg', '734', '432', 'Detroit’s San Telmo Cigar Mfg. Co. was one of Michigan’s larger cigar factories.  \n[3063]\n');
slides[62] = new Slide('../Tin_Cans_files/30tincan64.jpg', '734', '474', 'Distinctive look for a long running brand.\n44 and 7-20-4 are the two longest running number brands, both lasting 50+ years. Consolidated Cigar Co. Fact. 42,  1st PA c.1920\n[3064]');
slides[63] = new Slide('../Tin_Cans_files/30tincan66.jpg', '734', '470', 'Odd design, not particularly cohesive. \nAn inexpensive type tin.  Halpern & Walter, \nFact. 1400  9th PA  c1916\n[3066]');
slides[64] = new Slide('../Tin_Cans_files/31tintoo4.jpg', '567', '375', 'Beautiful embossed pre-war tin, in my opinion, \nit’s one of the best looking 25/up cans made.\nH. Traiser & Co.,  Fact 301, 3rd Mass   1916\n[3104]');
slides[65] = new Slide('../Tin_Cans_files/31tintoo35.jpg', '518', '375', 'A bit cluttered but the red, white and blue with the diagonal slash make it stand out on a shelf.\nSemi-knock-off of Philadelphia Hand Made, \na very popular brand.  Cigars by John Spatz & Co., Reading.  Fact. 12,  1st PA  1919    [3135]');
slides[66] = new Slide('../Tin_Cans_files/11080.jpg', '800', '587', 'An uninspired design on the front of this 1912 can belies the attractive embossed side panels. \nFact  456, 4th Dist. NC.\n[11080]');
slides[67] = new Slide('../Tin_Cans_files/11082.jpg', '800', '494', 'CUBANOLA was used by American Cigar Company for one of its many nickel cigars.\n[11082]');
slides[68] = new Slide('../Tin_Cans_files/9823.jpg', '646', '400', 'Medical themes have been around since the 1870’s tho this is the only doctor image I’ve seen on tin.\nFact. 2353  1st PA, c1920. Tin by Liberty Can Co.\n[9823]');
slides[69] = new Slide('../Tin_Cans_files/30tincan75.jpg', '694', '570', 'Birds are one of the top 25 themes found in cigar advertising. G.A. Strobeck, Red Lion, PA  \nFact 563, 1st PA in the mid 1920’s.  [3075]\nTo see other Bird brands click <here>.');
slides[70] = new Slide('../Tin_Cans_files/mixtwo92.jpg', '602', '800', 'Square 50/up slip top can with decorated lid made \nin the late 1920’s in Fact. 1338, 1st PA, by\nan unlisted cigar maker.\n[2592]');
slides[71] = new Slide('../Tin_Cans_files/30tincan79.jpg', '703', '570', 'E. Popper & Co.  Fact. 1488, 1st PA  c1923\n[3079]\n');
slides[72] = new Slide('../Tin_Cans_files/31tintoo32.jpg', '417', '375', 'Fair & Square Cigar Co., Fact. 342,  1st PA\nHead office: Red Lion, Factory: Stewartstown  1932\nFor whom they were made is not known. [3132]');
slides[73] = new Slide('../Tin_Cans_files/9824.jpg', '595', '400', 'Indian themes are common on boxes and tins, \nbut this particular one is hard to find. \nFact. 459,  18th District Ohio  1916\n[9824]');
slides[74] = new Slide('../Tin_Cans_files/30tincan76.jpg', '734', '506', 'Dramatic graphics make this square 50/up a personal design favorite. Creation of Liberty Can Co., Lancaster, PA  Cigars by Wm. H. Raab, Dallastown  Fact. 463, 1st PA  c1924. \n[3076]');
slides[75] = new Slide('../Tin_Cans_files/stogies26.jpg', '734', '524', 'Large stylized typography probably looked better on paper. Black and green stood out on a shelf. \nData temporarily unavailable.\n[2026]');
slides[76] = new Slide('../Tin_Cans_files/30tincan36.jpg', '734', '457', 'Cigars: Joseph Schwartz, Fact. 17, 18th Ohio\nCleveland c1912. 50/up with rolled lid. Thinner and taller than most tin cans. At 2 for 5¢.\n[3036]');
slides[77] = new Slide('../Tin_Cans_files/30tincan33.jpg', '734', '527', 'This entire clever graphic is one complete sentence: There’s a reason some smoke Tango panetelas.\nFact. 771, 1st PA  1921  [3033]');
slides[78] = new Slide('../Tin_Cans_files/30tincan32.jpg', '613', '570', 'Fact. 620,  14th District of NY  1920’s.\n[3032]');
slides[79] = new Slide('../Tin_Cans_files/30tincan31.jpg', '641', '570', 'Cigars by J.F. Bolen, Fact. 114, 18th Ohio\nBethesda, OH, late 1920’s.\nTin maker not indicated.\n[3031]');
slides[80] = new Slide('../Tin_Cans_files/patriot75.jpg', '576', '570', 'Holes in tin cans allowed air to circulate \nor cigars ran the risk of getting moldy.\nIt’s a puzzle to me how tin was better for cigars\nthan wood. [2175]');
slides[81] = new Slide('../Tin_Cans_files/30tincan81.jpg', '734', '467', 'Retailers weren’t real fond of cans, seen as an attempt to grab precious countertop space.\nInside a cigar case, lids were often thrown away and the brand name could not be seen. Rim tags were the solution. P.Lorillard. c1920.   [3081]');
slides[82] = new Slide('../Tin_Cans_files/tintoo10.jpg', '783', '801', 'Common post 1960 tin.\n[3110]');
slides[83] = new Slide('../Tin_Cans_files/tintoo17.jpg', '800', '752', 'Common post 1960 tin featuring\nthe brand’s traditional Rembrandt.\n[3117]');
slides[84] = new Slide('../Tin_Cans_files/tintoo18.jpg', '800', '652', 'Common post 1960 tin, the brand\nmoving from its traditional Rembrandt.\n[3118]');
slides[85] = new Slide('../Tin_Cans_files/tintoo19.jpg', '800', '559', 'Common post 1960 tin, the brand illustrating an Indian, dropping its traditional Rembrandt. \n[3119]');
slides[86] = new Slide('../Tin_Cans_files/30tincan37.jpg', '734', '471', 'THIS IS NOT GOOD CONDITION.\nTHIS IS NOT ‘GOOD FOR ITS AGE.’\nTHIS IS ‘FAIR’ OR ‘PLACEHOLDER’ \n[3037]');
slides[87] = new Slide('../Tin_Cans_files/30tincan7.jpg', '678', '570', 'EXCELLENT OR NEAR MINT CONDITION.\nWhat collectible tins should look like.\n[3007]');
slides[88] = new Slide('../Tin_Cans_files/MURIELSENATORSTIN1.jpg', '338', '616', 'Tins frequently came packed in cardboard. 1960’s.\n[w0000]');
slides[89] = new Slide('../Tin_Cans_files/cigtin2.jpg', '396', '628', 'These two examples with their original cardboard\npacking are not in the NCM collection.\n[w0000]');
slides[90] = new Slide('../Tin_Cans_files/9bf4_1.jpg', '216', '157', 'The JOHN ASHE brand name makes\nthis an “ash can.” Ouch!  1920’s.\nA rare can not in the NCM collection.');
slides[91] = new Slide('../Tin_Cans_files/DSCF0157.jpg', '127', '399', 'Snapshots from the fabulous cigar tin collection of Jeff Lehr.\nDSCF0157');
slides[92] = new Slide('../Tin_Cans_files/DSCF0167.jpg', '310', '392', 'Snapshots from the fabulous cigar tin collection of Jeff Lehr.\nDSCF0167');
slides[93] = new Slide('../Tin_Cans_files/DSCF0165.jpg', '382', '310', 'Snapshots from the fabulous cigar tin collection of Jeff Lehr.\nDSCF0165');
slides[94] = new Slide('../Tin_Cans_files/DSCF0171.jpg', '211', '400', 'Snapshots from the fabulous cigar tin collection of Jeff Lehr.\nDSCF0171');
slides[95] = new Slide('../Tin_Cans_files/DSCF0169.jpg', '219', '400', 'Snapshots from the fabulous cigar tin collection of Jeff Lehr.\nDSCF0169');
slides[96] = new Slide('../Tin_Cans_files/DSCF0166.jpg', '292', '400', 'Snapshots from the fabulous cigar tin collection of Jeff Lehr.\nDSCF0166');
slides[97] = new Slide('../Tin_Cans_files/DSCF0168.jpg', '286', '400', 'Snapshots from the fabulous cigar tin collection of Jeff Lehr.\nDSCF0168');
slides[98] = new Slide('../Tin_Cans_files/DSCF0156.jpg', '133', '400', 'Snapshots from the fabulous cigar tin collection of Jeff Lehr.\nDSCF0156');
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", "Tin_Cans_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;
    }
}


