	//category images
	var imgs = {
		alter:'/Images/Structural/Media/Icons/Alterations%20&%20Additions.gif',
		heritage: '/Images/Structural/Media/Icons/Heritage.gif',
		multiple: '/Images/Structural/Media/Icons/Multiple%20Dwellings.gif',
		commercial: '/Images/Structural/Media/Icons/Commercial.gif',
		new_house: '/Images/Structural/Media/Icons/New%20Houses.gif'
		
		};


$(function() {
	$(window).scroll(function() {
		if($(this).scrollTop() != 0) {
			$('#toTop').fadeIn();	
		} else {
			$('#toTop').fadeOut();
		}
	});
 
	$('#toTop').click(function() {
		$('body,html').animate({scrollTop:0},1200);
	});	
	
	

	
	$('.TreeViewRootLevelContainer_3:eq(1)').css('background','url('+imgs.new_house+') no-repeat 0px 4px');
	$('.TreeViewRootLevelContainer_3:eq(2)').css('background','url('+imgs.alter+') no-repeat 0px 4px');
	$('.TreeViewRootLevelContainer_3:eq(3)').css('background','url('+imgs.heritage+') no-repeat 0px 4px');
	$('.TreeViewRootLevelContainer_3:eq(4)').css('background','url('+imgs.multiple+') no-repeat 0px 4px');
	$('.TreeViewRootLevelContainer_3:eq(5)').css('background','url('+imgs.commercial+') no-repeat 0px 4px');
	
	
});
