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("doster", "<strong>Doster Construction Company</strong><br />For more than 40 years, Doster has developed a reputation for excellence in education, healthcare, industrial and multi-family construction. To build a strong foundation and meet its own deadlines, Doster hired Kinetic as its website general contractor. The new website launched on deadline and on budget, just like Doster's own construction projects.", "doster.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 />For Blue Cross Blue Shield of Alabama, some gaps add personality, but others can be risky. When Alabama’s largest health insurance provider needed a new site for its senior Medicare products, gaps were absolutely unacceptable. With a concrete deadline and regulatory approvals required before launch, Blue Cross turned to Kinetic.", "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("lakeshore", "<strong>Lakeshore Foundation</strong><br />The Lakeshore Foundation, an official U.S. Olympic and paralympic training center, had a website that lagged behind the field in terms of sophistication and appeal. When they decided to build a site indicative of a world-class training facility for top athletes, Lakeshore called us.", "lakeshore.html");
aryImageItems[9] = new ImageDescriptor("cvb", "<strong>Greater Birmingham Convention &amp; Visitors Bureau</strong><br />A Kinetic client for over twelve years, the Birmingham CVB site provides area-wide information to visitors and locals alike, and promotes the Magic City to meeting planners and organizers. And because tourists and conventioneers are people on the go, Kinetic developed a custom iPhone application to highlight top area attractions.", "bhamcvb.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);
    }