//Efocus Special Script
//User defined variables - change these variables to alter the behaviour of the script
var ImageFolder2= "efocus"; //Folder name containing the images
var ImageFileNames2 = new Array('girish-tea.jpg','sdseed.jpg','mobile%20sms%20messages.jpg','jjsbl.jpg','baheticollege.jpg','neweraseeds.jpg','nmuconfed.jpg','rajeshelectro.jpg','waghanna.jpg','gbextrusion.jpg','jtmpoly.jpg','bendalecollege.jpg','jalgaonicai.jpg','aryann.jpg','jtmcoef.jpg');
var ImageURLs2 = new Array('http://wwww.girishtea.com','http://www.sdseed.in','http://www.smscollection.com','http://www.jjsbl.com','http://www.kresinstitutes.com','http://www.neweraseeds.com','http://www.tnpnmuconfed.org','http://www.rajeshelectro.com','http://www.waghanna.com','http://www.gbextrusions.com','http://www.jtmpoly.ac.in','http://agdbmmjal.ac.in','http://jalgaonicai.org','http://www.aryann.in','http://www.jtmcoef.ac.in'); 
var DefaultURL2 = "http://www.girishtea.com"; //Default hyperlink for the Banner Ad
var DisplayInterval2 = 4; //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 InitialiseBannerAdRotator2() {

//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;
}

}
// -->

