$(document).ready(function () {
  
  	//Clear Form Field on Focus
  	$('.clearme').one("focus", function() {
  		
  		$(this).val("");
	
	});
	
              
	$('.launchpad').hover(function() {
		
  		$(this).addClass('launchpadhover');

   	}, function() {
      
    	$(this).removeClass('launchpadhover');

  	});
  	
  	
  	$('.info-button').click(function() {
  	
  	   	var current = $('.active');
  	   	if ($('.active').eq(0).next().attr('id').length > 0) {
  	  	   		
  	   		var next = $('.active').eq(0).next();
  	   	
  	   	} else {
  	   	
  	   		var next = $('#home-content').find("div:first");
  	   	
  	   	}
  	   	
  	   	current.hide();
  	   	
  	   	next.addClass('active');
  	   	next.show('fast');
  	   	current.removeClass('active');
  	   	 
  	   	return false;
  	
  	});
      

});


// ie navigaiton fix for drop-down navigation.

sfHover = function() {
var sfEls = document.getElementById("mainnav").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
	sfEls[i].onmouseover=function() {
		this.className+=" sfhover";
	}
	sfEls[i].onmouseout=function() {
		this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
	}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);