/*************************************************************************
  This code is from Dynamic Web Coding at http://www.dyn-web.com/
  Copyright 2003 by Sharon Paine 
  See Terms of Use at http://www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/

// tooltip content goes here
var messages = new Array();
// array elements: image file name, image width, image height, optional text, width of tooltip (optional) 
// If no width passed, tooltip width is as set in style sheet or width of previous 
// So, if you going to specify the width (using the 5th array element) specify them for all
// NOTE: Be sure width you specify is at least image width + 2 X border-width + 2 X padding-width !




//////////////////////////////////////////////////////////////////////////////////////////////////
// Code for preloading images

// If you don't want to preload your images you can remove or comment out this section
// or just put all your messages arrays below it

if (document.images) {
	var image_list = new Array();
  for (var message_counter=0; message_counter < messages.length; message_counter++) {
  	image_list[message_counter] = new Image(); 
		image_list[message_counter].src = messages[message_counter][0];
  }
}

// end preload code
////////////////////////////////////////////////////////////////////////////////////////////////////////
  
// since this comes after the preload algorithm, the image here won't be preloaded

messages[100] = ['/images/chassis/clusteron/clustAthumb.jpg', 200, 111, '<b>Clusteron A Model:</b><br><li>(For Athlon Motherboards)</li>', 220];
messages[105] = ['/images/chassis/clusteron/clustBthumb.jpg', 200, 111, '<b>Clusteron B Model</b><br><li>(For Xeon Motherboards)</li>', 220];
messages[110] = ['/images/chassis/clusteron/clustCthumb.jpg', 200, 111, '<b>Clusteron C Model</b><br><li>(For Westville Motherboards)</li>', 220];
messages[115] = ['/images/chassis/clusteron/clustDthumb.jpg', 200, 111, '<b>Clusteron D Model</b><br><li>(For Opteron Motherboards)</li>', 220];
messages[120] = ['/images/chassis/1u/rc0100s.jpg', 150, 104, '<b>RC-0100:</b><br><li>General-Purpose.</li><li>Special Price: $89.00 (bare chassis only)</li>', 220];
messages[125] = ['/images/chassis/1u/rc0100s.jpg', 150, 104, '<b>RC-0101:</b><br><li>Ultra-cooled Super Server</li><li>Close out sale: $165.00 (bare chassis only)</li>', 220];
messages[130] = ['/images/chassis/1u/rc0102s.jpg', 200, 83, '<b>RC-0102:</b><br><li>General-Purpose</li>', 220];
messages[135] = ['/images/chassis/1u/rc0103s.jpg', 200, 64, '<b>RC-0103:</b><br><li>Passed AMD Thermal Testing for AMD Opteron</li><li>Fault tolerant</li><li>high availability</li>', 220];
messages[140] = ['/images/chassis/1u/rc0104s.jpg', 200, 83, '<b>RC-0104:</b><br><li>Passed AMD Thermal Testing for AMD Opteron</li><li>RAID Ready</li>', 220];
messages[143] = ['/images/chassis/2u/rc0212s1.jpg', 175, 95, '<b>RC-0212:</b>', 220];
messages[145] = ['/images/chassis/2u/rc0222s.jpg', 175, 95, '<b>RC-0222:</b>', 220];
messages[150] = ['/images/chassis/2u/rc0222s.jpg', 175, 95, '<b>RC-0222 LP:</b> (Low Profile)', 220];
messages[155] = ['/images/chassis/3u/rc0303s.jpg', 200, 87, '<b>RC-0303:</b><br><li>(6) 5.25" drive bays</li><li>(1) 3.5" drive bay</li><li>19" wide</li><li>27" deep</li>', 220];
messages[160] = ['/images/chassis/3u/rc0313s.jpg', 200, 77, '<b>RC-0313:</b><br><li>(15) SATA or SCSI hot-swap drive bays</li><li>(1) Slim CD-ROM drive bay</li><li>Built-in device monitor</li><li>19" wide</li><li>27" deep</li>', 220];
messages[165] = ['/images/chassis/3u/rc0316s.jpg', 200, 109, '<b>RC-0316:</b><br><li>(16) SATA or SCSI hot-swap drive bays</li><li>(1) Slim CD-ROM drive bay</li><li>Built-in device monitor</li><li>19" wide</li><li>27" deep</li>', 220];
messages[170] = ['/images/chassis/3u/rc0333s.jpg', 200, 151, '<b>RC-0333:</b><br><li>Up to 12 hot-swap drive bays, or 11 fixed drive bays</li><li>(1) 3.5" drive bay</li><li>(1) Slim CD-ROM drive bay</li><li>(1) 3.5" drive bay</li><li>19" wide</li><li>27" deep</li>', 220];
messages[175] = ['/images/chassis/4u/rc0414s.jpg', 200, 95, '<b>RC-0414:</b><br><li>(3) 5.25" drive bays</li><li>(2) 3.5" drive bays</li><li>Fixed power supply or hot-swap redundant power supplies</li>', 220];
messages[180] = ['/images/chassis/4u/rc0424s.jpg', 200, 118, '<b>RC-0424:</b><br><li>(24) hot-swap SCSI or SATA hard drive bays</li><li>(1) 5.25" drive bay available in rear</li><li>(4) internal hot-swap cooling blowers</li>', 220];
messages[185] = ['/images/chassis/4u/rc0452s.jpg', 200, 122, '<b>RC-0452:</b><br><li>Up to 12 hot-swap SATA or SCSI hard drives</li><li>(1) 3.5" drive bay</li><li>(1) Slim CD-ROM drive bay</li>', 220];
messages[190] = ['/images/chassis/4u/rc8442s.jpg', 200, 137, '<b>RC-8442:</b><br><li>Up to 4 AMD Opteron Processors</li><li>(4) hot-swap hard drive bays</li><li>Optional 2-way or 3-way redundant power supplies</li>', 220];

// leave in page for way to customize layout of tooltip 
// and avoid errors if onmouseovers/outs before page completely loaded
function doTooltip(e, num) {
  if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
  var cntnt = wrapTipContent(num);
  var tip = document.getElementById( Tooltip.tipID );
  if ( messages[num][4] ) tip.style.width = messages[num][4] + "px";
  Tooltip.show(e, cntnt);
}

function hideTip() {
  if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
  Tooltip.hide();
}


function wrapTipContent(num) {
  var cntnt = '<div class="img"><img src="' + messages[num][0] + '" width="' + 
    messages[num][1] + '" height="' + messages[num][2] + '" border="0"></div>';
  if ( messages[num][3] ) cntnt += '<div class="msg">' + messages[num][3] + '</div>';
	return cntnt;
}
