// KOPIEREN IST UNTERSAGT!
// Script by PA-S.de // P91.de
// (C) 2007 by PA-S.de // P91.de
function debuttonpas(name,msg){document.getElementById(name).disabled=true;document.getElementById(name).value=msg;};function showpas_gallery(heurix,titel,beschreibung,user,uid,schule){var pas="bildinfo";var useradd='';var kx=xpas(heurix)-220;var ky=ypas(heurix)+20;document.getElementById(pas).style.top=ky+'px';document.getElementById(pas).style.left=kx+'px';if(schule==null){useradd='<strong>Hochgeladen von:</strong> <a href="profile.php?user='+uid+'">'+user+'</a><br />';}document.getElementById(pas).innerHTML='<h4><img src="img/icons/information.gif" alt="Infos" border="0"> Details</h4><strong>Titel:</strong> '+titel+'<br /><strong>Beschreibung:</strong> '+beschreibung+'<br />'+useradd+'<span class="klein"><img src="img/icons/lightbulb.gif" alt="IDEE" border="0">Klicken Sie auf die Lupe, um das Bild zu vergrößern!</span>';document.getElementById(pas).style.display="block";};function unshowpas_gallery(){document.getElementById("bildinfo").style.display="none";};function showanpasja(heurix,username,name,lastaktion,onoff,geschlecht,avatar,ort,geb,uid,sid,klassenid,klasse){var pas="userpop";var kx=xpas(heurix);var ky=ypas(heurix)+19;var varort='';var vargeb='';document.getElementById(pas).style.top=ky+'px';document.getElementById(pas).style.left=kx+'px';if(ort!=""){varort='<br />Ort: '+ort;}if(geb!=""){vargeb=' ('+geb+')';}if(geschlecht=="0"){geschlecht=' <img src="img/icons/male.gif" alt="Männlich" border="0" width="10" height="10">';}else{geschlecht=' <img src="img/icons/female.gif" alt="Weiblich" border="0" width="10" height="10">';}if(onoff=="0"){onoff='<span class="red">Offline</span>';}else{onoff='<span class="green">Online</span>';}document.getElementById(pas).innerHTML='<div style="float:left;text-align: center"><img src="images/avatars/'+avatar+'" alt="'+username+'" class="gallerypic" style="margin-right: 5px;margin-left:5px"><br /><a href="javascript: unshowanpasja();">Schlie&szlig;en</a></div><div algin="left"> Letzter Login: '+lastaktion+'<br />Status: '+onoff+' <br />Klasse: <a href="klasse.php?klassenid='+klassenid+sid+'">'+klasse+'</a><br />Name: '+name+vargeb+geschlecht+varort+'<br /><a href="profile.php?user='+uid+sid+'">Profil ansehen</a></div><div style="clear:left"></div>';document.getElementById(pas).style.display="block";};function unshowanpasja(){document.getElementById("userpop").style.display="none";};function showpas_info(heurix,code){var pas="textinfo";var kx=xpas(heurix)-220;var ky=ypas(heurix)+20;document.getElementById(pas).style.top=ky+'px';document.getElementById(pas).style.left=kx+'px';document.getElementById(pas).innerHTML='<h4><img src="img/icons/information.gif" alt="Infos" border="0"> Hilfe</h4>'+code+'</span>';document.getElementById(pas).style.display="block";};function unshowpas_info(){document.getElementById("textinfo").style.display="none";};function transferpas(q,z){for(i=0;i<document.getElementById(q).length;++i)if(document.getElementById(q).options[i].selected==true)document.getElementById(z).value=document.getElementById(q).options[i].value;};function getselectpas(q){for(i=0;i<document.getElementById(q).length;++i)if(document.getElementById(q).options[i].selected==true)return document.getElementById(q).options[i].value;};function getselectpas_callbackimg(q){for(i=0;i<document.getElementById(q).length;++i)if(document.getElementById(q).options[i].selected==true)return '<img src="'+document.getElementById(q).options[i].value+'" border="0" alt="">';};function xpas(heuri){return(heuri.offsetParent)?heuri.offsetLeft+xpas(heuri.offsetParent):heuri.offsetLeft;};function ypas(heuri){return(heuri.offsetParent)?heuri.offsetTop+ypas(heuri.offsetParent):heuri.offsetTop;};function loadingbarpas(background,loading,error){var heuris=document.getElementById('mainpas').offsetHeight;var heurix=document.getElementById('P91Loading');var heuri=document.getElementById('heurix');heurix.style.top=document.body.scrollTop+50;heurix.style.display="none";heuri.style.display="none";if(heuris<screen.availHeight){heuris=screen.availHeight-150;}if(background>0){heuri.style.height=heuris+"px";heuri.style.display="block";}if(loading>0){heurix.style.display="block";}if(error>0){var pas=document.getElementById('P91ERROR');pas.style.display="block";}}
function leeren(text){if(text.defaultValue==text.value){text.value="";}}
