//Temple Special Scripts
//User defined variables - change these variables to alter the behaviour of the script
var ImageFolder2= "../photogallery/ReligiousPlaces/TemplesThumbnails"; //Folder name containing the images
var ImageFileNames2 = new Array('omkareshwar1.jpg','omkareshwar2.jpg','changdev-temple.jpg','omkareshwar-temple.jpg','panchamukhi.jpg','munjoba-highway.jpg','padmalaya-temple.jpg','changdev-rishi.jpg','omkreshwar-mandir-lighting.jpg','Inner-view-of-UmaleTemple.jpg','changdev-temple.jpg','jai-bholenath.jpg','jai-shani-dev.jpg','makkhan-hanuman1.jpg','makkhan-hanuman2.jpg','muktabai-mehune.jpg','mukainagar.jpg','muktaibai-temple-mehune.jpg','new-shani-temple.jpg','new-shani-temple2.jpg','panchamukhi-hanuman.jpg','umale-mahadev-shiv-temple3.jpg','hot-water-fountain.jpg','hotwater-breeze.jpg','unapdev-hot-water-fountain.jpg','unapdev-newly-built-tank.jpg','unapdev-temple.jpg','manudevi.jpg','shivlinga-at-panchmukhi-man.jpg','vyankatesh-temple-jalgaon.jpg','vyankatesh-temple-jalgaon2.jpg','ramdev-baba-temple-jalgaon.jpg','jain-mandir-gujrathi-galli.jpg','jain-mandiromkareshwar.jpg','jainmandir-neartower.jpg','devimata.jpg','church.jpg'); //List of images to use
var ImageURLs2 = new Array('../photogallery/ReligiousPlaces/temples/omkareshwar1.jpg','../photogallery/ReligiousPlaces/temples/omkareshwar2.jpg','../photogallery/ReligiousPlaces/temples/changdev.jpg','../photogallery/ReligiousPlaces/temples/Omkareshwar-temple,-jalgaon.jpg','../photogallery/ReligiousPlaces/temples/Panchmukhi.jpg','../photogallery/ReligiousPlaces/temples/munjoba-temple-on-NH6.jpg','../photogallery/ReligiousPlaces/temples/padmalaya-temple.jpg','../photogallery/ReligiousPlaces/temples/changdev-rishi.jpg','../photogallery/ReligiousPlaces/temples/Omkreshwar-Mandir-lighting-.jpg','../photogallery/ReligiousPlaces/temples/Inner-viewOf UmaleShiv-Mandir.jpg','../photogallery/ReligiousPlaces/temples/changdev-temple.jpg','../photogallery/ReligiousPlaces/temples/jai-bholenath.jpg','../photogallery/ReligiousPlaces/temples/jai-shani-dev.jpg','../photogallery/ReligiousPlaces/temples/makkhan-hanuman1.jpg','../photogallery/ReligiousPlaces/temples/makkhan-hanuman2.jpg','../photogallery/ReligiousPlaces/temples/muktabai-mehune.jpg','../photogallery/ReligiousPlaces/temples/muktainagar.jpg','../photogallery/ReligiousPlaces/temples/muktaibai-temple-mehune.jpg','../photogallery/ReligiousPlaces/temples/new-shani-temple.jpg','../photogallery/ReligiousPlaces/temples/new-shani-temple2.jpg','../photogallery/ReligiousPlaces/temples/panchmukhi-hanuman.jpg','../photogallery/ReligiousPlaces/temples/umale mahadev shiv temple 3.jpg','../photogallery/ReligiousPlaces/ReligiousPlaces/temples/hot-water-fountain.jpg','../photogallery/ReligiousPlaces/temples/hotwater-breeze.jpg','../photogallery/ReligiousPlaces/temples//unapdev-hot-water-fountain.jpg','../photogallery/ReligiousPlaces/temples/unapdev-newly-built-tank.jpg','../photogallery/ReligiousPlaces/temples/unapdev-temple.jpg','../photogallery/ReligiousPlaces/temples/manudevi.jpg','../photogallery/ReligiousPlaces/temples/shivlinga-at-panchmukhi-mah.jpg','../photogallery/ReligiousPlaces/temples/vyankatesh-temple-jalgaon.jpg','../photogallery/ReligiousPlaces/temples/vyankatesh-temple-jalgaon-2.jpg','../photogallery/ReligiousPlaces/temples/ramdev-baba-temple-jalgaon.jpg','../photogallery/ReligiousPlaces/temples/jain-mandir---gujrathi-gall.jpg','../photogallery/ReligiousPlaces/temples/jain-mandir---omkareshwar.jpg','../photogallery/ReligiousPlaces/temples/jainmandir---near-tower.jpg','../photogallery/ReligiousPlaces/temples/devi-mata.jpg','../photogallery/ReligiousPlaces/temples/church.jpg'); //List of hyperlinks associated with the list of images
var DefaultURL2 = 'omkareshwar1.jpg'; //Default hyperlink for the Banner Ad
var DisplayInterval2 = 5; //Number of seconds to wait before the next image is displayed
var TargetFrame2 = "blank"; //Name of the frame to open the hyperlink into

//Internal variables (do not change these unless you know what you are doing)
var IsValidBrowser2 = false;
var BannerAdCode2 = 0;
var BannerAdImages2 = new Array(NumberOfImages2);
var DisplayInterval2 = DisplayInterval2 * 1000;
var NumberOfImages2= ImageFileNames2.length;

//A dd a trailing forward slash to the ImageFolder variable if it does not already have one
if (ImageFolder2.substr(ImageFolder2.length - 1, ImageFolder2.length) != "/" && ImageFolder2 != "") { ImageFolder2 += "/";
}

if (TargetFrame2 == '') {
var FramesObject = null;
} else {
var FramesObject = eval('parent.' + TargetFrame2);
}

//Function runs when this page has been loaded and does the following:
//1. Determine the browser name and version
// (since the script will only work on Netscape 3+ and Internet Explorer 4+).
//2. Start the timer object that will periodically change the image displayed
// by the Banner Ad.
//3. Preload the images used by the Banner Ad rotator script
function InitialiseBannerAdRotator3() {

//Determine the browser name and version
//The script will only work on Netscape 3+ and Internet Explorer 4+
var BrowserType= navigator.appName;
var BrowserVersion = parseInt(navigator.appVersion);

if (BrowserType == "Netscape" && (BrowserVersion >= 3)) {
IsValidBrowser2 = true;
}

if (BrowserType == "Microsoft Internet Explorer" && (BrowserVersion >= 4)) {
IsValidBrowser2 = true;
}

if (IsValidBrowser2) {
TimerObject = setTimeout("ChangeImage2()", DisplayInterval2);
BannerAdCode2 = 0;

for (i = 0; i < NumberOfImages2; i++) {BannerAdImages2[i] = new Image();BannerAdImages2[i].src = ' ' + ImageFolder2 + ImageFileNames2[i];
}

}

}

//Function to change the src of the Banner Ad image
function ChangeImage2() {

if (IsValidBrowser2) {
BannerAdCode2 = BannerAdCode2 + 1;

if (BannerAdCode2 == NumberOfImages2) {
BannerAdCode2 = 0;
}

window.document.bannerad2.src =BannerAdImages2[BannerAdCode2].src;
TimerObject = setTimeout("ChangeImage2()", DisplayInterval2);
}
}

//Function to redirect the browser window/frame to a new location,
//depending on which image is currently being displayed by the Banner Ad.
//If Banner Ad is being displayed on an old browser then the DefaultURL2 is displayed
function ChangePage2() {

if (IsValidBrowser2) {

if (TargetFrame2 != '' && (FramesObject)) {
FramesObject.location.href = ImageURLs2[BannerAdCode2];
} else {
document.location = ImageURLs2[BannerAdCode2];
}

} else if (!IsValidBrowser2) {
document.location = DefaultURL2;
}

}
// -->
