
if(DOM.get('body.home')[0])
{ 
  jQuery.noConflict();
  
  if (jQuery.fn.simpleCarousel) {
    jQuery('body.home div.dgbox div.content').simpleCarousel({ 
      item            : '.item',
      nextBtnTemplate : '<a href="#" class="down">Nęsti</a>',
      prevBtnTemplate : '<a href="#" class="up">Fyrri</a>',
      wrap            : true
    });
  };

  jQuery('div.dgbox div.item img')
      .each(function() {
          jQuery(this).parent().css('background-image', 'url(' + jQuery(this).attr('src') + ')');
        });



}


/*
if (window.listScroller)
{
  config = {
    'div.dgbox' : {
      itemSel : 'div.item',
      windowSize : 1,
      stepSize : 1,
      showControls : 1,
      hideClass : 'scroll-overflow'
    }
  };
  listScroller.init(config);
}
*/


/*
if (window.pagebodyHeight) {
  addEvent(window, "load", pagebodyHeight.fix);
}
*/

if(window.autoValidate) {  
  defangForm.resetButtons.init(); // make "reset" buttons more safe
  autoValidate.init();            // automaticall
}


if (window.fontSizer) {
  fontSizer.init();
}

// Remove the temporary <style id="noContentFlashHack" /> element created by the file removeflicker.js
// running this function here gives faster results than hooking it to the window.onload event.
(function(){

  var c = DOM.$("noContentFlashHack");
  if (c) { c.parentNode.removeChild(c); }

})();

