$(document).ready(function() {
	$("#commentForm").validate();
});
$(document).ready(function(){
  $("#setSpanish").click(function () {
    $(".english").css({display:"none"});
    $(".spanish").css({display:"inline"});
	$("#main").css({background:"url(images/mainBG-spanish.jpg) no-repeat"});
	$("#select-iAm").text("Yo soy...");
	$("#select-professional").text("animador profesional");
	$("#select-enthusiast").text("entusiasta de animacion");
	$("#select-animation").text("estudiante de animacion");
	$("#select-art").text("estudiante de arte");
	$("#select-captcha").text("entre las leras que ve");
	$("#header").html("<img src='images/signUp-spanish.png' border='0' alt='Sign Up Now To Get Your Free eBook!' />");
	$("#emailSent").html("<input type='hidden' name='list11' value='eBookSpanish'><input type='hidden' name='trigger' value='eBookSpanish_SpanishEbook'>");
  });
  $("#setEnglish").click(function () {
    $(".english").css({display:"inline"});
    $(".spanish").css({display:"none"});
	$("#main").css({background:"url(images/mainBG.jpg) no-repeat"});
	$("#select-iAm").text("I am...");
	$("#select-professional").text("a professional animator");
	$("#select-enthusiast").text("an animation enthusiast");
	$("#select-animation").text("an animation student");
	$("#select-art").text("an art student");
	$("#select-captcha").text("Please type the letters you see");
	$("#header").html("<img src='images/signUp.png' border='0' alt='Sign Up Now To Get Your Free eBook!' />");
	$("#emailSent").html("<input type='hidden' name='list10' value='eBookEnglish'><input type='hidden' name='trigger' value='eBookEnglish_EnglishEbook'>");
  });
});

var win=null; 
function NewWindow(mypage,myname,w,h,scroll,pos){if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;} if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;} else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20} settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no'; win=window.open(mypage,myname,settings);}
