// ### 


// ############## ROTATE THE HOME BUTTON ###############

// ==============================================

// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, increment the theImages[x] index

theImages[0] = 'http://www.jordanco.com/aa_SiteObjects/aa_jcoIMAGES/siteBits/thumbs/whirlpooltub-corner.jpg'
theImages[1] = 'http://www.jordanco.com/aa_SiteObjects/aa_jcoIMAGES/siteBits/thumbs/whirlpooltub-01.jpg'
theImages[2] = 'http://www.jordanco.com/aa_SiteObjects/aa_jcoIMAGES/siteBits/thumbs/wallbracket-wh.jpg'
theImages[3] = 'http://www.jordanco.com/aa_SiteObjects/aa_jcoIMAGES/siteBits/thumbs/wallbracket-cl.jpg'
theImages[4] = 'http://www.jordanco.com/aa_SiteObjects/aa_jcoIMAGES/siteBits/thumbs/wallbracket-blk.jpg'
theImages[5] = 'http://www.jordanco.com/aa_SiteObjects/aa_jcoIMAGES/siteBits/thumbs/paddlefan-close-wh.jpg'
theImages[6] = 'http://www.jordanco.com/aa_SiteObjects/aa_jcoIMAGES/siteBits/thumbs/paddlefan-brass.jpg'
theImages[7] = 'http://www.jordanco.com/aa_SiteObjects/aa_jcoIMAGES/siteBits/thumbs/floodholder-2.jpg'
theImages[8] = 'http://www.jordanco.com/aa_SiteObjects/aa_jcoIMAGES/siteBits/thumbs/floodholder-1.jpg'
theImages[9] = 'http://www.jordanco.com/aa_SiteObjects/aa_jcoIMAGES/siteBits/thumbs/fgTUB-60.jpg'
theImages[10] = 'http://www.jordanco.com/aa_SiteObjects/aa_jcoIMAGES/siteBits/thumbs/fgshower-36.jpg'
theImages[11] = 'http://www.jordanco.com/aa_SiteObjects/aa_jcoIMAGES/siteBits/thumbs/fanlightkit-1.jpg'

// ======================================
// 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('<img src="'+theImages[whichImage]+'" border="0" width="140" />');
}

// ######### write 160 skyscraper house ads #############
// JCOCategory:  Add your new category names.  Be sure to leave in the 'all' category! 
JCOCategory = new Array("all")

MainVar = 0; // Sets up the variable that counts the pictures.

function Fix(DatVal, PicVal, TitVal, CatVal, TxtVal) { // Allows you to use variables for the array instead of numbers.
   this.DatVal = DatVal 
   this.PicVal = PicVal 
   this.TitVal = TitVal 
   this.CatVal = CatVal
   this.TxtVal = TxtVal 
} 
var MainArray = new Array() // Sets up the main array.

// Add one line for each skyscraper you want in the group.  The format of these lines is shown below:
// MainArray[MainVar++] = new Fix("date", "picname.jpg", "pic title", "category", "pic description")
// ONE PER linebreak. HTML is allowed in pic description but remember to use single-quote marks
MainArray[MainVar++] = new Fix("n/a", "http://www.jordanco.com/aa_SiteObjects/aa_jcoIMAGES/siteBits/pageElements/smjco.gif", "Here we are!", "n/a", "<div class='whitebkgrcolor emphasize'><br />  </div><br />")
// #########                  #############
