// JavaScript Document
// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Edited by: X-Tenshi
// Free for all; but please leave in the header.
// ==============================================

// Set up the image files to be used.
var theImages = new Array() // do not change this
var theURL = new Array() // for URLs (added in by X-Tenshi)
var theALT = new Array() // for ALT (added in by X-Tenshi)
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!

theImages[0] = './images/banners/plugs/fl88x31.jpg'
theURL[0] = 'http://www.flawedlegacy.com'
theALT[0] = 'Plug: Flawed Legacy - Graphic Design'

theImages[1] = './images/banners/plugs/cr.jpg'
theURL[1] = 'http://china-rouge.net/'
theALT[1] = 'Plug: China Rouge - Graphic Design'

theImages[2] = './images/banners/plugs/am.png'
theURL[2] = 'http://artmolecules.110mb.com/'
theALT[2] = 'Art Molecules - Asian Graphics'


// ======================================
// do not change 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="'+theURL[whichImage]+'" target="_blank"><img src="'+theImages[whichImage]+'" alt="'+theALT[whichImage]+'" title="'+theALT[whichImage]+'" border="0" width="88" height="31"></a>');
}


function expandIt(getIt){  
 getIt.style.display=(getIt.style.display=="none")?"":"none";  
 }  



