function initNiki() {
   if (!useOWZTemplate)
   {
      changeBackground();
   }

   enable_output_escaping();
   enable_output_static();

   addDistrictNeighbourhoodTitle();

   if (enableAddThis)
   {
      addAddThis(addThisUser);
   }
   if (enableLikeThis)
   {
      addLikeThis();
   }

   jQuery(".voordelen").each(function(){
      initVoordelen(this);
   });

   jQuery('a.fancybox_iframe').fancybox({
           'type': 'iframe',
           'hideOnContentClick' : true,
           'padding': 1,
           'margin': 0,
           'width': 700,
           'height': 500,
           'titleShow': false
   });

   if (jQuery.browser.msie && jQuery.browser.version.number <= 6)
   {
      document.getElementById('column0').style.height = document.body.offsetHeight - 2 + 'px';
   }

   initLoader();

   //add loader to all links except the ajax search items
   jQuery('#niki-container a[href]').not('li.hc-item a, a[href^=javascript], a[href^=#], a[target]').click(function()
   {
      showLoader();
   });
}

function enable_output_static() {
   if (navigator.product == 'Gecko')
   {
      jQuery('#static_content').html(function(index, oldHtml)
      {
         return htmlDecode(oldHtml);
      });
   }
}

function init_touchScreen(){
   window.resizeTo(window.screen.availWidth,window.screen.availHeight-1);
   window.resizeTo(window.screen.availWidth,window.screen.availHeight);
}

jQuery(document).ready(initNiki);

