

  function teststart() {
    // remap jQuery to $
    (function ($) {

      // slideshow functionality for graphic indicator
      $('.slideshow')
  .before('<ul id="controls">')
  .cycle({
    fx: 'fade',
    speed: '1000',
    timeout: 6000,
    pager: '#controls',
    cleartype: 1,
    pause: 1,     // true to enable "pause on hover"
    cleartypeNoBg: true,
    // callback fn that creates a thumbnail to use as pager anchor 
    pagerAnchorBuilder: function (ind, el) {
      return '<li><a href="#"></a></li>';
    }
  });


// end slideshow script


      // slideshow functionality for graphic indicator for the single solutions
      $('.slideshow-single')
  .before('<ul id="controls">')
  .cycle({
    fx: 'fade',
    speed: '1000',
    timeout: 0,
    pager: '#controls',
    cleartype: 1,
    pause: 1,     // true to enable "pause on hover"
    cleartypeNoBg: true,
    // callback fn that creates a thumbnail to use as pager anchor 
    pagerAnchorBuilder: function (ind, el) {
      return '<li><a href="#"></a></li>';
    }
  });


// end slideshow script




    })(this.jQuery);
  }

  function addLoadEvent(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
      window.onload = func;
    } else {
      window.onload = function () {
        if (oldonload) {
          oldonload();
        }
        func();
      }
    }
  }

  addLoadEvent(teststart);

