if (document.images) 
{
	// Load in the first image for the banners
	var curBanner = 0;
	var bannerDapple = new Image();
	bannerDapple.src = "/images/banner_dapple.png";

	var bannerBlog;
	var bannerAbout;
}

var superslight = null; 

// Swaps the banner images
function swapBanners()
{
	if (document.images)
	{
		if (curBanner == 0)
		{	
			// If we haven't loaded it before, load the "blog" banner
			if (bannerBlog == undefined)
			{
				bannerBlog = new Image();
				bannerBlog.src = "/images/banner_blog.png";
			}	
			curBanner = 1;
			// Assign the new image
			document["bannerImage"].src = bannerBlog.src;
		}
		else if (curBanner == 1)
		{
			// If we haven't loaded it before, load the "about" banner
			if (bannerAbout == undefined)
			{
				bannerAbout = new Image();
				bannerAbout.src = "/images/banner_about.png";
			}	
			curBanner = 2;
			// Assign the new image
			document["bannerImage"].src = bannerAbout.src;
		}
		else
		{
			curBanner = 0;
			// Assign the new image
			document["bannerImage"].src = bannerDapple.src;
		}
	}

	// Need to force the PNG stuff to run, if we're on IE6 or earlier
	supersleight.limitTo('flash');
	supersleight.run();
}

function activateBannerButton()
{
	if (curBanner == 0)
	{
		// Activate the Dapple page
		document.location.href = "/games/dapple/";
	}
	else if (curBanner == 1)
	{
		// Activate the Blog page
		document.location.href = "/blog/";
	}
	else
	{
		// Activate the About page
		document.location.href = "/about.html";
	}
}

