standards based browser through the use of the variable named dom.
var dom = (!document.all && document.getElementById);
Which is the very first line in our script. If the browser is anything other than Internet Explorer we snag the current page width dimensions using innerWidth. If it is Internet Explorer then we use document.body.clientWidth;
Just so you gain a bit of a concept as to why we are doing this, later on we are going to use the pageWidth variable to auto center the images for us as they are imported. Cool huh?
Line 2: This is a simple JavaScript object created by using a variable and then pointing that variable to an element named preloadLYR. We do this so as to not have to repeatedly type