// JavaScript Document

<!-- begin hiding
// You may modify the following:
var locationAfterPreload = "http://www.pacificcolumns.com/galleries/rails/index.php" // URL of the page after preload finishes
var lengthOfPreloadBar = 330 // Length of preload bar (in pixels)
var heightOfPreloadBar = 3 // Height of preload bar (in pixels)
// Put the URLs of images that you want to preload below (as many as you want)
var yourImages = new Array("http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/sub-hd-gallery-selection-999.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/sub-hd-gallery-selection-333.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/sub-hd-railing-gallery.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-01.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-02.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-03.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-04.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-05.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-06.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-07.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-08.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-09.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-10.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-11.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-12.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-13.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-14.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-15.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-01sm.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-02sm.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-03sm.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-04sm.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-05sm.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-06sm.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-07sm.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-08sm.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-09sm.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-10sm.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-11sm.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-12sm.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-13sm.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-14sm.jpg","http://paccolumns.cachefly.net/pc/images/galleries/setlist/rails/railing-15sm.jpg")

// Do not modify anything beyond this point!
if (document.images) {
var dots = new Array() 
dots[0] = new Image(1,1)
dots[0].src = "http://www.pacificcolumns.com/images/load-grey.jpg" // default preloadbar color (note: You can substitute it with your image, but it has to be 1x1 size)
dots[1] = new Image(1,1)
dots[1].src = "http://www.pacificcolumns.com/images/load-maroon.jpg" // color of bar as preloading progresses (same note as above)
var preImages = new Array(),coverage = Math.floor(lengthOfPreloadBar/yourImages.length),currCount = 0
var loaded = new Array(),i,covered,timerID
var leftOverWidth = lengthOfPreloadBar%coverage
}
function loadImages() { 
for (i = 0; i < yourImages.length; i++) { 
preImages[i] = new Image()
preImages[i].src = yourImages[i]
}
for (i = 0; i < preImages.length; i++) { 
loaded[i] = false
}
checkLoad()
}
function checkLoad() {
if (currCount == preImages.length) { 
location.replace(locationAfterPreload)
return
}
for (i = 0; i <= preImages.length; i++) {
if (loaded[i] == false && preImages[i].complete) {
loaded[i] = true
eval("document.img" + currCount + ".src=dots[1].src")
currCount++
}
}
timerID = setTimeout("checkLoad()",10) 
}
// end hiding -->