Line 6: setTimeout("fadeIn('galleryLYR', 0, '99.99')", 1200);
Line 7: setTimeout("fadeIn('captionLYR', 0, '99.99')", 1300);
Line 1: With this statement we create a variable named getImageSize. As the variable name implies we are going to the dimensions of the image being imported. Specifically its width attribute. In order to do this, we grab the image tag using document.getElementsByTagName("img"). The [0] indicates to the browser to obtain the first image contained within the document. If we wanted to obtain the second image, we would use [1] and so on. Then we obtain the width attribute by employing getAttribute. All this information is now stored in the variable.
Line 2: The element galleryLYR left position is