function showSlider()
{
	$("#slider").show();
}

function hideTeasers()
{
	$("div[id=blue] .teaser").animate({opacity:0}, 500,function(){
		$(this).hide();
	});
	
	$("div[id=green] .teaser").animate({opacity:0}, 500,function(){
		$(this).hide();
	});
	
}

function showTeasers()
{
	$("div[id=blue] .teaser").show().animate({opacity:1}, 500);
	$("div[id=green] .teaser").show().animate({opacity:1}, 500);
}

function hideLeftBody()
{
	$("div[id=green] .body").animate({opacity:0}, 500,function(){
		$(this).hide();
	});
}

function hideRightBody()
{
	$("div[id=blue] .body").animate({opacity:0}, 500,function(){
		$(this).hide();
	});
}

function showLeftBody()
{
	$("div[id=green] .body").animate({opacity:1},function(){
		$(this).show();
	});
}

function showRightBody()
{
	$("div[id=blue] .body").animate({opacity:1},function(){
		$(this).show();
	});
}

function setNeutral()
{
	$("div[id=green]").animate({width:"50%"},1000,function(){
		window.location = "http://www.preferredschoolcareinc.com/";
	});
	$("div[id=blue]").animate({width:"50%"},1000);
	
	$("div[id=blue] .title").animate({ paddingTop:"30px", fontSize:"1.5em" },1100);
	$("div[id=green] .title").animate({ paddingTop:"30px", fontSize:"1.5em" },1100);
	
	$("div[id=green] .pd").animate({ paddingLeft: "131px", paddingRight: "65px" },1000);
	$("div[id=blue] .pd").animate({ paddingLeft: "65px", paddingRight: "131px" },1000);
	
	$("div[id=blue] .h").animate({ bottom: "0", right: "0" },1000);
	$("div[id=green] .h").animate({ bottom: "-0", left: "0" },1000);
	
	hideLeftBody();
	hideRightBody();
	showTeasers();
	
	$("div[id=green] .slide").unbind().bind('click',setLeft);
	$("div[id=blue] .slide").unbind().bind('click',setRight);
}

function setLeft()
{
	$("div[id=green]").animate({width:"85%"},1000,function(){
		window.location = "http://www.preferredschoolcareinc.com/index.php/psc-lc";
	});
	$("div[id=blue]").animate({width:"15%"},1000);
	
	$("div[id=blue] .title").animate({ paddingTop:"10px", fontSize:"1.0em" },900);
	$("div[id=green] .title").animate({ paddingTop:"30px", fontSize:"2em" },900);
	
	$("div[id=blue] .pd").animate({ paddingLeft: "0", paddingRight: "0" },1000);
	$("div[id=green] .pd").animate({ paddingLeft: "131px", paddingRight: "65px" },1000);
	
	$("div[id=blue] .h").animate({ bottom: "-33px", right: "-42px" },1000);
	
	hideTeasers();
	showLeftBody();
	
	$("div[id=green] .slide").unbind().bind('click',setNeutral);
	$("div[id=blue] .slide").unbind().bind('click',setNeutral);
}

function quickLeft()
{
	$("div[id=green]").css({"width":"85%"});
	$("div[id=blue]").css({"width":"15%"});
	
	$("div[id=blue] .title").css({ "padding-top":"10px", "font-size":"1.0em" });
	$("div[id=green] .title").css({ "padding-top":"30px", "font-size":"2em" });
	
	$("div[id=blue] .pd").css({ "padding-left": "0", "padding-right": "0" });
	$("div[id=green] .pd").css({ "padding-left": "131px", "padding-right": "65px" });
	
	$("div[id=blue] .h").css({ "bottom": "-33px", "right": "-42px" });
	
	$("div[id=blue] .teaser").hide();
	$("div[id=green] .teaser").hide();
	$("div[id=green] .body").show();
	
	$("div[id=green] .slide").unbind().bind('click',setNeutral);
	$("div[id=blue] .slide").unbind().bind('click',setNeutral);
}

function setRight()
{
	$("div[id=blue]").animate({width:"85%"},1000,function(){
		window.location = "http://www.preferredschoolcareinc.com/index.php/psc";
	});
	$("div[id=green]").animate({width:"15%"},1000);
	
	$("div[id=green] .title").animate({ paddingTop:"10px", fontSize:"1.0em" },900);
	$("div[id=blue] .title").animate({ paddingTop:"30px", fontSize:"2em" },900);
	
	$("div[id=blue] .pd").animate({ paddingLeft: "65px", paddingRight: "131px" },1000);
	$("div[id=green] .pd").animate({ paddingLeft: "0", paddingRight: "0" },1000);
	
	$("div[id=green] .h").animate({ bottom: "-34px", left: "-27px" },1000);
	
	hideTeasers();
	showRightBody();
	
	$("div[id=green] .slide").unbind().bind('click',setNeutral);
	$("div[id=blue] .slide").unbind().bind('click',setNeutral);
}

function quickRight()
{
	$("div[id=blue]").css({"width":"85%"});
	$("div[id=green]").css({"width":"15%"});
	
	$("div[id=green] .title").css({ "padding-top":"10px", "font-size":"1.0em" });
	$("div[id=blue] .title").css({ "padding-top":"30px", "font-size":"2em" });
	
	$("div[id=blue] .pd").css({ "padding-left": "65px", "padding-right": "131px" });
	$("div[id=green] .pd").css({ "padding-left": "0", "padding-right": "0" });
	
	$("div[id=green] .h").css({ "bottom": "-34px", "left": "-27px" });
	
	$("div[id=blue] .teaser").hide();
	$("div[id=green] .teaser").hide();
	$("div[id=blue] .body").show();
	
	$("div[id=green] .slide").unbind().bind('click',setNeutral);
	$("div[id=blue] .slide").unbind().bind('click',setNeutral);
}
