$(document).ready(function() {
   $('#slideshow').innerfade( {
      animationtype: 'fade',
			speed: 1500,
			timeout: 4000,
			type: 'sequence',
			containerheight: '220px'
	});
});

$(document).ready(function() {
   $('#navigation a[href][title]').qtip( {
      content: false,
      position: {
      	corner: {
         target: 'topMiddle',
         tooltip: 'bottomMiddle'
        }
      },
      style: {
      padding: 2,
      background: '#fff',
      color: '#333',
      textAlign: 'center',
      border: {
         width: 1,
         radius: 5,
         color: '#fff'
      },
      tip: 'bottomMiddle'
   },
   show: {
   	delay: 0
   },
   hide: {
   	effect: {
   		type: 'fade',
   		length: 500
   	}
   }
   });
});

function externalLinks() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") anchor.target = "_blank";
	}  
}  
window.onload = externalLinks;

$(document).ready(function() {
	$.featureList(
		$("#tabs li a"),
		$("#output li"), {
			start_item:	1
		}
	);
});

(function($) {
	$(function() {
		$("#scroller").simplyScroll({
			speed: 8,
			totalWidth: 855
		});
	});
})(jQuery);

