var width1 = 210;
var width2 = 431;
var width3 = 100;
var sldspd = 300;

function slideon() {
$('#clc_slidermenu img').hide().filter('.s3').show();
$(this).children('img.s3').hide().prev().show();
$('#clc_slidermenu span').stop();
$(this).animate({
width: width2
},sldspd);
$(this).siblings().animate({
width: width3
},sldspd);
}

function sliderredirect(){
    window.location = "/private-student-loans/student-loan-calculator/"
    }

function slideoff() {
//$(this).children().toggle();
$('#clc_slidermenu img').hide().filter('.s3').show();
$('#clc_slidermenu span').stop().animate({
width: width1
},sldspd,function() { $('#clc_slidermenu img').hide().filter('.s1').show(); } );

}

$(function() {
	//slider
	$('#clc_slidermenu').wrapInner('<div></div>').children('div').css({display:"block",width:1350,height:100,float:"left",overflow:"hidden"}).children('span').each(function() {
		$(this).children('img').addClass('s1');
		$(this).css({display:"block",width:width1,height:100,float:"left",overflow:"hidden"}).hover(slideon,slideoff).click(function() { return false; });
		$(this).next().appendTo($(this)).addClass('s2').hide();
		$(this).next().appendTo($(this)).addClass('s3').hide();
	});
	//cycler
});