// (C) XProfan.Com

;var http=0
;var dwagetsync=0
;var dwagetsyncResponse=""
;var onstrgenter=""
;var onenter=""
;var onlmdown=""
;var ui_postingstable_addPostC=0
;var ui_postingstable_addPost_chMode=0
;var ui_postingstable_addPost_puid=0
;var ui_newmsg_this=0
;var ui_mnu_tme=333
;var ui_mnu_ctme=0
;var ui_mnu_itm=0
;var ui_lastkeytime=0
;var ui_pmIndicator_lastS=""
;var ui_showFoto_y=0
;var ui_showFoto_cnt=0
;var ui_addpost_previewPostID=0
;var basekeys="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
               
;var classnamename="class"
;if (window.ActiveXObject) classnamename="className";

;function setClass(e,c){ return handle(e).className=c }

;function gettickcount(){

	;var tme=new Date
	;tme=tme.getTime()
	;return int(tme)
	
;}

;function handle(e){

	;if (document.getElementById(e)) return document.getElementById(e)

	;return 0

;}

;function maxx(){

	;if (window.innerWidth>10) return window.innerWidth
	;if (document.body.offsetWidth>10) return document.body.offsetWidth
	;return 640
;}

;function maxy() {

	;if (window.innerHeight>10) return window.innerHeight
	;if (document.body.offsetHeight>10) return document.body.offsetHeight-4
	;return 480
;}

;function ins(n,t,p) {;return t.substring(0,p)+n+t.substring(p,t.length);}
;function chr(c) {;return String.fromCharCode(c);}
;function count(a) {;if (a==undefined) return 0;else return a.length;}
;function rnd(r) {;return Math.floor(Math.random()*r);}
;function str(n) {;return String(n);}
;function trim(s) {;if (s==undefined) return "";else return s.replace(/\s+$/,"").replace(/^\s+/,"");}
;function len(a) {;if (a==undefined) return 0;else return a.length;}
;function explode(c,s) {;if (s!=undefined) return s.split(c); else return "";}
;function str_replace(search, replace, subject) {;return subject.split(search).join(replace);}
;function lower(s) {;return s.toLowerCase();}
;function upper(s) {;return s.toUpperCase();}
;function round(v){;return Math.round(v);}

;function int(s) {

	;var b=parseInt(s)
	;if (isNaN(b)) b=0
	;return b
	
;}
;function val(s) {

	;var b=parseFloat(s)	
	;if (isNaN(b)) b=0
	;return b
	
;}
;function mid(s,f,c) {;if (s) return s.substr(f-1,c) ;else return ""}
;function strip_tags(txt) {;return txt.replace(/(<br\/?\s*>|<\/p>\s*<p>)/gi,'\n').replace(/<\/?[^>]+>/gi,'');}

;function unixtime(){

	;var tme=new Date
	;tme=tme.getTime()
	;return int(tme/1000)
	
;}

;function ui_tgl(e){

	;a=handle("ui_toggle_byname_"+e)
	;b=handle("ui_toggle_iconbyname_"+e)

	;if (a.style.height=="") {

		;a.style.height="16px"
		;b.style.background="url(i/m.gif) no-repeat left top"

	;} else {

		;a.style.height=""
		;b.style.background="url(i/m2.gif) no-repeat left top"

	;}

;}

;function select__(elementId){

	;var element=handle(elementId) 

	;if ( document.selection ) { 

		;var range = document.body.createTextRange() 
		;range.moveToElementText(element) 
		;range.select() 

	;} 

	if ( window.getSelection ) { 

		;var range = document.createRange() 
		;range.selectNodeContents(element) 
		;var blockSelection = window.getSelection() 
		;blockSelection.removeAllRanges() 
		;blockSelection.addRange(range) 

	;} 

;}

;function cdesep__(e){

	;eleid=handle(e).innerHTML

	;var s=str(rnd(9999999))

	;var w=window.open("quelltext.txt",s)

	;var xo=""+document.location

	;w.document.open()
	;w.document.write('<html><head><link rel="stylesheet" href="http://xprofan.com/intl/css/style.css"><title>Quelltextsepare</title></head><body style="text-decoration:none;margin:0;padding:0;background-color:#FFF"><pre style="text-decoration:none;width:100%;height:100%;border:none;margin-left:25px;margin-top:15px;text-align:left">')
	;w.document.write("<span class='s1'>'URL: "+xo+"</span>\n\n")
	;w.document.write(trim(eleid))
	;w.document.write('</pre></body></html>')
	;w.document.close()

;}

;function cderun__(e){
	;var a=explode("_",e)
	;var c=count(a)
	;ui_showFoto("<img src='http://xprofan.com/intl/i/f/1.gif'>&nbsp;The source can not be executed because XP-Script is not installed.<br><img src='http://xprofan.com/intl/i/f/0.gif'>&nbsp;Der Quelltext kann nicht ausgeführt werden da XP-Script nicht installiert ist.<br><br><a class='nav' href='http://xprofan.com/xp-script/'>http://xprofan.com/xp-script/</a>")
;}

;function cdecompile__(e){
	//ui_src_77600_1
	;var a=explode("_",e)
	;var c=count(a)
	;if (c==4)
	;else return ui_showFoto("<img src='http://xprofan.com/intl/i/f/1.gif'>&nbsp;This posting need to be resaved or codeexecution will not work.<br><img src='http://xprofan.com/intl/i/f/0.gif'>&nbsp;Der Beitrag muss neugespeichert werden damit die Codeausführung funktioniert.")
	
	;var b=handle("ui_compiler")
	;if (!b) return
	;b.innerHTML="<iframe src='"+"http://compile.xprofan.com/?p="+a[2]+"-"+a[3]+"'></iframe>"
	//;location.href="http://compile.xprofan.com/?p="+a[2]+"-"+a[3]

;}

;function getpos(id) {
	
	;var element
	
	;if (document.all) element=document.all[id]
	;else if (document.getElementById) element=document.getElementById(id)
	
	;if (element) {
		
		;var coords={x: 0, y: 0}
		
		;do {
		
			;if(element.currentStyle) {
			
				;if(element.currentStyle.position!='relative') {
				
					;coords.x+=element.offsetLeft
					;coords.y+=element.offsetTop
					
				;}
				
			;} else {
			
				;coords.x+=element.offsetLeft
				;coords.y+=element.offsetTop
				
			;}
			
			;element=element.offsetParent
			
		;} while (element) return coords
		
	;} else return null
;}

;function getmousepos(evt){

	;if(!evt) evt = window.event

	;var pos = new Object()

	;pos.left = evt.clientX

	;pos.top = evt.clientY

	;var b = (window.document.compatMode && window.document.compatMode == "CSS1Compat") ? window.document.documentElement : window.document.body || null

	;if (b) {

		;pos.scrollLeft= pos.left + b.scrollLeft
		;pos.scrollTop = pos.top + b.scrollTop

	} else if(document.layers) {

		;pos.scrollLeft = evt.pageX
		;pos.scrollTop = evt.pageY
		;pos.left = evt.pageX - window.pageXOffset
		;pos.top = evt.pageY - window.pageYOffset

	;}
	
	;mouse_x=pos.left
	;mouse_y=pos.top

;}

;function dwget(url,params) { 

	;var http=0
	;if (params==undefined) params=""
	
	;if (window.XMLHttpRequest) http=new XMLHttpRequest()
	;else if (window.ActiveXObject) http=new ActiveXObject("Microsoft.XMLHTTP")
	
	;if (http) {
	
		;http.open("POST", url, false)
		;http.setRequestHeader("Content-type", "application/x-www-form-urlencoded")
		;http.setRequestHeader("Content-length", params.length)
		;http.setRequestHeader("Connection", "close")
		;http.setRequestHeader("Pragma", "no-cache");
		;http.setRequestHeader("Cache-Control", "must-revalidate");
		;http.setRequestHeader("If-Modified-Since", document.lastModified);
		;http.send(params)

		;if (http) if (http.responseText) return http.responseText
		
	;}
	
	;return ""
	
;}

;function ui_table_addrow(id,tds,clses){

	;tbody=document.getElementById(id).getElementsByTagName("TBODY")[0]
	;row=document.createElement("TR")
	
	;c=count(tds)
	
	;var txs=new Array
	
	;for (i=0;i<c;i++) {
	
		;txs[i]=document.createElement("TD")
		;txs[i].setAttribute("CLASS",clses[i],0)
		;nde=document.createElement("DIV")
		;nde.innerHTML=tds[i]
		;txs[i].appendChild(nde)
		;row.appendChild(txs[i])
		
	;}
	
	;tbody.appendChild(row)

;}

;function DNSStreamProc(){

	;if (unixtime()-ui_lastkeytime>2) eval(dwget(explode("/",location.href)[0]+"//xprofan.com/intl/stream/"))
	
;}

;function ui_hdr_livecntdisp_setValue(v){

	;d=handle("ui_hdr_livecntdisp")
	;if (!d) return
	
	;d.innerHTML="("+tsnd(str(v))+")"
	
;}

;function tsnd(v){

    ;var s=str(int(v))
    ;var l=len(s)
    ;var t=int((l-1)/3)
    ;var i=0
    
    ;for (i=1;i<=t;i++) s=ins(".",s,l-i*3)

    ;return s

;}

;function ui_playmsgbox(n,s){

	;if (n==0) return
	;alert(s)
	
;}

;function ui_playsnd(n){

	;var s=""
	;if (n==0) s="nitybing"
	;else if (n==2) s="glorybing"
	;if (s=="")
	//;else handle('ui_snds').innerHTML="<embed src='http://xprofan.com/intl/snd/"+s+".swf'></embed>"
	;else handle('ui_snds').innerHTML="<audio src='http://xprofan.com/intl/snd/"+s+".ogg' autoplay></audio>"
	
	
;}

;function ui_hdr_liveunrdisp_setValue(v,nwtxt,bing,bingmsg,bingmsgs){

	;if (v=="") return
	
	;d=handle("ui_hdr_liveunrdisp")
	;if (!d) return
	
	;var ov=int(explode(" ",trim(str_replace(")"," ",str_replace("("," ",strip_tags(d.innerHTML)))))[0])
	;var nv=int(explode(" ",trim(str_replace(")"," ",str_replace("("," ",strip_tags(v)))))[0])
	
	;d.innerHTML=v
	
	;if (ov==nv);else {
	
		;if (ov<nv) {
		
			;handle('ui_snds').innerHTML=""
			;var a=explode("/",document.title)
			;var c=count(a)
			;document.title=nwtxt+": "+nv+" /"+a[count(a)-1]
			;ui_setfavicon("favicon2.ico")
			;ui_playsnd(bing)		
			;ui_playmsgbox(bingmsg,bingmsgs)		
			
		;}
		
	;}

;}

;function ui_msgeditor_preview(pid){

	;msg=trim(handle("ui_newmsg_"+str(pid)).value)
	;if (msg=="")
	;else dweval("../../../../intl/stream/msgpreview/","pid="+str(pid)+"&data="+encodeURIComponent(msg))

;}

;function ui_postingstable_addPreviewPost(msg,psig,tme,iid,profileUrl,pnam,pava,puid,pid){

	;var idnam="ui_addpost_previewDiv"
	;var pre=""
	;var atr=""
	
	;if (pid>0) {
	
		;idnam+="_"+str(pid)
		;pre="<br><div onclick='handle(\""+idnam+"\").innerHTML=\"\";handle(\""+idnam+"\").style.margin=\"0\"' style='color:#666;text-shadow:1px 1px 1px #FFF;cursor:pointer;float:right;font-weight:bold;position:relative;top:-20px;left:10px'>&#215;</div>"
		;atr="<br clear=all><br>"
		;setTimeout("handle('"+idnam+"').style.marginBottom='20px'",20)
		
		
	;}
	
	;var e=handle(idnam)
	
	;if (e) {
	

		;msg=str_replace("../i/","../../../../intl/i/",decode64(msg))
		;e.innerHTML=pre+msg+atr
		
		
	;} else ui_addpost_previewPostID=ui_postingstable_addPost(encode64("<div id='"+idnam+"'>"+pre)+msg+encode64(atr+"</div>"),psig,tme,iid,profileUrl,pnam,pava,puid)

;}

;function runScriptsInElement(e) {
	
	;if (e.nodeType != 1) return
 
	;if (e.tagName.toLowerCase() == 'script') {
	
		;eval(e.text)
		
	;} else {
	
		;var n = e.firstChild
		
		;while ( n ) {
			
			;if ( n.nodeType == 1 ) runScriptsInElement( n )
			
			;n = n.nextSibling
		;}
	;}
;}

;function ui_postingstable_addPost(msg,psig,tme,iid,profileUrl,pnam,pava,puid){

	;if (ui_postingstable_addPost_chMode!=1) 
	 if (ui_rnd==puid) return
	 
	;ui_postingstable_addPostC++

	;d=handle("ui_postingtable")
	;if (!d) return
	
	;msg=decode64(msg)
	;psig=decode64(psig)
	;pnam=decode64(pnam)
	
	;cl="ava"
	
	;msg=str_replace("../i/","../../../../intl/i/",msg)
	
	;if (ui_postingstable_addPost_chMode==1) {
	
		;cl="chava"
		;ava="<img class='"+cl+"' title='"+pnam+"' style='max-width:32px;max-height:16px;margin-right:1px' src='http://xprofan.com/intl/i/a/"+pava+"'>"
		;msg="<table><tr><td><span style='color:#888'>"+tme+": </span> <a href='"+profileUrl+"'><span style='color:#F73'>"+pnam+": </span></a>"+msg+"</td></tr></table>"		
		
	;} else {
	
		;ava='<img class="'+cl+'" title="'+pnam+'" src="http://xprofan.com/intl/i/a/'+pava+'">'
		;msg="<table><tr><td>"+msg+"</td></tr></table>"
		
	;}
	
	;if (profileUrl=="") profileUrl="#"
	
	;ava='<a href="'+profileUrl+'" class="'+cl+'">'+ava+"</a>"
	
	;ui_table_addrow("ui_postingtable",Array("<a name='n"+str(ui_postingstable_addPostC)+"'</a>"+ava,msg),Array(cl=="chava"?"chava":"avar","msgr"))
	
	;if (ui_postingstable_addPost_chMode==0) {
	
		;ui_table_addrow("ui_postingtable",Array("&nbsp;"),Array("",""))
		;ui_table_addrow("ui_postingtable",Array("",'<table width=100%><tr><td style="width:50%;text-align:left;font-size:90%;padding-bottom:2px;line-height:1.1;vertical-align:bottom"><div style="max-width:550px;max-height:77px;overflow:hidden;margin-right:10px;color:#888"><small>'+psig+'</small></div></td><td nowrap style="border-bottom:1px dotted #CCC;text-align:right;vertical-align:bottom;color:#888;font-size:80%;">'+tme+'</td></tr></table>'),Array("",""))
		;ui_table_addrow("ui_postingtable",Array("&nbsp;<br><br>"),Array("",""))
		
	;}
	
	;if (ui_postingstable_addPost_chMode!=1) {
	
		;location.href="#n"+str(ui_postingstable_addPostC)
	
	;} else {
	
		;handle('ui_newmsg_0').focus()
	
	;}
	
	;return ui_postingstable_addPostC

;}

;function ui_msged_submProc(un){

	;if (un==undefined) {

		;if (ui_postingstable_addPost_chMode==1) {
		
			;setTimeout("handle('ui_newmsg_0').value=''",250)
			;setTimeout("DNSStreamProc()",1000)
			
		;}
		
	;}
	
	;handle('ui_newmsg_0').focus()

	;return true
	
;}

;function ui_wmKeyDown(e) {

	;ui_lastkeytime=unixtime()

	;var keycode = document.all ? event.keyCode : e.which
	
	;if ((""+keycode)=="13") {
	
		;if (document.styleSheets && document.all) cp = window.event.ctrlKey
		
		;if (document.layers) cp = e.modifiers & Event.CTRL_MASK
		
		;if (document.getElementById && !document.all) cp = e['ctrlKey']
		
		;if (cp) eval(onstrgenter)
		;else eval(onenter)
	
	;}
	
	;return true
	
;}

;function insertInput(e,s,eo) {
	
	;e.focus()
	
	;if (typeof document.selection!='undefined') {
	
		;r=document.selection.createRange()
		;i=r.text
		;r.text=s+i+eo
		;r=document.selection.createRange()
		
		;if (i.length==0) r.move('character',-eo.lengt)
		;else r.moveStart('character',s.length+i.length+eo.length);  
		
		;r.select()
		
	;} else if (typeof e.selectionStart!='undefined') {
	
		;st=e.selectionStart
		;x=e.selectionEnd
		;i=e.value.substring(st,x)
		;e.value=e.value.substr(0,st)+s+i+eo+e.value.substr(x)
		;if (i.length == 0) {
			;pos=st+s.length
		;} else {
			;pos=st+s.length+i.length+eo.length
		;}
		
		;e.selectionStart=pos
		;e.selectionEnd=pos
	;}

;}

;function ui_demo(pid,tx){

	;alert("Bald, bald!")
	
;}

;function ui_postispositive(pid,tx,pg){

	;location.href="./?nohdr=1&positivepost="+pid+"&pg="+str(pg)
	
;}

;function ui_postistopicsolution(pid,tx,pg){

	;location.href="./?nohdr=1&sol="+pid+"&pg="+str(pg)
	
;}

;function ui_postisnotlongertopicsolution(pid,tx,pg){

	;location.href="./?nohdr=1&notsol="+pid+"&pg="+str(pg)
	
;}

;function ui_mnu_opn(id,id2,xpd,ypd,rght){
	
	;if (xpd==undefined) xpd=0
	;if (ypd==undefined) ypd=0
	
	;ui_mnu_clstme()
	;if(ui_mnu_itm) ui_mnu_itm.style.visibility='hidden'
	;ui_mnu_itm=document.getElementById(id2)
	
	;if (!ui_mnu_itm) return
	
	;p=getpos(id)
	;p.x=p.x+xpd
	;p.y=p.y+handle(id).offsetHeight+ypd
	
	;if (window.opera) p.x=p.x+5
	/*
	;if (window.ActiveXObject) p.x=p.x-1
	
	;xadj=0
	;if (rght) xadj=xadj-handle(id).style.width
	;if (rght) ui_mnu_itm.style.right=str(p.x)+"px"
	;else ui_mnu_itm.style.left=str(p.x)+"px"
	*/
	
	
	;var oo=0
	;if (rght==1) oo=ui_mnu_itm.offsetWidth-handle(id).offsetWidth-1
	;ui_mnu_itm.style.left=str(p.x-oo)+"px"
	
	;ui_mnu_itm.style.top=str(p.y)+"px"
	;ui_mnu_itm.style.visibility='visible'
	
	
	
;}

;function ui_mnu_cls(){

	;if(ui_mnu_itm) ui_mnu_itm.style.visibility='hidden'
	
;}

;function ui_mnu_mct(){

	;ui_mnu_ctme=window.setTimeout(ui_mnu_cls,ui_mnu_tme)
	
;}

;function ui_mnu_clstme(){

	;if(ui_mnu_ctme){
	
		;window.clearTimeout(ui_mnu_ctme)
		;ui_mnu_ctme=0
		
	;}
;}

;function ui_wm_lButtonDown(){

	;eval(onlmdown)
	;return true
	
;}

;function encode64(input) {
	
	;input = escape(input)
	;var output = "";
	var chr1, chr2, chr3 = "";
	var enc1, enc2, enc3, enc4 = "";
	var i = 0;

	do {
	chr1 = input.charCodeAt(i++);
	chr2 = input.charCodeAt(i++);
	chr3 = input.charCodeAt(i++);

	enc1 = chr1 >> 2;
	enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
	enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
	enc4 = chr3 & 63;

	if (isNaN(chr2)) {
	enc3 = enc4 = 64;
	} else if (isNaN(chr3)) {
	enc4 = 64;
	}

	output = output +
	basekeys.charAt(enc1) +
	basekeys.charAt(enc2) +
	basekeys.charAt(enc3) +
	basekeys.charAt(enc4);
	chr1 = chr2 = chr3 = "";
	enc1 = enc2 = enc3 = enc4 = "";
	} while (i < input.length);

	return output;
;}

;function decode64(input) {

	;var output = "";
	var chr1, chr2, chr3 = "";
	var enc1, enc2, enc3, enc4 = "";
	var i = 0;

	var base64test = /[^A-Za-z0-9\+\/\=]/g;
	if (base64test.exec(input))
	input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");

	do {
	enc1 = basekeys.indexOf(input.charAt(i++));
	enc2 = basekeys.indexOf(input.charAt(i++));
	enc3 = basekeys.indexOf(input.charAt(i++));
	enc4 = basekeys.indexOf(input.charAt(i++));

	chr1 = (enc1 << 2) | (enc2 >> 4);
	chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
	chr3 = ((enc3 & 3) << 6) | enc4;

	output = output + String.fromCharCode(chr1);

	if (enc3 != 64) {
	output = output + String.fromCharCode(chr2);
	}
	if (enc4 != 64) {
	output = output + String.fromCharCode(chr3);
	}

	chr1 = chr2 = chr3 = "";
	enc1 = enc2 = enc3 = enc4 = "";

	} while (i < input.length);

	return unescape(output)
;}

;function ui_quotepost(pid,mde){

	;if (mde==undefined) mde=0
	
	;mde=int(mde)
	
	;if (mde==0) mde="quote"
	;else if (mde==1) mde="quoteparagraphs"
	;else if (mde==2) mde="quotelines"

	;d=handle("ui_newmsg_0")
	;if (!d) return
	
	;s=decode64(dwget(explode("/",location.href)[0]+"//xprofan.com/intl/stream/"+mde+"/?"+pid))
	
	;if (mid(s,1,1)=="!") return alert(mid(s,2,len(s)-1))
	;d.focus()
	;d.value=trim(trim(d.value)+"\n\n"+s)+"\n\n"
	
	
;}

;function ui_rmpost(pid,msg,pg){

	/*;var a=handle("ui_p"+pid).style.backgroundColor
	
	;handle("ui_p"+pid).style.backgroundColor="#AAA"
	
	;if (confirm(msg)) */location.href="./?nohdr=1&edit="+pid+"&pg="+str(pg)+"&arm="+pid
	
	/*;handle("ui_p"+pid).style.backgroundColor=a */
	
;}

;function ui_setfavicon(fle){

	;fle=explode("/",location.href)[0]+"//xprofan.com/"+fle

	;var link=document.createElement("link");
	;link.type="image/x-icon";
	;link.rel="shortcut icon";
	;link.id="ui_favicon";
	;link.href=fle
	;document.getElementsByTagName("head")[0].removeChild(handle("ui_favicon"))
	;document.getElementsByTagName("head")[0].appendChild(link)

;}

;function ui_onlinedisplay(mode,txvis,txtlog){

	;var a=handle("ui_mnu_5")
	;if (!a) return

	;mode=int(mode)
	
	;if (mode==0) {

		;a.innerHTML="<center><br><img src='"+explode("/",location.href)[0]+"//xprofan.com/intl/i/ldx.gif'><br><br></center>"

		;setTimeout("ui_onlinedisplay(2,'"+txvis+"','"+txtlog+"')",1000)
				
	;} else if (mode==2) {
	
		;a.innerHTML="<a href='http://xprofan.com/intl/?anmelden' class='mnu'>"+txvis+": "+txtlog+"</a>"
	
	;} else if (mode==1) {
	
		;nex=explode("/",location.href)[0]
		;ar=explode("\n",dwget(nex+"//xprofan.com/widgets/nity/onlppl"))
		;var c=count(ar)
		;var i=0
		;var s=""
		;var ss=""
		;var un=""
		;prfl=nex+"//xprofan.com/intl/"+explode("/",location.href)[4]+"/p/?="
		;msgl=nex+"//xprofan.com/intl/"+explode("/",location.href)[4]+"/m/?="
		
		
		;for (i=1;i<c;i++) {
		
			;ss=ar[i]
			;if (ss=="") continue
			;if (mid(ss,1,1)=="+") {
			
				;ss=mid(ss,2,len(ss)-1)
				;un=ss
				;ss="<img src='"+nex+"//xprofan.com/intl/i/onl.gif'>&nbsp;"+ss
				
			;} else if (mid(ss,1,1)=="-") {
			
				;ss=mid(ss,2,len(ss)-1)
				;un=ss
				;ss="<img src='"+nex+"//xprofan.com/intl/i/onfl.gif'>&nbsp;"+ss
							
			;} else if (mid(ss,1,1)=="?") {
			
				;ss=mid(ss,2,len(ss)-1)
				;un=ss
				;ss="<img src='"+nex+"//xprofan.com/intl/i/ofl.gif'>&nbsp;"+ss
				
			;}
				
			;s=s+'<table style="width:100%"><tr><td><div style="overflow-x:hidden;width:198px"><a href="'+prfl+un+'" class="mnu">'+ss+'</a></div></td><td style="width:20px;background-color:#EEE;border-left:1px solid #DDD"><a href="'+msgl+un+'" class="mnu" style="padding:0;margin:0">'+"<img src='"+nex+"//xprofan.com/intl/i/dsk.gif' style='position:relative;top:4px;left:5px'>"+'</a></td></tr></table>'
			
		;}
		
		;s=s+"<div class='mnusep'></div>"
		
		;s=s+"<a href='"+handle("ui_hdr_livecntdisp").href+"' class='mnu'>"+str_replace("(","",str_replace(")","",handle("ui_hdr_livecntdisp").innerHTML))+" "+txvis+"</a>"
		
		;a.innerHTML=s
	
	;}

;}

;function ui_printsite(){

	;var a=handle("ui_snds")
	;if (!a) return
	;a.innerHTML="<iframe src='"+explode('#',location.href)[0]+'?&print=1'+"'></iframe>"

;}

;function ui_pmIndicator(){

	;var a=handle("ui_newmsgsubj_topic_isprivate_indicator")
	;if (!a) return

	;var b=handle("ui_newmsgsubj_topic_isprivate")
	;if (!b) return
	
	;if (unixtime()-ui_lastkeytime>0) {

		;if (ui_pmIndicator_lastS==b.value)
		;else {

			;b.value=trim(b.value)
			;var s=dwget(explode("/",location.href)[0]+"//xprofan.com/intl/stream/chkmbrnme/?"+b.value)
			
			;if (s=="") {
			
				;a.innerHTML="<img src='"+explode("/",location.href)[0]+"//xprofan.com/intl/i/nok.png'>"
				;handle("ui_msged_sve").disabled=true
				
			;} else {
			
				;a.innerHTML="<img src='"+explode("/",location.href)[0]+"//xprofan.com/intl/i/ok.png'>"
				;b.value=decode64(s)
				;handle("ui_msged_sve").disabled=false
				
			;}
			
			;ui_pmIndicator_lastS=b.value

		;}
		
	;}
	
	;setTimeout("ui_pmIndicator()",1000)

;}

;function ui_last_5_topicviewers(){

	;handle("ui_last_5_topicviewers_td").title=""
	;handle("ui_last_5_topicviewers_div").innerHTML=dwget(explode("/",location.href)[0]+"//xprofan.com/intl/stream/l5tvs/")

;}


;function ui_image_onComplete(i,e){

	;var el=handle(i)
	
	;if (!el) return
	
	;if (el.complete==true) return eval(e)
	
	;setTimeout("ui_image_onComplete('"+i+"','"+e+"')",50)

;}

;function ui_createImage(fle){

	;ui_showFoto_cnt++
	;document.write("<img class='ui_pstimg' onclick='ui_showFoto(\""+fle+"\",\"Bild "+str(ui_showFoto_cnt)+"\")' src='"+fle+"'>")

;}

;function getYScrollPos(){

	;if (document.documentElement.scrollTop) 		return document.documentElement.scrollTop
	;if (document.body && document.body.scrollTop) 		return document.body.scrollTop
	;if (window.pageYOffset)				return window.pageYOffset	
	
	;return 0

;}

;function dweval(url,data) { 

	;if (data==undefined) data=""
	
	;var xmlHttp = null
	
	;try {
	
		;xmlHttp = new XMLHttpRequest()
		
	;} catch(e) {
	
		;try {
			;xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP")
			
		;} catch(e) {
		
			;try {
	
				;xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP")
				
			;} catch(e) {
			
				;xmlHttp  = null
				
			;}
			
		;}
		
	;}
	
	;if (xmlHttp) {
	
		;xmlHttp.open('POST', url, true)
		;xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded")
		;xmlHttp.setRequestHeader("Content-length", len(data))
		;xmlHttp.setRequestHeader("Connection", "close")
		
		;xmlHttp.onreadystatechange = function () {
		
			;if (xmlHttp.readyState==4 && xmlHttp.status==200) {
				
				;var s=xmlHttp.responseText
				
				;if ((s==undefined) || (s==""))
				;else eval(s)
				
			;}
			
		;}
		
		;try {
		
			;xmlHttp.overrideMimeType("text/html; charset=UTF-8")
			
		
		;} catch(e) {}
		
		;xmlHttp.send(data)
		
	;}
	
	
;}

;function ui_showFoto(fle,picdetail,noclose){

	;if (noclose==undefined) noclose=false

	;if (fle==undefined) {
	
		;e=handle("ui_abs1")
		;e.style.width='1px'
		;e.style.height='1px'
		;e.style.top="0"
		
		;e=handle("ui_abs2")
		;e.innerHTML=''
		;e.style.width='1px'
		;e.style.height='1px'
		;e.style.top="0"
		
		//;document.body.style.overflow="auto"
		
		;return
		
	;}
	
	;ui_showFoto_y=getYScrollPos()
	
	//;document.body.style.overflow="hidden"

	;e=handle("ui_abs1")
	
	;e.style.width='100%'
	;e.style.height=str(document.body.offsetHeight)+"px"
	//;alert(document.body.offsetHeight)
	//;e.style.top=ui_showFoto_y+"px"

	;e=handle("ui_abs2")
	
	;e.style.width='100%'
	;e.style.height='100%'
	;e.style.top=ui_showFoto_y+"px"
	
	;var uiid="ui_showfoto_img_"+gettickcount()+"_"+rnd(9999999)
	
	;var nocl1='onclick="ui_showFoto()"'
	;var nocl2='<a href="javascript:void(0)" onclick="ui_showFoto()" style="font-size:30px;color:#FFF;text-decoration:none;;line-height:0">&#215;</a>'
	;var nocl3='onclick="ui_showFoto()"'
	;var nocl4='cursor:url('+explode("/",location.href)[0]+"//xprofan.com/intl/i/crs.gif"+'), '
	
	;if (noclose==true) {
		;nocl1=''
		;nocl2=''
		;nocl3=''
		;nocl4=''
	;}
	
	;if (picdetail==undefined) picdetail='Bild 1'
	
	;if ( (mid(fle,1,7)=="images/") || (mid(fle,1,6)=="files/") || (mid(fle,1,5)=="http:")  || (mid(fle,1,6)=="https:") ) var im='<img id="'+uiid+'" style="cursor:url('+explode("/",location.href)[0]+"//xprofan.com/intl/i/crs.gif"+'), move;" '+nocl1+' src="'+fle+'">'
	;else {
	
		;var im='<div style="'+nocl4+'move;border:1px solid #AAA;padding:10px;font-size:12px;background-color:#FFF;margin-bottom:-20px" '+nocl3+' width="100%">'+fle+'</div>'
		;picdetail=''
		
	;}
	
	;e.innerHTML='<table width="100%" height="100%" class="cent"><tr class="cent"><td valign="middle" align="center" class="cent" ><table  style="text-align:center;display:inline"><tr><td style="padding:15px;padding-right:18px">'+im+'<br clear=all><table class="cent" style="margin-top:30px" cellspacing=0 cellpadding=0 border=0 width="100%"><tr><td  style="font-size:18px;color:#FFF;line-height:0">'+picdetail+'</td><td style=";text-align:right;vertical-align:middle;line-height:0">'+nocl2+'</td></tr></table></td></tr></table></td></tr></table>'
	
	;ui_image_onComplete(uiid,'if (handle("'+uiid+'").height>maxy()*0.7) handle("'+uiid+'").height=str(int(maxy()*0.7))')
	
	//;alert(document.body.offsetHeight)

	//;location.href=fle

;}

;function getScrollXY() {

	;var scrOfX = 0, scrOfY = 0

	;if( typeof( window.pageYOffset ) == 'number' ) {
	
		;scrOfY = window.pageYOffset
		;scrOfX = window.pageXOffset
		
	;} else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
	
		;scrOfY = document.body.scrollTop
		;scrOfX = document.body.scrollLeft
		
	;} else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
	
		;scrOfY = document.documentElement.scrollTop
		;scrOfX = document.documentElement.scrollLeft
	;}
	
	;return [ scrOfX, scrOfY ]

;}


;function ui_scrollProc(){

	;if (handle("ui_hdr_scrl_1")) {
	
		;var scrl=getScrollXY()

		;if (scrl[1]>0) {
		
			;setClass("ui_hdr_scrl_1","hdr_scrl")
			;setClass("ui_hdr_scrl_2","hdr2_scrl")
			;setClass("ui_hdr_scrl_3","hdr3_scrl")
		
		;} else {
		
			;setClass("ui_hdr_scrl_1","hdr")
			;setClass("ui_hdr_scrl_2","hdr2")
			;setClass("ui_hdr_scrl_3","hdr3")
		
		;}
		
	;}

;}


//;onlmdown+=";ui_mnu_cls()"
;onloads+=';setInterval("DNSStreamProc()",240000);document.onkeydown=ui_wmKeyDown;if (document.layers) document.captureEvents(Event.KEYDOWN);document.onclick=ui_wm_lButtonDown;ui_pmIndicator()'

;document.ondragstart=new Function("return false;")
;window.onscroll = ui_scrollProc


/*;window.document.onmousemove = getmousepos*/

;var snowmax=20
;var snowcolor=new Array("#CCCCFF","#CCCCFF","#CCCCFF","#CCCCFF","#CCCCFF")
;var snowtype=new Array("Arial Black","Arial Narrow","Times","Comic Sans MS")
;var snowletter="*"
;var sinkspeed=0.2
;var snowmaxsize=22
;var snowminsize=8
;var snowingzone=1
;var snow=new Array()
;var marginbottom
;var marginright
;var timer
;var i_snow=0
;var x_mv=new Array()
;var crds=new Array()
;var lftrght=new Array()
;var browserinfos=navigator.userAgent 
;var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/)
;var ns6=document.getElementById&&!document.all
;var opera=browserinfos.match(/Opera/)
;var browserok=ie5||ns6||opera

function randommaker(range) {		
	rand=Math.floor(range*Math.random());
    return rand;
}

function initsnow() {
	if (ie5 || opera) {
		marginbottom = document.body.clientHeight;
		marginright = document.body.clientWidth;
	}
	else if (ns6) {
		marginbottom = window.innerHeight;
		marginright = window.innerWidth;
	}
	var snowsizerange=snowmaxsize-snowminsize;
	for (i=0;i<=snowmax;i++) {
		crds[i] = 0;                      
    	lftrght[i] = Math.random()*15;         
    	x_mv[i] = 0.03 + Math.random()/10;
		snow[i]=document.getElementById("s"+i);
		snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)];
		snow[i].size=randommaker(snowsizerange)+snowminsize;
		snow[i].style.fontSize=snow[i].size;
		snow[i].style.color=snowcolor[randommaker(snowcolor.length)];
		snow[i].sink=sinkspeed*snow[i].size/5;
		if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size);}
		if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size);}
		if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4;}
		if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2;}
		snow[i].posy=randommaker(2*marginbottom-marginbottom-2*snow[i].size);
		snow[i].style.left=snow[i].posx;
		snow[i].style.top=snow[i].posy;
	}
	movesnow();
}

function movesnow() {
	for (i=0;i<=snowmax;i++) {
		crds[i] += x_mv[i];
		snow[i].posy+=snow[i].sink;
		snow[i].style.left=(snow[i].posx+lftrght[i]*Math.sin(crds[i])) + "px";
		snow[i].style.top=snow[i].posy + "px";
		
		if (snow[i].posy>=marginbottom-2*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){
			if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size);}
			if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size);}
			if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4;}
			if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2;}
			snow[i].posy=0;
		}
	}
	var timer=setTimeout("movesnow()",50);
}

;onloads+=";initsnow()"
