function diLocate(obj){
	dom=document.getElementById;
	ie=document.all;

	if(dom){
		return document.getElementById(obj);
	}else if(ie){
		return document.all[obj];
	}else{
		alert("js-error: No object"+obj+" found");
		return 0;
	}
}

//max_images == <number of images>-1
max_images=0

ind=Math.round(Math.random()*max_images);

diLocate("diTopbg").style.backgroundImage="url(/i/top/topbg" + ind + ".gif)";
diLocate("diTitle").src="/i/top/title" + ind + ".gif";
diLocate("diSearchFillet").src="/i/top/search_fillet" + ind + ".gif";

