/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Mike Hudson :: http://www.afrozeus.com */

/*
To change the values in the setupLinks function below.
You will notice there are two arrays for each of Titles and
Links. Currently there are 3 items in each array, but you can easily
expand on that by adding to the array. For example, to add a 4th record,
you would simply include the following 2 lines at the end of setupLinks
function:

arrLinks[3] = "someURL.htm";
arrTitles[3] = "Some title";
*/
function setupLinks() {
    arrLinks[0] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#KONE";
    arrTitles[0] = "&#8220;KMI's ability to provide a complete solution within our budget and constrained timeline made KMI the perfect partner for us.&#8221;<br><p><p align=right>- Jamie Messerschmidt<br><b>KONE</b></p>";
    arrLinks[1] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#viarail";
    arrTitles[1] = "&#8220;The new [KMI] software suite will centralize and streamline the process for analyzing environmental, health and safety data.&#8221;<br><p><p align=right>- Jean Tierney<br><b>VIA Rail Canada</b></p>";
    arrLinks[2] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#amcol";
    arrTitles[2] = "&#8220;They helped us effectively meet the different requirements of EHS, IT and business.&#8221;<br><p><p align=right>- Kelvin Roth<br><b>Amcol International</b></p>";
    arrLinks[3] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#pandh";
    arrTitles[3] = "&#8220;...the most effective incident and safety audit system we found in the marketplace.&#8221;<br><p><p align=right>- Ted Leaman<br><b>P&amp;H Mining Equipment</b></p>";
    arrLinks[4] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#enerplus";
    arrTitles[4] = "&#8220;...no other vendor we looked at could match KMI&#8217;s usability.&#8221;<br><p><p align=right>- Kym Fawcett<br><b>Enerplus</b></p>";
    arrLinks[5] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#sims";
    arrTitles[5] = "&#8220;The KMI EHS Suite was selected based on its ability to meet critical business requirements.&#8221;<br><p><p align=right>- John Hayworth<br><b>Sims Metal Management</b></p>";
    arrLinks[6] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#barnes";
    arrTitles[6] = "&#8220;KMI&#8217;s software met every one of our key functional requirements and...is well designed and simple for our people to use.&#8221;<br><p><p align=right>- Kyle Pickford<br><b>The Barnes Group</b></p>";
    arrLinks[7] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#foxxe";
    arrTitles[7] = "&#8220;We selected KMI based on... their experience... their ease of use... and recommendations we received&#8221;<br><p><p align=right>- Clay Reavis<br><b>Foxxe Energy Services</b></p>";
    arrLinks[8] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#KONE";
    arrTitles[8] = "&#8220;The [KMI] system is flexible, easy for our employees to use and it just plain works, which has been crucial to the success of this project.&#8221;<br><p><p align=right>- Jamie Messerschmidt<br><b>KONE</b></p>";
    arrLinks[9] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#pandh";
    arrTitles[9] = "&#8220;This system is so intuitive and easy for our people to use.  It is an extremely effective tool for managing a successful global EHS program.&#8221;<br><p><p align=right>- Ted Leaman<br><b>P&amp;H Mining Equipment</b></p>";
    arrLinks[10] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#dresserrand";
    arrTitles[10] = "&#8220;[The KMI EHS Suite] will allow us to focus more on proactive safety and environmental stewardship initiatives&#8221;<br><p><p align=right>- Joe Megginson<br><b>Dresser-Rand</b></p>";
    arrLinks[11] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#ISS";
    arrTitles[11] = "&#8220;ISS understands the value this system can add to our business.&#8221;<br><p><p align=right>- Joseph Nazareth<br><b>ISS</b></p>";
    arrLinks[12] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#merichem";
    arrTitles[12] = "&#8220;Implementation of the KMI system will allow us to leverage our existing EHS management resources to take our performance to an even higher level.&#8221;<br><p><p align=right>- Patrick Hickey<br><b>Merichem Company</b></p>";
    arrLinks[13] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#enerplus";
    arrTitles[13] = "&#8220;KMI&#8217;s software stood out for a number of reasons. We felt their system had the best breadth and depth of functionality&#8221;<br><p><p align=right>- Kym Fawcett<br><b>Enerplus</b></p>";
    arrLinks[14] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#vicroads";
    arrTitles[14] = "&#8220;KMI&#8217;s ability to meet most of our environmental management requirements... and their experience... encouraged our choice in the KMI EHS Suite.&#8221;<br><p><p align=right>- Dr Helen Murphy<br><b>VicRoads</b></p>";
    arrLinks[15] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#foxxe";
    arrTitles[15] = "&#8220;Since going live, the feedback we have been getting from our field personnel is extremely positive.&#8221;<br><p><p align=right>- Clay Reavis<br><b>Foxxe Energy Services</b></p>";
    arrLinks[16] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#ellwood";
    arrTitles[16] = "&#8220;KMI&#8217;s ability to deliver exceptional functionality in an easy to understand format made the selection process easy.&#8221;<br><p><p align=right>- Ben Conaway<br><b>The Ellwood Group</b></p>";
    arrLinks[17] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#dresserrand";
    arrTitles[17] = "&#8220;[The KMI EHS Software Suite] will increase individual accountability and decrease the time our people have to spend on data management.&#8221;<br><p><p align=right>- Joe Megginson<br><b>Dresser-Rand</b></p>";
    arrLinks[18] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#vicroads";
    arrTitles[18] = "&#8220;The flexibility of KMI&#8217;s software will allow us to solve data challenges beyond core requirements.&#8221;<br><p><p align=right>- Dr Helen Murphy<br><b>VicRoads</b></p>";
    arrLinks[19] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#merichem";
    arrTitles[19] = "&#8220;[KMI EHS] software will enhance our ability to report, track, investigate, and correct existing and emerging hazards.&#8221;<br><p><p align=right>- Patrick Hickey<br><b>Merichem Company</b></p>";
    arrLinks[20] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#crescentpoint";
    arrTitles[20] = "&#8220;...we wanted a solution that would help support a best-in-class program as we continue to grow. During the evaluation process, KMI stood out.&#8221;<br><p><p align=right>- Cory Larson<br><b>Crescent Point Energy</b></p>";
    arrLinks[21] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#enerplus";
    arrTitles[21] = "&#8220;The [KMI] system is intuitive which we believe will ensure a successful rollout and long-term acceptance of the system&#8221;<br><p><p align=right>- Kym Fawcett<br><b>Enerplus</b></p>";
    arrLinks[22] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#viarail";
    arrTitles[22] = "&#8220;The KMI software suite gives us the enhanced functionality and flexibility we need to make the entire system more efficient and cost-effective.&#8221;<br><p><p align=right>- Jean Tierney<br><b>VIA Rail Canada</b></p>";
    arrLinks[23] = "http://www.kminnovations.com/about/kmi-ehs-software-testimonials.aspx#ISS";
    arrTitles[23] = "&#8220;[KMI EHS Software] is fully configurable, multilingual, web-based, and maybe most importantly, intuitive for end users.&#8221;<br><p><p align=right>- Joseph Nazareth<br><b>ISS</b></p>";

}




var m_iInterval;
var m_Height;
//window.onload = wl;
var iScroll = 0;

var arrLinks;
var arrTitles;

var arrCursor = 0;

var arrMax;
window.onload = wl;

function wl() {
    m_iInterval = setInterval(ontimer, 20);
    var base = document.getElementById("jump_base");

    m_Height = base.offsetHeight;

    var divi = parseInt(m_Height / 5);
    m_Height = divi * 5;

    var td1 = document.getElementById("td1");
    var td2 = document.getElementById("td2");
    var td3 = document.getElementById("td3");
    td1.height = m_Height - 5;
    td2.height = m_Height - 5;
    td3.height = m_Height - 5;

    arrLinks = new Array();
    arrTitles = new Array();

    setupLinks();
    arrMax = arrLinks.length - 1;
    setLink();
}
function setLink() {
    var ilink = document.getElementById("jump_link");
    ilink.innerHTML = arrTitles[arrCursor];
    ilink.href = arrLinks[arrCursor];
}
function ontimer() {
    var base = document.getElementById("jump_base");
    iScroll += 5;
    if (iScroll > (m_Height * 2)) {
        iScroll = 0;
        arrCursor++;
        if (arrCursor > arrMax)
            arrCursor = 0;
        setLink();
    }
    if (iScroll == m_Height) {
        pause();
        m_iInterval = setTimeout(resume, 7000);
    }
    base.scrollTop = iScroll;
}
function pause() {
    clearInterval(m_iInterval);
}
function resume() {
    m_iInterval = setInterval(ontimer, 10);
}

