function openWindow(name,width,height) {
 iMyWidth = (window.screen.width/2) - (324)
 iMyHeight = (window.screen.height/2) - (275)
 fokus = 'f = window.open("","' + name + '", "width=' + width + ',height=' + height + ',resizable=no,left=' + iMyWidth + ',top=' + iMyHeight + ',screenX=' + iMyWidth + ',screenY=' + iMyHeight + ',scrollbars=1")';
 //alert(fokus);
 eval(fokus);
 f.focus();
}



function m(n)
{
    var v = document.getElementById("href"+n).style.display;

    if (document.getElementById("href"+n).style.display=="none")
    {
        document.getElementById("href"+n).style.display = "block";


    }
    else
    {
        document.getElementById("href"+n).style.display = "none";

    }
}
function insAcs(firstEl, SecondEl, ParentEl) {
  var rows = document.getElementsByClassName('actionsrow');
  for (var i = 0; i < rows.length; i++) {
    lastRow = rows[i];
  }
  lastRow.par.insertBefore(lastRow, lastRow.topRow);
}
function actroll() {
  var rows = document.getElementsByClassName('actionsrow');
  var countRows = rows.length;
  var showRow = countRows - 4;
  for (var i = 0; i < rows.length; i++) {
    lastRow = rows[i];
  }
  //alert(i);
  var firstRow = rows[showRow];
  var topRow = rows[0];
  var parentElem = topRow.parentNode;

  lastRow.visualEffect('blind_up',{duration:1.5});
  firstRow.visualEffect('blind_down',{duration:1.5});
  lastRow.par = parentElem;
  lastRow.topRow = topRow;
  setTimeout(insAcs, 2000);
  
  setTimeout(actroll, 5000);
}

function actionsBox() {
  var rows = document.getElementsByClassName('actionsrow');
  var countRows = rows.length;
  var topStop = rows.length - 1;
  if(countRows > topStop) {
    var visibleRows = countRows - topStop;
    for (var i = 0; i < rows.length; i++) {
      if(i < visibleRows) {
        Element.hide(rows[i]);
      }
    }
    setTimeout(actroll, 5000);
  }
}

