// JavaScript Document
function Detection(url)
{
	$.get("video.php?"+url,function(data){
	$('#videoclass').show();
	$('#videoclass').html(data);
	});
}

function checkvideo(prah)
{
	$.get("video.php?"+prah, function(data){
	$('#flvplay').show();
	$('#flvplay').html(data);
	});
}

function AnalyzeHtml(html,start,end){
var regexp=new RegExp(start+"((.|\r\n)*?)"+end,"g");
var strings=html.match(regexp);
var objs=new Array();
var regexp2=new RegExp("(^"+start+"|"+end+"$)","g");
var js;
if(strings!=null){
for(var i=0;i<strings.length;i++){
objs[i] = strings[i].replace(regexp2,'');
}
var strScript = objs.join(";").replace(/\\\"/g,"\"").replace(/\\\'/g,"'");
//eval(strScript);
js += strScript+";"
}
html = null;
regexp=null;
strings=null;
objs = null;
regexp2 = null;
eval(js);
return js;
}
