var $j = jQuery.noConflict();

$j(function(){
		//just some regular style sheets. change them as you see fit
		var styling =".name{font-size:14px; cursor:pointer; font-weight: bold; margin-top: 0; padding-top: 2px;}" +
					  ".details{font-size:12px; cursor:pointer; font-weight: normal;}" +
					  ".bio{display:block; padding-left: 15px; margin-left: 20px; border-left:1px solid #921403; width: 485px;}" +
					  ".opened{color:#921403;}" +
					  ".closed{color:#006699;}";		
		//attach style to the page
		var style = document.createElement("style");
        style.type = "text/css";
        try {
            style.appendChild( document.createTextNode(styling) );
        } catch (e) {
            if ( style.styleSheet ) {
                style.styleSheet.cssText = styling;
            }
        }
        document.body.appendChild( style );
		//style all names as closed
		$j(".name").addClass("closed"); 
		//make sure first name is styled as open
	        $j(".name:first").removeClass("closed").addClass("opened"); 
		$j(".bio").hide(); //hide bios
		$j(".bio:first").show(); //show first bio
		//name click
		$j(".name").click(function() {
			$j(".bio").slideUp("fast");
			$j(".name").removeClass("opened").addClass("closed");
	
			if ($j(this).next(".bio").is(":hidden")) {
				$j(this).next(".bio").slideDown("fast");
				$j(this).removeClass("closed").addClass("opened");
			} 			   
		});
		
		
		$j(".lincoln:first").show();
		$j(".columbus:first").show();
		$j(".kearney:first").show();
		$j(".papillon:first").show();
		
		
		$j(".latestnews:last").addClass("agentlogin");
});
