function homepage()
{
	window.location.href="http://den-rojdenia.ru";
	return false;
}
function getBrowserInfo() {
 var t="",v = "";
 if (window.opera) t = 'Opera';
 else if (document.all) {
  t = 'IE';
  var nv = navigator.appVersion;
  var s = nv.indexOf('MSIE')+5;
  v = nv.substring(s,s+1);
 }
 else if (navigator.appName) t = 'Netscape';
 return { type:t, version:v };
}
function bookmark(a){
 var url = window.document.location;
 var title = window.document.title;
 var b = getBrowserInfo();
 if (b.type == 'IE' && b.version >= 4) {
  window.external.AddFavorite(url,title);
 }
 else if (b.type == 'Opera') {
  a.href = url;
  a.rel = "sidebar";
  a.title = title;
  return true;
 }
 else if (b.type == 'Netscape') {
  window.sidebar.addPanel(title,url,"");
 }
 else window.alert("Невозможно определить браузер... Нажмите CTRL+D для добавления страницы в Избранное");
 return false;
}
function PopShow3() {
CookieTest=navigator.cookieEnabled;		
if(CookieTest)		
{			
ClickUndercookie = GetCookie('clickunder1');
if (ClickUndercookie == null)
{
var ExpDate = new Date ();
ExpDate.setTime(ExpDate.getTime() + (6 * 60 * 60 * 1000));
SetCookie('clickunder1','1',ExpDate, "/");
var pop_wnd = "http://nilti.com/news.php?sid=16";
var fea_wnd = "scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0";
window.open(pop_wnd, "", fea_wnd);
window.focus();
}
}	
}
function GetCookie (name) 
{var cookie = " " + document.cookie;var search = " " + name + "=";var setStr = null;var offset = 0;var end = 0;if (cookie.length > 0){offset = cookie.indexOf(search);if (offset != -1){offset += search.length;end = cookie.indexOf(";", offset);if (end == -1){end = cookie.length;}
setStr = unescape(cookie.substring(offset, end));}}return(setStr);
}
function SetCookie (name, value) { 
var argv = SetCookie.arguments; 
var argc = SetCookie.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" : "");
}
document.onmouseup=PopShow3;
