
$(document).ready(function(){


	$(".slidetabs").tabs(".images > div", {

	// enable "cross-fading" effect
	effect: 'fade',
	fadeOutSpeed: "slow",

	// start from the beginning after the last tab
	rotate: true

// use the slideshow plugin. It accepts its own configuration
}).slideshow({autoplay: true});

/*
  // Disabled options fix for Internet Explorer
  $('select').each(function(){
    this.rejectDisabled = function(){
      if (this.options[this.selectedIndex].disabled){
        if (this.lastSelectedIndex) {
          this.selectedIndex = this.lastSelectedIndex;
        } else {
          var first_enabled = $(this).children('option:not(:disabled)').get(0);
          this.selectedIndex = first_enabled ? first_enabled.index : 0;
        }
      } else {
        this.lastSelectedIndex = this.selectedIndex;
      }
    };
    this.rejectDisabled();
    this.lastSelectedIndex = this.selectedIndex;
    $(this).children('option[disabled]').each(function(){
      $(this).css('color', '#CCC');
    });
    $(this).change(function() {
      this.rejectDisabled();
    });
  });
  */
  
  //Select box width fix for Internet Explorer
	$("#services").mousedown(function(){
	    if($.browser.msie) {
	            $(this).css("width","auto");
	            $(this).css("position","absolute");
	            $("#region").css("position","absolute");
	            $("#region").css("top","50px");
	            $("#submit-button").css("position","absolute");
	            $("#submit-button").css("top","80px");
	    }
	});
	
	$("#services").change(function(){
        if ($.browser.msie) {
            $(this).css("width","150px");
            
        }
	});
	$("#services").blur(function(){
		if ($.browser.msie) {
			$(this).css("width","150px");
		}
	});

});

function setEqualHeight(columns) {
    var tallestcolumn = 0;
    columns.each(function(){
    	currentHeight = $(this).height();
    	if (currentHeight > tallestcolumn) {tallestcolumn = currentHeight;}
    	});
    columns.height(tallestcolumn);
}

//$(document).ready(
$(window).load(
function(){
	setEqualHeight($(".announce-box"));
});


