
var elementUtils = {
	
	parseAttributes : function (element)
	{
		
		if (element.href)
		{
			
			var qs			= element.href.split ('?')[1];
			var arrVars		= qs.split ('&');
			var attributes	= new Object ();
			
			for (var x = 0; x < arrVars.length; x++)
			{
				
				if (arrVars[x])
				{
					
					var arg	= arrVars[x].split ('=');
					
					attributes[arg[0]]	= arg[1];
				
				}
				
			}
			
			return attributes;
			
		}
		else
		{
			
			return false;
			
		}
		
	}
	
};

Element.addMethods (elementUtils);

var xmlUtilities	= Class.create ();

xmlUtilities.prototype	= {
	
	initialize : function ()
	{
	},
	
	getNodeValue : function (obj, tag)
	{
		
		return obj.getElementsByTagName(tag)[0].firstChild.nodeValue;
		
	}
	
};

var xml	= new xmlUtilities ();