function songinfo(songid)
{
 songwin = window.open("songinfo.php?songid="+songid, "songinfowin", "location=no,status=no,menubar=no,scrollbars=yes,resizeable=yes,height=400,width=650");
}
function request(songid,artist)
{
	document.getElementById("overlayer").style.height=document.body.offsetHeight+"px";
	document.getElementById("reqfr_container").style.display="block";
	document.getElementById("reqfr_container").style.left=((document.body.offsetWidth-263)/2)+"px";
	document.getElementById("reqfr_container").style.top="160px";
	document.getElementById("reqfr_container").innerHTML='<div class="titlebar_container"><div class="titlebar">Dedicaţie<a class="closebutton" href="javascript:close_ov()" title="Închide">X</a></div></div><iframe src="req.php?p=1&songid='+songid+'&artist='+artist+'&r='+Math.round(Math.random()*10000)+'" width="263" height="230" id="reqfr" frameborder="0"></iframe>';
}
function close_ov(){
	document.getElementById("overlayer").style.height=0;
	document.getElementById("reqfr_container").innerHTML='';
	document.getElementById("reqfr_container").style.display="none";
}
function getHTTPPage(url) {
var xmlhttp
		/*@cc_on @*/
		/*@if (@_jscript_version >= 5)
		  try {
		  xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")
		 } catch (e) {
		  try {
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
		  } catch (E) {
		   xmlhttp=false
		  }
		 }
		@else
		 xmlhttp=false
		@end @*/
	if (!xmlhttp){
		try{
			xmlhttp = new XMLHttpRequest();
		} catch (e) {
			xmlhttp=false;
		}
	}
	xmlhttp.open("GET",url ,false);
	xmlhttp.send(null);
	var ret = xmlhttp.responseText;
	xmlhttp = null ;
	return ret;
}

function mesaje(){
	str='http://www.radio3net.ro/dedicatie.txt?r='+Math.round(Math.random()*10000);
	msg=getHTTPPage(str);
	document.getElementById('crawlcontent').innerHTML=msg+msg+msg+msg+msg+msg+msg+msg+msg+msg+msg+msg+msg+msg+msg;
	setTimeout('mesaje()',20000);
}

$(function() {
		$("#reqfr_container").draggable();
});
mesaje();
