document.write('<style type="text/css">@import url("/uktrainees/shared/navcloser.css");</style>');
function updateNav(pageID){
	if (document.getElementById && pageID){
		if (pageID.length==2){
			document.getElementById('nav2'+pageID).firstChild.className="active";
			pageID=pageID.slice(0,-1);
		}
		if (document.getElementById('nav2'+pageID)){
			document.getElementById('nav2'+pageID).style.display="block";
		}
		document.getElementById('nav1'+pageID).firstChild.className="active";
	}
}
var ic = 4;     // Number of alternative images
var illus = new Array(2*ic);  // Array to hold filenames
var alttext = new Array(2*ic); //Array to hold alt text
var linktext = new Array(2*ic); //Array to hold link URLs

illus[0] = "homelarge1_1";
illus[1] = "homelarge1_2";
illus[2] = "homelarge1_3";
illus[3] = "homelarge1_4";
illus[4] = "homelarge1_5";
illus[5] = "homelarge2_1";
illus[6] = "homelarge2_2";
illus[7] = "homelarge2_3";
illus[8] = "homelarge2_4";

alttext[5] = "Photograph of Farah Ispahani - Straight talking";
alttext[6] = "Photograph of Nicolai Goeke - Straight talking";
alttext[7] = "Photograph of Shahab Uddin - Straight talking";
alttext[8] = "Photograph of Chris Forsyth - Straight talking";

linktext[0] = "/uktrainees/aboutthefirm/";
linktext[1] = "/uktrainees/training/";
linktext[2] = "/rewardsandbenefits/";
linktext[3] = "/peopleandculture/";
linktext[4] = "/apply/";
linktext[5] = "/aboutthefirm/ourvalues.shtml";
linktext[6] = "/training/myexperience.shtml";
linktext[7] = "/peopleandculture/profile_ssafdar.shtml";
linktext[8] = "/peopleandculture/profile_suddin.shtml";
linktext[9] = "/applicationprocess/whatwelookfor.shtml";

function pickRandom(range)
{
    if (Math.random)
        return Math.round(Math.random() * (range-1));
    else
    {
        var now = new Date();
        return (now.getTime() / 1000) % range;
    }
}

