/*
Script by FPMC at http://jsarchive.8m.com
Submitted to JavaScript Kit (http://javascriptkit.com)
For this and 400+ free scripts, visit http://javascriptkit.com
*/

//set image paths
src = [
"templates/new/main/images/developments/Dev1/Indoor pool.jpg",
"templates/new/main/images/developments/Dev1/Leisure.jpg",
"templates/new/main/images/developments/Dev1/Restaurant.jpg",
"templates/new/main/images/developments/Dev1/Exterior.JPG",
"templates/new/main/images/developments/Dev1/Pool.JPG",
"templates/new/main/images/developments/Dev1/Bridge.JPG",
"templates/new/main/images/developments/Dev1/Garden.JPG",
"templates/new/main/images/developments/Dev1/Garden 2.JPG",
"templates/new/main/images/developments/Dev1/Waterfall.JPG",
"templates/new/main/images/developments/Dev1/Golf.JPG"
]



//set duration for each image
duration = 4;

//Please do not edit below
ads=[]; ct=0;
function switchAd() {
var n=(ct+1)%src.length;
if (ads[n] && (ads[n].complete || ads[n].complete==null)) {
document["Ad_Image"].src = ads[ct=n].src;
}
ads[n=(ct+1)%src.length] = new Image;
ads[n].src = src[n];
setTimeout("switchAd()",duration*1000);
}
function doLink(){
location.href = url[ct];
} onload = function(){
if (document.images)
switchAd();
}
//-->
