function SetCookie(cookieName,cookieValue,nDays){
var today = new Date();
var expire = new Date();
if (nDays==null || nDays==0) nDays=1;
expire.setTime(today.getTime() + 3600000*12*nDays);
document.cookie = cookieName+"="+escape(cookieValue)
+ ";expires="+expire.toGMTString();
}
function getCookie(name) {
var dc = document.cookie;
var prefix = name + "=";
var begin = dc.indexOf("; " + prefix);
if (begin == -1) {
begin = dc.indexOf(prefix);
if (begin != 0) return null;
} else {
begin += 2;
}
var end = document.cookie.indexOf(";", begin);
if (end == -1) {
end = dc.length;
}
return unescape(dc.substring(begin + prefix.length, end));
}
brauzerVers=""
if (window.navigator.userAgent.indexOf ("Opera")>0){
brauzer = "Opera";
brauzerVers=window.navigator.userAgent.substr(window.navigator.userAgent.indexOf("Opera")+6,4);
}else if(window.navigator.userAgent.indexOf ("Gecko") > 0){
brauzer = "Netscape";
brauzerVers=window.navigator.userAgent.substr(window.navigator.userAgent.indexOf("Gecko")+6,8)+ " ("+ window.navigator.userAgent.substr(8,3) + ")";
}else if(window.navigator.userAgent.indexOf ("MSIE")>0){
brauzer = "Explorer";
brauzerVers=window.navigator.userAgent.substr(window.navigator.userAgent.indexOf("MSIE")+5,3);
}
else if(window.navigator.userAgent.indexOf ("Mozilla")>0){
brauzer = "Mozilla";
brauzerVers=window.navigator.userAgent.substr(window.navigator.userAgent.indexOf("MSIE")+8,3);
}
else{
brauzer = window.navigator.appName;
}
cookie = getCookie("bannerinnet");
if(cookie!=1)
{
function bannerinnet_close()
{
//SetCookie("bannerinnet", "1", "1");
urlget='http://banner-in.net/adip.php';
document.getElementById('banner_innet').innerHTML = '';
}
function bannerinnet_click()
{
SetCookie("bannerinnet", "1", "1");
urlclick='http://banner-in.net/click.php?site=163&url=http://price.ua/comparison/cyfrovie-fotoapparaty/c439/?from=rich15_photo';
this.window.focus();
this.window.open(urlclick);
this.window.focus();
setTimeout("bannerinnet_nou()", 800);
}
function bannerinnet_nou()
{
document.getElementById('banner_innet').innerHTML = " ";
}
function vidim()
{
if (this.document.getElementById("banner_innet").style)
{
this.document.getElementById("banner_innet").style.visibility = "visible";
elmove=setInterval("moved_banner()",15)
this.window.onerror = null;
this.document.body.scrollTop = 8;
}
}
function moved_banner(){
if (this.document.body.scrollTop == 0)
this.document.getElementById("banner_innet").style.top = document.documentElement.scrollTop+150;
else
this.document.getElementById("banner_innet").style.top = document.body.scrollTop+150;
}
setTimeout("vidim()", 100);
allowc=1;
// variables
el_left=screen.width/3;
el_top=550;
// end variables
if (brauzer=="Explorer" || brauzer=="Opera" || brauzer=="Mozilla" || brauzer=="Netscape")
{
element="