javascript selection with text below image not appearing
<p>I am having problems with some code and old js. I duplicate the webpage and changed the code, but the text is not appearing under the large image when its corresponding thumbnail is selected in the new file: <a href="http://jsfiddle.net/dEW75/" rel="nofollow">http://jsfiddle.net/dEW75/</a></p>

<pre><code>                            &lt;script type="text/javascript"&gt;
    function swapImage(imgID)
    {
        var itemImage   = document.getElementById('itemImage');
        var itemText    = document.getElementById('itemText');
        var itemCaption = document.getElementById('itemCaption');

        itemImage.src =              "images/finishing_touches/color_stain/textured/textured" + imgID + "_sm.jpg";

            if(imgID == 1)
            {
                itemText.innerHTML    = 'Latitude East';
                itemCaption.innerHTML = ''};

            if(imgID == 2)
            {
                itemText.innerHTML    = 'Summer Breeze';
                itemCaption.innerHTML = ''};

            if(imgID == 3)
            {
                itemText.innerHTML    = 'Winter Cherry';
                itemCaption.innerHTML = ''};

            if(imgID == 4)
            {
                itemText.innerHTML    = 'Autumn Leaves';
                itemCaption.innerHTML = ''};

            if(imgID == 5)
            {
                itemText.innerHTML    = 'Boardwalk';
                itemCaption.innerHTML = ''};

            if(imgID == 6)
            {
                itemText.innerHTML    = 'Driftwood';
                itemCaption.innerHTML = ''};

            if(imgID == 7)
            {
                itemText.innerHTML    = 'Canvas Linen';
                itemCaption.innerHTML = ''};

            if(imgID == 8)
            {
                itemText.innerHTML    = 'Linen Flaxseed';
                itemCaption.innerHTML = ''};

            if(imgID == 9)
            {
                itemText.innerHTML    = 'Silver Flannel';
                itemCaption.innerHTML = ''};

            if(imgID == 10)
            {
                itemText.innerHTML    = 'Onyx';
                itemCaption.innerHTML = ''};

                            if(imgID == 11)
            {
                itemText.innerHTML    = 'East Indian Laurel';
                itemCaption.innerHTML = ''};

                              if(imgID == 12)
            {
                itemText.innerHTML    = 'Sandalwood';
                itemCaption.innerHTML = ''};

                              if(imgID == 13)
            {
                itemText.innerHTML    = 'Nora Creek Oak';
                itemCaption.innerHTML = ''};

                                 if(imgID == 14)
            {
                itemText.innerHTML    = 'Midnight Espresso';
                itemCaption.innerHTML = ''};
                    }
    &lt;/script&gt;
                            &lt;h1 class="galleryTitle"&gt;Color &amp;amp; Stain&lt;/h1&gt;
                            &lt;div class="subMenu"&gt;
                            &lt;ul&gt;
                                &lt;li&gt;&lt;a href="color_stain1.htm"&gt;solid color melamine&lt;/a&gt; &lt;/li&gt;
                                &lt;li&gt;&lt;a href="color_stain3.htm"&gt;wood tone melamine&lt;/a&gt;&lt;/li&gt;
                                &lt;li&gt;&lt;a class="active" href="color_stain_textured_1.htm"&gt;textured melamine&lt;/a&gt;&lt;/li&gt;
                                &lt;li&gt;&lt;a href="color_stain.htm"&gt;wood veneer&lt;/a&gt;&lt;/li&gt;
                            &lt;/ul&gt;
                            &lt;/div&gt;
                            &lt;div class="galleryContainer2"&gt;
                            &lt;div class="galleryNavContainer2"&gt;
                            &lt;div class="subtitle"&gt;
                            &lt;p&gt;Textured Color&lt;/p&gt;
                            &lt;/div&gt;
                            &lt;div class="thumbs"&gt;
                            &lt;div class="pageDetail1"&gt;
                            &lt;p&gt;page 1 of 3&lt;/p&gt;
                            &lt;/div&gt;
                            &lt;div class="img"&gt;
                            &lt;a href="javascript:swapImage(&amp;quot;1&amp;quot;)"&gt;
                            &lt;img src="images/finishing_touches/color_stain/textured/textured1_th.jpg" alt="Latitude East" title="Latitude East" /&gt;
                            &lt;span class="imgText"&gt;Latitude East&lt;/span&gt;
                            &lt;/a&gt;
                            &lt;/div&gt;
                            &lt;div class="img"&gt;
                            &lt;a href="javascript:swapImage(&amp;quot;11&amp;quot;)"&gt;
                            &lt;img src="images/finishing_touches/color_stain/textured/textured11_th.jpg" alt="Summer Breeze" title="East Indian Laurel" /&gt;
                            &lt;span class="imgText"&gt;East Indian Laurel&lt;/span&gt;
                            &lt;/a&gt;
                            &lt;/div&gt;
                            &lt;div class="img"&gt;
                            &lt;a href="javascript:swapImage(&amp;quot;12&amp;quot;)"&gt;
                            &lt;img src="images/finishing_touches/color_stain/textured/textured12_th.jpg" alt="Sandalwood" title="Sandalwood" /&gt;
                            &lt;span class="imgText"&gt;Sandalwood&lt;/span&gt;
                            &lt;/a&gt;
                            &lt;/div&gt;
                            &lt;div class="img"&gt;
                            &lt;a href="javascript:swapImage(&amp;quot;13&amp;quot;)"&gt;
                            &lt;img src="images/finishing_touches/color_stain/textured/textured13_th.jpg" alt="Nora Creek Oak" title="Nora Creek Oak" /&gt;
                            &lt;span class="imgText"&gt;Nora Creek Oak&lt;/span&gt;
                            &lt;/a&gt;
                            &lt;/div&gt;
                            &lt;div class="img"&gt;
                            &lt;a href="javascript:swapImage(&amp;quot;14&amp;quot;)"&gt;
                            &lt;img src="images/finishing_touches/color_stain/textured/textured14_th.jpg" alt="Midnight Espresso" title="Midnight Espresso" /&gt;
                            &lt;span class="imgText"&gt;Midnight Espresso&lt;/span&gt;
                            &lt;/a&gt;
                            &lt;/div&gt;
                            &lt;/div&gt;
                            &lt;div class="page"&gt;
                            &lt;ul style="margin: 0px auto; padding: 0px; text-align: center;"&gt;
                                &lt;li class="previous"&gt;&lt;/li&gt;
                                &lt;li class="next"&gt;&lt;a href="color_stain_textured.htm"&gt;page&lt;/a&gt;
                                &lt;/li&gt;
                            &lt;/ul&gt;
                            &lt;/div&gt;
                            &lt;/div&gt;
                            &lt;div class="imgContainer2"&gt;
                            &lt;div class="img"&gt;&lt;img alt="" id="itemImage" name="IMG1" /&gt;&lt;/div&gt;
                            &lt;div class="text" style="margin-top: 13px; padding: 2px 0px 0px;"&gt;
                            &lt;/div&gt;
                            &lt;/div&gt;
                            &lt;/div&gt;
                            &lt;script type="text/javascript"&gt;
&lt;!--
    var imgID = "1";
    swapImage(imgID);
//--&gt;
                            &lt;/script&gt;
                            &lt;/div&gt;
                            &lt;p style="margin-right: 15px;"&gt;
                            &lt;strong&gt;PLEASE NOTE&lt;/strong&gt;: Items in our gallery are selected to show the variety of
                            our products. If you don't see exactly what you have in mind, most likely we have it
                            or can order it for you.
                            &lt;/p&gt;
                            &lt;div style="float: right; text-align: right;"&gt;
                            &lt;p&gt;
                            &lt;a href="index.htm"&gt;View our other galleries&lt;/a&gt; &amp;raquo;&lt;br /&gt;
                            &lt;a href="http://www.marketingresponse.com/closetos/contact.asp"&gt;Schedule a complimentary in-home design consultation&lt;/a&gt; &amp;raquo;&lt;br /&gt;
                            &lt;a href="../locations.htm"&gt;Visit our Chicago area showrooms&lt;/a&gt; &amp;raquo;
                            &lt;/p&gt;
                            &lt;/div&gt;
                            &lt;script language="JavaScript"&gt;&lt;!--
     ThisPage = Gallery;
     GroupChange("on",ThisPage);
    //--&gt;
                            &lt;/script&gt;
</code></pre>

<p>I need the text to appear below the large image when the thumbnail is selected like on this page: <a href="http://jsfiddle.net/qVGFV/" rel="nofollow">http://jsfiddle.net/qVGFV/</a></p>
