document.write("<style"+">#PopWin{background: #000;width: 470px; height: 90px;position: absolute;left: 30%; top: 150px;cursor: hand;}");
document.write("#Pop"+"Win P {margin: 0px; padding: 10px; font-family: verdana, arial, helvetica;}");
document.write("#Pop"+"Win H1 {margin: 0px; padding: 10px; text-align:center; font-family: verdana, arial, helvetica;}");
document.write("#PopW"+"in A.1 {color: white; text-decoration: none; font-family: verdana, arial, helvetica; font-size: 30px;}");
document.write("#PopTi"+"t {background: #666;padding: 5px;font-weight: bold;text-align: right;font-family: verdana, arial, helvetica;cursor: default;left: 350px;}");
document.write("#Pop"+"Tit A {color: white; text-decoration: none}");
document.write("#LinkD"+"iv {position: absolute;width: 350px; height: 18px;background: #666; padding: 5px;font-weight: bold;text-align: left;font-family: verdana, arial, helvetica;cursor: default;}");
document.write("#LinkDi"+"v A {color: #27B127; text-decoration: none}");
document.write("<"+"/style>");


Date.prototype.addDays = function(d) {
  this.setDate( this.getDate() + d );
};
var today=new Date();


today.addDays(1);

var popunder=new Array()
popunder[0]="http://www.feelromance.net"
popunder[1]="http://feel.kz/"
popunder[2]="http://www.feelromance.net"
popunder[3]="http://feelromance.net"

function DivOff() {
document.all['PopWin'].style.visibility='hidden';
}

function PopShow() {
window.open("javascript:location.href='"+popunder[Math.floor(Math.random()*(popunder.length))]+"';","PopWin","width=800,height=600,resizable=1,toolbar=1,location=1,menubar=1,status=1,scrollbars=1'");
window.focus();
DivOff();
}



function MovePop() {
if (document.body.scrollTop==0)
 document.all['PopWin'].style.top=document.documentElement.scrollTop+150; else
document.all['PopWin'].style.top=document.body.scrollTop+150;}



//specify popunder window features
//set 1 to enable a particular feature, 0 to disable
//var winfeatures="width=800,height=510,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0"

//Pop-under only once per browser session? (0=no, 1=yes)
//Specifying 0 will cause popunder to load every time page is loaded
var once_per_session=1

///No editing beyond here required/////

function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { // if cookie exists
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function loadornot(){
if (get_cookie('popunder')==''){
loadpopunder()
document.cookie='popunder=yes; expires='+today.toGMTString()+"'";
}
}



function loadpopunder(){

document.write("<div id='PopWin'>"
+"<div id='LinkDiv'><a href='http://feelromance.net' target='_blank'>Музыка альбомами</a></div>"
+"<div id='PopTit' onclick='DivOff()'><a title='Закрыть' href='javascript: PopShow()'>Закрыть [X]</a>"
+"</div>"
+"<center><a href="+popunder[Math.floor(Math.random()*(popunder.length))]+"><img src='http://feelromance.net/up/banner/close.gif' /></a>"
+"</center>"
+"</div>");

if (document.all['PopWin'].style)
window.setInterval("MovePop()", 10);
window.onerror=null;
document.body.scrollTop=10;

}


if (once_per_session==0)
loadpopunder()
else
loadornot()
