// JavaScript Document


$(window).load( function() {
	
	// adjust column height
	var $leftHeight = $('#contentLeft').height();
	var $rightHeight = $('#navRight').height();
	
	//var maxHeight = ($leftHeight>$rightHeight) ? $leftHeight : $rightHeight ;
	
	var maxHeight = 0;
	
	if( $leftHeight>$rightHeight ){
		$maxHeight = $leftHeight;	
	} else {
		$maxHeight = $rightHeight;	
	}
	
	//alert('left:'+ $leftHeight +  ', wide:'+ $rightHeight  +  ', max:'+ $maxHeight );
	
	
	$('#contentLeft').height(maxHeight);
	$('#navRight').height($maxHeight);
	
	//var newHeight = $('#wide').height();
	//alert(newHeight);
	 
	
	$('#menu li a').hover(
	  function () {
		$(this).parent().addClass("hover");
	  },
	  function () {
		$(this).parent().removeClass("hover");
	  }
	);
	
	
	
	
//	 $('#teaserTxtInner').fadeIn('slow', function() {
//        // Animation complete
//		
//      });
	 
//	 $('#teaserTxtInner').fadeIn('slow');
//	 $('#teaserPhoto').fadeIn('slow');
	
});


$(document).ready( function() {
	
	 $('#teaserTxtInner').hide();
	 $('#teaserPhoto').hide();	

	 $('#teaserTxtInner').fadeIn('slow');
	 $('#teaserPhoto').fadeIn('slow');
	 
	 $("a[href^='http:']").not("[href*='amlalliance.com']").attr('target','_blank');
	 
     $('#teaserPhoto').cycle({ delay:  4000,  speed:  1000 });
	
});




