$ = function (element)
{
	return document.getElementById(element);
}
var Motoko = {

	Effects : 
	{
		/**
			Sets a new image source
			@param HTMLElement Element to change the source of
			@param string Path to new sourcefile
			@return void
		**/
		swapImage : function (element, newImage)
		{
			element.src = newImage;
		},
		
		/**
			Toggles visibility of an element
			@param  string Element to toggle
			@return void
		**/
		toggleElement : function (elementID)
		{
			element = document.getElementById(elementID);
			
			if (element != undefined)
			{
			if (element.style.display == 'none')
				element.style.display = 'block';
			else
				element.style.display = 'none';
			}
		}
	}

};
  