Squirrel Finder pages

Help! I have this XML AS code (which is modified from Kirupa’s Squirrel Finder). I need a way to make it so that it only displays an “X” amount of items (xml entries) at once, with these two buttons that display the next “X” or previous “X” items.

EG. I have 5 items on display at once at any given time. When I press next, the next 5 items show and the previous are deleted, until I press previous again.

The code is as follows:

stop();
var item_spacing = 49; // how far menu items are spaced veritcally
function CreateMenu(menu_xml){

var items = menu_xml.firstChild.firstChild.childNodes;
for (var i=0; i<items.length; i++) {
var label = items*.firstChild;
var location = items*.childNodes[1];

		location_text = location.firstChild.nodeValue;
		
		var item_mc = menu_mc.attachMovie("menu_item","item"+item_count, item_count);
		item_mc._y = item_count * item_spacing;
		item_count++;

		item_mc.label.text = label.firstChild.nodeValue;
		item_mc.description.text = this.location_text;

item_mc.link = items*.attributes.link;
item_mc.main_btn.onRelease = function() {
getURL(this._parent.link, “_blank”);
};

}

}

var squirrel_xml = new XML();
squirrel_xml.ignoreWhite = true;
squirrel_xml.onLoad = function(success){
if (success) CreateMenu(this);
else trace(“Error loading XML file”);
}
squirrel_xml.load(“contacts.xml”);

Thanks