rnd.today=new Date();
rnd.seed=rnd.today.getTime();

function rnd() {
        rnd.seed = (rnd.seed*9301+49297) % 233280;
        return rnd.seed/(233280.0);
};

function rand(number) {
        return Math.ceil(rnd()*number);
};

function rand2(number) {
        return Math.ceil(rnd()*number);
};


// --------------------------------------------- new code  ------------------------------------

function ImageDescriptor(imagefilename, caption, url)
    {
     this.imagefilename = imagefilename;
    this.caption = caption;
    this.url = url;
    }

// nr of elements must be one greater than actual nr of images
var aryImageItems = new Array(10)

// aryImageItems[0] is unused
// physical names of image files are of form "imagenameX", where "X" is 1-5 (or whatever the upper limit is)
aryImageItems[1] = new ImageDescriptor("prp", "<strong>Priester's Pecans</strong><br /> Since 1935, Priester's Pecans has served up a taste of the South from its location in Fort Deposit, through its holiday catalogs and more recently, through its website. When Alabama's largest gourmet handmade candy company sought an Alabama-based e-commerce partner, well, we went nuts over the opportunity.", "priesters.html");
aryImageItems[2] = new ImageDescriptor("rmg", "<strong>Robins &amp; Morton</strong><br />For America's #1 healthcare general contractor, we blueprinted a website that highlighted the company's commitment to excellence and showcase its projects in a robust, dynamic portfolio. We broke ground with the WordPress platform and laid the cornerstone with a custom-built project plug-in.", "robins-morton.html");
aryImageItems[3] = new ImageDescriptor("ala", "<strong>Alabama Power</strong><br />One of the state's largest employers, Alabama Power has teamed up with Kinetic for multiple projects over the years -- interactive website development, consulting engagements, multimedia presentations and more. Our most recent work is for their economic development arm, providing data-rich resources for site visitors worldwide.", "alabamapower.html");
aryImageItems[4] = new ImageDescriptor("prs", "<strong>Progress Rail Services</strong><br />A subsidiary of Caterpillar, Progress Rail offers products and services that cover every aspect of the railroad business from tracks and signals to locomotives and railcars. When Progress Rail, a company with more than 100 facilities across the Americas needed website help, we caught the next train out of Birmingham (OK, we confess, we actually drove).", "progressrail.html");
aryImageItems[5] = new ImageDescriptor("bcbs", "<strong>Blue Cross Blue Shield of Alabama</strong><br />We have been fortunate over the years to work with Blue Cross and Blue Shield of Alabama on several projects. We’ve developed a new site for its senior Medicare products, we’ve teamed up to develop an interactive video testimonial kiosk, and we’ve redesigned a proprietary intranet system that assists physician offices with the insurance claims process.", "blue-cross.html");
aryImageItems[6] = new ImageDescriptor("sta", "<strong>Starnes Davis Florie</strong><br />After providing expert counsel during an initial planning phase, we developed a robust database-driven website, complete with a back-end custom content management system. We also delivered a unique careers website for the firm featuring testimonial videos delivering a compelling argument to 'Choose Starnes.'", "starnes-davis-florie.html");
aryImageItems[7] = new ImageDescriptor("stn", "<strong>Stanford University Medical Center</strong><br />In the heart of California's Silicon Valley, Stanford Hospital &amp; Clinics and Lucile Packard Children's Hospital contend with medical centers across the country for quality healthcare talent. As competition increased, the two leading hospitals looked beyond the valley to an Alabama firm to develop a site to address their staffing needs.", "stanford-medical.html");
aryImageItems[8] = new ImageDescriptor("roy", "<strong>Royal Cup Coffee</strong><br />If you drink coffee at a restaurant, hotel or other business, you've more than likely tasted the flavor of beans roasted by Royal Cup right here in Birmingham. You could say that our &quot;cup runneth over&quot; with ideas to improve Royal Cup's Office Coffee division's web presence. The site features bold rich tones and a lead form to request coffee service in your office.", "royal-cup.html");
aryImageItems[9] = new ImageDescriptor("usp", "<strong>United States Olympic Committee</strong><br />After developing projects for Birmingham’s Paralympic Sport Club, Lakeshore Foundation, we were excited to have the opportunity to work on a project for the Paralympic Division of the U.S. Olympic Committee. Athletes with disabilities across the country needed a central, searchable directory of Paralympic Sport Clubs and facilities and their programs.", "usp.html");
aryImageItems[10] = new ImageDescriptor("bal", "<strong>Alabama Ballet</strong><br />A longtime Kinetic client, Alabama Ballet presented us with a conceptual design challenge -- to translate the grace and strength and dynamic energy of dance in a two dimensional, largely static medium. With captivating images, elegant usability enhancements and striking streaming video, the new and improved Alabama Ballet website is en pointe.", "alabamaballet.html");
// a little test function...
function test()
    {
    alert(aryImageItems[6].index);
    alert(aryImageItems[6].caption);
    alert(aryImageItems[6].url);
    }
