function initNiki() {


  changeBackground();

  externalLinks();
     
  // test if parser exists
  // sndReq('/xml/test.xml');
  enable_output_escaping();
  enable_output_static();

  if(window.loadGoogleMap)
  {
     loadGoogleMap();
  }

  if (printit || pivprintit) window.print();

  if(ie && !ie7)
  {
     document.getElementById('column0').style.height = document.body.offsetHeight-2+'px';
  }
}


function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}

function enable_output_static() {
  if(!ie) {
    if (document.getElementById('static_content')) {
      document.getElementById('static_content').innerHTML = htmlDecode(document.getElementById('static_content').innerHTML);
    }
  }
}

function init_touchScreen(){
   window.resizeTo(window.screen.availWidth,window.screen.availHeight-1);
   window.resizeTo(window.screen.availWidth,window.screen.availHeight);
}

