var rootPath = "" + document.location;
pos = rootPath.indexOf('books');
rootPath = rootPath.substring(0, pos);

coverIndex = 0;

cover = Array();

function changeCover()
{
	coverIndex = (coverIndex < cover.length-1) ? ++coverIndex : 0;
	document['theCover'].src=cover[coverIndex];
}
