jQuery(document).ready(function () {

	// Target blank
	$('a[class^="external"]').click(function () {
		this.target = "_blank"
	});
	
});

// Tab Slideout
$(function()
{
	$('.slide-out-div').tabSlideOut(
	{
		tabHandle: '.handle',                                   //class of the element that will be your tab
		pathToTabImage: '/interactive/images/ff/showcases.png', //path to the image for the tab (optionaly can be set using css)
		imageHeight: '175px',                                   //height of tab image
		imageWidth: '45px',                                     //width of tab image
		tabLocation: 'left',                                    //side of screen where tab lives, top, right, bottom, or left
		speed: 400,                                             //speed of animation
		action: 'click',                                        //options: 'click' or 'hover', action to trigger animation
		topPos: '120px',                                        //position from the top
		fixedPosition: true                                     //options: true makes it stick(fixed position) on scroll
	});
});

//Darkness
function fadetoblack()
{
	if(document.getElementById('lights-out').className == 'darkness')
	{
		document.getElementById('lights-out').className = '';
	}
	else
	{
		document.getElementById('lights-out').className = 'darkness';
	}
}