
NewImg = new Array (
"images/IMGP1727 Singapore - Raffles in front of Victoria.jpg",
"images/IMGP1708 Singapore - Stamford in front of river.jpg",
"images/IMGP1702 Singapore - Boat Quay.jpg",
"images/IMGP1705 Singapore CBD at river.jpg",
"images/IMGP1663 offices.jpg",
"images/IMGP1649 Gateway detail.jpg",
"images/IMGP1648 Gateway.jpg",
"images/IMGP1647 Parkview Square detail.jpg",
"images/IMGP1653 Parkview Square.jpg",
"images/IMGP1154 Raffles Hotal from inside The Esplanade.jpg",
"images/IMGP0127 Singapore - The Esplanade.jpg",
"images/IMGP1641 Singapore - 2 Raffles hotels.jpg",
"images/IMGP1640 Singapore - 2 Raffles hotels close.jpg",
"images/IMGP1540 Raffles hotel.jpg",
"images/IMGP1399 Mohammed Sultan Road Singapore.jpg",
"images/IMGP1558 Singapore Shophouse facade.jpg",
"images/IMGP1573 Singapore Shophouse facade.jpg",
"images/IMGP1608 Singapore Seyd Alwi Rd.jpg",
"images/IMGP1611 Singapore Syed Alwi Rd - detail.jpg",
"images/IMGP1121 HDB public housing Singapore.jpg",
"images/IMGP1632 HDB housing.jpg",
"images/IMGP1630 Flat - Jln Sultan.jpg",
"images/IMGP1604 Malabar.jpg",
"images/IMGP1628 Malabar detail.jpg",
"images/IMGP1690 Chinese temple.jpg",
"images/IMGP1692 Chinese Temple detail.jpg",
"images/IMGP1673 Indian Temple.jpg",
"images/IMGP1682 Indian Temple detail.jpg",
"images/IMGP0013 Singapore Arts Museum (SAM).jpg",
"images/IMGP0017 Singapore Arts Museum (SAM).jpg"
);
var ImgNum = 0;
var ImgLength = NewImg.length - 1;

function MakeArray(size)
{
this.length = size;
for (var z = 1; z <= size; z++)
{
this[z] = 0;
}
return this;
}

function showRandom(field)
{
textArray = new MakeArray(30);
textArray[0] = "Modern Singapore - Started as a British trading post by Stamford Raffles, one of his statues stands along the Singapore river, then bustling with trade, now with nightlife amid the financial district.";
textArray[1] = "Modern Singapore - Started as a British trading post by Stamford Raffles, one of his statues stands along the Singapore river, then bustling with trade, now with nightlife amid the financial district.";
textArray[2] = "Modern Singapore - Started as a British trading post by Stamford Raffles, one of his statues stands along the Singapore river, then bustling with trade, now with nightlife amid the financial district.";
textArray[3] = "Modern Singapore - Started as a British trading post by Stamford Raffles, one of his statues stands along the Singapore river, then bustling with trade, now with nightlife amid the financial district.";
textArray[4] = "Modern Singapore - is often depicted with its Central Business District skyline, but look closer at the architecture and discover more in the parts than the whole.";
textArray[5] = "Modern Singapore - is often depicted with its Central Business District skyline, but look closer at the architecture and discover more in the parts than the whole - The Gateway";
textArray[6] = "Modern Singapore - is often depicted with its Central Business District skyline, but look closer at the architecture and discover more in the parts than the whole - The Gateway";
textArray[7] = "Modern Singapore - is often depicted with its Central Business District skyline, but look closer at the architecture and discover more in the parts than the whole - Parkview Square";
textArray[8] = "Modern Singapore - is often depicted with its Central Business District skyline, but look closer at the architecture and discover more in the parts than the whole - Parkview Square";
textArray[9] = "Modern Singapore - Modern Theatre. The Esplanade 'Theatres on the bay' is a modern showcase for Singapore.";
textArray[10] = "Modern Singapore - Modern Theatre. The Esplanade 'Theatres on the bay' is a modern showcase for Singapore.";
textArray[11] = "Heritage - Singapore tries to protect it's heritage and old and new stand side-by-side - Raffles City and Raffles Hotel.";
textArray[12] = "Heritage - Singapore tries to protect it's heritage and old and new stand side-by-side - Raffles City and Raffles Hotel.";
textArray[13] = "Heritage - Singapore tries to protect it's heritage and old and new stand side-by-side - Raffles City and Raffles Hotel.";
textArray[14] = "Heritage - Peranakan Chinese Shophouses can be found throughout Singapore. With veranda and shops at ground floor and living quarters above. From the early 20th century details were borrowed from Europe.";
textArray[15] = "Heritage - Peranakan Chinese Shophouses can be found throughout Singapore. With veranda and shops at ground floor and living quarters above. From the early 20th century details were borrowed from Europe.";
textArray[16] = "Heritage - Peranakan Chinese Shophouses can be found throughout Singapore. With veranda and shops at ground floor and living quarters above. From the early 20th century details were borrowed from Europe.";
textArray[17] = "Heritage - Peranakan Chinese Shophouses can be found throughout Singapore. With veranda and shops at ground floor and living quarters above. From the early 20th century details were borrowed from Europe.";
textArray[18] = "Heritage - Peranakan Chinese Shophouses can be found throughout Singapore. With veranda and shops at ground floor and living quarters above. From the early 20th century details were borrowed from Europe.";
textArray[19] = "Living - Singapore is densely populated and as a result many live in high-rise appartments. Government flats (HDB) or private. Not all of it pretty on the outside.";
textArray[20] = "Living - Singapore is densely populated and as a result many live in high-rise appartments. Government flats (HDB) or private. Not all of it pretty on the outside.";
textArray[21] = "Living - Singapore is densely populated and as a result many live in high-rise appartments. Government flats (HDB) or private. Not all of it pretty on the outside.";
textArray[22] = "Multi ... - ..ethnic , ..religious you can find all manner of churches, mosques and temples, each adding to Singapores flavour.";
textArray[23] = "Multi ... - ..ethnic , ..religious you can find all manner of churches, mosques and temples, each adding to Singapores flavour.";
textArray[24] = "Multi ... - ..ethnic , ..religious you can find all manner of churches, mosques and temples, each adding to Singapores flavour.";
textArray[25] = "Multi ... - ..ethnic , ..religious you can find all manner of churches, mosques and temples, each adding to Singapores flavour.";
textArray[26] = "Multi ... - ..ethnic , ..religious you can find all manner of churches, mosques and temples, each adding to Singapores flavour.";
textArray[27] = "Multi ... - ..ethnic , ..religious you can find all manner of churches, mosques and temples, each adding to Singapores flavour.";
textArray[28] = "Multi ... - ..ethnic , ..religious you can find all manner of churches, mosques and temples, each adding to Singapores flavour. Several of the old colonial Christian buildings have a new function - Singapore Art Museum (SAM)";
textArray[29] = "Multi ... - ..ethnic , ..religious you can find all manner of churches, mosques and temples, each adding to Singapores flavour. Several of the old colonial Christian buildings have a new function - Singapore Art Museum (SAM)";

field.value = textArray[ImgNum];
}

//Time delay between Slides in milliseconds
var delay = 2500;

var lock = false;
var run;
function chgImg(direction) {
if (document.images) {
ImgNum = ImgNum + direction;
if (ImgNum > ImgLength) {
ImgNum = 0;
}
if (ImgNum < 0) {
ImgNum = ImgLength;
}
document.slideshow.src = NewImg[ImgNum];
showRandom(document.test.randomOut);
   }
}
function auto() {
if (lock == true) {
lock = false;
window.clearInterval(run);
}
else if (lock == false) {
lock = true;
run = setInterval("chgImg(1)", delay);
   }
}



 ///////////////////Vertical CascadedDropdown Menu/////////////////
 //Date : 03/11/2003               						//
 //Version : 1.0        								//
 //Author Mr.J. Overbeek	                            //
 /////////////////////////////////////////////////////////
 // Modifications on this code is encouraged

