/****************************************$().ready()- this function is triggered when all page elements have been loadedand are ready to be manipulated. just like onload="init()"****************************************/$(document).ready(function(){	$("#txtEmail").focus(function() {		if (this.value == "Email Address"){			this.value = "";		}	});	$("#txtEmail").blur(function() {		if (this.value == ""){			this.value = "Email Address";		}	});//Preschool skills button	if($("#but-pre").length) {		$("#but-pre").hover(function() {			$(this).addClass('but-pre-on');		}, function() {			$(this).removeClass('but-pre-on');		}).click(function() {			$("div#tog-ttl").text( "Preschool Skills");			$("div#tog-txt").text( "Leveled learning activities teach key skills for school, such as counting, math and phonics skills.");		});	}	if($("#but-comp").length) {		$("#but-comp").hover(function() {			$(this).addClass('but-comp-on');		}, function() {			$(this).removeClass('but-comp-on');		}).click(function() {			$("div#tog-ttl").text( "Computer Skills");			$("div#tog-txt").text( "ClickStart My First Computer introduces basic computing skills such as keyboard navigation, screen navigation and mousing.");		});	}//Sign up submit	if($("#but-sign").length) {		$("#but-sign").hover(function() {			$(this).addClass('but-sign-on');		}, function() {			$(this).removeClass('but-sign-on');		}).click(function() {			alert('To implement sign up form');			return false;		});	}//Special offers button	if($("#cs-special-but").length) {		$("#cs-special-but").hover(function() {			$(this).addClass('cs-special-but-over');		}, function() {			$(this).removeClass('cs-special-but-over');		}).click(function() {			alert('To implement speical offer button');			return false;		});	}	$(window).bind('load', function() {		$.preloadImages("../img/but_skills_preschool_on.png", "../img/but_skills_computer_on.png", "../img/but-sign_on.png", "../img/but-demo_on.png",  "../img/but-buynow_on.png", "..img/but-visit-lp_on.png");	});//Demo button	if($("#but-demo").length) {		$("#but-demo").hover(function() {			$(this).addClass('but-demo-on');		}, function() {			$(this).removeClass('but-demo-on');		});	}//Buy Now button	if($("#but-buynow").length) {		$("#but-buynow").hover(function() {			$(this).addClass('but-buynow-on');		}, function() {			$(this).removeClass('but-buynow-on');		}).click(function() {			window.location = "http://www.leapfrog.com/en/families/clickstart/platform/cs_clickstart.html";		});	}});
