function addBeforeUnLoad(_1) {
   if(window.addEventListener) {
      window.addEventListener("beforeunload", _1, false);
      }
   else {
      if(window.attachEvent) {
         window.attachEvent("beforeunload", _1);
         }
      }
   };
   
   
function addOnUnLoad(_2) {
   if(window.addEventListener) {
      window.addEventListener("unload", _2, false);
      }
   else {
      if(window.attachEvent) {
         window.attachEvent("unload", _2);
         }
      }
   };
   
   
function addOnLoad(_3) {
   if(window.addEventListener) {
      window.addEventListener("load", _3, false);
      }
   else {
      if(window.attachEvent) {
         window.attachEvent("onload", _3);
         }
      }
   };
   
   
var info_data = new Array();
info_data["enabled"] = "no";
info_data["top_image"] = "Images/Home/autolider_top_corner.png";
info_data["top_banner"] = "Images/Home/Innowacja_techniczna.png";
info_data["link_text"] = "Plebiscyt Auto Lider 2009";
info_data["link"] = "http://autolider2009.pl/plebiscyt/zwyciezcy.html";
info_data["top_banner_link"] = "Images/Home/AUTO_LIDER_2009_big.png";
info_data["nfo_text"] = "";
info_data["nfo_link"] = "";
info_data["comments"] = "Pierwsze miejsce w kategorii INNOWACJA TECHNICZNA";


function get_info_data() {   
createDiv();
};
   
   
addOnLoad(get_info_data);
var info_roundup_mouse = false;
var info_roundup_over_mouse = false;


function createDiv() {
   var _a = document.getElementsByTagName("body")[0];
   var _b = document.createElement("img");
   _b.src = info_data["top_image"];
   _b.alt = "Info Roundup";
   _b.border = 0;
   var _c = document.createElement("div");
   _c.style.position = "fixed";
   _c.style.height = "155px";
   _c.style.width = "155px";
   _c.style.top = "0px";
   _c.style.right = "0px";
   _c.style.zIndex = "1004";
   _c.id = "info_roundup";
   _c.style.opacity = "100.00";
   _c.appendChild(_b);
   _a.appendChild(_c);
   var _d = document.createElement("div");
   _d.style.position = "fixed";
   _d.style.display = "none";
   _d.style.top = "35px";
   _d.style.right = "55px";
   _d.style.zIndex = "80";
   _d.style.textAlign = "center";
   _d.style.padding = "5px";
   _d.style.backgroundColor = "transparent";
   _d.id = "info_roundup_over";
   _d.style.opacity = "1.0"; 
   //_d.innerHTML = "<div style=\"background-color: #FFFCDF; width: 180px; height: 300px; right: 10px; top: 15px; position: absolute; border: 1px dotted black; padding: 10px;\"><a href=\"" + info_data["link"] + "\"><img border=0 src=\"" + info_data["top_banner"] + "\"></a><br><br><a href=\"" + info_data["link"] + "\"><strong>" + info_data["link_text"] + "</strong></a><br><a target=\"_blank\" href=\"" + info_data["nfo_link"] + "\">" + info_data["nfo_text"] + "</a><br>" + info_data["comments"] + "</div>";
      _d.innerHTML = "<div style=\"background-color: #FFFCDF; width: 180px; height: 300px; right: 10px; top: 15px; position: absolute; border: 1px solid green; padding: 10px;\"><a href=\"" + info_data["link"] + "\" target=_blank><strong>" + info_data["link_text"] + "</strong></a><br><br><a href=\"" + info_data["top_banner_link"] + "\" rel=lightbox[roadtrip]><img border=0 src=\"" + info_data["top_banner"] + "\"></a><br><br>" + info_data["comments"] + "</div>";
   _a.appendChild(_d);
   document.getElementById("info_roundup").onclick = function() {
      //document.location = info_data["top_banner_link"];	 
      return false;
      };
   document.getElementById("info_roundup").onmousemove = function() {
      info_roundup_mouse = true;
      document.getElementById("info_roundup_over").style.display = "block";
      return false;
      };
   document.getElementById("info_roundup").onmouseout = function() {
      info_roundup_mouse = false;
      setTimeout("check_if_over()", 1000);
      };
   document.getElementById("info_roundup_over").onmousemove = function() {
      info_roundup_over_mouse = true;
      document.getElementById("info_roundup_over").style.display = "block";
      return false;
      };
   document.getElementById("info_roundup_over").onmouseout = function() {
      info_roundup_over_mouse = false;
      setTimeout("check_if_over()", 1000);
      };
   };
   
   
   
function check_if_over() {
   if(!info_roundup_mouse &&!info_roundup_over_mouse) {
      document.getElementById("info_roundup_over").style.display = "none";
      return false;
      }
   };
