<!--

// note: the 2nd image ("two") will be the first to appear in the animation
// all images must be the same dimensions
// works in NS 3, IE/NS 4+
// other browsers or javascript disabled will see only the original image and link and no animation

var has_loaded = 0;

if (document.images) {

   one=new Image
   one.src="img/showcase/tabletop.jpg"

   two=new Image
   two.src="img/showcase/join.jpg"
   
  
   has_loaded = 1;
}

go_URL = new Array();
   go_URL[0]="index.php?newsID=8";
   go_URL[1]="index.php?join=default";

imgID = new Array();
   imgID[0]=one.src;
   imgID[1]=two.src;

var pause = 4000 // pause how long in milliseconds (1000 = 1 sec)


var a = 0;
var b = (go_URL.length - 1);

 
function rotate(imgN)  {
   if (has_loaded == 1) {

      if (a == b) {
         a = 0;
      }
      else {
         a++;
      }
      
      document.images[imgN].src = imgID[a];
	  document.getElementById('showcase_link').href = go_URL[a];
      setTimeout('rotate("rotate_pic")',pause);
      
   } // end of if has_loaded

   if (window.status != '') { window.status = go_URL[a]; return true; }
} // end of function rotate

var oldOnload = window.onload;
if (typeof oldOnload == 'function') { window.onload = function() { oldOnload(); rotate("rotate_pic"); } }
else { window.onload = function() { rotate("rotate_pic"); } }
//-->
