function go(url, link) {
	top.frames['content'].location = '/surveys/show/' + url; 
	$('surveytitle').innerHTML = "&raquo; " + link.innerHTML;
    $('breadcrumb').innerHTML = '<a href="/surveys">Survey Home</a> &gt; ' + '<a href="#" onclick="go(\'' + url + '\', this);return false">' + link.innerHTML + "</a>";
    return false;
}
var menu_active = null;
var menu_initialized = false;

			function menu_toggle(n){
				if (!menu_initialized){
					var menu_cnt = 1;
					var nn = n.parentNode.parentNode.firstChild;
					while (nn){
						if (nn.nodeName.toLowerCase()=="li"){
							var nnn = nn.firstChild;
							while (nnn){
								if (nnn.nodeName.toLowerCase()=="ul"){
									if (nnn.style.display!="none")menu_active = nnn;
									var div = document.createElement('div');
									div.style.display = nnn.style.display;
									div.style.overflow = 'hidden';
									div.id = 'menu_'+menu_cnt;
									menu_cnt++;
									nn.insertBefore(div, nnn);
									div.appendChild(nnn);
									nnn.style.display = 'block';
									break;
								}
								nnn = nnn.nextSibling;
							}
						}
						nn=nn.nextSibling;
					}
					menu_initialized = true;
				}
				while (n.nodeName.toLowerCase()!="div")n = n.nextSibling;
				if (menu_active!=null && menu_active.id==n.id){
					menu_active = null;
				}
				else {
					menu_active = n;
				}
				window.setTimeout('menu_anim()', 10);
			}
			function menu_anim(){
				if (!menu_initialized)return;
				var no_anim = true;

				var n = $('survey-menu');
				if (!n)return;
				n = n.firstChild;
				while (n){
					if (n.nodeName.toLowerCase()=="li"){
						var nn = n.firstChild;
						while (nn){
							if (nn.nodeName.toLowerCase()=="div"){
								if (menu_active!=null && nn.id==menu_active.id){
									if (nn.style.display == 'none'){
										nn.style.height = '1px';
										nn.style.display = 'block';
										no_anim = false;
									}
									else {
										var h = nn.offsetHeight + 5;
										var maxh = nn.firstChild.offsetHeight;
										if (h>maxh)h=maxh;else no_anim = false;
										nn.style.height = h+'px';
									}
								}
								else {
									if (nn.style.display!='none'){
										var h = nn.offsetHeight-5;
										if (h<=0){
											nn.style.display = 'none';
										}
										else {
											nn.style.height = h+'px';
											no_anim = false;
										}
									}
								}
								break;
							}
							nn = nn.nextSibling;
						}
					}
					n = n.nextSibling;
				}
				if (!no_anim)window.setTimeout('menu_anim()', 10);
			}


