XMLNode.prototype.moveBefore = function(beforeNode){ if (this == beforeNode) return (0); beforeNode.parentNode.insertBefore( this.cloneNode(true), beforeNode); this.removeNode(); } Clamp = function(min, n, max){ if (nmax) return max; return n; } var song_spacing = 20; var over_node; GenerateSongListing = function(playlist_xml, target_mc){ target_mc = target_mc.createEmptyMovieClip("list_mc",1); var songs = playlist_xml.firstChild.childNodes; for (var i=0; i