      function popup(mylink, windowname)
      {
          if (! window.focus)return true;
          var href;
          if (typeof(mylink) == 'string')
             href=mylink;
          else
             href=mylink.href;
          window.open(href, windowname, 'width=800,height=600,scrollbars=no, resizable=yes');
          return false;
      }

      function popup2(mylink, windowname)
      {
          if (! window.focus)return true;
          var href;
          if (typeof(mylink) == 'string')
             href=mylink;
          else
             href=mylink.href;
          window.open(href, windowname, 'width=1024,height=660,scrollbars=yes, resizable=yes');
          return false;
      }


	//--button rollover
    function imageSwitcher(img,imgName)
    {
        document.images[imgName].src=img;
    }

	//--Animate the Success Story views
    var counter=0;

	function animate(counter)
	{        
	    if (counter == 7)
	        counter=0;

	    if (counter != 0)
        {
            var priorCounter=counter-1;  
        }
        else
        {
            var priorCounter = 6;
        }
       
        var item="Testimonial" + counter;
        var oldItem="Testimonial" + priorCounter;
        
        if (document.getElementById(oldItem)) 
        {
            document.getElementById(oldItem).style.display = 'none';
            //new Effect.Fade(document.getElementById(oldItem), arguments[1] || {});      
        }
        
        if (document.getElementById(item)) 
        {
	        new Effect.Appear(document.getElementById(item), arguments[1] || {});
        }
         
	    counter=counter+1;
        setTimeout('animate('+(counter)+')', 8000);
    }
