//DARKGREY JS FUNCTIONS
//Copyright (c) 2009 DarkGrey Media
//Note: jQuery Library REQUIRED


//FUNCTIONS
function readEmbeddedFiles(){
/* Version 1.0 For speaning the contents of each SPAN element with a class of "readFiles" (containing a file name) that is generated by the php function
"embedFiles". This is useful for entering the contents of a folder on the server into an array that can be accessed by a
js function.

ARGUMENTS: none

RETURNS: Array containing all file names (or paths)*/
	var files = new Array();
	var i = 0;
	$('.readFiles').each(function(){
		files[i] = $(this).html();
		i++;
	});
	return files;
} //end readEmbeddedFiles
