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);
};

function rand3(number) {
        return Math.ceil(rnd()*number);
};

// --------------------------------------------- new code  ------------------------------------

function ImageDescriptor(div, imagefilename, title, text, url)
    {
	this.div = div;
    this.imagefilename = imagefilename;
    this.title = title;
    this.text = text;
	this.url = url;
    }

// nr of elements must be one greater than actual nr of images
var aryImageItems = new Array(5)

// 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("rotator-01", "rotator-01", "Practice Area Spotlight:  Mediation", "The firm's attorneys are available to serve as mediators and arbitrators or to provide consulting services on an hourly fee basis. Wallace, Jordan, Ratliff &amp; Brandt is also willing to establish retainer relationships under which the firm's attorneys provide dispute resolution services at reduced rates.<br><br> Mediations will be conducted under the Alabama Civil Court Mediation Rules, unless the parties agree otherwise.", "services.html");
aryImageItems[2] = new ImageDescriptor("rotator-02", "rotator-02", "Practice Area Spotlight:  Banking &amp; Finance", "The firm's banking attorneys advise banks, mortgage companies, and other financial institutions of all sizes, both within and outside the state of Alabama.<br><br> The firm also serves as local counsel for banks from other states. Lawyers in the group represent lenders and borrowers in financing transactions of all types, including: commercial mortgages, asset-based lending, tax credits for low income housing, and letter of credit transactions.", "services.html");
aryImageItems[3] = new ImageDescriptor("rotator-03", "rotator-03", "Practice Area Spotlight:  Construction Law", "The construction law practice group of Wallace Jordan handles a full range of legal issues related to all aspects of a construction project. The attorneys working in this area represent owners, developers, design professionals, contractors, subcontractors, and suppliers in all areas related to the construction industry. Our attorneys also provide general corporate, business, tax, and estate advice to businesses engaged in the construction industry.", "services.html");
aryImageItems[4] = new ImageDescriptor("rotator-04", "rotator-04", "Practice Area Spotlight:  Appellate", "Wallace, Jordan, Ratliff &amp; Brandt has an extensive appellate-litigation practice with experienced attorneys. Our attorneys have appeared in well over a hundred appellate proceedings.<br><br> These attorneys handle cases before both state and federal courts of appeals, including the United States Supreme Court, the United States Court of Appeals for the Eleventh Circuit, the Supreme Court of Alabama, and many more.", "services.html");


// nr of elements must be one greater than actual nr of images

function ImageDescriptorR(divR, imagefilenameR, titleR, textR, urlR)
    {
	this.divR = divR;
    this.imagefilenameR = imagefilenameR;
    this.titleR = titleR;
    this.textR = textR;
	this.urlR = urlR;
    }

var aryImageItemsR = new Array(5)

// aryImageItems[0] is unused
// physical names of image files are of form "imagenameX", where "X" is 1-5 (or whatever the upper limit is)
aryImageItemsR[1] = new ImageDescriptorR("rotator-r-01", "rotator-r-01", "Attorney Spotlight", "Dale Wallace's practice includes all aspects of civil litigation with primary emphasis in the areas of insurance and corporate defense and construction litigation...", "people-dale-wallace.html");
aryImageItemsR[2] = new ImageDescriptorR("rotator-r-02", "rotator-r-02", "Attorney Spotlight", "Bill Ratliff now focuses exclusively on alternative dispute resolution, both as a mediator and an arbitrator.", "people-william-ratliff.html");
aryImageItemsR[3] = new ImageDescriptorR("rotator-r-03", "rotator-r-03", "Attorney Spotlight", "Mike Brandt's practice encompasses most areas of commercial and corporate law. His concentration is in real estate acquisition and development...", "people-michael-brandt.html");
aryImageItemsR[4] = new ImageDescriptorR("rotator-r-04", "rotator-r-04", "Attorney Spotlight", "Bert Jordan has been a lawyer in Birmingham and Alabama since 1980, principally in litigation and appeals...", "people-albert-jordan.html");
