$(document).ready(function () {
    var fliptext = new Array(3);
    for (i = 0; i < 3; i++) {
        fliptext[i] = new Array(3)
    }

    fliptext[0][0] = "/Uploads/MediaTypes/Stills/home_fliptext1.gif";
    fliptext[0][1] = "People aren't resumes.Organizations aren't just stepping stones. There are hopes and aspirations behind each resume, each placement. There are peole on both sides of the table. We know. We have known it for over 40 years. We are abc consultants - building careers, building organisations.";
    fliptext[1][0] = "/Uploads/MediaTypes/Stills/home_fliptext2.gif";
    fliptext[1][1] = "Search is finite, seeking is not. Search yields numbers, seeking helps you discover people and possibilities. Every success has merely been a promise to dream bigger things together. We have kept that promise. For over 40 years. We  are abc  consultants - building Careers, building Organisations.";
    fliptext[2][0] = "/Uploads/MediaTypes/Stills/home_fliptext3.gif";
    fliptext[2][1] = "A million results are useless unless you find the one that makes your search worthwhile. For us it not about how many but who and why. Whether you're looking for people or company, we can find you the One. We have been doing it for over 40 years. We are abc consultants - building careers, building organisations.";
    $("#linkonhomeset1").hide();
    $("#linkonhomeset2").hide();
    $("#linkonhomeset3").hide();
    random_num = (Math.floor((Math.random() * 3) + 1))
    if (random_num >= 1 && random_num <= 3) {
        var className = $('#hometopnavigation').attr('class');
        $("#hometopnavigation").removeClass(className).addClass('homeset' + random_num);
        $("#home_flipimage").attr("src", fliptext[random_num - 1][0]);
        $("#home_flipimage").attr("alt", fliptext[random_num - 1][1]);
        $("#home_flipimage").attr("title", fliptext[random_num - 1][1]);
    }
    else {
        var className = $('#hometopnavigation').attr('class');
        $("#hometopnavigation").removeClass(className).addClass('homeset1');
        $("#home_flipimage").attr("src", fliptext[0][0]);
        $("#home_flipimage").attr("alt", fliptext[0][1]);
        $("#home_flipimage").attr("title", fliptext[0][1]);
    }
});

    
