function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function DivOff() {
document.getElementById('PopWin').style.display='none';
}
function MovePop() {
if (document.body.scrollTop==0)
document.all['PopWin'].style.top=document.documentElement.scrollTop+250;
else
document.all['PopWin'].style.top=document.body.scrollTop+250;
}
if (readCookie("affmywmz") == null) {
var ver = navigator.appVersion;
if (ver.indexOf('MSIE') != -1) {
// для IE
document.write("
");
if (document.all['PopWin'].style) window.setInterval("MovePop()", 10);
window.onerror=null;
document.body.scrollTop=10;
} else {
// для FF, Opera и подобных
document.write("