
if (document.images) 
{
   img1 = new Image();
   img2 = new Image();
   img3 = new Image();
   img4 = new Image();
   img5 = new Image();
   img6 = new Image();
   img7 = new Image();
   img1.src = "LanguageDifficulty/images/mainImgFeatured.jpg";
   img2.src = "images/homeIcon.gif"
   img3.src = "images/individIcon.gif"
   img4.src = "images/globeIcon.gif"
   img5.src = "images/pageShadow.jpg"
   img6.src = "images/grayLineLanguage.jpg"
   img7.src = "images/ajax-loader.gif"
}

 


function bodyOnLoadHome() {
getDate();
document.getElementById('blenddiv').className="rotateImgDivNoPic";
runSlideShow();
bodyOnLoadLanguageListFeaturedFront();
}
<!-- Begin
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 6000;
// Duration of crossfade (milliseconds)
var crossFadeDuration = 900;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below
var picID=0;
var picNum = 1;
var maxPics = 252;

while (picNum <= maxPics)
{
	Pic[picID] = 'images/rotateImg' + picNum + '.jpg';
	picID++;
	picNum++;
}

// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;

function runSlideShow() {
	
 var choose_one= get_random(maxPics);  
  choose_one--;
  
blendimage('blenddiv','blendimage', Pic[choose_one],crossFadeDuration);
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
//  End -->

function bodyOnLoadLanguageListFeaturedFront() {
	
var sampleNum = get_random(50);

var xmlDoc=loadXMLDoc("languageListSamples/languageListSample" + sampleNum + ".xml");
var x=xmlDoc.getElementsByTagName("option");

var numberToDisplay = 4;
var displayCounter = 0;
var location;
var title;
var featuredPicture;
var more;
var description;


while (displayCounter < numberToDisplay)
{
	
	
	location = xmlDoc.getElementsByTagName("location")[displayCounter].childNodes[0].nodeValue;
	location = location.replace("../", "");
	title = "<a class=\"sectionTitleFront\" href=\"" + location +"\" target=\"_top\">";
	title += xmlDoc.getElementsByTagName("option")[displayCounter].childNodes[0].nodeValue;
	title += "</a>";
	featuredPicture = "<img src=\"" + location;
	featuredPicture += "/images/mainImgFront.jpg\" height=\"88\" width=\"116\" hspace=\"10\" class=\"featuredPictureFront\" alt=\"";
	featuredPicture += xmlDoc.getElementsByTagName("option")[displayCounter].childNodes[0].nodeValue +"\"/>";
	more = "...<a href=\"" + location +"\" target=\"_top\">more</a>";
	more += "<a href=\"" + location +"\" target=\"_top\">";
	more += "<img src=\"images/more.gif\" alt=\"more\" align=\"top\" class=\"more\" hspace=\"5\"/></a>";
	description = xmlDoc.getElementsByTagName("description")[displayCounter].childNodes[0].nodeValue;
	document.getElementById('featuredLanguageTitle' + displayCounter).innerHTML = title;
	document.getElementById('featuredDescription' + displayCounter).innerHTML = featuredPicture + description;
	document.getElementById('more' + + displayCounter).innerHTML = more;
	displayCounter++;
}

}