// Navigation 

function LmOver(elem, clr) {
	elem.style.backgroundColor = clr;
	elem.children.tags('A')[0].style.color = "#ffffff";
	elem.style.cursor = 'hand'
}

function LmOut(elem, clr) {
	elem.style.backgroundColor = clr;
	elem.children.tags('A')[0].style.color = "#000066";
}

function LmDown(elem, clr) {
	elem.style.backgroundColor = clr;
	elem.children.tags('A')[0].style.color = "#ffffff";
}

function LmUp(path) {
	location.href = path;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function launchPage(URL) { //v0.1
	w=430;
	h=450;
	s='yes';
//  popwin('externallink.php?U='+theURL, 'external', 400, 200, 'yes');
	popwin('externallink.php?U='+URL, 'external', w, h, s);
}

ab_newin=null;
function popwin(myurl, myname, w, h, scroll) {
//  w=(screen.width)?screen.width*w:620;
//  h=(screen.height)?screen.height*h:420;
	LeftPos=(screen.height)?screen.width/2-w/2+10:0;
	TopPos=(screen.height)?200:0;
	settings='height='+h+',width='+w+',top='+TopPos+',left='+LeftPos+',scrollbars='+scroll+',resizable';
	if(ab_newin==null || ab_newin.closed) {
		ab_newin=window.open(myurl, myname, settings);
	}else {
		ab_newin.location=myurl;
	}
	ab_newin.focus();
}


function popup(page) {
	w=430;
	h=200;
	s='yes';
	popwin(page+'-pop.php', page, w, h, s);
}

function noop() {
	// noop by name, noop by nature...
	return;
}