// JavaScript Document
		
		jQuery(document).ready(function() {
//jQuery(".acc1 > li:eq(0)").addClass('border');
//jQuery(".acc1 > li > a").addClass('head activate');
//jQuery(".currentsection").replaceWith('<a name="current" class="head activate selected">'+ jQuery(".currentsection").html()+'<span class="arrow"></span></a>');
jQuery("#sectionname").hide();
nhbc_image();
         // $(".acc1").accordion({
//				  active: false,
//				  navigation: true,
 //                 alwaysOpen: false,
 //                 autoheight: false,
//                  header: 'a.activate',
//                  clearStyle: true
//          });
//$("#sectionname").show();
		});
		

function nhbc_image()
{
	var nhbc_url = document.location.href.toLowerCase()
	var result
	var pos
	var matched=0
	var TOTAL=5

	page_key = new Array(TOTAL)
	banner_class = new Array(TOTAL)
	
	page_key[1] = "/prideinthejob/"
	banner_class[1] = "PIJBanner"	
	
	page_key[2] = "/newsandcomment/"
	banner_class[2] = "newsBanner"

	page_key[3] = "/sitesppraisalreport/"
	banner_class[3] = "sarBanner"
	
	page_key[4] = "/housingassociations/"
	banner_class[4] = "HABanner"

	page_key[5] = "/hsawards"
	banner_class[5] = "HSABanner"

        
	for (pos=1; pos<=TOTAL+1; pos++)
	{
		result = (nhbc_url.indexOf(page_key[pos]))
		if (result != -1)
		{
			if (banner_class[pos] != "")
			{
				$("#bannerContainer > h1").removeClass().addClass(banner_class[pos]);
				//alert("Class added "+banner_class[pos]);
				matched=1;
				break
			}			
			
		} 
	}
	if (matched == 0) {
	$("#bannerContainer > h1").removeClass().addClass("defaultBanner");
	$("#sectionname").show();
	//alert("page_key not found");
	}
}
