$(function () {  
  $('#power-sl_SI a')   
    // create our new span.hover and loop through anchor:
    .append('<span class="hover" id="power-on"/>').each(function () {
      
      // cache a copy of the span, at the same time changing the opacity
      // to zero in preparation of the page being loaded
      var $span = $('> span.hover', this).css('opacity', 0);
      
      // when the user hovers in and out of the anchor
      $(this).hover(function () {
        // on hover
      
        // stop any animations currently running, and fade to opacity: 1
        $span.stop().fadeTo(800, 1);
      }, function () {
        // off hover
     
        // again, stop any animations currently running, and fade out
        $span.stop().fadeTo(800, 0);
      });
    });
});

$(function () {  
  $('#power-de_DE a')   
    // create our new span.hover and loop through anchor:
    .append('<span class="hover" id="power-on"/>').each(function () {
      
      // cache a copy of the span, at the same time changing the opacity
      // to zero in preparation of the page being loaded
      var $span = $('> span.hover', this).css('opacity', 0);
      
      // when the user hovers in and out of the anchor
      $(this).hover(function () {
        // on hover
      
        // stop any animations currently running, and fade to opacity: 1
        $span.stop().fadeTo(800, 1);
      }, function () {
        // off hover
     
        // again, stop any animations currently running, and fade out
        $span.stop().fadeTo(800, 0);
      });
    });
});

$(function () {  
  $('#power-en_US a')   
    // create our new span.hover and loop through anchor:
    .append('<span class="hover" id="power-on"/>').each(function () {
      
      // cache a copy of the span, at the same time changing the opacity
      // to zero in preparation of the page being loaded
      var $span = $('> span.hover', this).css('opacity', 0);
      
      // when the user hovers in and out of the anchor
      $(this).hover(function () {
        // on hover
      
        // stop any animations currently running, and fade to opacity: 1
        $span.stop().fadeTo(800, 1);
      }, function () {
        // off hover
     
        // again, stop any animations currently running, and fade out
        $span.stop().fadeTo(800, 0);
      });
    });
});

//<![CDATA[
  function displaySource(name) {
    $('<pre>'
        + $('#display-' + name).prevAll('script').eq(0).html() //$('script').text() is broken on IE5
            .replace(/^\s*|\s*$/g, '')
            .split('\n').slice(1, -1).join('\n')
            .replace(/(^|\n)    /g, '$1')
            .replace(/('[^']*')/g, '<i>$1</i>')
        + '</pre>')
      .insertAfter('#display-' + name);
  }
//]]>


$(function() {
	$('#slide').crossSlide({
	  sleep: 2,
	  fade: 1
	}, [
	  { src: 'images/slide/bottom-slide.jpg' },
	  { src: 'images/slide/bottom-slide1.jpg' },
	  { src: 'images/slide/bottom-slide2.jpg' },
	  { src: 'images/slide/bottom-slide3.jpg' },
	  { src: 'images/slide/bottom-slide4.jpg' },
	  { src: 'images/slide/bottom-slide5.jpg' }
	]);
});
