if (top.location != location) { 
   top.location.href = document.location.href;
}

$(document).ready(function(){
   $(".answer").attr("style","display: none;");
   $(".question").click(function (e) {
      if ($(this).next().filter(function(e){ return index=1 }).is(":hidden")) {
         $(this).next().filter(function(e){ return index=1 }).slideDown("slow");
      } else {
         $(this).next().filter(function(e){ return index=1 }).slideUp("slow");
      }
    });

  $("#addtofavorites").click(function(){
       title = "Moneo.sk"; 
       url = "http://www.moneo.sk";

       if(window.sidebar) // Firefox
       { 
          window.sidebar.addPanel(title, url,'');
       } 
       else 
          if(document.all) //IE
          { 
             window.external.AddFavorite(url, title);
          }
   });

   $("#newsletter-email").focus(function (e) {if(e.target.value=="Váš mail") {e.target.value="";} });
   $("#newsletter-email").blur(function (e) { if(e.target.value=="") { e.target.value="Váš mail"; } });
});

function openWin(url,w,h) {
   window.open(url,'linkWin','location=1,toolbar=0,status=0,width='+w+',height='+h);
   return false;
}
