// setup the image libraries:
var col1 = new Array();
var col2 = new Array()
var col3 = new Array();
var col4 = new Array();


// add images to library:
col1[0] = 'images/col1_001.jpg';
col1[1] = 'images/col1_002.jpg';
col1[2] = 'images/col1_003.jpg';
col1[3] = 'images/col1_004.jpg';

col2[0] = 'images/col2_001.jpg';
col2[1] = 'images/col2_002.jpg';
col2[2] = 'images/col2_003.jpg';
col2[3] = 'images/col2_004.jpg';

col3[0] = 'images/col3_001.jpg';
col3[1] = 'images/col3_002.jpg';
col3[2] = 'images/col3_003.jpg';
col3[3] = 'images/col3_004.jpg';
col3[0] = 'images/col3_005.jpg';

col4[0] = 'images/col4_001.jpg';
col4[1] = 'images/col4_002.jpg';
col4[2] = 'images/col4_003.jpg';
col4[3] = 'images/col4_004.jpg';


// buffer images:
function bufferImg(a) { var pre = new Array(); for (i = 0; i < a.length -1; i++) { pre[i] = new Image(); pre[i].src = a[i];} }
// add random image to html:
function showImage(a) { var id = Math.round(Math.random()*(a.length-1)); document.write('<img src="/skin/careersystems/'+a[id]+'" alt="">'); }


// buffer all libraries:
bufferImg(col1);
bufferImg(col2);
bufferImg(col3);
bufferImg(col4);

