$(function(){
	$('.extended').hide();
	$('.hrdoccontenttop h3.close, .hrdoccontent h3.close').attr('title','Click to expand and read more'); //Added by JG 26th Aug 2009
	var conts = $('.hrdoccontenttop, .hrdoccontent');
	for (var i=0;i<conts.length;i++) {
	   var h3C = $('h3',conts[i]).attr('class');
	   if (h3C.length>1) {
	      $(conts[i]).css('cursor','pointer');
	      //$(conts[i]).attr('title','Click to expand and read more');
	   }
	}
	$('.hrdoccontenttop, .hrdoccontent').click(function(){
		var expandClass = $('h3',this).attr('class');
		if (expandClass.length>1) {
         if (expandClass=='open') {
            $('h3',this).attr('class','close');
            $('.extended',$(this)).slideUp();
            $('h3',this).attr('title','Click to expand and read more');
         }
         else {
            $('h3',this).attr('class','open');
            $('.extended',$(this)).slideDown();
            $('h3',this).attr('title','Click to contract');
         }
		}
	});
});