window.onload = function() {

letsGo();
preloadImages();

}


function letsGo() {


// ** needed for the Online Print Center pages ** //
if (typeof visYear!="undefined" && typeof visYear!="null") {
init();
}


var tables = document.getElementsByTagName('table');

// Establishes that this is the homepage //

if (document.getElementById('homepage')) {

var off01 = tables[3].offsetHeight;
var off02 = tables[7].offsetHeight;
var offset = off02-off01;

document.getElementById('homepage').style.display = 'none';

// Removes extraneous breaks in text area //

var texts = document.getElementsByTagName('span');
var breaks = texts[0].getElementsByTagName('br');

for (i=0;i<breaks.length;i++) {

texts[0].removeChild(breaks[i]);

}


	
// Eliminates the white space under the press graphic //

var newtbod = document.createElement('tbody');
var newtr = document.createElement('tr');
var newtd = document.createElement('td');
var count = 0;

newtd.style.backgroundImage = 'url(1550Kindop/bground.jpg)';
newtd.style.height = offset;

newtr.appendChild(newtd);
newtbod.appendChild(newtr);
tables[3].appendChild(newtbod);



// Eliminates the white space under the Product Spotlight //

var newtbod2 = document.createElement('tbody');
var newtr2 = document.createElement('tr');
var newtd2 = document.createElement('td');

newtd2.style.height = offset;
newtd2.style.backgroundImage = 'url(1550Kindop/bground2.jpg)';

newtr2.appendChild(newtd2);
newtbod2.appendChild(newtr2);
tables[5].appendChild(newtbod2);



// Eliminates the white space below the dark tan line //

var cells = document.getElementsByTagName('td');

for (i=0;i<cells.length;i++) {
if (cells[i].width == 28) {
cells[i].height = offset+504;
cells[i].style.backgroundImage = 'url(1550Kindop/leftback.jpg)';
cells[i].removeChild(cells[i].firstChild);
}


// Adds a background to the Product Spotlight, in case it fails to load properly //


if (cells[i].width == 279 && count != 2) {
count++
}
if (cells[i].width == 279 && count == 2) {
cells[i].height = '99px';
cells[i].style.backgroundImage = 'url(1550Kindop/spotback.jpg)';

count++
}

}


}

}