<!--// This hides the script from ancient browsers

/* Real-time banner rotation. All of the images must be the same size. */

var image = "";
var banners = 0;

/* Specifies how many images will be rotating, in this case 6. */
function cycle() {
  if (++banners > 5) banners=1;
    loadbanners();
    document.banner1.src = image;

/* Cycle speed. 1000 equals one second. */
    window.setTimeout('cycle();',4000);
  }

/* List of rotating images */
function loadbanners() {

   if (banners==1)
      {
      image="images/feature-mmrp1006.jpg";
      }
   if (banners==2)
      {
      image="images/feature-mmrp1008.jpg";
      }
   if (banners==3)
      {
      image="images/feature-mmrp1050.jpg";
      }
   if (banners==4)
      {
      image="images/feature-mmrp1052.jpg";
      }
   if (banners==5)
      {
      image="images/feature-mmrp1070.jpg";
      }
}



/* List of banner links. The default link variable ("var link") is where you want people to go when they click on the place-holding image (the image specified in your HTML code). "banners==1" should be followed by the link you want them to go to when they click on the first image to replace the place-holding image, and so on. */

var link = "chargers/mmrp1006.html"

function urlswitch() {
	if (banners==1)
		{
		link = "chargers/mmrp1006.html";
		}
	if (banners==2)
		{
		link = "chargers/mmrm1008.html";
		}
	if (banners==3)
		{
		link = "power-supplies/index.html";
		}
	if (banners==4)
		{
		link = "power-supplies/index.html";
		}
	if (banners==5)
		{
		link = "misc-products/index.html";
		}
return link;
}

/* Include the following in the body tag of your HTML document. The number to the right of "cycle()" is how long the place-holding images will display.

onLoad="window.setTimeout('cycle();',6000);(loadbanners());(urlswitch());"

Here's an example:

<body onLoad="window.setTimeout('cycle();',7000);(loadbanners());(urlswitch());">

Place the code below where you want the first set of images to display on your webpage. Leave the "dummy.htm" unchanged. Also, don't use "alt" tags with the images you want to rotate unless you don't mind the same text being applied to all of them. Change the image path (after "src=") to the image you want to use.

<CENTER><a href="/dummy.htm" onClick="this.href=urlswitch()"><IMG width="468" height="60" border=0 src="/images/KHbann10.gif" name="banner1"></a></CENTER>

The code below is for the second set of rotating images on your page, should you want this option. Again, change the path to the image you want to display.

<CENTER><a href="/dummy.htm" onClick="this.href=urlswitch()"><IMG width="468" height="60" border=0 src="/images/KHbann10.gif" name="banner2"></a></CENTER>

*/
//  Ends hiding from ancient browsers -->
