<script type="text/javascript">
var ov = false;
function GetCookieCMSPopVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookieCMSPop (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return GetCookieCMSPopVal (ninja);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0)
break;
}
return null;
}
function SetCookiePop (name, value) {
var argv = SetCookiePop.arguments;
var argc = SetCookiePop.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" +
expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function popup_gelCMSPOP()
{
day = new Date();
URL = "http://media-track.lt/reklama.html";
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=400,height=400,left = 276,top = 132');");
window.focus();
document.getElementById('popup_divMenuPOPruu').style.display = 'none';
pathname = "/";
myDomain = "/";
var largeExpDate = new Date ();
largeExpDate.setTime(largeExpDate.getTime() + (24 * 3600 * 1000));
SetCookiePop('popru','1',largeExpDate, "/");
}
function banner_gel(URL)
{
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open('http://media-track.lt/reklama.html', '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=468,height=60,left = 276,top = 132');");
window.focus();
document.getElementById('popup_divMenuPOPruu').style.display = 'none';
pathname = "/";
myDomain = "/";
var largeExpDate = new Date ();
largeExpDate.setTime(largeExpDate.getTime() + (24 * 3600 * 1000));
SetCookiePop('popru','1',largeExpDate, "/");
}
popru = GetCookieCMSPop('popru');
if (popru == null){
document.write('<div style="position: absolute; top:25%; left:50%; margin-left:-200px; visibility:hidden; z-index:9996570;" id="popup_divMenuPOPruu"><table border="0" width="468" cellspacing="0" cellpadding="0"><tr><td bgcolor="#ffffff" width="300" style="padding-left: 10px"><b><a target="_blank" style="font-size: 11px; color: #999999; line-height:20px; font-family: Arial; text-decoration:none;" href="http://media-track.lt/reklama.htm">Jūsų Reklamos antraštė (tekstas)</a></td><td bgcolor="#ffffff"><a style="font-size: 11px; color: #ffffff; line-height:20px; font-family: Arial; text-decoration:none;" href="http://media-track.lt/reklama.htm" target="_blank"></a></td><td bgcolor="#ffffff" width="33" style="padding-right: 2px" align="right"><b><a style="font-size: 11px; color: #ffffff; line-height:20px; font-family: Arial; text-decoration:none;" onclick="popup_gelCMSPOP();" href="javascript://"><font size"2" color="black"><b>[Uždaryti]</b></font></a></b></td></tr><tr><td colspan="3" bgcolor="#eeeeee" style="padding: 1 1 1 1px;"><a onclick="banner_gel();" href="javascript://"><img src=http://media-track.lt/uploads/reklamai/reklama468x60.jpg width=468 height=60 border=0 alt="Jusu antraste"></a></td></tr></table></div>');
document.getElementById('popup_divMenuPOPruu').style.visibility='visible';
if (document.getElementById('popup_divMenuPOPruu').style)
window.setInterval("MovePopupWinPOPruu()", 10);
window.onerror=null;
document.body.scrollTop=10;
function MovePopupWinPOPruu() {
if (document.body.scrollTop==0)
document.getElementById('popup_divMenuPOPruu').style.top=document.documentElement.scrollTop+250; else
document.getElementById('popup_divMenuPOPruu').style.top=document.body.scrollTop+250;
}
}
</script>