// Javascript written and created by // Felix Guerrero and Ludvik Herrera // © Copyright by Felix Guerrero, Ludvik Herrera and North Dakota State // University. All rights reserved, 1999. // You can copy the source but just keep the recognition to the programmers // Ideas are priceless, Say NO to piracy! //holds page title var page = document.title; // Holds the current list to generate the href location. var CurrentAddresses = null; // holds the number of the button last selected as well as the original img src for the object var lastbutton = new Object(); lastbutton.src = null lastbutton.image = null; // List of Links for each subsection & Default address var shv = new Array(6); shv[1] = "../shv/index.html"; shv[2] = "../shv/shv_subprofile.html"; shv[3] = "../shv/shv_edcal.html"; shv[4] = "../shv/shv_advertise.html"; var irg = new Array(4); //irg[2] = "https://www.kennedyinfo.com/cgi-bin/irzorder.pl?myurl=http://www.irzone.com/irguide.html&page=irguide"; irg[2] = "https://www.kennedyinfo.com/irzone/"; irg[3] = "/irguide.php"; irg[4] = "/toc.shtml"; //var irc = new Array(3); //irc[3] = "https://www.kennedyinfo.com/cgi-bin/irzorder.pl?myurl=http://www.irzone.com/ircomp/index.html&page=ircomp"; //irc[4] = "/irc/index.html"; var irn = new Array(3); irn[3] = "https://www.kennedyinfo.com/cgi-bin/irzorder.pl?myurl=http://www.irzone.com/irn/index.html&page=irn"; irn[4] = "/irn/index.html"; var abtki = new Array(2); abtki[4] = "/privacy.html"; var AllSections = new Array("",shv,irg,irn,abtki); // This variable defines the links for the main section buttons var MainSectionHref = new Array(4); MainSectionHref[1] = "/shv/"; MainSectionHref[2] = "/"; //MainSectionHref[3] = "/irc/"; MainSectionHref[3] = "/irn/"; MainSectionHref[4] = "/"; MainSectionHref[5] = "/"; x = 1; var tocimg = new Array(5); // Loads all the images into the Cache if (page == "Investor Relations Zone") { for(x = 1; x < 6; x++){ tocimg[x] = new Image(); tocimg[x].src = "../../graphics/menu/toc" + x + ".gif"; } var title = "home"; } if (page == "Shareholder Value Magazine") { tocimg[1] = new Image(); tocimg[1].src = "../../graphics/menu/shv/index/toc" + 1 + ".gif"; TOCSHV(); var title = "shv"; } if (page == "Shareholder Value Magazine - Editorial Calendar") { tocimg[1] = new Image(); tocimg[1].src = "../../graphics/menu/shv/shv_edcal/toc" + 1 + ".gif"; TOCSHV(); var title = "shv"; } if (page == "Shareholder Value Magazine - Subscriber Profile") { tocimg[1] = new Image(); tocimg[1].src = "../../graphics/menu/shv/shv_subprofile/toc" + 1 + ".gif"; TOCSHV(); var title = "shv"; } if (page == "Shareholder Value Magazine - Advertising Opportunities") { tocimg[1] = new Image(); tocimg[1].src = "../../graphics/menu/shv/shv_advertise/toc" + 1 + ".gif"; TOCSHV(); var title = "shv"; } if (page == "Shareholder Value Magazine Articles") { tocimg[1] = new Image(); tocimg[1].src = "../../graphics/menu/shv/articles/toc" + 1 + ".gif"; TOCSHV(); var title = "shv"; } if (page == "Investor Relations Guide Online") { tocimg[2] = new Image(); tocimg[2].src = "../../graphics/menu/irg/toc" + 2 + ".gif"; TOCIRG(); var title = "irg"; } //if (page == "Investor Relations Compliance Report") { // tocimg[3] = new Image(); // tocimg[3].src = "../../graphics/menu/irc/index/toc" + 3 + ".gif"; // TOCIRC(); // var title = "irc"; //} //if (page == "Investor Relations Compliance Report Articles") { // tocimg[3] = new Image(); // tocimg[3].src = "../../graphics/menu/irc/articles/toc" + 3 + ".gif"; // TOCIRC(); // var title = "irc"; //} if (page == "Investor Relations Newsletter") { tocimg[3] = new Image(); tocimg[3].src = "../../graphics/menu/irn/index/toc" + 3 + ".gif"; TOCIRN(); var title = "irn"; } if (page == "Investor Relations Newsletter Articles") { tocimg[3] = new Image(); tocimg[3].src = "../../graphics/menu/irn/articles/toc" + 3 + ".gif"; TOCIRN(); var title = "irn"; } if (page == "About Kennedy Information") { tocimg[4] = new Image(); tocimg[4].src = "../../graphics/menu/aboutki/toc" + 4 + ".gif"; TOCABOUT(); var title = "about"; } if (page == "Kennedy Information Privacy Statement") { tocimg[4] = new Image(); tocimg[4].src = "../../graphics/menu/aboutki/privacy/toc" + 4 + ".gif"; TOCABOUT(); var title = "about"; } if (page == "Conference") { for(x = 1; x < 7; x++){ tocimg[x] = new Image(); tocimg[x].src = "../../graphics/menu/toc" + x + ".gif"; } var title = "conference"; } if (page == "Investor Relations Annual – 2004: Key Events Regulation, Trends") { for(x = 1; x < 7; x++){ tocimg[x] = new Image(); tocimg[x].src = "../../graphics/menu/toc" + x + ".gif"; } var title = "Investor Relations Annual – 2004: Key Events Regulation, Trends"; } if (page == "Investor Relations Report Article") { for(x = 1; x < 7; x++){ tocimg[x] = new Image(); tocimg[x].src = "../../graphics/menu/toc" + x + ".gif"; } var title = "Investor Relations Annual – 2004: Key Events Regulation, Trends"; } function TOCSHV(){ for(x = 2; x < 7; x++){ tocimg[x] = new Image(); tocimg[x].src = "../../graphics/menu/toc" + x + ".gif"; } } function TOCIRG(){ for(x = 1; x < 2; x++){ tocimg[x] = new Image(); tocimg[x].src = "../../graphics/menu/toc" + x + ".gif"; } for(x = 3; x < 7; x++){ tocimg[x] = new Image(); tocimg[x].src = "../../graphics/menu/toc" + x + ".gif"; } } //function TOCIRC(){ // for(x = 1; x < 3; x++){ // tocimg[x] = new Image(); // tocimg[x].src = "../../graphics/menu/toc" + x + ".gif"; // } // for(x = 4; x < 7; x++){ // tocimg[x] = new Image(); // tocimg[x].src = "../../graphics/menu/toc" + x + ".gif"; // } //} function TOCIRN(){ for(x = 1; x < 3; x++){ tocimg[x] = new Image(); tocimg[x].src = "../../graphics/menu/toc" + x + ".gif"; } for(x = 4; x < 6; x++){ tocimg[x] = new Image(); tocimg[x].src = "../../graphics/menu/toc" + x + ".gif"; } } function TOCABOUT(){ for(x = 1; x < 4; x++){ tocimg[x] = new Image(); tocimg[x].src = "../../graphics/menu/toc" + x + ".gif"; } for(x = 5; x < 6; x++){ tocimg[x] = new Image(); tocimg[x].src = "../../graphics/menu/toc" + x + ".gif"; } } // This the function that creates the link to which the page will reload... function CreateLink(LinkNum){ if((CurrentAddresses == null) && (title == "shv")){ // This addresses defined the links for the menu section... defaultLoc = new Array(6); defaultLoc[1] = "../shv/index.html"; defaultLoc[2] = "../shv/shv_subprofile.html"; defaultLoc[3] = "../shv/shv_edcal.html"; defaultLoc[4] = "../shv/shv_advertise.html"; CurrentAddresses = defaultLoc; } if((CurrentAddresses == null) && (title == "irg")){ // This addresses defined the links for the menu section... defaultLoc = new Array(4); //defaultLoc[2] = "https://www.kennedyinfo.com/cgi-bin/irzorder.pl?myurl=http://www.irzone.com/irguide.html&page=irguide"; defaultLoc[2] = "https://www.kennedyinfo.com/irzone"; defaultLoc[3] = "/irguide.php"; defaultLoc[4] = "/toc.shtml"; CurrentAddresses = defaultLoc; } // if((CurrentAddresses == null) && (title == "irc")){ // // This addresses defined the links for the menu section... // defaultLoc = new Array(3); // defaultLoc[3] = "https://www.kennedyinfo.com/cgi-bin/irzorder.pl?myurl=http://www.irzone.com/ircomp/index.html&page=ircomp"; // defaultLoc[4] = "../irc/index.html"; // CurrentAddresses = defaultLoc; // } if((CurrentAddresses == null) && (title == "irn")){ // This addresses defined the links for the menu section... defaultLoc = new Array(3); defaultLoc[3] = "https://www.kennedyinfo.com/cgi-bin/irzorder.pl?myurl=http://www.irzone.com/irn/index.html&page=irn"; defaultLoc[4] = "/irn/index.html"; CurrentAddresses = defaultLoc; } if((CurrentAddresses == null) && (title == "home")){ // This addresses defined the links for the menu section... defaultLoc = new Array(5); defaultLoc[1] = "http://www.irzone.com"; defaultLoc[2] = "http://www.irzone.com"; defaultLoc[3] = "http://www.irzone.com"; defaultLoc[4] = "http://www.irzone.com"; //defaultLoc[5] = "http://www.irzone.com"; //defaultLoc[6] = "http://www.irzone.com"; CurrentAddresses = defaultLoc; } if((CurrentAddresses == null) && (title == "about")){ // This addresses defined the links for the menu section... defaultLoc = new Array(2); defaultLoc[4] = "/privacy.html";; CurrentAddresses = defaultLoc; } if((CurrentAddresses == null) && (title == "conference")){ // This addresses defined the links for the menu section... defaultLoc = new Array(5); defaultLoc[1] = "http://www.irzone.com"; defaultLoc[2] = "http://www.irzone.com"; defaultLoc[3] = "http://www.irzone.com"; defaultLoc[4] = "http://www.irzone.com"; //defaultLoc[5] = "http://www.irzone.com"; //defaultLoc[6] = "http://www.irzone.com"; CurrentAddresses = defaultLoc; } window.location = CurrentAddresses[LinkNum]; //alert("Current Link = " + LinkNum + " the value " + CurrentAddresses[LinkNum]); // This is the information for the redirect // window.location = CurrentAddresses[LinkNum]; } function tocSwapper(TocNumber,overImg){ //Remember that the order is: 1:shv,2:irg,3:irn,4:abtki,5:home // Resets the last button in which the mouse was over... // only if the user has passed the mouse over any of the other buttons... if(lastbutton.image != null){ document.images[lastbutton.image].src = lastbutton.src; } CurrentAddresses = AllSections[TocNumber]; //document.write (CurrentAddresses) //Updates the table of contents... //tbg- this is for the left hand changing gifs document.toc.src = tocimg[TocNumber].src; // document.display.src = "../graphics/irzone/menu/d." + overImg + ".gif"; lastbutton.image = overImg; lastbutton.src = document.images[overImg].src document.images[overImg].src = "../../graphics/menu/" + overImg + "_hot.gif"; // Updates the value for the link that the display will have when the mouseover in the main buttons occurs MainSectionHref[0] = MainSectionHref[TocNumber]; } // Specify the name of the images for the section buttons // Loads the images for the menu // as well as for the buttons function LoadOver(what){ testing = new Image(); testing.src = "../../graphics/menu/" + what + "_hot.gif"; } //testing2 = new Image(); //testing2.src = "/ndsu/gif/images2000/d." + what + ".gif";