$(document).ready( function(){ 
	$(".register-input").focus( function(){
		$(this).val('');
	});
	


	var hide = false;
	// infocus_rollover1
	$(".infocus1").hover(function(){
		if (hide) clearTimeout(hide);
		$("#infocus_rollover1").fadeIn();
	}, function() {
		hide = setTimeout(function() {$("#infocus_rollover1").fadeOut("fast");}, 150);
	});
	$("#infocus_rollover1").hover(function(){
		if (hide) clearTimeout(hide);
	}, function() {
		hide = setTimeout(function() {$("#infocus_rollover1").fadeOut("fast");}, 150);
	});
	// infocus_rollover2
	$(".infocus2").hover(function(){
		if (hide) clearTimeout(hide);
		$("#infocus_rollover2").fadeIn();
	}, function() {
		hide = setTimeout(function() {$("#infocus_rollover2").fadeOut("fast");}, 150);
	});
	$("#infocus_rollover2").hover(function(){
		if (hide) clearTimeout(hide);
	}, function() {
		hide = setTimeout(function() {$("#infocus_rollover2").fadeOut("fast");}, 150);
	});
	// infocus_rollover3
	$(".infocus3").hover(function(){
		if (hide) clearTimeout(hide);
		$("#infocus_rollover3").fadeIn();
	}, function() {
		hide = setTimeout(function() {$("#infocus_rollover3").fadeOut("fast");}, 150);
	});
	$("#infocus_rollover3").hover(function(){
		if (hide) clearTimeout(hide);
	}, function() {
		hide = setTimeout(function() {$("#infocus_rollover3").fadeOut("fast");}, 150);
	});
	// infocus_rollover4	
	$(".infocus4").hover(function(){
		if (hide) clearTimeout(hide);
		$("#infocus_rollover4").fadeIn();
	}, function() {
		hide = setTimeout(function() {$("#infocus_rollover4").fadeOut("fast");}, 150);
	});
	$("#infocus_rollover4").hover(function(){
		if (hide) clearTimeout(hide);
	}, function() {
		hide = setTimeout(function() {$("#infocus_rollover4").fadeOut("fast");}, 150);
	});



});


		if (navigator.platform.indexOf("Mac")!= -1)
		{
		var cssNode = document.createElement("link");
		cssNode.setAttribute("rel", "stylesheet");
		cssNode.setAttribute("type", "text/css");
		cssNode.setAttribute("href", "css/mac.css");
		document.getElementsByTagName("head")[0].appendChild(cssNode);
		}






function MM_validateForm() { //v4.0
  if (document.getElementById){
    var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
    for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
      if (val) { nm=val.name; if ((val=val.value)!="") {
        if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
          if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
        } else if (test!='R') { num = parseFloat(val);
          if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
          if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
            min=test.substring(8,p); max=test.substring(p+1);
            if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
      } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
    } if (errors) alert('The following error(s) occurred:\n'+errors);
    document.MM_returnValue = (errors == '');
} }
