/***********************************************
* $Id: wb.js,v 1.2 2006-08-31 20:08:49 nico Exp $
***********************************************/

function setactivewb(warbandid){
	new Ajax.Updater('activewarbanddiv', '/setactivewb.php?warbandid=' + warbandid, {asynchronous:true, evalScripts:true});
}

function addtowb(miniid,epic){
	new Ajax.Updater('activewarbanddiv', '/addtowb.php?miniid=' + miniid + '&epic=' + epic, {asynchronous:true, evalScripts:true});
}

function viewpopup(html) {
	var ie=document.all
	var ns6=document.getElementById && !document.all
	if (ie||ns6)
		var popupobj=document.all? document.all["popupdiv"] : document.getElementById? document.getElementById("popupdiv") : ""

	popupobj.innerHTML = html;
	popupobj.style.backgroundColor="#FFFFFF";
	popupobj.style.width="200px";
	popupobj.style.height="30px";
	popupobj.style.left = "3px";
	popupobj.style.top = "3px";
	popupobj.style.visibility="visible";
/*	popupobj.style.top = (window.innerHeight - 35) + "px";*/
	setTimeout('hidepopup()', 3000);
}

function hidepopup() {
	var ie=document.all
	var ns6=document.getElementById && !document.all
	if (ie||ns6)
		var popupobj=document.all? document.all["popupdiv"] : document.getElementById? document.getElementById("popupdiv") : ""

	popupobj.style.visibility="hidden";
	popupobj.style.left="-1000px";
	popupobj.style.backgroundColor='';
	popupobj.style.width='';
}
