//_update
var cPic = new Array(
"cat02771","cat02807","cat02809","cat02851","cat02858","cat02943",
"cat02952","cat02953","cat02962","cat02967","cat02979","cat03024",
"cat03025","cat03072","cat03075","cat03086","cat03099","cat03131",
"cat03140","cat03144","cat03146","cat03147","cat03148","cat03157",
"cat03158","cat03159","cat03160","cat03190","cat03191","cat03194",
"cat03197","cat03205","cat03208","cat03212","cat03213","cat03214",
"cat03216","cat03217","cat03234","cat03236","cat03240","cat03241",
"cat03244","cat03245","cat03246","cat03247","cat03249","cat03251",
"cat03252","cat03254","cat03256","cat03259");
var cDsc = new Array(
"MIDNIGHT<br>3 Year Old<br>Domestic Long Hair<br>Spayed Female<br>I’m a sleek cat with gorgeous, big eyes and a sweet personality. I really like people and to be petted.  I would be happier as an only pet.",
"SEAN<br>2 year old<br>Tabby<br>Neutered Male<br>Hi, my name is Sean.  I arrived at the Shelter as a stray back in November of 2010.  I was picked up with another cat (Sharla) who is my best buddy.  I really do enjoy people as well as other cats, and I’m told all the time what a sweet personality I have.  Stop by and visit me – I won’t let you leave without a smile!",
"SHARLA<br>2 year old<br>Tabby<br>Spayed Female<br>Excuse me, can we talk?  My name is Sharla and I’m pretty sure I am the cat you have been looking for.  I came to the Shelter in November of 2010 along with another cat named Sean.  We were roaming the streets together and became good friends.  I do love to be with people and other cats, and the volunteers here at the Shelter say I have a great personality.  If you have some time, come pay a visit -- I’m sure you will enjoy it!",
"WISTERIA<br>1 year old<br>Domestic Long Hair<br>Spayed Female<br>Am I good looking or what?! I’ve got gorgeous long hair that just begs to be brushed. And my green eyes really shine! I’m very playful, given that I’m just a little over one, but I do like to be held also. So if you’re into playing with me, that’s great. If you want me to be a lap cat, I can probably handle that too. Come by and take a look!",
"MEMPHIS<br>2 year old<br>Tabby<br>Neutered Male<br>Although I was found wandering around town, I’m totally domesticated and litter-box trained. I’m silvery, with green eyes, and definitely good looking. I have a very sweet, non-aggressive personality, so I might have spent some time with humans in the past. I like being held and played with. So come by and let’s get acquainted!",
"SISSY<br>5 year old<br>Tabby<br>Spayed Female<br>I’m a very sweet and playful kitty, and great looking too!  As they say in French  ‘tres petite’ as I’m so little! Maybe they should have called me Fluff, as I’m a gorgeous tabby with a cute fluffy tail!  I may be a little gal but I have lots of experience with other kitties and dogs and I like children too!  My owners moved away so I was brought in with 2 other kitties so that we can be found another loving home.  Perhaps you’d like it to be yours?",
"CHICA<br>1 year old<br>Torbie<br>Spayed Female<br>My name is Chica, a gorgeous long-haired cat.  I’m very playful and I crave attention, but I can be a little shy at first.  I arrived at the Shelter in May of 2011 because my owner was moving and couldn't take me.  I'm looking for a place to call my own and perhaps that could be with you.  Come down to the Humane Society of Sedona and check me out",
"SYDNEY<br>3 year old<br>Orange Tabby with white<br>Spayed Female<br>I came to the shelter as a stray in June of 2011.  I've been told I look about 3 years old.  I used to be a little shy, but now I try to get everyone's attention so I can get out of my cottage, wander around and settle down where I'm sure to get lots of petting.  I'm a pretty good looking cat, so if you have some time, stop by and say hello; you might like what you see.",
"HURRICANE<br>1 year old<br>Torbie<br>Spayed Female<br>I don't know why they named me Hurricane? I’ve been at the shelter most of my life. I’m totally into playing, exploring, and sleeping. I’ve been living in a small space, so I’d love to have a little more room to run around. You can give me a new name if you’d like. I’m open to new ideas and new places.",
"TIFFANY<br>1 year old<br>Tabby<br>Spayed Female<br>T is for tiger. I’m a brown/tan/white tiger kitty with a lot of personality. When they say that I’m “very nice,” that’s really an understatement. I’m friendly and I like to play.  I’m hoping that there’s a home out there looking for a youngster with a lot of charm. That’s me…a Tiffany charm.",
"SHEA<br>1 year old<br>Silver Tabby<br>Spayed Female<br>The name is Shea and I am one heck of a nice cat.  You know, back in November of 2010 I was roaming the streets when all of a sudden, I found myself in the Shelter.  Not a bad place, but for me, withmy great personality and love for people, I need to be in a home.  I'll make you a deal:  You come and love on me and I'll give it right back to you.  See you soon!",
"JAZ<br>1 year old<br>Domestic Short Hair<br>Spayed Female<br>Hi there. I’m Jaz. I’m a gorgeous black-and-white kitty who lived in a home that had too many pets. So several of us wound up here at the shelter. I am very friendly and I’m looking for a home where I can be your friend. I’m used to living with other kitties, so if you or your kitty needs a friend, look me up!",
"TRUFFLE<br>6 year old<br>Calico<br>Spayed Female<br>No teeth (no dental bills!)<br>Truffle is very friendly and loves to be petted.  She lived with another cat.  We don't know why she doesn't have any teeth, but she does fine on a wet food diet.<br>VISIT ME AT PETSMART IN SEDONA",
"PIP<br>5 year old<br>Domestic Long Hair<br>Spayed Female<br>I'm a beautiful silver and white long-haired kitty with a lot of personality.  I love people and sometimes I give kisses and love bites but that just means that I like you.  And you can brush my long hair anytime you want to.  I'm really very handsome.  Check me out.",
"RILEY<br>3 year old<br>Domestic Medium Hair<br>Neutered Male<br>Hey, it’s my birthday and I just turned 3. So I’m past the “terrible twos” and ready to settle down as your housecat. I’m a little shy, so give me a chance to warm up to you and I’ll be yours forever. I’ve got a beautiful black coat that you can brush whenever you want to. Come for a visit!",
"SHAKESPEARE<br>3 year old<br>Silver Tabby<br>Neutered Male<br>To be or not to be yours. I’m really very playful and I like other cats. My previous owner had too many to take care of, so here I am….in the shelter. I’ve been here most of my life, so I know my way around the place. But I’m really looking for a place where my stage talents are appreciated. As my namesake once said, “All’s well that ends well.” Let’s write a happy ending, together!",
"VANESSA<br>Under 1 year old<br>Tabby with white<br>Spayed Female<br>I'm a beautiful, loving girl looking for the right home.  I may only be looking with one eye (the vet removed the other one because of an infection when I was a baby), but I know I will find the right people looking for a special kitty like me.",
"Hop<br>Over 1 year old<br>Neutered Male",
"BABY BOY<br>Under 1 year<br>Domestic Short Hair<br>Neutered Male<br>I’m a lover. I just love people! I want to put my face next toyours and purr sweet nothings into your ear. My previous home hadtoo many animals, so they thought I’d have a good chance of finding a forever home because I’m so friendly. I’m black with a white spot on my chest and I really like being scratched and petted. Stop by and let me purr for you!",
"JANIE<br>1 year old<br>Medium Haired, Cream Tabby<br>Spayed Female<br>VISIT ME AT PETSMART",
"ONYX<br>7 year old (senior pet adoption rate)<br>Domestic Medium Hair<br>Neutered Male<br>I’m very friendly, like kisses, and I love being scratched and petted. I’m very approachable too. My medium/long black hair likes being brushed and I’ll purr for you. And I’m very curious (as cats are known to be). So let me snoop through your house and we’ll make it our home.",
"SOCKS KITTY<br>5 year old<br>Silver Tabby with white<br>Neutered Male<br>I’m a very handsome gray and white kitty. I was a stray, yet I really like people. I’m a sweetie and very affectionate. If you want to be loved, let me do it! I love playing and I love to be brushed. I’ll just purr and purr.<br>COME VISIT ME AT PETSMART",
"BERT<br>5 year old<br>Domestic Short Hair<br>Neutered Male<br>I’m a very approachable black kitty whose owners moved and couldn’t take me with them.I love people, especially if you scratch my chin and pet me. And I’m very playful and love to run indoors. I’m used to wearing soft claws, so you don’t have to worry about your furniture. One problem I have is with thunder storms; maybe we could hide under the blanket together?",
"MOCHA<br>3 year old<br>Tortoiseshell<br>Spayed Female<br>I’m a stunning dark chocolate Tortie living up to my name. I have a really sweet nature. My old family wasn’t able to look after me any more so I am now looking for a new one who’ll let me blend right in. I like to cuddle and also to play, and I’m so easy going that you’ll soon think I was always a part of your family. Come and meet me soon as I’d sure like to meet you!",
"I'VE BEEN ADOPTED!!!<br>CHEDDAR<br>2 year old<br>Orange Tabby<br>Neutered Male<br>Just like the color of cheddar cheese, I’m a yellow-gold tabby. I just love people and I love for people to rub my ears and head. Just listen to me purr; that feels so good !  I was brought to the Shelter as a stray, but  probably lived with someone before that. I’m a great cat! I have tested positive for FIV, so if you have an FIV positive cat or no other cats at all, come rub my head……please!",
"SAMANTHA<br>4 year old<br>Domestic Short Hair<br>Spayed Female<br>I’m a sweet little kitty who was kept outside because the other cats in my prior home wouldn’t let me in. Now I’m an indoor cat and I’m not very fond of other cats (can you blame me?). I’d like to come inside and stay inside. Let’s get together at the shelter and you can tell me all about your place. Take me home and I’m yours forever.<br>VISIT ME AT PETSMART IN SEDONA",
"DAPHNE<br>2 year old<br>Tabby<br>Spayed Female<br>If you’re looking for a beautiful gold tabby, I’m your girl. I once was an indoor/outdoor cat and I lived with other cats, kids, and adults, but the   landlord didn’t necessarily like kitties, for some reason. I love to play and I prefer to sleep inside….in fact, please keep me inside if you can. Scary critters outside! Come by for a visit!",
"SARAH<br>Tabby<br>1 year old<br>Spayed Female",
"STARBURST<br>Tabby<br>2 year old<br>Spayed Female<br>My name is Starburst, and I arrived at the Shelter as a stray back in June of 2010.  I'm just a little shy but soon enjoy being with people.  Stop by the Shelter and say high; I would love to make your acquaintance.",
"LADY<br>Under 1 year<br>Tortoiseshell<br>Spayed Female",
"BINKY<br>Under 1 year<br>Tabby<br>Neutered Male<br>Hi there. I’m one of the triplets—Binky, Blinky and Blossom. We come from the same home where there were too many animals. We’re still kittens (under one year old), so we’re very curious and would love to snoop through our new home. We’ve been together all our lives, so if you’re looking for a terrific trio, we’re it!  But if you want to adopt one of us, that’s O.K. too. We’re terribly sweet and playful and we get along nicely with other kitties.",
"WILMA<br>1 year old<br>Domestic Long Hair<br>Spayed Female<br>I’m a gorgeous long hair black kitty and am about one year old.  I’ve got a good personality and I like living with another cat.  I’ve got great hair and like to be brushed.  I’m very friendly and will rub against you until you pet me.<br>VISIT ME AT PETSMART IN SEDONA",
"POOH BEAR<br>6 year old<br>Domestic Short Hair<br>Neutered Male<br>Just like Winnie the Pooh, I’m an easy-going and loving fellow. I’m about 6 years old, so I’ve been around the block once or twice. I’m a little shy, but a real sweetie pie! I’ve got great black and white fur, and I like having someone brush me. How about coming for a visit? Are you out there, Christopher Robin?",
"I'VE BEEN ADOPTED!!!<br>TIPPY<br>2 year old<br>Dilute Calico<br>Spayed Female<br>I’m a 2-year- old dilute Calico. I’m very friendly and like to have my belly rubbed. I’ll definitely purr for you if you rub my ears and scratch my neck. And I love to play, particularly with lasers and shadows. So you don’t have to do a lot, just shine that old laser and I’ll run back and forth chasing it. I have lived with other cats, so that’s not a problem. Can I be your little girl?",
"SOCKS<br>6 year old<br>Domestic Short Hair<br>Spayed Female<br>I’m a handsome 6-year-old who is used to being around people and other cats. I’ve got great gunmetal grey and white fur and I love having someone rub my head and scratch my neck. Right now I’m hanging out with Callie, but we’re flexible and just want to go back to a home where someone wants us.  Because I’m new to the shelter, I’m a little shy. But come for a visit and I’ll learn to love you ….if you love me too!",
"FIFI<br>8 year old (senior pet adoption rate)<br>Maine Coon<br>Spayed Female<br>Fifi is both affectionate and playful.  She will love to sit in your lap.  She prefers to be around people and doesn't like being left alone for long periods of time.  She is FIV negative.",
"SEBASTIAN<br>2 year old<br>Tabby<br>Neutered Male<br>Sebastian has lived with other cats.  He likes to rub against your legs or climb up next to you if you come visit him in the big room.  He's beautifully striped, but has speckled paws.",
"WINIE<br>11 year old (senior pet adoption rate)<br>Tabby/Domestic Medium Hair<br>Spayed Female<br>Winie came in as a stray, but it turns out she is a total love.  All she wants to do is climb on your lap and be petted.  She might alternate between laps if there is another one in the room, but you can be sure that she will be coming back for more!",
"BABY DOLL<br>2 year old<br>Tortoiseshell<br>Spayed Female",
"PENELOPE<br>1 year old<br>Domestic Long Hair<br>Spayed Female",
"FELONY<br>1 year old<br>Domestic Short Hair<br>Neutered Male<br>Felony has lived with other cats, dogs and kids.  She is gentle, friendly and playful",
"COURTNEY<br>2 year old<br>Domestic Long Hair<br>Spayed Female",
"SATIN<br>4 year old<br>Domestic Long Hair<br>Spayed Female<br>My foster mom named me that because my coat feels like satin. I came to the shelter with my three babies. My foster mom took us home so I could raise my babies in a quiet, home environment. They are grown now and it is my turn to find a home. I am very sweet and love laps. I purr a lot and would really love to have my very own home. I get along very well with other cats since my foster home had lots of other cats and even dogs! Take a look at me and you will see how special I am.",
"GRACIE<br>5 year old<br>Domestic Long Hair<br>Spayed Female<br>I’m a really shy fluffy little black kitty who you may not notice at first as I keep real quiet and watch everyone else come and go at the shelter, but oh boy, when I get a chance for some hugs I really enjoy them. I was an indoor cat so I never got to know the big world out there and I would love to snuggle with you and let’s have a quiet life together. If you discover me, then I’ll really show you that I’m the best!",
"LUCKY<br>7 year old (senior pet adoption rate)<br>Tuxedo<br>Neutered Male<br>Lucky wasn't so lucky when he came to the Humane Society.  He had a lot of problems with his teeth.  But the vet removed quite a few and now he's a very happy boy who just wants to be petted and loved on.",
"SPANKY<br>6 year old<br>Domestic Medium Hair<br>Neutered Male<br>Spanky had lived with other cats.",
"JILLIAN<br>2 year old<br>Tabby<br>Spayed Female<br>Hello there, I’m lovely, soft and very friendly.  I was found wandering so I must have taken a wrong turn somewhere and now I’m living at PetSmart in Sedona. I’m living there so I can watch everyone in the store – its rather fun! Maybe I’ll get to choose someone.  Please come and visit me because I’m the sort of gal who just brings a smile to your face as I just love people and I always want to be held and to be oh so affectionate. I dream that my forever home is out there waiting for me so I don’t mind waiting a little while longer for you to find me, so we can be together!<br>VISIT ME AT PETSMART IN SEDONA",
"BECCA<br>1 year old<br>Silver Tabby<br>Spayed Female<br>Becca is my name, and playing is my game. My brother Bradley and I always have a great time together. I like to be held and rubbed and enjoy my time with humans. I have a very sweet personality and will bring much joy to your life. If you have room for two, please consider my brother as well. We’ve been together all of our lives and keep each other company.",
"BRADLEY<br>1 year old<br>Silver Tabby<br>Neutered Male<br>I’m a bit shy, but my true personality comes out when I play with my sister, Becca. We get along famously and would really love to stay together, if you have the room. And if you’re not at home during the day or go on short trips, we keep each other company. We are looking for a great life with you and will give you many hours of smiles.",
"SODA<br>2 year old<br>Domestic Short Hair<br>Spayed Female",
"MINNIE<br>Under 1 year<br>Domestic Short Hair<br>Spayed Female<br>VISIT ME AT PETSMART IN SEDONA",
"WEDNESDAY<br>Under 1 year<br>Domestic Short Hair<br>Spayed Female<br>VISIT ME AT PETSMART IN SEDONA");
var dPic = new Array(
"dog02709","dog02819","dog02910","dog02932","dog02998","dog03004",
"dog03089","dog03096","dog03118","dog03126","dog03152","dog03162",
"dog03186","dog03187","dog03209","dog03210","dog03219","dog03223",
"dog03224","dog03229","dog03230","dog03231","dog03232","dog03257",
"dog03258");
var dDsc = new Array(
"BABBS<br>3 year old<br>Australian Shepherd mix<br>Spayed Female<br>Babbs found herself in the Shelter after a concerned citizen found her roaming the streets.  She enjoys her time with people and has a sweet disposition.  Babbs gets on well with cats and non-alpha dogs.<br>IN A FOSTER HOME, PLEASE CALL FIRST",
"ROCKY<br>6 year old<br>German Shepherd Mix<br>Neutered Male<br>IN A FOSTER HOME, PLEASE CALL FIRST<br>Rocky is a large dog with a large smile.  He needs somone who understands how to handle a large dog, with a gentle touch.  Rocky needs to be the only dog in a home.",
"SANDERS<br>2 year old<br>Labrador Retriever mix<br>Neutered Male<br>Sanders needs to be more of an Urban Dog rather than a ranch dog as he does not understand that chickens aren't toys.  He's sweet and loving and enjoys being with people.  He will make a great walking partner.",
"KAIN<br>3 year old<br>Terrier Mix<br>Neutered Male<br>I am a handsome fella. Check out my freckles! I mostly love to go on walks, but sometimes I like to go straight to the kiddie pool instead, and have a good splash, and tear around the yard playing.  I have lovely golden eyes, that you can’t resist.  I like most other dogs. After a romp, I am a great couch potato.",
"RUBIX<br>3 year old<br>Shar Pei Mix<br>Neutered Male<br>Rubix came to the Shelter as a stray in March of 2011.  He has always been friendly and playful, but could use some positive training and one-on-one with an owner.  Of course, the good looks come free with Rubix.",
"VANILLE<br>2 year old<br>Lab / Husky Mix<br>Neutered Male<br>I am a charter member of the HSS Drill Team, simply because I am the smartest dog at the shelter.  I wowed everyone at my first training class, and I continue to do so.  I love to go on walks, and love to sniff around.  I also love the kiddie pool.",
"MAE<br>2 year old<br>Lab / Heeler Mix<br>Spayed Female<br>Momma Mae, as she's known at the shelter, was found on a hiking trail with 7 puppies.  They've all gone on to their forever homes and now momma Mae is looking for one of her own.",
"BAXTER<br>2 year old<br>Rottweiler Mix<br>Neutered Male<br>Does best as an only dog",
"CALYPSO<br>2 year old<br>Staffordshire Terrier Mix<br>Spayed Female",
"Hip<br>Over 3 years old<br>Neutered Male",
"Leroy<br>1 year old<br>Hound Mix<br>Neutered Male<br>Leroy lost his leg after he was hit by a car.  But since the surgery, he acts as if he never had a 4th leg or even needs a 4th leg!  He keeps up with his pals all the same!",
"MAKENZIE<br>2 year old<br>Rottweiler Mix<br>Spayed Female",
"Tide<br>Staffordshire Terrier mix<br>Under 1 year<br>Neutered Male",
"Tiger<br>Staffordshire Terrier mix<br>2 year old<br>Neutered Male",
"BUSTER<br>7 year old (senior pet adoption rate)<br>Yorkshire Terrier mix<br>Neutered Male<br>Buster is high energy for his age.  He loves to play and is very well trained, including crate trained for night.  He's an alpha, so Buster would be best as an only dog.",
"DOJA<br>will be 2 years old in February<br>Labrador mix<br>Spayed Female<br>I am very friendly, and get on well with other dogs.  I like to play with them all.  I have it all – looks, personality and I have a lot of love to give.  I am pretty obedient, and smart too.  I learn quickly.  I love my treats, and will sit down quite firmly to let you know that I am asking you nicely for a biscuit.  I can be shy at first, just sometimes.",
"OLIVIA<br>Under 1 year<br>Staffordshire Terrier mix<br>Spayed Female<br>Olivia is a smaller girl who gets along with other dogs.",
"DICKSON<br>1 year old<br>Shepherd/Rottie mix<br>Neutered Male",
"GYPSY<br>6 year old<br>Rhodesian Ridgeback mix<br>Spayed Female<br>Has lived with cats and dogs, but would be better as the only dog.",
"HARLEY<br>3 year old<br>German Shepherd<br>Neutered Male",
"ANTHONY<br>Under 1 year<br>Staffordshire Terrier mix<br>Neutered male",
"VENUS(adopted), JETTA (adopted), TASHA (adopted), TEENA (adopted), TALIA (adopted), TERRA<br>Under 1 year<br>Border Collie mix<br>Spayed Females<br>Terra is the black puppy with the white on her muzzle.",
"ADOLFUS (Adopted), SPARTACUS<br>Under 1 year<br>Border Collie mix<br>Neutered Males<br>Spartacus is the Tan and White puppy on the left",
"I'VE BEEN ADOPTED!!<br>ZOLTAN<br>3 year old<br>Chihuahua mix<br>Neutered Male",
"YUKIO<br>3 year old<br>Chihuahua mix<br>Neutered Male");
//_update

var ascending=false; // true; 
var time_out= new Array(null,null);
var nCur =    new Array(-1,-1);
var sCur =    new Array();
var htm  =    new Array("dogs.htm#","cats.htm#");
var top_=     new Array();
var left_=    new Array();
var image=    new Array();
var pic=      new Array();
var anc=      new Array();

function newPicture(which) {
var nPic;
  if (ascending) {
    nCur[which]+=1;
    if (nCur[which]>=sCur[which].length) {nCur[which]=0;}
  } else {
    nCur[which]-=1;
    if (nCur[which]<0) {nCur[which]=sCur[which].length-1;}    
  }

  nPic=nCur[which];
  image[which].src=    pic[which][nPic].src;
  image[which].width=  pic[which][nPic].width/2;
  image[which].height= pic[which][nPic].height/2;
  anc[which].href=htm[which]+sCur[which][nPic];
}

function initPictures() {
  if (ascending) {
    nCur[0]=-1;          nCur[1]=-1;
  } else {
    nCur[0]=dPic.length; nCur[1]=cPic.length;
  }

  sCur[0]=dPic;  sCur[1]=cPic;
  top_[0]=0;     top_[1]=0;    top_[2]=0;
  left_[0]=5;    left_[2]=160; left_[1]=165; 
  image[0]= new Image();
  image[0]= document.images.img_0;
  image[1]= new Image();
  image[1]= document.images.img_1;
  anc[0]=   document.getElementById("anc_0");
  anc[1]=   document.getElementById("anc_1");  
  for (which=0; which<2; which++) {
    pic[which]=new Array();
    for (n=0; n<sCur[which].length; n++) {
       pic[which][n]=new Image();
       pic[which][n].src=sCur[which][n]+'.jpg';}
  }
}

function adjustDiv(which) {
  theDiv=document.getElementById("div_"+which);
  theDiv.style.top=  top_[which]+"px";
  theDiv.style.left= left_[which]+"px";
}

// ==================================== move two pictures =============
var htView=   150;
var moveInt = 30;

function movePicture(which) {
  if (top_[0]==0 && nCur[1]<0) { // first 0 has reached top, start 1
    time_out[1]=window.setTimeout("nextPicture(1)",moveInt); 
  }
  top_[which]-=1;
  adjustDiv(which);
  if ((top_[which]+image[which].height)<0) {
    time_out[which]=window.setTimeout("nextPicture("+which+")",moveInt); 
  } else {
    time_out[which]=window.setTimeout("movePicture("+which+")",moveInt); 
  }
}

function nextPicture(which) {
  newPicture(which);
  top_[which]=htView;
  adjustDiv(which);
  time_out[which]=window.setTimeout("movePicture("+which+")",moveInt); 
}

function startPicturesMoving() {
  initPictures();
  nextPicture(0);
}

// ==================================== fade two pictures =============
var fadeInt=50;
var holdInt=5000;
var start0=500;
var start1=3000;
var oIncr=new Array(0,0);
var opacity=new Array(0,0);

function setOpacity(which) { 
  image[which].style.opacity = opacity[which]/10; 
  image[which].style.filter = 'alpha(opacity=' + opacity[which]*10 + ')'; 
}

function fadePicture(which) {
  opacity[which]+=oIncr[which];
  setOpacity(which);
  if (opacity[which]>=10) {
    oIncr[which]=-1;
    time_out[which] = window.setTimeout("fadePicture("+which+")",holdInt); 
  } else if (opacity[which]<=0) {
    nextPicture_F(which);
  } else {
    time_out[which] = window.setTimeout("fadePicture("+which+")",fadeInt); 
  }
}

function nextPicture_F(which) {
  opacity[which]=0;
  oIncr[which]=1;
  setOpacity(which);
  newPicture(which);
  image[which].hspace= (150-image[which].width)/2;
  image[which].vspace= (150-image[which].height)/2;
  time_out[which]=window.setTimeout("fadePicture("+which+")",fadeInt); 
}

function startPicturesFading() {
  initPictures();
  adjustDiv(0);
  adjustDiv(1);
//  adjustDiv(2)
  div2=document.getElementById("div_2");
//  div2.innerHTML='Click<br />my picture<br />to see<br />who I am.';
  time_out[0]=window.setTimeout("nextPicture_F(0)",start0); 
  time_out[1]=window.setTimeout("nextPicture_F(1)",start1); 
}

