var imgs = new Array("images/aboutpic1_01.jpg", "images/aboutpic1_02.jpg", "images/aboutpic1_03.jpg", "images/aboutpic1_04.jpg",
"images/aboutpic1_05.jpg", "images/aboutpic1_06.jpg", "images/aboutpic1_07.jpg", "images/aboutpic1_08.jpg", "images/aboutpic1_09.jpg"),
preloadimgs = new Array(), showd=document.getElementById("idaboutshow"), n = Math.floor(Math.random() * imgs.length);
var imgs2 = new Array("images/aboutpic2_01.jpg", "images/aboutpic2_02.jpg", "images/aboutpic2_03.jpg", "images/aboutpic2_04.jpg",
"images/aboutpic2_05.jpg", "images/aboutpic2_06.jpg", "images/aboutpic2_07.jpg", "images/aboutpic2_08.jpg", "images/aboutpic2_09.jpg"),
preloadimgs2 = new Array(), show2d=document.getElementById("idabout2show"), n2 = Math.floor(Math.random() * imgs2.length);
if (!ie)
{
document.write('<div><a href="#" onclick="showstop(1)"  title="The Pet Centre Shirley - About Us - Click to Stop/Start"><img id="idaboutshowfg" src="images/spacer.gif" width="250" height="168" border="0" alt="The Pet Centre Shirley - About Us - Click to Stop/Start"></a></div><div><a href="#" onclick="showstop(1)"  title="The Pet Centre Shirley - About Us - Click to Stop/Start"><img id="idaboutshown" src="images/spacer.gif" width="250" height="168" border="0" alt="The Pet Centre Shirley - About Us - Click to Stop/Start"></a></div><div><a href="#" onclick="showstop(2)"  title="The Pet Centre Shirley - About Us - Click to Stop/Start"><img id="idabout2showfg" src="images/spacer.gif" width="250" height="167" border="0" alt="The Pet Centre Shirley - About Us - Click to Stop/Start"></a></div><div><a href="#" onclick="showstop(2)"  title="The Pet Centre Shirley - About Us - Click to Stop/Start"><img id="idabout2shown" src="images/spacer.gif" width="250" height="167" border="0" alt="The Pet Centre Shirley - About Us - Click to Stop/Start"></a></div>');
var showfgd=document.getElementById("idaboutshowfg"), shownd=document.getElementById("idaboutshown"),
show2fgd=document.getElementById("idabout2showfg"), show2nd=document.getElementById("idabout2shown");
}
if (nn)
{
document.write('<div><img id="idaboutshownn" src="images/spacer.gif" width="250" height="168" border="0" alt="The Pet Centre Shirley - About Us - Click to Stop/Start"></div><div><img id="idabout2shownn" src="images/spacer.gif" width="250" height="167" border="0" alt="The Pet Centre Shirley - About Us - Click to Stop/Start"></div>');
var shownnd=document.getElementById("idaboutshownn"), show2nnd=document.getElementById("idabout2shownn");
}

preloadshow();
preloadshow2();
if (!ie)
   set_poshow();

function set_poshow()
{
   showfgd.style.left = posleft + 150 + "px";
   shownd.style.left = posleft + 150 + "px";
   show2fgd.style.left = posleft + 500 + "px";
   show2nd.style.left = posleft + 500 + "px";
   showfgd.style.visibility = 'visible';
   shownd.style.visibility = 'visible';
   show2fgd.style.visibility = 'visible';
   show2nd.style.visibility = 'visible';
   if (nn)
   {
      shownnd.style.left = posleft + 150 + "px";
      show2nnd.style.left = posleft + 500 + "px";
      shownnd.style.visibility = 'visible';
      show2nnd.style.visibility = 'visible';
   }
}

function set_posaboutre()
{
   set_pos();
   if (!ie)
       set_poshow();   
}

function aboutre()
{
   window.onresize=set_posaboutre;
}

function preloadshow()
{
  for (var i = n; i < imgs.length; i++)
  {
    preloadimgs[i] = new Image();
    preloadimgs[i].src = imgs[i];
  }
  for (var i = 0; i < n; i++)
  {
    preloadimgs[i] = new Image();
    preloadimgs[i].src = imgs[i];
  }
  if (ie)
     showd.src= preloadimgs[0].src;
  else
     showfgd.src= preloadimgs[0].src;
  if (nn)
     shownnd.src= preloadimgs[0].src;
showpics(1, 6000, 6000, 20, .05, 10, .1);
}

function preloadshow2()
{
  for (var i = n2; i < imgs2.length; i++)
  {
    preloadimgs2[i] = new Image();
    preloadimgs2[i].src = imgs2[i];
  }
  for (var i = 0; i < n2; i++)
  {
    preloadimgs2[i] = new Image();
    preloadimgs2[i].src = imgs2[i];
  }
  if (ie)
     show2d.src= preloadimgs2[0].src;
  else
     show2fgd.src= preloadimgs2[0].src;
  if (nn)
     show2nnd.src= preloadimgs2[0].src;
show2pics(1, 9000, 6000, 20, .05, 10, .1);
}

function showstop(stopic)
{
  if (stopic == 1)
  {
     if (stopind)
     {
        stopind = false;
        clearTimeout(showtime);
        clearTimeout(optime);
     }
     else
     {
        stopind = true;
        showpics();
     }
  }
  else
  {
     if (stop2ind)
     {
        stop2ind = false;
        clearTimeout(show2time);
        clearTimeout(op2time);
     }
     else
     {
        stop2ind = true;
        show2pics();
     }
  }
}