var DHTML = (document.getElementById || document.all || document.layers);

function ap_getObj(name) {

	if (document.getElementById) {

		return document.getElementById(name).style;

	} else if (document.all) {

		return document.all[name].style;

	} else if (document.layers) {

		return document.layers[name];

	}

}

function userdetails(forum){

if (document.useronline.online.options[document.useronline.online.selectedIndex].value != "none") {

userid = document.useronline.online.options[document.useronline.online.selectedIndex].value

openuser(userid, forum)

		}

	}
	
function chatuserdetails(forum){

if (document.chatuser.online.options[document.chatuser.online.selectedIndex].value != "none") {

userid = document.chatuser.online.options[document.chatuser.online.selectedIndex].value

openuser(userid, forum)

		}

	}

function openuser(userid,forum){		

	var popurl= forum + 'forum/members.php?p_break=true&mode=profile&userid=' + userid

	winpops=window.open(popurl,"","width=600,height=600,scrollbars,resizable,")

	return false

}

function ap_showWaitMessage(div,flag) {

	if (!DHTML) return;

	var x = ap_getObj(div);

	x.visibility = (flag) ? "visible":"hidden";

	if(! document.getElementById) if(document.layers) x.left=280/2; return true;

}	





if (showbox) {

	var ende = false;

	var pop;



	function MMSetup() {

		pop = document.all.popup.style;

		document.onmousemove = MovePopup;

		MovePopup();

	}



	function MovePopup() {

		if (!ende) {

			pop.top = document.body.scrollTop-30;

			pop.height = document.body.offsetHeight+30;

		}

	}



	function pms_close() {

		if (dont_show_again.checked) {

			document.cookie = "hide_pm_popup=$pms_ids";

		}

		ende = true;

		pop.visibility = "hidden";

	}



	window.onscroll = MovePopup;

}

	
