$(document).ready(function()
{	
	$('#contentID').val("1");
	
	$('.nav_box').click(function()
	{
	    window.location = $(this).attr('link');
	});

	$('#next').click(function()
	{		
		var id = $('#contentID').val();		
		id++;
		
		if(id > 5 )
		{
			id = 1;
		}
		
		$('#contentID').val(id);
		
		$('#info_text').html(getContent(id));
		
		document.getElementById('picture').src = getPicture(id);
	});

	$('#previous').click(function()
	{
		var id = $('#contentID').val();		
		id--;
		
		if(id < 1 )
		{
			id = 5;
		}
		
		$('#contentID').val(id);
		
		$('#info_text').html(getContent(id));

		document.getElementById('picture').src = getPicture(id);
	});
	
	$('.nav_box').mouseover(function()
	{
		$(this).css({'background-color' : '#FFF4CC'});
	});
	
	$('.nav_box').mouseout(function()
	{
		$(this).css({'background-color' : '#ffffff'});
	});
	
	function getContent(id)
	{
		switch(id)
		{
		case 1: return "<img class='png' src='images/slide1_title.png' alt='Kidz First Fundraising' /><br /><br />Founded to enrich the lives of students, athletes, sponsers, and parents through affordable, profitable, and customer friendly fundraising programs.<br /><br />Please watch the slide show or click next.";
		break;
			
		case 2: return "<img class='png' src='images/slide2_title.png' alt='' /><br /><br />With extensive backgrounds in education &amp; school leadership Kidz First Fundraising has designed programs which are school friendly, providing resources that allow for minimum impact to the school environment. ";
		break;
		
		case 3: return "<img class='png' src='images/slide3_title.png' alt='' /><br /><br />Small school groups can benefit from our \"No Minimum order\" and \"No Shipping Charge Policies\" while providing them with programs that appeal to their fellow students as well as parents and friends.";
		break;
		
		case 4: return "<img class='png' src='images/slide4_title.png' alt='' /><br /><br />Last year Kidz First Fundraising served over 40,000 School &amp; Sports League Athletes raising extraordinary amounts of money for their teams.";
		break;
		
		case 5: return "<img class='png' src='images/slide5_title.png' alt='' /><br /><br />What type of package can we help you with?<div style='padding-left:50px; padding-top:13px; width:100%;'><table width='410'><tr><td><a href='schools.html'><img src='images/button_schools.png' alt='Schools' /></a></td><td></td><td><a href='sports-daycare.html'><img src='images/button_sports.png' alt='Schools' /></a></td></tr><tr><td colspan='3'></td></tr><tr><td><a href='schoolgroups.html'><img src='images/button_schoolgroups.png' alt='School Groups' /></a></td><td></td><td><a href='help.php'><img src='images/button_notsure.png' alt='Not sure? - We can still help' /></a></td></tr></table></div>";
		break;
		}
	}

	function getPicture(id)
	{
		switch(id)
		{
		case 1: return "images/slide1.jpg";
		break;
			
		case 2: return "images/slide2.jpg";
		break;

		case 3: return "images/slide3.jpg";
		break;

		case 4: return "images/slide4.jpg";
		break;

		case 5: return "images/slide5.jpg";
		break;
		}
	}
});