$(document).ready(function(){
//slider
var i;
var changeamount;
var j;
changeamount = 4000;
i = 2;
var j=0;
for (j=0;j<=100;j++)
{
i = i + changeamount;
setTimeout(function() {$("td.1").animate({width:0  },1000);}, i);
setTimeout(function() {$("td.2").animate({width:501},1000);}, i);
i = i + changeamount;
setTimeout(function() {$("td.2").animate({width:0  },1000);}, i);
setTimeout(function() {$("td.3").animate({width:501},1000);}, i);
i = i + changeamount;
setTimeout(function() {$("td.3").animate({width:0  },1000);}, i);
setTimeout(function() {$("td.4").animate({width:501},1000);}, i);
i = i + changeamount;
setTimeout(function() {$("td.4").animate({width:0  },1000);}, i);
setTimeout(function() {$("td.5").animate({width:501},1000);}, i);
i = i + changeamount;
setTimeout(function() {$("td.5").animate({width:0  },1000);}, i);
setTimeout(function() {$("td.1").animate({width:501},1000);}, i);
  }
//apps
  $("img.app").mouseover(function(){
  $(this).animate({height:60, width:60},"fast");
  });
  $("img.app").mouseout(function(){
  $(this).animate({height:50, width:50},"fast");
  });
});

//form validation
function validateForm()
{
var x=document.forms["form"]["email"].value;
var atpos=x.indexOf("@");
var dotpos=x.lastIndexOf(".");
if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length)
  {
  alert("Not a valid e-mail address");
  return false;
  }
  var x=document.forms["form"]["lname"].value;
if (x==null || x=="")
  {
  alert("Please enter your First and Last name");
  return false;
  }
}
