					var rotator = 0;
					var rotator1 = 0;
					var rotator2 = 0;
					jQuery(document).ready(function(){
						
						var jQuerypArr = jQuery('.rotator a');

						var pArrLen = jQuerypArr.length;

						var pPerDiv = 3; // Gold Sponsor

						for (var i = 0;i < pArrLen;i+=pPerDiv){

							jQuerypArr.filter(':eq('+i+'),:lt('+(i+pPerDiv)+'):gt('+i+')').wrapAll('<li />');

						}

						var jQuerypArr = jQuery('.rotator1 a');

						var pArrLen = jQuerypArr.length;

						var pPerDiv = 4; // Silver Sponsor

						for (var i = 0;i < pArrLen;i+=pPerDiv){

							jQuerypArr.filter(':eq('+i+'),:lt('+(i+pPerDiv)+'):gt('+i+')').wrapAll('<li />');

						}

						var jQuerypArr = jQuery('.rotator2 a');

						var pArrLen = jQuerypArr.length;

						var pPerDiv = 2;

						for (var i = 0;i < pArrLen;i+=pPerDiv){

							jQuerypArr.filter(':eq('+i+'),:lt('+(i+pPerDiv)+'):gt('+i+')').wrapAll('<li />');

						}

						//jQuery('#footerSponsorLogos').innerfade({

						//animationtype: 'fade',

						//speed: 1200,

						//timeout: 6000,

						//type: 'sequence',

						//containerheight: '24px'

					//});

					});

// JavaScript Document

$(function(){

  // time between image rotate

  var delay = 2000;

  // for each list item in 

  // the rotator ul,

  // show a random image

  $('.rotator > li').each(function(){

    // save images in an array

    var $imgArr = $(this).children();

    // show a random image

    $imgArr.eq(Math.floor(Math.random()*$imgArr.length)).show();

  });

  // run the changeImage function after every (delay) miliseconds

  setInterval(function(){

    changeImage();

  },delay);

  $('.rotator1 > li').each(function(){

    // save images in an array

    var $imgArr = $(this).children();

    // show a random image

    $imgArr.eq(Math.floor(Math.random()*$imgArr.length)).show();

  });

  // run the changeImage function after every (delay) miliseconds

  setInterval(function(){

    changeImage1();

  },delay);

  $('.rotator2 > li').each(function(){

    // save images in an array

    var $imgArr = $(this).children();

    // show a random image

    $imgArr.eq(Math.floor(Math.random()*$imgArr.length)).show();

  });

  // run the changeImage function after every (delay) miliseconds

  setInterval(function(){

    changeImage2();

  },delay);

  function changeImage(){

    // save list items in an array

    var $liArr = $('.rotator > li');

    // select a random list item

    var $currLi = $liArr.eq(Math.floor(Math.random()*$liArr.length));
	if(rotator++ >= $liArr.length) rotator = 0;
    var $currLi = $liArr.eq(rotator);
    
    // get the currently visible image

    var $currImg = $('.rotator-image:visible', $currLi);

    if ($currImg.next().length == 1) {

      var $next = $currImg.next();

    } else {

      var $next = $('.rotator-image:first', $currLi);

    }

    $currImg.fadeOut();

    $next.fadeIn();

  }  

  function changeImage1(){

    // save list items in an array

    var $liArr = $('.rotator1 > li');

    // select a random list item

    //var $currLi = $liArr.eq(Math.floor(Math.random()*$liArr.length));
    if(rotator1++ >= $liArr.length) rotator1 = 0;
    var $currLi = $liArr.eq(rotator1);

    // get the currently visible image

    var $currImg = $('.rotator-image:visible', $currLi);

    if ($currImg.next().length == 1) {

      var $next = $currImg.next();

    } else {

      var $next = $('.rotator-image:first', $currLi);

    }

    $currImg.fadeOut();

    $next.fadeIn();

  }  

  function changeImage2(){

    // save list items in an array

    var $liArr = $('.rotator2 > li');

    // select a random list item

    //var $currLi = $liArr.eq(Math.floor(Math.random()*$liArr.length));
    if(rotator2++ >= $liArr.length) rotator2 = 0;
    var $currLi = $liArr.eq(rotator2);

    // get the currently visible image

    var $currImg = $('.rotator-image:visible', $currLi);

    if ($currImg.next().length == 1) {

      var $next = $currImg.next();

    } else {

      var $next = $('.rotator-image:first', $currLi);

    }

    $currImg.fadeOut();

    $next.fadeIn();

  }  

});
