var ImageFolder = ""; //Folder name containing the images
var ImageFileNames = new Array(
'http://efmaefm.org/Bharat/p5.gif',
'http://www.efmaefm.org/Bharat/minho1.gif',
'http://www.efmaefm.org/Bharat/minho2.gif',
'http://www.efmaefm.org/Bharat/minho3.gif',
'http://www.efmaefm.org/Bharat/minho4.gif',
'http://efmaefm.org/Bharat/minho5.gif',
'http://efmaefm.org/Bharat/minho6.jpg',
'http://efmaefm.org/Bharat/minho7.gif',
'http://efmaefm.org/Bharat/minho8.jpg',
'http://efmaefm.org/Bharat/minho9.jpg',
'http://efmaefm.org/Bharat/jdwinner.gif',
'http://efmaefm.org/Bharat/jdannounce.gif',
'http://efmaefm.org/Bharat/minho10.gif',
'http://efmaefm.org/Bharat/minho11.gif',
'http://efmaefm.org/Bharat/banner_toronto.jpg',
'http://efmaefm.org/Bharat/banner_renmin.jpg',
'http://efmaefm.org/Bharat/ahib.gif',
'http://efmaefm.org/Bharat/8th.gif',
'http://efmaefm.org/Bharat/corporate.gif',
'http://efmaefm.org/Bharat/sse.gif',
'http://efmaefm.org/Bharat/23rdaust.gif',
'http://efmaefm.org/Bharat/diw.gif',
'http://efmaefm.org/Bharat/gta.gif',
'http://efmaefm.org/Bharat/cbs.gif',

'http://efmaefm.org/Bharat/3rder.gif',

'http://efmaefm.org/Bharat/paul.gif',



'http://efmaefm.org/Bharat/Private-Pesnions_Jane_Hamil.gif',
<!--'http://efmaefm.org/Bharat/conf2.gif',
<!--'http://efmaefm.org/Bharat/efma20072.gif',
'http://www.efmaefm.org/Bharat/p1.gif' 

 ); //List of images to use
	
var ImageURLs = new Array(
'http://www.efmaefm.org/announcments.shtml#events',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2011-Braga/ecases2011.shtml',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2011-Braga/ecases2011.shtml',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2011-Braga/ecases2011.shtml',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2011-Braga/2010_WRDS_Winners.pdf',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2011-Braga/wrds2011.shtml',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2011-Braga/2010_LLang_Winners.pdf',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2011-Braga/lang2011.shtml',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2011-Braga/2010_GARP_Winners.pdf',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2011-Braga/GARP AWARD2011.shtml',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2011-Braga/2010_PhD_Doukas_Winners.pdf',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2011-Braga/JD2011.shtml',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2011-Braga/ecases2011.shtml',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2011-Braga/ecases2011.shtml',
'http://www.efmaefm.org/0EFMSYMPOSIUM/Toronto-2011/efm_sympo2011.shtml',
'http://www.efmaefm.org/0EFMSYMPOSIUM/Renmin-2011/efm_sympo2011.shtml',
'http://www.efmaefm.org/advertisments/HAWAII.pdf',
'http://www.efmaefm.org/advertisments/Call_for_papers_paris_december_2010.pdf',
'http://www.corporatefinanceexchange.co.uk/Event.aspx?id=287380&utm_campa',
'http://www.sharedservicesexchange.co.uk/Event.aspx?id=263014&utm_campaig',
'http://www.efmaefm.org/advertisments/Call_for_papers_22_july.pdf',
'http://www.efmaefm.org/advertisments/DIW-Conf-CfP-2011-August10.pdf',
'http://www.efmaefm.org/advertisments/GTA Advertisement-2010.pdf',
'http://www.efmaefm.org/advertisments/2010_CAFS_announcement_final.pdf',

'http://www.efmaefm.org/advertisments/Call for Papers_LQ2010.pdf',

'http://www.efmaefm.org/advertisments/CallforPapersConference7December.pdf',



'http://www.us.oup.com/us/catalog/general/subject/Finance/Investments/?view=usa&ci=0199269505',
'http://www.elsevier.com/wps/find/bookdescription.cws_home/BS_IFR/description#description',
<!--'http://www.gfc2007.org/',
<!--'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2007-Vienna/ecases2007.shtml',
'http://www.efmaefm.org/0NEWS/announce.shtml'
); //List of hyperlinks associated with the list of images
var DefaultURL = 'http://www.efmaefm.org'; //Default hyperlink for the Banner Ad
var DisplayInterval = 8; //Number of seconds to wait before the next image is displayed
var TargetFrame = "_new"; //Name of the frame to open the hyperlink into

//Internal variables (do not change these unless you know what you are doing)
var IsValidBrowser = false;
var BannerAdCode = 0;
var BannerAdImages = new Array(NumberOfImages);
var DisplayInterval = DisplayInterval * 1000;
var NumberOfImages = ImageFileNames.length;

//A dd a trailing forward slash to the ImageFolder variable if it does not already have one
if (ImageFolder.substr(ImageFolder.length - 1, ImageFolder.length) != "/" && ImageFolder != "") { ImageFolder += "/";
}

if (TargetFrame == '') {
var FramesObject = null;
} else {
var FramesObject = eval('parent.' + TargetFrame);
}

//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 InitialiseBannerAdRotator() {

//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)) {
IsValidBrowser = true;
}

if (BrowserType == "Microsoft Internet Explorer" && (BrowserVersion >= 4)) {
IsValidBrowser = true;
}

if (IsValidBrowser) {
TimerObject = setTimeout("ChangeImage()", DisplayInterval);
BannerAdCode = 0;

for (i = 0; i < NumberOfImages; i++) {
BannerAdImages[i] = new Image();
BannerAdImages[i].src = ' ' + ImageFolder + ImageFileNames[i];
}
}
}

//Function to change the src of the Banner Ad image
function ChangeImage() {

if (IsValidBrowser) {
BannerAdCode = BannerAdCode + 1;

if (BannerAdCode == NumberOfImages) {
BannerAdCode = 0;
}

window.document.bannerad.src = BannerAdImages[BannerAdCode].src;
TimerObject = setTimeout("ChangeImage()", DisplayInterval);
}
}

//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 DefaultURL is displayed
function ChangePage() {

if (IsValidBrowser) {

if (TargetFrame != '' && (FramesObject)) {
FramesObject.location.href = ImageURLs[BannerAdCode];
} else {
document.location = ImageURLs[BannerAdCode];
}

} else if (!IsValidBrowser) {
document.location = DefaultURL;
}

}
InitialiseBannerAdRotator();
