function showFlash(num,total,fileLink)
{
//	document.getElementById("flashContainer").style.display="inline";
	for (var i=1; i <= total ;i++)
	{
		if (i!=num)
		{
			//var pdiv_id='flashContainer'+i;
			var tr_id='the_tr'+i;

			//document.getElementById(pdiv_id).style.display='none';
			document.getElementById(tr_id).style.background="#FFFFFF";
		}
	}
	//var pdiv_id='flashContainer' + num;


	//	loadFile('mediafile','/upload/afraid.flv');

	var tr_id='the_tr'+num;

	//document.getElementById(pdiv_id).style.display='inline';
	document.getElementById(tr_id).style.background="rgb(255,235,213)";

	
	loadFile({file:fileLink});
	//sendEvent('play');
	window.location='#the_player';
//	sendEvent('playpause');  
}

/////////////////**********************************************************//////////////////////////////////////


// This is a javascript handler for the player and is always needed.
function thisMovie(movieName) {
	if(navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName];
	} else {
		return document[movieName];
	}
};




// this function is caught by the JavascriptView object of the player.
function sendEvent(typ,prm) { thisMovie("playerID").sendEvent(typ,prm); };

// These functions are caught by the feeder object of the player.
function loadFile(obj) { thisMovie("playerID").loadFile(obj); };

function addItem(obj,idx) { thisMovie("playerID").addItem(obj,idx); };

function removeItem(idx) { thisMovie("playerID").removeItem(idx); };

function getLength(swf) { return(thisMovie(swf).getLength()); };




