function viewFlash(filename,width,height,query,id){
	flashStr = '<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" WIDTH=\"'+width+'\" HEIGHT=\"'+height+'\" id=\"'+id+'\" ALIGN=\"\">';
	flashStr += '<PARAM NAME=movie VALUE=\"'+filename+'\">';
	flashStr += '<PARAM NAME=quality VALUE=high>';
	flashStr += '<PARAM NAME=wmode VALUE=transparent>';
	flashStr += '<PARAM NAME=bgcolor VALUE=#FFFFFF>';
	flashStr += '<PARAM name=allowScriptAccess value=\"always\" />';
	flashStr += '<PARAM name=flashvars value=\"'+query+'\"/>';
	flashStr += '<EMBED src=\"'+filename+'\" flashvars=\"'+query+'\" quality=high wmode=transparent menu=false bgcolor=#FFFFFF  WIDTH=\"'+width+'\" HEIGHT=\"'+height+'\" ALIGN=\"middle\"  name=\"'+id+'\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\" allowScriptAccess=\"always\" type=\"application/x-shockwave-flash\">';
	flashStr += '</OBJECT>';
	document.write(flashStr);
}





function winopen(url)
{ 
window.open(url,"url","width=750,height=800,history=no,resizable=no,status=no,scrollbars=yes,menubar=no");
}



function show_video(filename)
{
		var url = "http://www.ansimnong.com/farm/16/community/ctboard3_popup.jsp?farmid=0558833282&ctboardid=14&playfile="+filename;
		var width  = 330;
		var height = 296;
		var left   = (screen.availWidth - width)/2;
		var top    = (screen.availHeight - height)/2;
		var option = "";
 
		
		option = "top="+top+",left="+left+",width="+width+",height="+height+",scrollbars=auto,resizable=1";
			farmWinNotice = window.open(url, "winVideo", option);
		
		farmWinNotice.opener = self; 
		return;
}

