function GetParam(pName, pDef)
	{
		var	str=location.href;
		var	pos=str.indexOf('?'.concat(pName).concat('='));

		if (pos==-1)
		{
			pos=str.indexOf('&'.concat(pName).concat('='));
			if (pos==-1) return pDef;
		}
		
		str=str.substring(pos + pName.length + 2);
		pos=str.indexOf('&');

		if (pos==-1)
		{
			pos=str.length;
		}	

		if (pos > 0)
		{
			str=str.substring(0, pos);
		}

		return str;
}

function showVideo(title,path,vImage) {
	
	var oTi = document.getElementById('meTitle');
	oTi.innerHTML 	= title;
	var	str=location.href;
	if (str.indexOf('localhost') == -1)
	{
		var pos = str.lastIndexOf('/');
		str = str.substring(0,pos);
		path = str + path;
	}
	else path = 'http://localhost' + path;
						
	var so = new SWFObject("Images/player.swf","ply","190","142","9");
	so.addParam("allowfullscreen","true");
	so.addParam("allowscriptaccess","always");
	so.addVariable('width','190');
	so.addVariable('height','142');
	so.addVariable('image',vImage);
	so.addVariable('file',path);
	so.write('videoshow');
}
// hien thi video


