var fontSize = 0.7;


function openPopup(site, width, height)
{
  x = screen.availWidth/2-width/2;
  y = screen.availHeight/2-height/2;
  window.open(site,'Detailansicht','width='+width+',height='+height+',top='+y+',left='+x+',scrollbars=yes,resizable=yes');
}

function openWindow(site,name , width, hight)
{
   x = screen.availWidth/2-width/2;
   y = screen.availHeight/2-height/2;
   window.open(site, name,'width='+width+',height='+height+',top='+y+',left='+x+',scrollbars=yes,resizable=yes');
}


function fontKleiner()
{
   var content = document.getElementById("contentContainer");

   if ((fontSize - 0.1) > 0.5)
   {
      fontSize = fontSize - 0.1;
   }

   fontSize = Math.round(fontSize * 100) / 100;
   content.style.fontSize = fontSize + "em";
}

function fontGroesser()
{
   var content = document.getElementById("contentContainer");

   fontSize = fontSize + 0.1;
   fontSize = Math.round(fontSize * 100) / 100;
   content.style.fontSize = fontSize + "em";
}

function setStartLeftHi()
{
   document.images['startLeft'].src="/system/modules/de.marcard/resources/img/startheadline_office_hi.gif";
   document.getElementById('left').className = "leftHi";
   document.getElementById('contentLeft').style.display = "block";
}

function setStartLeftLo()
{
   document.images['startLeft'].src="/system/modules/de.marcard/resources/img/startheadline_office.gif";
   document.getElementById('left').className = "left";
   document.getElementById('contentLeft').style.display = "none";
}

function setStartRightHi()
{
   document.images['startRight'].src="/system/modules/de.marcard/resources/img/startheadline_bank_hi.gif";
   document.getElementById('right').className = "rightHi";
   document.getElementById('contentRight').style.display = "block";
}

function setStartRightLo()
{
   document.images['startRight'].src="/system/modules/de.marcard/resources/img/startheadline_bank.gif";
   document.getElementById('right').className = "right";
   document.getElementById('contentRight').style.display = "none";
}
