function expandHash()
			{
				//alert('hey');
			
				if (window.location.hash)
				{
					var ptr = window.location.hash;

					jQuery.each(jQuery("a.anchor"),function() {

						var curname = jQuery(this).attr("name");

						if (curname)
						{
							curname = "#" + curname;

							if (curname == ptr)
							{
								var id = jQuery(this).attr("id");
								var blockid = id.replace(/anchor-/,"");
						
								if (blockid > 0)
								{
									//alert(blockid);
									jQuery('#block' + blockid + ', #viewList' + blockid + ', #closeList' + blockid).toggle();
									scrollToAnchor("#" + id);
								}
							}
						}

					});

				}	

			}

			function scrollToAnchor(anchortag)
			{
				//get the top offset of the target anchor
				var target_offset = jQuery(anchortag).offset();
				if (target_offset)
				{
					var target_top = target_offset.top;
					target_top = Math.floor(target_top - 10);//-10 to give a little margin-top
					jQuery('html, body').animate({scrollTop:target_top}, 500);
				}			
			}

			jQuery(document).ready(function() {

					expandHash();				
				
			});

