﻿// JScript File
    

	$(document).ready(function(){
		$(".nav1 li").after("<li class='sep'><span>|</span></li>");
		$(".nav1 li:last").remove();
		$(".nav1 li:nth-child(1)").css("padding-left","45px");
		/*$(".nav1 li:nth-child(3)").css("padding-left","58px");
		$(".nav1 li:nth-child(5)").css("padding-left","64px");*/
		
		$(".nav2 li").after("<li class='sep'><span>|</span></li>");
		$(".nav2 li:last").remove();
		$(".nav2 li:nth-child(1)").css("padding-left","30px");
		/*$(".nav2 li:nth-child(3)").css("padding-left","52px");
		$(".nav2 li:nth-child(5)").css("padding-left","63px");
		$(".nav2 li:nth-child(7)").css("padding-left","73px");*/
		
		
		$(".nav1 li").click(function(){
			$(".nav1 li").removeClass("current");
			Cufon.refresh();
			$(this).addClass("current");
		});
		
		
		$(".nav2 li").click(function(){
			$(".nav2 li").removeClass("current");
			
			Cufon.refresh();
			$(this).addClass("current");
		});
		
			
		$(".nav1 li a").click(function(){
			$("#update1 #update1_tab1, #update1 #update1_tab2, #update1 #update1_tab3").hide();
			$("#" + $(this).attr("class")).show();
		});
		
		$(".nav2 li a").click(function(){
			$("#update2 #update2_tab1, #update2 #update2_tab2, #update2 #update2_tab3, #update2 #update2_tab4").hide();
			$("#" + $(this).attr("class")).show();
		});
		
		$("#update1 #update1_tab1").show(); 
		$("#update2 #update2_tab1").show();
		$('.form2 input[type="radio"]').ezMark(); 
		
		
		$('#btnSignUp').click(function(ev) {
		    ev.preventDefault();
		    var option = $('input[name=opt]:checked').val();
		    //window.location.href='teachers/registration.aspx?opt='+option;
		    
		    if (option=='1') {
		       window.location.href='teachers/registration.aspx?opt='+option;
		    } else {
		       alert('Coming Soon!');
		    }
		    
		    
		});
		
		
		$('a.error_close').click(function(ev) {
		 ev.preventDefault();
		    $('.error_home').hide();
		});
		
		$('div.text8').html("Create an online KLEOaccount™ and collect funds in one place, or deposit funds into a user's KLEOaccount™ and receive a paper trail<br /> and full transparency on how the funds are used.");
		
	});
	




