d=document;e=window;m=false;p=screen;k=m;function n(o,name,x,y,w,h,attrib){if(k)alert(attrib);popupWin=e.open(o,name,'width='+w+',height='+h+', left='+x+',top='+y+',screenX='+x+',screenY='+y+attrib);popupWin.focus();}function popupWindows(){if(!d.getElementsByTagName){return}var f=p.availWidth;var g=p.availHeight;var anchors=d.getElementsByTagName("a");for(var i=0;i<anchors.length;i++){var anchor=anchors[i];var c=anchor.rel;if(c){var b=c.split("|");if(k){for(var j=0;j<b.length;j++){d.write(j+': ');d.write(b[j]);d.write("<br>");}}if(b[0]=="external"){anchor.target="_blank";anchor.className="external";anchor.title="Load in new window: "+anchor.href}else if(b[0]=="popup"){anchor.className="popup";anchor.title="Link loads in Popup Window";if(b[3]>f)anchor.popupWidth=f-40;else anchor.popupWidth=b[3];if(b[4]>g)anchor.popupHeight=g-80;else anchor.popupHeight=b[4];if(b[1]==-1)anchor.popupX=(f-anchor.popupWidth)*.5;else anchor.popupX=b[1];if(b[2]==-1)anchor.popupY=(g-anchor.popupHeight)*.5;else anchor.popupY=b[2];anchor.attrib='';if(c.indexOf('resizable')>-1)anchor.attrib+=',resizable';if(c.indexOf('scrollbars')>-1)anchor.attrib+=',scrollbars';if(c.indexOf('status')>-1)anchor.attrib+=',status';if(c.indexOf('menubar')>-1)anchor.attrib+=',menubar';if(c.indexOf('location')>-1)anchor.attrib+=',location';if(c.indexOf('toolbar')>-1)anchor.attrib+=',toolbar';anchor.onclick=function(){n(this.href,b[5],this.popupX,this.popupY,this.popupWidth,this.popupHeight,this.attrib);return m}}}}}
function addLoadEvent(l){var q=e.onload;if(typeof e.onload!='function'){e.onload=l}else{e.onload=function(){q();l();}}}
document.write('<style type="text/css">div#toggle{display: none;}</style>');
function toggleLayer(obj,flag)
{
	if (document.getElementById)
		var style2 = document.getElementById(obj).style;
	else if (document.all)
		var style2 = document.all[obj].style;
	else
		return false;

	if (flag != undefined)
		style2.display = flag ? "block" : "";
	else
		style2.display = style2.display ? "" : "block";
}

function getObj(name)
{
	if (document.getElementById)
	{
		this.obj = document.getElementById(name);
		this.style = document.getElementById(name).style;
	}
	else if (document.all)
	{
		this.obj = document.all[name];
		this.style = document.all[name].style;
	}
	else if (document.layers)
	{
		this.obj = document.layers[name];
		this.style = document.layers[name];
	}
}

function movemenu()
{
	if (window.innerHeight)
	{
		  pos = window.pageYOffset
	}
	else if (document.documentElement && document.documentElement.scrollTop)
	{
		pos = document.documentElement.scrollTop
	}
	else if (document.body)
	{
		  pos = document.body.scrollTop
	}
	temp = setTimeout('movemenu()',500);

	if(pos > 0)
		toggleVisi('top',true)
	else
		toggleVisi('top',false)
}

function toggleVisi(obj,flag)
{
	if (document.getElementById)
		var style2 = document.getElementById(obj).style;
	else if (document.all)
		var style2 = document.all[obj].style;
	else
		return false;

	if (flag != undefined)
		style2.visibility = flag ? "visible" : "hidden";
	else
		style2.visibility = style2.visibility ? "hidden" : "visible";
}

var top;
function dispTopJump()
{
	menu = new getObj('top');
	movemenu();
}