$(document).ready(function(){

    // Set up our options for the slideshow...
    var myOptions = {
        noImages: 4,
        path: "imgs/main/jquery/",  // Relative path with trailing slash.
        captions: {
            1: '<b>Environmental Consulting</b> <div style="font-size:12px;margin-top:5px;">We combine the right people with the right technologies to meet our client&#39;s and project&#39;s unique needs.</div>',
            2: '<b>Oil &amp; Gas Exploration</b> <div style="font-size:12px;margin-top:5px;">Providing support with pre-drilling activities, well pad preparation, reclamation, waste disposal and environmental cleanup.</div>',
            3: '<b>Remediation Engineering</b> <div style="font-size:12px;margin-top:5px;">We offer a full-service approach from detection and delineation to recovery and treatment.</div>',
            4: '<b>Construction Services</b> <div style="font-size:12px;margin-top:5px;">Providing Cost Effective and Innovative Solutions</div>'
        },
        links: { // Each image number must be listed here, unless no links are required at all, then links option can be ommitted.
            1:"http://www.envirotrac.com/services/consulting.aspx",
            2:"http://www.envirotrac.com/services/oil-gas-exploration.aspx",
            3:"http://www.envirotrac.com/services/engineering.aspx",
            4:"http://www.envirotrac.com/services/construction.aspx"
        },
        linksOpen:'sameWindow',
        timerInterval: 10000, // 6500 = 6.5 seconds
	randomise: false // Start with random image?
    };

    // Woo! We have a jquery slideshow plugin!
    $('#features_container').easySlides(myOptions);

})
