var profiles = new Array();
profiles[0] = getRandomNum();   
profiles[1] = getNewRand();
profiles[2] = getNewRand();
profiles[3] = getNewRand();
function getNewRand(){
    var newran = getRandomNum();
    if(newran == profiles[0] || newran == profiles[1] || newran == profiles[2]){
        return getNewRand();
    }
    else{
        return newran;
    }
}

function getRandomNum(){
    return Math.floor((Math.random()* hbProfiles.length))
}

function showProfile(prof){
    self.location.href = "/home/"+profpage+"/profiles#profile"+prof;
}

var display = new Array();
var index = 0;
for(var i =0; i < 4; i++){
    display[index++] = "<a href='"+homedir+profpage+hbProfiles[profiles[i]][1]+"'><img src='"+fifilesdir+"static/images/"+hbProfiles[profiles[i]][0]+"' alt='' width='53' height='53' border='0'></a>";
}
document.write(display.join(""));

//end of file
