$(document).ready(function() {
	$('#featured').cycle({fx:'fade',speed:'slow',timeout:7000,next:'#featured_right',prev:'#featured_left'});
	$('#e4_1,#e4_2,#e4_3,#e4_Ext').autotab();
	$('#e1').focus();
	if ($.browser.msie == true) {
			$('#nav li a,#crumbs li a').corners("5px");
			$('.button').css('border','0px').corners("5px");
			$('#centric_header').parent().css('background-color','#141414');
			$('#centric_header').css('line-height','1.25').corners("5px top");
			//$('#centric .button').parent().css('background-color','#848064');

	}
});

jQuery.fn.autotab=function(){jQuery(this).keyup(function(e){switch(e.keyCode){case 9:return false;case 16:return false;case 20:return false;default:var maxlength=jQuery(this).attr('maxlength');var inputlength=jQuery(this).val().length;if(inputlength>=maxlength){jQuery(this).next('input[type="text"]').focus();}}});}
jQuery.fn.vjustify=function() {
    var maxHeight=0;
    this.each(function(){
        if (this.offsetHeight>maxHeight) {maxHeight=this.offsetHeight;}
    });
    this.each(function(){
        $(this).height(maxHeight + "px");
        if (this.offsetHeight>maxHeight) {
            $(this).height((maxHeight-(this.offsetHeight-maxHeight))+"px");
        }
    });
};