// give dumb old browsers Array.forEach

// Production steps of ECMA-262, Edition 5, 15.4.4.18
// Reference: http://es5.github.com/#x15.4.4.18
if ( !Array.prototype.forEach ) {
  Array.prototype.forEach = function( callback, thisArg ) {
    var T, k;
    if ( this == null ) {
      throw new TypeError( " this is null or not defined" );
    }
    var O = Object(this);
    var len = O.length >>> 0; // Hack to convert O.length to a UInt32
    if ( {}.toString.call(callback) != "[object Function]" ) {
      throw new TypeError( callback + " is not a function" );
    }
    if ( thisArg ) {
      T = thisArg;
    }
    k = 0;
    while( k < len ) {
      var kValue;
      if ( k in O ) {
        kValue = O[ k ];
        callback.call( T, kValue, k, O );
      }
      k++;
    }
  };
}

// fancy fading-in of header elements
setFades = function() {
	$(".silk").hover(
		function() {
			$(this).fadeTo(400, 0.7);
		},
		function() {
			$(this).fadeTo(150, 0.1);
		}
	);
	
}

// initialization stuff
$(document).ready(function() {
	$('#seealso').hide();
	$('#links').children().each(function(i, e) {
		$(e).hide();
	});
	$(".silk").hide().fadeTo(1750, 0.1)
	setFades();

	// start into it
	Feed.loadFeeds('js/feedlist.js');	
	
});


