

/****
this script reads a directory = /headerImages
then outputs them at random in 2 halves  - leftImg + rightImg

the images must be a set width   - fixedWidth



image properties must all be the same for this to work.

***/
var leftLink = '/store/content/65/terms/';  // default link
var rightLink = '/store/go/contact-us/';  // default link





//////////////////////////////////////////////////////////////////////////
//
//   DON'T  EDIT BELOW HERE UNLESS YOU KNOW WHAT YOUR DOING
//
/////////////////////////////////////////////////////////////////////////////

var imgStyle=' border: #cccccc 0px solid;  padding : 3px; ';
var defaultSrc = 'http://appliancepartsdirect.co.uk/logos/dodge.gif';
var fixedWidth = 250 ;  // fixed height
var fixedHeight = 150 ;  // fixed height

var lefttAlt = ' free delivery from iapetus';  // default alt and title of images
var rightAlt = ' free gift wrapping from iapetus';


theImgs = new Array();
theImgs[0] = siteURL + '/headerImages/header_image1.gif';
theImgs[1] = siteURL + '/headerImages/header_image2.gif';




document.write( '<a id="leftLink" href="'  +  leftLink     +'" >   ');
document.write( '<img id="leftImg" alt="' + lefttAlt  +'" title="' + lefttAlt  +'" style="   ' + imgStyle  +'" src="'+ theImgs[0] +'"   /> </a>');

document.write( '<a id="rightLink" href="'  +  rightLink     +'" >   ');
document.write( '<img id="rightImg" alt="' + rightAlt  +'" title="' + rightAlt  +'" style="   ' + imgStyle  +'" src="'+ theImgs[1] +'"  /> </a>');


