var ImageFolder = ""; //Folder name containing the images
var ImageFileNames = new Array(
'http://efmaefm.org/Bharat/p5.gif',
'http://www.efmaefm.org/Bharat/barca1.gif',
'http://www.efmaefm.org/Bharat/barca2.gif',
'http://www.efmaefm.org/Bharat/barca3.gif',
'http://www.efmaefm.org/Bharat/barca4.gif',

'http://efmaefm.org/Bharat/barca6.gif',
'http://efmaefm.org/Bharat/barca7.gif',
'http://efmaefm.org/Bharat/barca8.gif',
'http://efmaefm.org/Bharat/barca9.gif',
'http://efmaefm.org/Bharat/jdwinner.gif',
'http://efmaefm.org/Bharat/jdannounce.gif',
'http://efmaefm.org/Bharat/nysewinner.gif',
'http://efmaefm.org/Bharat/nyseannounce.gif',
'http://efmaefm.org/Bharat/barca10.gif',
'http://efmaefm.org/Bharat/barca11.gif',
'http://efmaefm.org/Bharat/banner_hamburg.gif',

'http://efmaefm.org/Bharat/ASB.gif',
'http://efmaefm.org/Bharat/eastern_financial.gif',
'http://efmaefm.org/Bharat/8th.gif',
'http://efmaefm.org/Bharat/wi_logo.gif',
'http://efmaefm.org/Bharat/durham_callforpaper.gif',
'http://efmaefm.org/Bharat/fed_reserve_boston.gif',
'http://efmaefm.org/Bharat/iafds_logo.gif',
'http://efmaefm.org/Bharat/governance_investment.gif',
'http://efmaefm.org/Bharat/world_confo.gif',
'http://efmaefm.org/Bharat/world_busres.gif',
'http://efmaefm.org/Bharat/world_confcare.gif',
'http://efmaefm.org/Bharat/nottingham_logo.gif',
'http://efmaefm.org/Bharat/cleveland_logo.gif',
'http://efmaefm.org/Bharat/ifab_logo.gif',
'http://efmaefm.org/Bharat/finance_under_logo.gif',
'http://efmaefm.org/Bharat/behav_finance.gif',
'http://efmaefm.org/Bharat/enter_finance.gif',
'http://efmaefm.org/Bharat/intl_logo.gif',
'http://efmaefm.org/Bharat/irmc1.gif',
'http://efmaefm.org/Bharat/wuppertal.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/2012-Barcelona/ecases2012.shtml',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2012-Barcelona/ecases2012.shtml',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2012-Barcelona/ecases2012.shtml',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2012-Barcelona/2011_WRDS_Winners.pdf',

'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2012-Barcelona/2011_LLang_Winners.pdf',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2012-Barcelona/lang2012.shtml',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2012-Barcelona/2011_GARP_Winners.pdf',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2012-Barcelona/Award Announcement2_GARP_Best_Risk_Management_Paper.shtml',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2012-Barcelona/2011_PhD_Doukas_Winners.pdf',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2012-Barcelona/JD2012.shtml',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2012-Barcelona/2011_NYEuro.pdf',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2012-Barcelona/NYEuro.shtml',

'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2012-Barcelona/ecases2012.shtml',
'http://www.efmaefm.org/0EFMAMEETINGS/EFMA%20ANNUAL%20MEETINGS/2012-Barcelona/ecases2012.shtml',
'http://www.efmaefm.org/0EFMSYMPOSIUM/Germany2012/efm_sympo2012.shtml',

'http://www.efmaefm.org/advertisments/ASB_australia.pdf',
'http://www.efmaefm.org/advertisments/EFA2012_call for papers.pdf',
'http://www.efmaefm.org/advertisments/Call_for_papers_paris_december_2011.pdf',
'http://www.efmaefm.org/advertisments/2nd_call_for_papers.pdf',
'http://www.efmaefm.org/advertisments/2011_Call_of_Papers-Durham_International_Conference_on_Chinese_Capital_Market.pdf',
'http://www.efmaefm.org/advertisments/macro_conference.pdf',
'http://www.efmaefm.org/advertisments/IAFDS Call for Papers vd Short.pdf',
'http://www.efmaefm.org/advertisments/CallforPapers_12th Workshop on Corporate Governance & Investment 2011.pdf',
'http://www.efmaefm.org/advertisments/1. NY CALL FOR PAPERS.pdf',
'http://www.efmaefm.org/advertisments/2. Canada CALL FOR PAPERS.pdf',
'http://www.efmaefm.org/advertisments/a.pdf',
'http://www.efmaefm.org/advertisments/Nottingham.pdf',
'http://www.efmaefm.org/advertisments/Call for Papers for the solvency resolution conferencefinal.pdf',
'http://www.efmaefm.org/advertisments/IFABS2011_CALL.pdf',
'http://www.efmaefm.org/advertisments/Finance_Down_Under_Conference_Advertisement.pdf',
'http://www.efmaefm.org/advertisments/Call.ABF.2011.Color.AdCopy.pdf',
'http://www.efmaefm.org/advertisments/Call_2011.AEF.AdCopy.pdf',
'http://www.efmaefm.org/advertisments/intl_business1.pdf',
'http://www.efmaefm.org/advertisments/IRMC_2011_-_Call_for_Papers_-_Vrije_Universiteit_Amsterdam_-_Netherland_-_New_Dimensions_in_Risk_Management_-_June_14-15_2011.pdf',
'http://www.efmaefm.org/advertisments/Call_for_Papers_2011-07-1_-_Wuppertal.pdf',


<!--'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();

