// JavaScript Document
jQuery(document).ready(function() {
												
	$(function() {

    $(".select")

        .hover(function(){
            $(this).css("width", "auto");
        })
		
//		.click(function(){
  //          $(this).css("width", "auto");
    //    })
		.change(function(){
            $(this).css("width", "200px");
        })
//		.mouseout(function(){
  //          $(this).css("width", "200px");
    //    })
        .blur(function(){
            $(this).css("width", "200px");
        });

});
	
	
//	var threeWays = $('.achieveHIT3ways').height();
	equalHeight($(".achieveHIT3ways"));
	//alert(threeWays);
								
});

function equalHeight(group) {
    var tallest = 0;
	var shortest = 1000;
    group.each(function() {
        var thisHeight = $(this).height();
        if(thisHeight > tallest) {
            tallest = thisHeight;
        }
    });
	group.each(function() {
		var thisHeight = $(this).height();
		if(thisHeight != tallest) {
			var heightDif = tallest - thisHeight; //for some reason it was always off by 12 got lazy and added it
			if (jQuery.support.noCloneEvent) { //firefox
				heightDif = heightDif+12;
			} else { //ie6&7
				heightDif = heightDif+19;
			}
			$(this).children(".learnmore").css("marginTop",heightDif);
		}
	});
   // group.height(tallest);
}
