/******************************************************************************************/
/* ein Pseudo-Popup einblenden                                                            */
var ie=document.all
var box
function verschiebe_box(e){
	if(!mausgedrueckt) return;
   if(!e) e = event
	box_obj.style.left = pos_x + e.clientX - offsetx + "px"
	box_obj.style.top  = pos_y + e.clientY - offsety + "px"
}
function init_startPos(e){
	/*box_obj = document.getElementById(box)*/
   if(!e) e = event
	var fired_obj   = (document.all) ? event.srcElement : e.target
	if (fired_obj.id == box+"_titel") {
		offsetx = e.clientX
		offsety = e.clientY
		pos_x = parseInt(box_obj.style.left)
		pos_y = parseInt(box_obj.style.top)
		mausgedrueckt = true
		document.onmousemove = verschiebe_box
	}
}

document.onmouseup   = new Function("mausgedrueckt=false")

function hidde_box(dialogbox){
	document.getElementById(dialogbox).style.visibility="hidden"
}
function show_box(box){
	box_obj = document.getElementById('dialog'+box);
   fensterHoehe  = (!ie) ?window.innerHeight :2
   fensterBreite = (!ie)  ?window.innerWidth  :document.body.offsetWidth
   scrollOben    = (!ie) ?(window.pageYOffset-120) :document.documentElement.scrollTop+120
   box_obj.style.left = (fensterBreite - parseInt(box_obj.style.width)) / 2 +"px"
   box_obj.style.top  = fensterHoehe / 2 + scrollOben + "px"
	box_obj.style.visibility = "visible";
   document.onmousedown = init_startPos
}

/******************************************************************************************/