function GetMoviesRequestObject() 
{
var request = null;
if(!request)
try
{
request = new XMLHttpRequest();
} catch (e){}
if(!request)
try
{
request = new ActiveXObject('Microsoft.XMLHTTP');
} catch (e){}
if(!request)
try
{
request=new ActiveXObject('Msxml2.XMLHTTP');
} catch (e){}
return request;
}
function GetMoviesAsyncRequestXML(url, completeRequestFunc) {
window.setTimeout(function() {
var _reqObj = GetMoviesRequestObject();
//alert(url);
_reqObj.open("GET", url, true);
_reqObj.onreadystatechange = function() {
if (_reqObj.readyState == 4)
completeRequestFunc(_reqObj.responseText);
}
_reqObj.send('');},100);
}
function AlbumLinkWork(linkstr)
{
if(typeof(linkstr != undefined))
{
var re = /item\=([0-9]+)/;
var rs=re.exec(linkstr);

var newlink="http://kino.realmusic.ru/View/Details/" + rs[1] + "/";
return newlink;
}
}
js_code_banner_gen = 'if (typeof(GmB)!=\'undefined\'){GmB.AlbumUrl=AlbumLinkWork(GmB.AlbumUrl);strbuff=\'<div style="text-align:left;width: 240px;margin-top:5px;"><div style="position: relative; width: 224px; height: 169px;"><a href="\'+GmB.AlbumUrl+\'"><img style="z-index: 110; position: absolute" src="http://www.realmusic.ru/img/kinoramka.gif" width="240" height="169" border="0"></a><div style="z-index: 105; position: absolute; width: 240x; height: 169px"><div style="z-index: 1100; overflow: hidden; bottom: 0px; position: absolute; width: 240px; height: 40px"> <div style="color: white;font: bold 12px Tahoma;padding: 0 15 0 15;overflow: hidden;"><nobr>\'+GmB.Title+\'</nobr></div><div style="color: white;font: 10px Tahoma;padding: 0 15 0 15;overflow: hidden;"><nobr>\'+GmB.ReleaseYear+\'&nbsp;/&nbsp;\'+GmB.Genres+\'</nobr></div></div><div style="z-index: 90; moz-opacity: 0.4; khtml-opacity:.4; opacity: 0.4; filter:alpha(opacity=40); bottom: 0px; background:  \'+\'black;position: absolute; width: 240px; height: 45px"></div></div><img style="z-index: 80; top: 28px; position: relative" src="\'+GmB.ImageUrl.replace("wX","w240").replace("hY","h138")+\'"></div></div>\';document.getElementById(\'getmovies_banner\').innerHTML = strbuff;}';

