<!--
	// Standard Statusanzeige
	defaultStatus = "www.Partycam.de - in ist wer drin ist"; 
	
	// Umleitung zur Userpage
	function showUser(sel_name)
	{
		var user_id = eval('document.useronline.'+sel_name+'.options[document.useronline.'+sel_name+'.selectedIndex].value') 
	  	if (user_id != "#" && user_id != "set" && user_id != "")
	  	{
			window.location = "showuser.php?id="+user_id;
		}
		else if(user_id == "set")
		{
			window.location = 'profil_useron.php';
		}
		else if(user_id != "")
		{
			if(sel_name == 'friends')
			{
				window.location = 'friends.php';
			}
			else if(sel_name == 'chatters')
			{
				window.location = 'chatter.php';
			}
			else
			{
				window.location = 'membersearch.php';
			}
		}
	}

	// Anzeige im Statusbar festlegen
	function displayStatusMsg(msgStr) 
	{
		status=msgStr;
		document.returnValue = true;
	}


	// Quickpage schließen
	function closeInfo()
	{
		document.getElementById("layInfo").style.visibility = 'hidden';
	}

	var mouse_x=0, mouse_y=0;

	// Quickpage anzeigen
	function UserDetails(id)
	{
		mouse_x = (document.all)? posx + document.body.scrollLeft: posx;
		mouse_y = (document.all)? posy + document.body.scrollTop: posy;
		
		document.getElementById("layInfo").style.left = mouse_x + "px";
		document.getElementById("layInfo").style.top = mouse_y + "px";
		hiddenFrame.location.href = "privmsg_iframe.php?quickpage_id="+id;

	}

	// Quickpage anzeigen
	function UserDetailsneu(str)
	{	
		mouse_x = (document.all)? posx + document.body.scrollLeft: posx;
		mouse_y = (document.all)? posy + document.body.scrollTop: posy;
		
		document.getElementById("layInfoneu").style.left = mouse_x + "px";
		document.getElementById("layInfoneu").style.top = mouse_y + "px";
		hiddenFrame.location.href = "privmsg_iframe.php?quickpage_id="+id;

	}

	// Quick-PN anzeigen
	function ShowMsgForm(id,name,mouse)
	{
		if(mouse === true)
		{
			mouse_x = (document.all)? posx + document.body.scrollLeft: posx;
			mouse_y = (document.all)? posy + document.body.scrollTop: posy;
			document.getElementById("layInfo").style.left = mouse_x + "px";
			document.getElementById("layInfo").style.top = mouse_y + "px";
		}
		hiddenFrame.location.href = "privmsg_iframe.php?action=new_pn&id="+id+"&name="+name;
	}

	function move(e)
	{
		mouse_x = (document.all)? window.event.clientX + document.body.scrollLeft: e.pageX;
		mouse_y = (document.all)? window.event.clientY + document.body.scrollTop: e.pageY;
	}
		
	//if (window.Event) {
	//	 document.addEventListener("mousemove", move, true)
	//}

	//Das Objekt, das gerade bewegt wird.
	var dragobjekt = null;

	// Position, an der das Objekt angeklickt wurde.
	var dragx = 0;
	var dragy = 0;
	
	// Mausposition
	var posx = 0;
	var posy = 0;

	function draginit()
	{
	 // Initialisierung der Überwachung der Events
	  document.onmousemove = drag;
	  document.onmouseup = dragstop;
	}
	
	function dragstart(element) {
	   //Wird aufgerufen, wenn ein Objekt bewegt werden soll.
	
	  dragobjekt = element;
	  dragx = posx - dragobjekt.offsetLeft;
	  dragy = posy - dragobjekt.offsetTop;
	}
	
	function dragstop() {
	  //Wird aufgerufen, wenn ein Objekt nicht mehr bewegt werden soll.
	
	  dragobjekt=null;
	}
	
	function drag(ereignis) {
	  //Wird aufgerufen, wenn die Maus bewegt wird und bewegt bei Bedarf das Objekt.
	 	 
	  posx = document.all ? window.event.clientX : ereignis.pageX;
      posy = document.all ? window.event.clientY : ereignis.pageY;
	  
	  if(dragobjekt != null) {
		dragobjekt.style.left = (posx - dragx) + "px";
		dragobjekt.style.top = (posy - dragy) + "px";
	  }
	}

	
	document.onmousemove=move;
	
	function popWin(URLStr, str_h, str_w)
	{
		popupWin = window.open(URLStr,'partycam_popUp','width='+str_w+',height='+str_h+',toolbar=no,directories=no,location=no,status=no,menubar=no,resizable=yes,scrollbars=yes')
		popupWin.focus();
	}

	function popWinNoScroll(URLStr, str_h, str_w)
	{
		popupWin = window.open(URLStr,'partycam_noscrollpopup','width='+str_w+',height='+str_h+',toolbar=no,directories=no,location=no,status=no,menubar=no,resizable=yes,scrollbars=no')
		popupWin.focus();
	}
	
	function openpage(mypage,myname,w,h,pos,infocus)
	{
		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=(screen.height)?(screen.height-h)/2:100;
	
		settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
		openpicWindow=window.open('',myname,settings);
		openpicWindow.focus();openpicWindow.location=mypage;
	}
	
	
	
	
//-->

