$(function(){

$(".ie7 .home #nav-content-wrapper").append($(".ie7 #navigation-wrapper"));

$('.print-link').click(function() {
    window.print();
    return false;
  });

/*
var confirmation_msg = "The purpose of our website is to inform our clients and friends about the firm and of recent legal developments in different areas of law. It is not intended nor should it be used as a substitute for specific legal advice or opinions since legal counsel may be given only in response to inquiries regarding particular situations.  While we would like to hear from you, an attorney/client relationship cannot be established until we know that doing so will not create a conflict of interest and until we reach an agreement on terms of representation. Therefore do not send us confidential information about any matter that may involve you at this time.";
	      
$('.connections-list span.email a').click(function() {
return confirm(confirmation_msg);
});
*/
	      
	//LawCMS
	$('#slideshow').innerfade({ speed: 'slow', timeout: 6000, type: 'sequence', containerheight: '327px' }); 
	
	//LawCMS
	$(".phone-number-block strong:contains('Cell Phone')").text('Direct Dial');
	$(".phone-number-block strong:contains('Work Phone')").text('Phone');
	$(".phone-number-block strong:contains('Work Fax')").text('Fax');
	$(".email-address-block strong:contains('Work Email')").text('Email:');
	
	//Wisler Custom
	$(".street-address").prepend("Blue Bell Executive Campus<br/>");
	$("#field_2_5 .ginput_container").prepend($("#field_2_5 .gfield_description"));
	
	
	//LawCMS
	var items = [];
	$('.list-team').each(function(){
		items.push($(this).html());
	})
		items.sort();
		//console.log(items)
	
	if ($('.list-practice-area-chair li.field-practice-area-co-chair').length) {
	var cochairperson = $(".list-practice-area-chair li.field-practice-area-co-chair").text();
	$(".list-team li a:contains(" + cochairperson + ")").append('<span>, Co-Chair</span>').parent().prependTo($(".list-team"));
	}
	
	if ($('.list-practice-area-chair li.field-practice-area-chair-2').length) {
	var chairperson2 = $(".list-practice-area-chair li.field-practice-area-chair-2").text();
	$(".list-team li a:contains(" + chairperson2 + ")").append('<span>, Chair</span>').parent().prependTo($(".list-team"));
	}
	
	if ($('.list-practice-area-chair li.field-practice-area-chair').length) {
	var chairperson = $(".list-practice-area-chair li.field-practice-area-chair").text();
	$(".list-team li a:contains(" + chairperson + ")").append('<span>, Chair</span>').parent().prependTo($(".list-team"));
	}
	
	//Wisler Custom
	if ($('.list-team').length) {
	$(".list-team li:contains('Jennifer R. Goldman')").append(', Education Specialist');
	}
	
	$(".ie .ddsg-wrapper div:last-child").css('display','none');
	
	$(".postid-1024 .attorney-info-bar-admissions h3").text("Certifications");
	
	
/* no longer need... 	$(".page-id-313 .list-team").append('<li><a href="http://www.wislerpearlstine.com/our-team/shavon-y-savage">ShaVon Y. Savage</a></li> <li><a href="http://www.wislerpearlstine.com/our-team/gail-a-weilheimer">Gail A. Weilheimer</a></li>'); */
	
	//attorney list page.
/*
	$(".attorney-item img").fadeTo("normal", 0.85);
	$(".attorney-item img").hover(function(){
	$(this).fadeTo("normal", 1.0);
	},function(){
	$(this).fadeTo("normal", 0.85);
	});
*/
	

	//practice areas handled by sorting instea, but we can use this if we need to dynamically control sorting.
	

	/*
	var items = [];
	$('.attorney-item').each(function(){
		items.push($(this).html());
	})
		items.sort();
*/



/* Removed the hover menus.

$('.cn-entry .adr').prepend($(".attorney-info-assistant"));
var menu = $('.current-menu-item, .current-page-ancestor');
    $("#menu-primary-navigation li").not(menu).hover(function(){
        $(this).addClass("hover");
        $('.menu-primary ul:first',this).css('display', 'block');
    }, function(){
        $(this).removeClass("hover");
        $('.menu-primary ul:first',this).css('display', 'none');
});
    
  */   
});






















