
// picture display
which_image_loaded = 0;
NUMBER_OF_IMAGES = 21;

ImageNames = new Object();
ImageNames.length = NUMBER_OF_IMAGES - 1;


for (counter = 0; counter < NUMBER_OF_IMAGES; counter++){
    file_number = counter + 1;
    filename = ("photos/budgieman-" + file_number + ".jpg");
    ImageNames[counter] = filename;
}

function changeImage(direction) {
    which_image_loaded += direction;
    if (which_image_loaded < 0)
        which_image_loaded = NUMBER_OF_IMAGES - 1;
    if (which_image_loaded == NUMBER_OF_IMAGES)
        which_image_loaded = 0;
    if (document.images)
        document.myimage.src = ImageNames[which_image_loaded];
	}

// Initialise Picture Text
function InitialisePicText()
{
PicText = new Array(21);

// PicText[1] = "The Budgieman in action performing outside the Tate Modern near to the Millennium  Bridge.";//
PicText[1] = "The Budgieman keeps his budgies in a very big aviary in a purpose built building at his home. All the birds are carefully looked after. They are cleaned and fed regularly. There is even a special hospital aviary if one of them gets sick."
PicText[2] = "Children love to have their picture taken with the Budgieman's budgies with their dad whilst the mum takes the photo.";
PicText[3] = "John climbing the ladder towards the tightrope. John has recently been trained by Billy.";
PicText[4] = "Thomas, one of the most intelligent in the team can climb both up and down the ladder to the Budgieman's instructions. How often do you see a budgie climbing down a ladder?";
PicText[5] = "Mark is climbing up and down the metal grill practicing for the London 2012 Olympics.";
PicText[6] = "Budgies coming one by one out of the budgie dressing room getting ready to perform. This is their travelling cage and at home they live in a big aviary.";
PicText[7] = "Budgieman singing the Budgieman Song and telling them to go back to the main perch.";
PicText[8] = "Singing to John and getting him ready for the latter trick.";
PicText[9] = "John at the top of the ladder.";
PicText[10] = "John walking the tightrope to the command of the Budgieman. The audience always gasps at amazement of this trick.";
PicText[11] = "Budgieman introducing each of the budgies to the audience.";
PicText[12] = "Paul who does not hang about doing the tube trick.";
PicText[13] = "Pauline and Billy kissing to lyrics &quot;kiss kiss for the Budgieman.&quot;";
PicText[14] = "Buttercup, one of the girl budgies, was rescued by the Budgieman with a broken leg. She is now healed and happy performer. She likes kissing the boys, especially Thomas.";
PicText[15] = "Another picture of Mark, trying to break the world record for the budgerigar Olympics.";
PicText[16] = "John having a good look to see if there are enough people watching him before climbing the ladder.";
PicText[17] = "The Budgieman is an excellent children's entertainer. These children of the future are helping Paul doing tricks.";
PicText[18] = "The audience watch in amazement as the budgie performs the budgerigar Olympics in record time returning back to the other budgies.";
PicText[19] = "Budgies being well behaved whilst the Budgieman sings his songs. Hopefully the children will learn to behave as good as the budgies.";
PicText[20] = "Another picture of Paul jumping from the tube to the hangers and then flying back to the other budgies.";
PicText[21] = "All the budgies chirping and singing along to the Budgiemans Song.";
}

InitialisePicText();
var Npic = 1;
var Ppic = 1;

function NextPic()
{
Npic = (pic + 1)
document.write('<a href="photo-' + Npic + '.html">Next Photo<br><img src="photos/budgieman-' + Npic + '.jpg" border="0" width="100" alt="Next photo (' + Npic + ')"></a>');
}

function PreviousPic()
{
Ppic = (pic - 1)
document.write('<a href="photo-' + Ppic + '.html">Previous Photo<br><img src="photos/budgieman-' + Ppic + '.jpg" border="0" width="100" alt="Previous photo (' + Ppic + ')"></a>');
}

function DisplayPic()
{
document.write('<p align="center"><img src="photos/budgieman-' + pic + '.jpg" alt="Photo number ' + pic + '. ');
document.write(' &copy;John Pannell - www.budgieman.co.uk" style="border:3px solid #626262;"></p>');
}

function DisplayPicText() 
{
document.write(PicText[pic]);
}


function DisplayFanPic(fanpic)
{
document.write('<p align="center"><img src="photos/budgieman-fans-' + fanpic + '.jpg" alt="Photo number ' + pic + '. ');
document.write(' &copy;John Pannell - www.budgieman.co.uk" style="border:3px solid #626262;"></p>');
}