var map_flash = function()
{
	var id, offsetx, offsety, percentx, percenty, file;
	var isPlaying;
	
	var top, left, width, height;
	
	var flashObj = null;
	
	this.start = function( node )
	{
		isPlaying = false;
		
		id = node.getAttribute('id');
		offsetx = parseInt(node.getAttribute('offset-x'));
		offsety = parseInt(node.getAttribute('offset-y'));
		percentx = parseInt(node.getAttribute('percent-x'));
		percenty = parseInt(node.getAttribute('percent-y'));
		file = node.getAttribute('file');
		
		makeNextObject();
	}

	this.play = function( parent )
	{	
		if( isPlaying == false )
		{
			isPlaying = true;
			
			var params = "";
			for(var i = 0; i < paramsURL.length; i++ )
			{
				params += "&" + paramsURL[i][0] + "=" + paramsURL[i][1];
			}
			
			flashObj = makeFlash(document.getElementById('map_map_int'), id, offsety + "%", offsetx + "%", percentx + "%", percenty + "%", file, "con=" + connected + params, true);
		}
	}
	
	this.stop = function()
	{
		if( isPlaying == true )
		{
			removeAllNodes( document.getElementById('flashObj'), true );
			isPlaying = false;
		}
	}
}