/**
 * Moore Stephens Website JS Application Code
 *
 * @version 1.0
 * @copyright Moore Stephends 09
 * @author Sean Nieuwoudt
 */
 $(document).ready(function(){
 
 	/*$('#dropdown-home').bind('mouseenter', function(){
 		
 		var item = $('#mnuHome-dropdown');
 		
 		if(item.css('height') == '260px'){
	 		$('#mnuHome-dropdown').animate({opacity:0, height:0, z_index:0});
 		} else {
	 		$('#mnuHome-dropdown').animate({height:"260px",opacity:1});
 		}	
 	});
 	*/
 	
 	// ie
 	if ($.browser.msie && $.browser.version.substr(0,1) <= 7){
 		$('#no_ie').show();
 	}
 	
 	$('#sub-menu a').bind('click', function(){
 	
 		var ln = $(this);
 		var cn = ln.attr('href');
 		
 		$('div#body-wrapping div').each(function(){
 			$(this).css('display','none');
 		});
 		
 		$('div#'+cn).css('display', 'block');
 		
 		//$('#mnuHome-dropdown').animate({opacity:0, height:0, display:"none"});
 		
 		return false;
 	});
 	/*
 	$(document).bind('click', function(){
 		$('#mnuHome-dropdown').animate({opacity:0, height:0, display:"none"});
 	}); 	
 	*/
 	
 	
 	// Careers Page
 	$('#why-left ul li a').bind('click', function(){
 		
 		$('#why-left ul li a').each(function(){
 			$(this).css('color', '#333');
 		});
 		
 		$(this).css('color', '#00adef');
 	
 		$('#careers-right div').each(function(){
 			$(this).css('display', 'none');
 		});
 		
 		var id = $(this).attr('id');
 		
 		$('#careers-right div#careers-' + id).css('display', 'block');
 	
 	
 	 	return false;
 	});
 	
 
 });