
		function get_nextsibling(n)   {
		  x = n.nextSibling;
		  while (x.nodeType != 1)   {
			 x = x.nextSibling;
		  }
		  return x;
		}

		function getFirstchild(n)
		{
			x = n.firstChild;
			while (x.nodeType != 1) {
				x = x.nextSibling;
			}
			return x;
		}

		function openclose(obj)
		{
var titl = getFirstchild(obj.parentNode.parentNode);

			var img = getFirstchild(getFirstchild(obj.parentNode.parentNode.parentNode.parentNode));
			var con = get_nextsibling(obj.parentNode.parentNode);
			var t = 'className';
			if (navigator.appVersion.indexOf('MSIE 7.')==-1)
				t = 'class';
			
			if (obj.getAttribute(t) == 'exp_off')
			{
				titl.setAttribute(t, 'title_on bodyText');
				obj.setAttribute(t, 'exp_on');
				img.setAttribute(t, 'eg-imgLarge');
				con.setAttribute(t, 'content_show');
			}
			else
			{
				titl.setAttribute(t, 'title_off bodyText');
				obj.setAttribute(t, 'exp_off');
				img.setAttribute(t, 'eg-imgSmall');
				con.setAttribute(t, 'content_hide');
			}
		}

		function toggleAll(cmd)
		{
			var t = 'className';
			if (navigator.appVersion.indexOf('MSIE 7.')==-1)
				t = 'class';
			var allHTMLTags=document.getElementsByTagName('*');
			
			if (cmd == 'expand')
			{
				for (i=0; i<allHTMLTags.length; i++)
				{
					if (allHTMLTags[i].className=='title_off bodyText')
						allHTMLTags[i].setAttribute(t, 'title_on bodyText');
					if (allHTMLTags[i].className=='eg-imgSmall')
						allHTMLTags[i].setAttribute(t, 'eg-imgLarge');
					if (allHTMLTags[i].className=='exp_off')
						allHTMLTags[i].setAttribute(t, 'exp_on');
					if (allHTMLTags[i].className=='content_hide')
						allHTMLTags[i].setAttribute(t, 'content_show');
				}
			}
			else
			{
				for (i=0; i<allHTMLTags.length; i++)
				{
					if (allHTMLTags[i].className=='title_on bodyText')
						allHTMLTags[i].setAttribute(t, 'title_off bodyText');
					if (allHTMLTags[i].className=='eg-imgLarge')
						allHTMLTags[i].setAttribute(t, 'eg-imgSmall');
					if (allHTMLTags[i].className=='exp_on')
						allHTMLTags[i].setAttribute(t, 'exp_off');
					if (allHTMLTags[i].className=='content_show')
						allHTMLTags[i].setAttribute(t, 'content_hide');
				}
			}
			
		}

