/****************************************************
 * Image Gallery Script                      *
 * Unobtrusive JavaScripts                          *
 * copyright Stephen Chapman http://www.felgall.com *
 * March 2007                                       *
 *                                                  *
 * You may use this script provided that you        *
 * include this copyright notice with the code.     *
 *                                                  *
 * You will need to expand the code to include as   *
 * many additional image references as you want.    *
 * The example code includes three image swaps.     *
 ****************************************************/
if (document.images) {
image0 = new Image;
image1 = new Image;
image2 = new Image;
image3 = new Image;
image4 = new Image;
image5 = new Image;
image0.src = 'pic1b.gif';
image1.src = 'pic2b.gif';
image2.src = 'pic3b.gif';
image3.src = 'pic1a.gif';
image4.src = 'pic2a.gif';
image5.src = 'pic3a.gif';
}
var pageLoaded = 0;
window.onload = function() {pageLoaded = 1;}
function loaded(i,f) {
if (document.getElementById && document.getElementById(i) != null) f();
else if (!pageLoaded) setTimeout('loaded(\''+i+'\','+f+')',100);
}
loaded('rollimg',start);
function start() {
if (document.images) {
document.getElementById('img1').onmouseover = function() {document.getElementById('rollimg').src=image0.src;}
document.getElementById('img2').onmouseover = function() {document.getElementById('rollimg').src=image1.src;}
document.getElementById('img3').onmouseover = function() {document.getElementById('rollimg').src=image2.src;}
document.getElementById('img1').onmouseout = function() {document.getElementById('rollimg').src=image3.src;}
document.getElementById('img2').onmouseout = function() {document.getElementById('rollimg').src=image4.src;}
document.getElementById('img3').onmouseout = function() {document.getElementById('rollimg').src=image5.src;}
}
}


