<!-- Copyright date
function copyrightDate(){
wriYr = new Date
var doYr = wriYr.getFullYear()
document.write("Copyright &copy; " + doYr + " Hauck Decorating. All rights reserved.")
}
//-->

<!-- Framebuster
if (window != top) top.location.href = location.href;
// End -->

<!-- Random Image 
// 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.

theImages[0] = 'images/artworks/barleaves2_sm.jpg'
theImages[1] = 'images/colorblends/monetdr3_sm.jpg'
theImages[2] = 'images/fireplaces/erinfp_sm.jpg'
theImages[3] = 'images/marbelizing/marblebath_sm.jpg'
theImages[4] = 'images/spritsandstripes/ourkitchen_sm.jpg'
theImages[5] = 'images/spritsandstripes/billbath_sm.jpg'
theImages[6] = 'images/stucco/venetian4_sm.jpg'
theImages[7] = 'images/suedes/corishsuede2_sm.jpg'
theImages[8] = 'images/suedes/softsuede_sm.jpg'
theImages[9] = 'images/traditional/barcrackle2_sm.jpg'
theImages[10] = 'images/unborders/starsbars2_sm.jpg'
theImages[11] = 'images/unborders/vortex_sm.jpg'
theImages[12] = 'images/washes/dinettewash_sm.jpg'
theImages[13] = 'images/yipesstripes/bathstripe_sm.jpg'

// do not edit 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('<a href="finishes/index.php"><img src="'+theImages[whichImage]+'" alt="Take a look at our unique finishes"></a>');
}

//  End -->

<!-- Random Image
var interval = 3; // delay between rotating images (in seconds)
var random_display = 1; // 0 = no, 1 = yes
interval *= 1000;

var image_index = 0;
image_list = new Array();
image_list[image_index++] = new imageItem("images/artworks/barleaves2_sm.jpg");
image_list[image_index++] = new imageItem("images/colorblends/monetdr3_sm.jpg");
image_list[image_index++] = new imageItem("images/fireplaces/erinfp_sm.jpg");
image_list[image_index++] = new imageItem("images/marbelizing/marblebath_sm.jpg");
image_list[image_index++] = new imageItem("images/spritsandstripes/ourkitchen_sm.jpg");
image_list[image_index++] = new imageItem("images/stucco/venetian4_sm.jpg");
image_list[image_index++] = new imageItem("images/suedes/corishsuede2_sm.jpg");
image_list[image_index++] = new imageItem("images/suedes/softsuede_sm.jpg");
image_list[image_index++] = new imageItem("images/traditional/barcrackle2_sm.jpg");
image_list[image_index++] = new imageItem("images/unborders/starsbars2_sm.jpg");
image_list[image_index++] = new imageItem("images/unborders/vortex_sm.jpg");
image_list[image_index++] = new imageItem("images/washes/dinettewash_sm.jpg");
var number_of_image = image_list.length;
function imageItem(image_location) {
this.image_item = new Image();
this.image_item.src = image_location;
}
function get_ImageItemLocation(imageObj) {
return(imageObj.image_item.src)
}
function generate(x, y) {
var range = y - x + 1;
return Math.floor(Math.random() * range) + x;
}
function getNextImage() {
if (random_display) {
image_index = generate(0, number_of_image-1);
}
else {
image_index = (image_index+1) % number_of_image;
}
var new_image = get_ImageItemLocation(image_list[image_index]);
return(new_image);
}
function rotateImage(place) {
var new_image = getNextImage();
document[place].src = new_image;
var recur_call = "rotateImage('"+place+"')";
setTimeout(recur_call, interval);
}
//  End -->


