function replaceReg(str){ 
		var reg = /http:\/\/\S+.mp3|http:\/\/\S+.wma/ig; 
		str = str.replace(reg,function(m){return '<audio src="'+m+'" preload="none"></audio>';}) ;
		var reg = /http:\/\/\S+.mp4|http:\/\/\S+.ogg/ig; 
		str = str.replace(reg,function(m){return '<video src="'+m+'"  width=100%  controls="controls" ></video>';}) ;
		
		var re = /http:\/\/v.youku.com\/v_show\/id_(\S+)\.html\?f=\d*/gim; 
		str = str.replace(re,"<iframe height=300 width=100% src=\"http://player.youku.com/embed/$1\" frameborder=0 allowfullscreen></iframe>"); 
		var re = /http:\/\/v.youku.com\/v_show\/id_(\S+)\.html/gim; 
		str = str.replace(re,"<iframe height=300 width=100% src=\"http://player.youku.com/embed/$1\" frameborder=0 allowfullscreen></iframe>"); 
		var reg = /http:\/\/player.video.qiyi.com\S+tvId=\d+/ig; 
		str = str.replace(reg,function(m){return '<embed height=300 width=100% src="'+m+'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="opaque" ></embed>';}) ;
		var reg = /http:\/\/www.tudou.com\S+swf/ig; 
		str = str.replace(reg,function(m){return '<embed height=300 width=100% src="'+m+'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="opaque" ></embed>';});
		var re = /http:\/\/player.youku.com\/player.php\/sid\/(\S+)\/v.swf/gim; 
		str = str.replace(re,"<iframe height=300 width=100% src=\"http://player.youku.com/embed/$1\" frameborder=0 allowfullscreen></iframe>");
		var re = /http:\/\/static.video.qq.com\/TPout.swf\?vid=(\S+)&(\S{0,})auto=\d/gim; 
		str = str.replace(re,"<iframe height=300 width=100% src=\"http://v.qq.com/iframe/player.html?vid=$1&tiny=0\" frameborder=0 allowfullscreen></iframe>");
var re = /http:\/\/static.video.qq.com\/TPout.swf\?auto=\d&(\S{0,})vid=(\S+) /gim; 
		str = str.replace(re,"<iframe height=300 width=100% src=\"http://v.qq.com/iframe/player.html?vid=$2&tiny=0\" frameborder=0 allowfullscreen></iframe>"); 
		return str;
	} 
var str = document.getElementById("content").innerHTML;
document.getElementById("content").innerHTML = replaceReg(str); 

 