
// CSS switcher to replace header background image

RandCSS()
function RandCSS() {
a = Math.round(Math.random() * 6 + 1)
if (a > 6) { RandCSS() } else { WriteCSS() }
}

function WriteCSS() {
document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"/css/layout-homeHeader-" + a + ".css\">")
}


// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================

// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!

theImages[0] = '/images/home/endlines/endline_01.gif'
theImages[1] = '/images/home/endlines/endline_02.gif'
theImages[2] = '/images/home/endlines/endline_03.gif'
theImages[3] = '/images/home/endlines/endline_04.gif'
theImages[4] = '/images/home/endlines/endline_05.gif'
theImages[5] = '/images/home/endlines/endline_06.gif'

// ======================================
// do not change anything below this line
// ======================================

var j = 0
var p = theImages.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}

var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'" alt="Because films inspire..." width="496" height="25" />');
}

// same code for round images

var theRoundImages = new Array()

theRoundImages[0] = '/images/home/boilerplate_pic_01.gif'
theRoundImages[1] = '/images/home/boilerplate_pic_02.gif'
theRoundImages[2] = '/images/home/boilerplate_pic_03.gif'
theRoundImages[3] = '/images/home/boilerplate_pic_04.gif'
theRoundImages[4] = '/images/home/boilerplate_pic_05.gif'
theRoundImages[5] = '/images/home/boilerplate_pic_06.gif'

// ======================================
// do not change anything below this line
// ======================================

var j = 0
var p = theRoundImages.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theRoundImages[i]
}

var whichRoundImage = Math.round(Math.random()*(p-1));
function showRoundImage(){
document.write('<img src="'+theRoundImages[whichRoundImage]+'"  alt="images from various films" width="234" height="79" />');
}