/*mp|ocs7javascript corenew timeline*/var U_HTTP = 'http://www.bundesschranzeramt.de/';var tele_ajax = 'http://www.bundesschranzeramt.de/x/mp_tele.php?';var U_AJAX = U_HTTP+'x/mp_ajax.php';U_AJAX = './x/mp_ajax.php';var U_FETCH = U_HTTP+'x/';U_FETCH = './x/';var U_GFX = U_HTTP+'gfx/';var radar_fetch = 5000; var board_fetch = 15000;var chat_speed = 200;var comm_skin = false;var comm_skin_id = false;var comm_col = false;var skin_name = false;var skin_classes = new Array();var skin_colors = new Array();var board_transparent = false;var MSIE = document.all ? true : false;if (MSIE) {var version = navigator.appVersion;if (version.indexOf('MSIE 8.0') > 0) {MSIE = false; }}var debug = true;var ocs_debug = false;var s_id = false;var fold = true;var active = false;var r_active = false;var stop = false;var fetching = false;var last_fetch = false;var fetch_eval = false;var view_fetching = false;var init_fetching = false;var chat_rows = false;var chat_max = false;var chatting = false;var chatroom = false;var last_content = false;var t_out = false;var actual = false;var greyedOut = false;var die = false;var bc_scroll = true;var cht_call = false;var ocs_out = false;var ocs_call = false;var rad_call = false;var msg_call = false;var any_call = false;var chat_obj = false;var cbo_call = false;var cbo_fetched = false;var cbo_response = false;var ani_x = false;var ani_y = false;var ani_speed = false;var ani_object = false;var ani_done = true;var div_active = false;var d_title = false;var field_list = false;var form_action = false;var row_cnt = false;var fetch_mod = false; var gal_fetching = false;var gbpic_fetching = false;var doc_width = false;var doc_height = false;var board = false;var bbody = false;var gb_id = false;var plz = false;var sel_text = false;var forms_switch = false;var forms_contents = false;var forms_checkboxes = false;/*}}} */function encode_utf8(rohtext) { /*{{{ */rohtext = rohtext.replace(/\r\n/g,"\n");var utftext = "";for(var n=0; n<rohtext.length; n++) {var c=rohtext.charCodeAt(n);if (c<128) {utftext += String.fromCharCode(c);} else if((c>127) && (c<2048)) {utftext += String.fromCharCode((c>>6)|192);utftext += String.fromCharCode((c&63)|128);} else {utftext += String.fromCharCode((c>>12)|224);utftext += String.fromCharCode(((c>>6)&63)|128);utftext += String.fromCharCode((c&63)|128);}}return utftext;} /*}}} */function dec2hex(n){ /*{{{ */n = parseInt(n); var c = 'ABCDEF';var b = n / 16; var r = n % 16; b = b-(r/16); b = ((b>=0) && (b<=9)) ? b : c.charAt(b-10);return ((r>=0) && (r<=9)) ? b+''+r : b+''+c.charAt(r-10);} /*}}} */function do_hide_ad() { /*{{{ */var elm;if (elm = getElm('adblock')) {if (elm.style.display == 'none') {elm.style.display = '';elm.style.visibility = 'visible';} else {elm.style.display = 'none';elm.style.visibility = 'hidden';}}} /*}}} */function do_change_nh(what) { /*{{{ */load_ico(true, false);var divs = new Array('freestyle', 'cafe', 'bar', 'nature', 'singles', 'electronic', 'metal', 'word', 'geek', 'fantasy','basic');for (var i=0; i<skin_classes.length; i++) {var old_name = skin_classes[i]+comm_skin;var new_name = old_name.replace(comm_skin, '_'+divs[what-1]);var coll = document.getElementsByTagName("*");var done;for (var y=0; y<coll.length; y++) {var elm = coll[y];if (elm.className == old_name) {elm.className = new_name;}}}var uri = U_AJAX+'?_w=set_nh&skin='+what;var nh_call = cre_reqObj();nh_call.open('get', uri);nh_call.send(null);comm_skin = '_'+divs[what-1];comm_col = skin_colors[what-1];var elm = getElm('change_nh');document.body.removeChild(elm);load_ico(false, false);do_hide_ad();} /*}}} */function show_change_nh() { /*{{{ */if (getElm('change_nh')) {do_hide_ad();var elm = getElm('change_nh');document.body.removeChild(elm);return;}do_hide_ad();var div=dce('div');div.setAttribute('id', 'change_nh');div.style.border= '1px solid #6c6c6c';div.style.height= '293px';div.style.width = '170px';div.style.paddingTop = '5px';div.style.paddingRight = '5px';div.style.position = 'absolute';div.style.zIndex = '15';div.style.right = '15px';div.style.top = '155px';div.style.background = 'url("http://www.bundesschranzeramt.de/gfx/bg_white.png")';var divs = new Array('freestyle', 'cafe', 'bar', 'nature', 'singles', 'electronica', 'metal', 'word', 'geek', 'fantasy','basic');for (var i=1; i<12; i++) {var ico = i-1;var app = dce('div');app.style.width='170px';app.style.height='27px';app.style.background = 'url("http://www.bundesschranzeramt.de/gfx/hd_'+divs[ico]+'.png")';app.style.backgroundRepeat = 'no-repeat';app.style.backgroundPosition = 'top right';app.style.cursor = 'pointer';eval( "app.onclick = function () { do_change_nh("+i+"); }"); app.innerHTML = ' ';div.appendChild(app);}document.body.appendChild(div);} /*}}} */function do_popup(url, scrollbars, width, height, resizable, toolbar, directories, status, menubar) { /*{{{ */var to_do = new Array('scrollbars', 'width', 'height', 'resizable', 'toolbar', 'directories', 'status', 'menubar');var to_re = new Array('yes', 950, 750, 'yes', 'no', 'no', 'no', 'no');for (var i=0; i<to_do.length; i++) {eval ("if (is_undef("+to_do[i]+")) { "+to_do[i]+" = '"+to_re[i]+"'; };");}var attrib = 'width='+width+',height='+height+',scrollbars='+scrollbars+',menubar='+menubar+',resizable='+resizable;var nu_win = window.open(url, "_blank", attrib);} /*}}} */function get_width() {/*{{{ */var docWidth;var docHeight;if (document.body) {docWidth = document.body.clientWidth;docHeight = document.body.clientHeight;if (!isNaN(docWidth)) { doc_width = document.body.clientWidth;} else {doc_width = self.innerWidth;}if (!isNaN(docHeight)) {doc_height = document.body.clientHeight;} else {doc_height = self.innerHeight;}} else if (self) {doc_width = self.innerWidth + 4;doc_height = self.innerHeight + 4;}return;}/*}}} */function dce(what) { /*{{{ */return document.createElement(what);} /*}}} */function ctn(what) { /*{{{ */return document.createTextNode(what);} /*}}} */function getElm(name, src) { /*{{{ */if(!src) { src = document;}return src.getElementById ? src.getElementById(name) : eval(src+".all."+name);} /*}}} */function getDocSize() {/*{{{ */var ssz = getScreenSize();var elms = ['body'];var buf, tmp, i, j, l=elms.length;for(j=0; j<l; j++) {if(buf = getElm(elms[j])) {tmp = [buf.offsetLeft + buf.offsetWidth, buf.offsetTop + buf.offsetHeight];for(i=0; i<2; i++) {if(tmp[i] > ssz[i]) ssz[i] = tmp[i];}}}return ssz;}/*}}} */function getScrollPos() {/*{{{ */var x,y;if (self.pageYOffset) {x = self.pageXOffset;y = self.pageYOffset;} else if (document.documentElement && document.documentElement.scrollTop) {x = document.documentElement.scrollLeft;y = document.documentElement.scrollTop;} else if (document.body) {x = document.body.scrollLeft;y = document.body.scrollTop;}return [x, y];}/*}}} */function alignCenter(elm, offx, offy) {/*{{{ */get_width();winX = doc_width;winY = doc_height;elm.style.left = String((winX / 2) - (elm.offsetWidth / 2) + offx) + "px";elm.style.top = String((winY / 2) - (elm.offsetHeight / 2) + offy) + "px";}/*}}} */function ico_set(which, state) { /*{{{ */var elm = getElm('ico_'+which);elm.src = U_GFX+'ico/ico_'+which+'_'+(state ? 'on' : 'off')+'.png';} /*}}} */function debug_out(what) { /*{{{ */var timer = new Date();if (d_out = getElm('debug_out')) {var n_out = dce('div');if (d_out.hasChildNodes()) {while (d_out.childNodes.length > 4) {d_out.removeChild(d_out.firstChild);}}n_out.setAttribute('id', 'debug_text_'+timer);n_out.style.width = '100%';n_out.style.borderTop = '1px solid white';n_out.style.overflow = 'auto';n_out.innerHTML = bb_decode(what);if (MSIE) { n_out.styleFloat = 'left';} else {n_out.cssFloat = 'left';}d_out.appendChild(n_out);}} /*}}} */function ico_call(which) { /*{{{ */switch (which) {case 'online':d_title = ' :: User online';div_show(which, 600, 400, 1, 50, 40);break;case 'chat':d_title = ' :: User im Chat';div_show(which, 600, 400, 1, 50, 40);break;case 'friends':d_title = ' :: Freunde online';div_show(which, 600, 400, 1, 50, 40);break;case 'radio':d_title = ' :: Radiostreams unserer Partner';div_show(which, 600, 300, 1, 50, 40);break;case 'login':do_request(410, 400);break;case 'mail':do_request(440, 400);break;case 'refresh':read_radar();break;case 'gb':do_request(430, 400);break;case 'help':do_request(0, 700);break;default:reset_ocs_out();var to_add = getElm('ocs_out');for (var i=0; i<8; i++) {to_add.appendChild(dce('br'));}var div = dce('div');div.className = 'cnt_box'+comm_skin;var div2 = dce('div');div2.className = 'cnt_head'+comm_skin;var h1 = dce('h1');h1.appendChild(ctn('Content "'+which+'"'));div2.appendChild(h1);div.appendChild(div2);var div3 = dce('div');div3.className = 'cnt'+comm_skin;div3.appendChild(ctn('no content has been defined to be delivered at this point.'));div.appendChild(div3);var div4 = dce('div');div4.className = 'cnt_foot'+comm_skin;div4.appendChild(dce('br'));div4.appendChild(ctn('no data, no data Uhr | no data'));div.appendChild(div4);to_add.appendChild(div);}} /*}}} */function div_moveout(what) { /*{{{ */var mv_obj = getElm('div_'+what);var t_x = parseInt(mv_obj.style.right);var t_y = parseInt(mv_obj.style.bottom);var test = ani_x + t_x;if (-500 > test) {ocs_out.removeChild(mv_obj);actual = false;t_out = false;ani_x = false;ani_y = false;ani_speed = false;ani_object = false;d_title = false;ani_done = true;window.clearTimeout(stop);if (to_call.length > 0) {div_show(to_call[0], to_call[1], to_call[2], to_call[3], to_call[4], to_call[5], to_call[6], to_call[7], to_call[8]);}return;}var nu_time = false;if (-200 > test) {nu_time = 50;} else if (-100 > test) {nu_time = 30;} else if (-50 > test) {nu_time = 15;} else if (-10 > test) {nu_time = 5;}mv_obj.style.right = (t_x - 30) + 'px';nu_time = (nu_time * ani_speed);eval ("stop = window.setTimeout(\"div_moveout('"+what+"')\", nu_time);");} /*}}} */function div_movein() { /*{{{ */var mv_obj = getElm('div_'+ani_object);var t_x = parseInt(mv_obj.style.right);var t_y = parseInt(mv_obj.style.bottom);var test = ani_x - t_x;if (0 >= test) {window.clearTimeout(stop);actual = ani_object;ani_x = 0;ani_done = true;return;}var nu_time = false;if (-200 > test) {nu_time = 50;} else if (-100 > test) {nu_time = 30;} else if (-50 > test) {nu_time = 15;} else if (-10 > test) {nu_time = 5;}mv_obj.style.right = (t_x + 30) + 'px';nu_time = (nu_time * ani_speed);stop = window.setTimeout('div_movein()', nu_time);} /*}}} */function is_undef(what) { /*{{{ */if ('undefined' == typeof(what)) {return true;}return false;} /*}}} */function div_hide(what) { /*{{{ */if (!t_out) {alert('failure: nothing found to move out...');return;}window.clearTimeout(view_fetching);view_fetching = false;div_moveout(what);} /*}}} */function tele_send_false(tele_sess) { /*{{{ */var tele_send = cre_reqObj();var uri = tele_ajax+'_w='+tele_sess+'&_a=denied';tele_send.open('get', uri);tele_send.send(null);} /*}}} */var to_call = new Array();function div_show(what, width, height, speed, posX, posY, object, head, b_form) { /*{{{ */if (is_undef(b_form)) {b_form = false;}if (t_out) {var t_hide = t_out.id;var t_h = t_hide.split('_');div_hide(t_h[1]);to_call = new Array(what, width, height, speed, posX, posY, object, head, b_form);return;} if (!t_out) {if ('undefined' == typeof(object)) {object = dce('div');}if ('undefined' == typeof(posX)) {posX = 10;}if ('undefined' == typeof(posY)) {posY = 20;}var btn = dce('div');btn.style.width='36px';btn.style.height='36px';btn.style.lineHeight = '10px';btn.style.position = 'absolute';if (!MSIE) {btn.style.top = '3px';btn.style.left = '3px';} else {btn.style.cssFloat = 'left';btn.style.top = '3px';btn.style.left = '3px';}btn.style.background = 'url("'+U_GFX+skin_name+'/ico/ico_close_0.png")';btn.style.cursor = 'pointer';eval ("btn.onclick = function () { div_hide('"+what+"'); };");eval ("btn.onmouseover = function () { this.style.background='url(\""+U_GFX+skin_name+"/ico/ico_close_1.png\")'; };");eval ("btn.onmouseout = function () { this.style.background='url(\""+U_GFX+skin_name+"/ico/ico_close_0.png\")'; };");t_out = dce('div');t_out.appendChild(btn);d_span = dce('h2');d_span.className = 'h2'+comm_skin;if ('undefined' == typeof(head)) { d_span.appendChild(ctn(d_title));} else {d_span.appendChild(ctn(head));}var t_hd = dce('div');t_hd.className = 'cnt_f_head';t_hd.appendChild(d_span);t_out.appendChild(t_hd);for (var i=0; i<3; i++) {t_out.appendChild(dce('br'));}t_out.style.background = 'url("'+U_GFX+'bg_double_white.png")';if (!b_form) {var div_cnt = dce('div');div_cnt.setAttribute('id', 'div_cnt');div_cnt.style.width='100%';div_cnt.style.height='80%';div_cnt.style.overflowY = 'scroll';div_cnt.style.overflowX = 'hidden';t_out.appendChild(div_cnt);}ani_x = posX;ani_y = posY;ani_speed = speed;ani_object = what;t_out.style.height = height+'px';t_out.style.width = width+'px';t_out.style.position = 'absolute';t_out.style.bottom = '0px';t_out.style.right = (posX-width-20)+'px';t_out.style.border = '1px solid #'+comm_col;t_out.style.zIndex = 10;t_out.setAttribute ('id', 'div_'+what);t_out.appendChild(object);ocs_out.appendChild(t_out);var uri = U_FETCH+'mp_fetch.php?action=div&where='+what;any_call = cre_reqObj();any_call.open('get', uri);any_call.onreadystatechange = hdl_anycall;any_call.send(null);actual = what;to_call = new Array();}stop = window.setTimeout('div_movein()', speed);} /*}}} */function div_refresh(what) { /*{{{ */var elm = getElm('div_cnt');elm.innerHTML = '';var uri = U_FETCH+'mp_fetch.php?action=div&where='+what;any_call = cre_reqObj();any_call.open('get', uri);any_call.onreadystatechange = hdl_anycall;any_call.send(null);actual = what;} /*}}} */function reset_ocs_out() { /*{{{ */div_active = false;var to_clear = getElm('ocs_out');while (to_clear.hasChildNodes()) {var to_del = to_clear.firstChild;to_clear.removeChild(to_del);}} /*}}} */function cre_reqObj() { /*{{{ */var ro;var browser = navigator.appName;if (browser == "Microsoft Internet Explorer") {ro = new ActiveXObject("Microsoft.XMLHTTP");} else {ro = new XMLHttpRequest();}return ro;} /*}}} */function hdl_radar() { /*{{{ */if (rad_call.readyState == 4) {var response = rad_call.responseText;response = unescape(response);var rows = response.split('~~~');for (var y=0; y<rows.length; y++) {var field = rows[y].split('[[[set]]]');var elm = getElm('rtext_'+field[0]);if (null == elm) {if (field[0].length < 1) { alert('Die Verbindung zum Server ist verlorengegangen!'+"\n"+'Benutze die "Aktualisieren"-Schaltfläche Deines Browsers oder überprüfe Deine Internetverbindung');}} else {elm.innerHTML = field[1];}}active = window.setTimeout("read_radar();", 5000);} } /*}}} */function hdl_request() { /*{{{ */if (ocs_call.readyState == 4) {var response = ocs_call.responseText;if ('err' == response.substr(0,3)) {alert(response);} else {eval(unescape(response));}load_ico(false);}} /*}}} */function reset_parent() { /*{{{ */var ico = getElm('ico_upload', parent.document);var blk = getElm('black_out', parent.document);ico.style.display = 'none';blk.style.display = 'none';if (opt_active) {var e1 = getElm('c_cont_'+opt_active);if (e1) { document.body.removeChild(e1);}hide_gal_opts(opt_active);}return;} /*}}} */function reset_doc() { /*{{{ */var blk = getElm('black_out');blk.style.display = 'none';if (opt_active) {var e1 = getElm('c_cont_'+opt_active);if (e1) { document.body.removeChild(e1);}hide_gal_opts(opt_active);opt_active = false;opt_clone = false;opt_move = false;}return;} /*}}} */function load_ico(state, upload) { /*{{{ */if ('undefined' == typeof(upload)) {upload = false;}if (!upload) {var ico = getElm('ico_load');} else {var ico = getElm('ico_upload');}if (null != ico) {var blk = getElm('black_out');ico.style.display = (state ? '' : 'none');blk.style.display = (state ? '' : 'none');alignCenter(ico, false, false);}if (!state) {var ico = getElm('ico_upload');if (null != ico) {var blk = getElm('black_out');ico.style.display = (state ? '' : 'none');blk.style.display = (state ? '' : 'none');alignCenter(ico, false, false);}}return;} /*}}} */function black_out(state) { /*{{{ */var blk = getElm('black_out');blk.style.display = (state ? '' : 'none');} /*}}} */function do_request(cnt_id, sub_id, step, override, where) { /*{{{ */if (700 != sub_id) {last_content = sub_id+':'+cnt_id;}reset_doc();if ('undefined' == typeof(override)) {if (fetching) {window.clearTimeout(fetching);fetching = false;}}if ('undefined' == typeof(where)) {var where = false;}if (0 == cnt_id && 0 == sub_id && 0 == step) {uri = U_AJAX+'?_w=offline';ocs_call.open('get', uri);ocs_call.onreadystatechange = hdl_request;ocs_call.send(null);} else {if (430 == cnt_id && 400 == sub_id) {do_popup('?_w=guestbook');} else if ((0 == sub_id && 700 == cnt_id) || (700 == sub_id)) {do_popup('?_w=help&where='+last_content);} else {load_ico(true);if ('undefined' == typeof(step)) {uri = U_AJAX+'?_w='+cnt_id+'&_a='+sub_id;} else {uri = U_AJAX+'?_w='+cnt_id+'&_a='+sub_id+'&_s='+step;}if ('undefined' != typeof(step)) {uri = uri+'&_wh='+where;}ocs_call.open('get', uri);ocs_call.onreadystatechange = hdl_request;ocs_call.send(null);}}} /*}}} */function call_news_opts(event) { /*{{{ */if (2 == event.button) {do_popup('?_w=content_admin');}} /*}}} */function do_p_request(cnt_id, sub_id, step, override, where) { /*{{{ */if ('undefined' == typeof(override)) {if (fetching) {parent.window.clearTimeout(fetching);fetching = false;}}if ('undefined' == typeof(where)) {var where = false;}if (0 == cnt_id && 0 == sub_id && 0 == step) {uri = U_AJAX+'?_w=offline';ocs_call.open('get', uri);ocs_call.onreadystatechange = hdl_request;ocs_call.send(null);} else {if (430 == cnt_id && 400 == sub_id) { do_popup('?_w=guestbook');} else {load_ico(true);if ('undefined' == typeof(step)) {uri = U_AJAX+'?_w='+cnt_id+'&_a='+sub_id;} else {uri = U_AJAX+'?_w='+cnt_id+'&_a='+sub_id+'&_s='+step;}uri = (where ? uri+'&_wh='+where : uri);ocs_call.open('get', uri);ocs_call.onreadystatechange = hdl_request;ocs_call.send(null);}}} /*}}} */function nav_unfold(what) { /*{{{ */for (var i=0; i<1000; i+=100) {for (var y=0; y<1000; y+=10) {var n_elm = getElm('nav_'+i+'_'+y);if (null != n_elm) {if (what == i) {n_elm.style.display = '';} else {n_elm.style.display = 'none';}}}}} /*}}} */function bb_decode(text) { /*{{{ */var src = new Array('b', 'u', 'i', 'u', 'br');var tgt = new Array('strong', 'u', 'i', 'u', 'br/');for (var i=0; i<src.length; i++) {eval('text = text.replace(/\\\['+src[i]+'\\\]/gi, \'<'+tgt[i]+'>\');');eval('text = text.replace(/\\\[\\/'+src[i]+'\\\]/gi, \'</'+tgt[i]+'>\');');}text = text.replace(/\[a1\]/gi, '<a href="#" class="subnav'+comm_skin+'" onclick="do_request(');text = text.replace(/\[a2\]/gi, ', ');text = text.replace(/\[\/c\]/gi, ');">');text = text.replace(/\[\/a\]/gi, '</a>');return text;} /*}}} */function send_form() { /*{{{ */for (var i=0; i<field_list.length; i++) {var s_elm = 0;var le_val = false;eval ("s_elm = getElm('"+field_list[i]+"___Frame');");if (!s_elm) { eval ("s_elm = getElm('"+field_list[i]+"');");} else {s_elm = false;eval ("s_elm = FCKeditorAPI.GetInstance('"+field_list[i]+"');");if (s_elm) {var temp = s_elm.GetHTML(true);le_val = temp;var le_trans = le_val.replace(/\r\ \n/g, "{{br}}");le_trans = le_val.replace(/\r\n/g, "{{br}}");le_trans = le_trans.replace(/\n/g, "{{br}}");le_trans = le_trans.replace(/&amp;/g, "[{[AND]}]");le_trans = le_trans.replace(/&/g, "[{[UND]}]");le_trans = le_trans.replace(/&nbsp;/g, " ");le_trans = le_trans.replace(/\ /g, "[{[s]}]");le_trans = le_trans.replace(/<span\ _fcktemp=\"1\"><\/span>/g, '');le_trans = le_trans.replace(/<script/g, '');le_trans = le_trans.replace(/<scr+ipt/g, '');le_trans = le_trans.replace(/<\/script>/g, '');le_trans = le_trans.replace(/<\/scr+ipt>/g, '');le_trans = le_trans.replace(/\+/g, '[{[PLUS]}]');var cut = le_trans;var cut_i = 0;var cut_x = 1;var field_name = field_list[i];while (cut_i < cut.length) {le_val = cut.substr(cut_i, 500);form_action+='&'+field_name+'____'+cut_x+'='+le_val;cut_i+= 500;cut_x++;}}}if (!le_val) {if ('chk_' == field_list[i].substr(0,4)) {nu_name = field_list[i].replace('chk_', '');field_list[i] = nu_name;le_val = (s_elm.checked ? 1 : 0);var le_trans = le_val;} else if ('u_color' == field_list[i]) {le_val = getElm('csel_u_color').value;var le_trans = le_val.replace(/#/g, "");} else { le_val = s_elm.value;if ('undefined' != typeof(le_val)) {var le_trans = le_val.replace(/\r\n/g, "{{br}}");le_trans = le_trans.replace(/\n/g, "{{br}}");le_trans = le_trans.replace(/<script/g, '');le_trans = le_trans.replace(/<scr+ipt/g, '');le_trans = le_trans.replace(/<\/script>/g, '');le_trans = le_trans.replace(/<\/scr+ipt>/g, '');le_trans = le_trans.replace(/\+/g, '[{[PLUS]}]');} else {le_trans = '';}}form_action+='&'+field_list[i]+'='+le_trans;}}uri = form_action;if (ocs_debug) {alert("form field capture | action uri\n\n"+uri);}field_list = false;form_action = false;if (actual) {div_hide(actual);}ocs_call.open('get', uri);ocs_call.onreadystatechange = hdl_request;ocs_call.send(null);} /*}}} */function do_form(name, head, content, width, height, right, bottom) { /*{{{ */width = (is_undef(width) ? 700 : width);height = (is_undef(height) ? 300 : height);right = (is_undef(right) ? 50 : right);bottom = (is_undef(bottom) ? 40 : bottom);var form_div = dce('div');form_div.style.width = '100%';form_div.appendChild(form_gen(content));div_show(name, width, height, 0, right, bottom, form_div, head, true);window.setTimeout('refresh_bigarea()', '1500');return; } /*}}} */function hide_preview () { /*{{{ */var preview = getElm('preview');document.body.removeChild(preview);return;} /*}}} */function text_format(where, what) { /*{{{ */var elem = getElm(where);switch (what) {case 'bold':var s_s = '[b]';var s_e = '[/b]';break;case 'italic':var s_s = '[i]';var s_e = '[/i]';break;case 'underline':var s_s = '[u]';var s_e = '[/u]';break;case 'quote':var s_s = '[quote]';var s_e = '[/quote]';break;case 'preview':var div = dce('div');div.setAttribute ('id', 'preview');div.style.width = '600px';div.style.height = '400px';div.style.border = '1px solid #'+comm_col;div.style.background = '#efefef';div.style.bottom = '20px';div.style.right = '20px';div.innerHTML = bb_decode(elem.value);div.onclick = function() { hide_preview() };div.style.position = 'absolute';div.style.zIndex = 9;document.body.appendChild(div);return;break;default:var s_s = '';var s_e = '';break;}if (!sel_text) {elem.value = elem.value+s_s;} else {var to_chg = elem.value;var nu_txt = s_s+sel_text+s_e;to_chg = to_chg.replace(sel_text, nu_txt);elem.value = to_chg;}sel_text = false;} /*}}} */function text_select() { /*{{{ */var text = '';if (window.getSelection) {text = window.getSelection();} else if (document.getSelection) {text = document.getSelection();} else if (document.selection) {text = document.selection.createRange().text;}sel_text = text;} /*}}} */function set_gb_preview() { /*{{{ */var gb_pre = getElm('gb_preview');var gb_chk = getElm('gb_pre_chk');if (gb_chk.checked) {gb_pre.setAttribute('src', '?_w=guestbook');gb_pre.style.display = '';} else {gb_pre.style.display = 'none';}return;} /*}}} */function stat_out(what, caller) { /*{{{ */if ('undefined' == typeof(caller)) {var caller = false;}var to_form = '';if (getElm('form_return')) {to_form = getElm('form_return');} else {to_form = getElm('form_return', parent.document);}to_form.innerHTML = what;return;} /*}}} */function hide_col_box() { /*{{{ */black_out(false);var elm = getElm('col_box');document.body.removeChild(elm);} /*}}} */function show_col_box(where) { /*{{{ */black_out(true);var i_elm = getElm('csel_'+where);var b_elm = getElm('cbox_'+where);var sel = dce('div');sel.setAttribute('id', 'col_box');sel.style.position = 'absolute';sel.style.zIndex = '999';sel.style.width = '500px';sel.style.height = MSIE ? '523px' : '515px';sel.style.background = '#ececec';sel.style.border = '2px solid #6c6c6c';/*überschrift und so ... {{{ */var tbl = dce('table');tbl.setAttribute('cellspacing', '0');tbl.setAttribute('cellpadding', '0');tbl.setAttribute('border', '0');var tbd = dce('tbody');tbl.style.width = '100%';var tr = dce('tr');var td = dce('td');td.style.width = MSIE ? '8px' : '10px';td.className = 'b1'+comm_skin;td.style.borderBottom = '1px solid #6c6c6c';td.style.borderRight = '1px solid #6c6c6c';td.appendChild(ctn('X'));td.style.cursor = 'pointer';td.onclick = function () { hide_col_box(); };td.style.textAlign = 'center';td.style.fontWeight = 'bold';tr.appendChild(td);var td = dce('td');td.colSpan='20';td.style.borderBottom = '1px solid #6c6c6c';td.style.paddingLeft = '2px';td.appendChild(ctn('farbe wählen...'));td.style.fontWeight = 'bold';td.className = 'b1'+comm_skin;tr.appendChild(td);tbd.appendChild(tr);/*}}} *//*farbwähler {{{ */var el_ct = 0;var tr_add = true;for (r = 0; r < 260; r = r + 26) {for (g = 0; g < 260; g = g + 26) {for (b = 0; b < 260; b = b + 26) {if (260 == b) {b = 255;}if (260 == g) {g = 255;}if (260 == r) {r = 255;}if (tr_add) {var tr = dce('tr');tr_add = false;}var td = dce('td');td.style.width = MSIE ? '8px' : '10px';td.style.height = MSIE ? '8px' : '10px';var nr = dec2hex(r);var ng = dec2hex(g);var nb = dec2hex(b);if ('EA' == nr && 'EA' == ng && 'EA' == nb) {nr = 'FF';ng = 'FF';nb = 'FF';}td.style.background = '#'+nr+ng+nb;td.style.cursor = 'pointer';td.setAttribute('title', 'Farbe auf #'+nr+ng+nb+' setzen');eval ("td.onclick = function() { i_elm.value = '#"+nr+ng+nb+"'; b_elm.style.background = '#"+nr+ng+nb+"'; hide_col_box(); };");tr.appendChild(td);el_ct++;if (0 == el_ct%20) {tbd.appendChild(tr);tr_add = true;} }}}/*}}} */tbl.appendChild(tbd);sel.appendChild(tbl);document.body.appendChild(sel);alignCenter(sel, false, false);} /*}}} */function hd_date_fill (where) { /*{{{ */var elm = getElm(where);var d = getElm('d_'+where);var m = getElm('m_'+where);var y = getElm('y_'+where);elm.value = d.value+'.'+m.value+'.'+y.value;return;} /*}}} */function fill(date_field, s_fill) { /*{{{ */var fld = getElm(date_field);fld.value = s_fill;var dates = s_fill.split('.');var fld_d = getElm('d_'+date_field);fld_d.value = dates[0];var fld_m = getElm('m_'+date_field);fld_m.value = dates[1];var fld_y = getElm('y_'+date_field);fld_y.value = dates[2];return;} /*}}} */function form_gen(content) { /*{{{ */var timer = new Date();field_list = new Array;var fck_inst = new Array();var fck_cont = new Array();forms_checkboxes = new Array();debug_out(timer+' form_gen called.');var fbody = dce('form');fbody.onsubmit = function () { load_ico(true, true); return false; };fbody.setAttribute('id', 'ajax_form');var form= dce('table');form.className = 'form';var tbody = dce('tbody');var tr = dce('tr');var td = dce('td');td.setAttribute('id', 'form_return');td.setAttribute('colspan', 2);tr.appendChild(td);tbody.appendChild(tr);var r_arr = content;var rows= r_arr.split('~|~');var focused = false;for (var r=0; r<rows.length; r++) {var tr = dce('tr'); var td = dce('td');td.style.width = '250px';var fld = rows[r].split('::');if (fld[0] != 'preview') {if (!focused) {focused = fld[2];}td.className = 'form_left'+comm_skin;if ('info' == fld[0]) {td.style.fontWeight = 'bold';td.colSpan = '2';}switch (fld[0]) {case 'gb_preview': /*{{{ */var input = dce('input');input.type = 'checkbox';input.className = 'field'+comm_skin;input.setAttribute('id', 'gb_pre_chk');input.onclick = function () { set_gb_preview() };break; /*}}} */case 'file': /*{{{ */case 'n_file':if (MSIE) {fbody.setAttribute('encoding', 'multipart/form-data');} else {fbody.setAttribute('enctype', 'multipart/form-data');}fbody.setAttribute('method', 'post');fbody.setAttribute('target', 'fr_target');fbody.onsubmit = function () { load_ico(true, true); };var input = dce('div');if ('n_file' != fld[0]) {var pre = dce('div');pre.style.width = '200px';pre.style.height = '30px';pre.style.border = '1px solid #6c6c6c';if ('undefined' != typeof(fld[6])) {var anc = dce('a');anc.setAttribute ('id', 'anc_'+fld[2]);anc.setAttribute ('rel', 'lightbox');anc.setAttribute ('title', fld[1]);anc.setAttribute ('href', fld[6]);pre.appendChild(anc);eval ("pre.onclick = function () { myLightbox.start(getElm('anc_"+fld[2]+"')); };");pre.style.background = 'url('+fld[6]+')';input.appendChild(pre);}}var hd = dce('input');hd.type = 'hidden';hd.setAttribute ('name', 'MAX_FILE_SIZE');hd.value = (16 * 1024 * 1024);input.appendChild(hd);var finput = dce('input');finput.type = 'file';finput.setAttribute('name', fld[2]);input.appendChild(finput);break; /*}}} */case 'info': /*{{{ */var input = dce('span');break; /*}}} */case 'sep': /*{{{ */var input = dce('hr');break; /*}}} */case 'text': /*{{{ */case 'pass':case 'hidden':var input = dce('input');input.type = ('pass' == fld[0] ? 'password' : fld[0]);if ('hidden' != fld[0]) {input.className = 'field'+comm_skin;input.setAttribute ('maxlength', fld[4]);input.setAttribute ('size', (64 >= fld[4] ? fld[4] : 64));} else {input.setAttribute ('name', fld[2]);}if ('undefined' != typeof(fld[6])) {input.value = fld[6];}break; /*}}} */case 'date': /*{{{ */var input = dce('div');input.style.padding = '0px';input.style.margin = '0px';input.style.width='200px'; var t_dy = dce('input');var t_mn = dce('input');var t_yr = dce('input');var t_hd = dce('input');t_hd.setAttribute ('type', 'hidden');t_hd.setAttribute ('id', fld[2]);if ('undefined' != typeof(fld[6])) {t_cnt = fld[6].split('.');t_hd.value = fld[6];} else {t_cnt = new Array('00', '00', '0000');t_hd.value = '00.00.0000';}t_dy.setAttribute ('id', 'd_'+fld[2]);t_mn.setAttribute ('id', 'm_'+fld[2]);t_yr.setAttribute ('id', 'y_'+fld[2]);eval ("t_dy.onkeyup = function () { hd_date_fill('"+fld[2]+"'); };");eval ("t_mn.onkeyup = function () { hd_date_fill('"+fld[2]+"'); };");eval ("t_yr.onkeyup = function () { hd_date_fill('"+fld[2]+"'); };");t_dy.setAttribute ('type', 'text');t_mn.setAttribute ('type', 'text');t_yr.setAttribute ('type', 'text');t_dy.setAttribute ('size', 2);t_dy.setAttribute ('maxlength', 2);t_dy.className = 'field'+comm_skin;t_mn.setAttribute ('size', 2);t_mn.setAttribute ('maxlength', 2);t_mn.className = 'field'+comm_skin;t_yr.setAttribute ('size', 4);t_yr.setAttribute ('maxlength', 4);t_yr.className = 'field'+comm_skin;t_dy.value = t_cnt[0];t_mn.value = t_cnt[1];t_yr.value = t_cnt[2];input.appendChild(t_dy);input.appendChild(ctn('.'));input.appendChild(t_mn);input.appendChild(ctn('.'));input.appendChild(t_yr);input.appendChild(t_hd);break; /*}}} */case 'colorbox': /*{{{ */var input = dce('div');var hd_input = dce('input');hd_input.setAttribute('type', 'hidden');hd_input.setAttribute('name', 'csel_'+fld[2]);hd_input.setAttribute('id', 'csel_'+fld[2]);input.appendChild(hd_input);var div = dce('div');div.setAttribute('id', 'cbox_'+fld[2]);if ('undefined' != typeof(fld[6])) {div.style.background = '#'+fld[6];hd_input.value = '#'+fld[6];}div.style.border = '1px solid #6c6c6c';div.style.marginRight = '5px';div.style.width = '15px';div.style.height = '15px';if (!MSIE) {div.style.cssFloat = 'left';} else {div.style.styleFloat = 'left';}input.appendChild(div);var btn = dce('input');btn.setAttribute ('type', 'button');btn.className = 'field'+comm_skin;btn.value = 'farbe wählen';eval ("btn.onclick = function () { show_col_box('"+fld[2]+"'); };");input.appendChild(btn);break; /*}}} */case 'fontbox': /*{{{ */var input = dce('div');var fonts = dce('select');fonts.onchange = function () { this.style.fontFamily = this.value; };fonts.setAttribute('id', 'fsel_'+fld[2]);fonts.setAttribute('name', 'fsel_'+fld[2]);fonts.style.width = '200px';var fArr = new Array('Comic Sans, Comic Sans MS, cursive', 'Impact, fantasy', 'Arnoldboecklin, fantasy', 'Calibri, sans-serif', 'Arial, sans-serif', 'Helvetica, sans-serif', 'Times New Roman, Times, serif', 'Courier New, monospace');var nArr = new Array('Comic', 'Impact', 'Arnoldboecklin', 'Calibri (Vista)', 'Arial', 'Helvetica', 'Times New Roman', 'Courier New');for (i=0; i<nArr.length; i++) {var opt = new Option(nArr[i], fArr[i], false, (fld[6] == fArr[i]));opt.setAttribute('style', 'font-family:'+fArr[i]+'; font-size:9pt;');opt.text = nArr[i];opt.value = fArr[i];if (fld[6] == fArr[i]) { fonts.style.fontFamily = fArr[i];opt.setAttribute('selected', 'selected');}if (MSIE) {fonts.options[fonts.length] = opt;} else {fonts.appendChild(opt);}}input.appendChild(fonts);break; /*}}} */case 'sizebox': /*{{{ */var input = dce('select');input.style.width = '100px';input.setAttribute ('name', fld[2]);input.onchange = function () { this.style.fontSize = this.value; };var fArr = new Array('6pt', '7pt', '8pt', '9pt', '10pt', '11pt', '12pt', '14pt', '16pt', '18pt', '20pt', '22pt', '24pt', '26pt');for (i=0; i<fArr.length; i++) {var opt = new Option(fArr[i], fArr[i], false, (fld[6] == fArr[i]));opt.setAttribute('style', 'font-size:'+fArr[i]);opt.text = fArr[i];opt.value = fArr[i];if (fld[6] == fArr[i]) {input.style.fontSize = fArr[i];opt.setAttribute('selected', 'selected');}if (MSIE) {input.options[input.length] = opt;} else {input.appendChild(opt);}}break; /*}}} */case 'friendbox': /*{{{ */var input = dce('select');input.className = 'field'+comm_skin;var opt = new Option('bitte wählen...', 0, false, false);opt.className = 'opt_1'+comm_skin;if (MSIE) {input.options[input.length] = opt;} else {input.appendChild(opt);}var fill = fld[6].split('[f_trenn]');for (var f = 0; f < fill.length; f++) {var entry = fill[f].split('|||');var opt = new Option(entry[1], entry[0], false, false);opt.className = 'opt_'+(f%2)+comm_skin;if (MSIE) {input.options[input.length] = opt;} else {input.appendChild(opt);}}break; /*}}} */case 'checkbox': /*{{{ */var input = dce('input');input.type = 'checkbox';if (1 == fld[6]) {input.setAttribute('checked', 'checked');forms_checkboxes[forms_checkboxes.length] = 'chk_'+fld[2];}input.setAttribute('name', fld[2]);input.className = 'field'+comm_skin;break; /*}}} */case 'submit': /*{{{ */var input = dce('input');input.type = 'submit';input.className = 'field'+comm_skin;input.value = fld[1]+' '+String.fromCharCode(187);input.style.fontWeight = 'bold';var test = fbody.getAttribute('enctype');if ('multipart/form-data' != test) { input.onclick = function () { send_form(); };}break; /*}}} */case 'action': /*{{{ */form_action = fld[1];var test = fbody.getAttribute('enctype');if ('multipart/form-data' == test) {form_action = form_action.replace('mp_ajax', 'mp_form');}fbody.setAttribute('action', form_action);break; /*}}} */case 'bigarea': /*{{{ */var input = dce('div');var nuEditor = new FCKeditor( fld[2] );if ('undefined' != typeof(fld[6])) {var tmp_cnt = fld[6];tmp_cnt = tmp_cnt.replace(/\[b]/gi, '<strong>');tmp_cnt = tmp_cnt.replace(/\[\/b]/gi, '</strong>');tmp_cnt = tmp_cnt.replace(/\[size=/gi, '<span style="font-size:');tmp_cnt = tmp_cnt.replace(/\[\/size\]/gi, '</span>');tmp_cnt = tmp_cnt.replace(/\[color=/gi, '<span style="color:');tmp_cnt = tmp_cnt.replace(/\[\/color\]/gi, '</span>');tmp_cnt = tmp_cnt.replace(/\]/gi, ';">');fld[6] = tmp_cnt;fck_inst[fck_inst.length] = fld[2];fck_cont[fck_cont.length] = tmp_cnt;}input.innerHTML = nuEditor.Create();break; /*}}} */case 'combo': /*{{{ */case 'loc_box':var input = dce('select');var cbo_out = fld[3];var cbo_fld = cbo_out.split(/\]\[/);var cbosel = false;for (var ci = 0; ci < cbo_fld.length; ci++) {var b_add_cbo = false;var cbo_txt = cbo_fld[ci].split(/\)\)\(\(/);if (0 == ci%2) {var cbo_elm = dce('option');cbosel = false;if (0 < cbo_txt[1].indexOf('SEL') || 0 < cbo_txt[0].indexOf('SEL')) {if (ocs_debug) {alert('found: '+cbo_txt);}cbo_txt[1] = cbo_txt[1].replace('/SEL/g', '');cbosel = true;}cbo_elm.value = cbo_txt[1];} else {cbo_elm.text = cbo_txt[1];b_add_cbo = true;}if (b_add_cbo) {input.options[input.length] = new Option(cbo_elm.text, cbo_elm.value);if (cbosel) {input.options[input.length-1].setAttribute('selected', 'selected');}b_add_cbo = false;}}break; /*}}} */default:var input = dce('input');input.type = 'text';input.value = 'undefined form-elem: '+fld[0];break;}if ('submit' != fld[2] && 'action' != fld[2] && '' != fld[2] && 'undefined' != typeof(fld[2])) { if (fld[0] == 'checkbox') {fld[2] ='chk_'+fld[2];}field_list[field_list.length] = fld[2];if ('date' != fld[0] && 'bigarea' != fld[0]) {input.setAttribute ('id', fld[2]);}}if (1 == fld[5]) {td.style.fontWeight = 'bold';}if ('submit' != fld[0] && 'hidden' != fld[0] && 'action' != fld[0]) {td.innerHTML = fld[1];} else {td.appendChild(ctn(' '));}tr.appendChild(td);if ('info' != fld[0]) {var td = dce('td');td.className = 'form_right'+comm_skin;td.style.verticalAlign = 'top';td.appendChild(input);if ('gb_preview' == fld[0]) {var hd_div = dce('iframe');hd_div.setAttribute('id', 'gb_preview');hd_div.style.border = '1px solid red';hd_div.style.width = '950px';hd_div.style.height = '600px';hd_div.style.display = 'none';td.appendChild(hd_div);}tr.appendChild(td);}tbody.appendChild(tr);}}form.appendChild(tbody);fbody.appendChild(form);if (focused) {window.setTimeout("getElm('"+focused+"').focus", 1000);}forms_switch = fck_inst;forms_contents = fck_cont;return fbody;} /*}}} */function do_content(head, content, foot, override) { /*{{{ */if (is_undef(override)) {override = false;reset_ocs_out();}var to_app = (!override ? getElm('ocs_out') : override);to_app.style.background = 'url(\'http://www.bundesschranzeramt.de/gfx/bg_double_white.png\')';var timer = new Date();if (gal_fetching) {debug_out(timer+' clearing gallery-fetch...');window.clearTimeout (gal_fetching);gal_fetching = false;}var out = dce('div');out.setAttribute('id', 'ajax_returned');out.className = 'cnt_box'+comm_skin;if (!override) {var hd = dce('div');hd.className = 'cnt_head'+comm_skin;var h1 = dce('h1');var br = dce('br');h1.className = 'news'+comm_skin;h1.appendChild(ctn(head));hd.appendChild(br);hd.appendChild(h1);var cnt = dce('div');cnt.className = 'cnt'+comm_skin;} else {var cnt = dce('div');}var c_parts = content.split(';c_parts;');field_list = new Array();for (var i=0; i<c_parts.length; i++) {var c_part = c_parts[i];var cnt_p = c_part.split('|cnt_p|');switch (cnt_p[0]) {case 'redirect': /*{{{ */var target = cnt_p[1].split(',');do_request(target[0], target[1]);break; /*}}} */case 'error': /*{{{ */var span = dce('span');span.style.color = '#ff0000';span.style.fontWeight = 'bold';span.innerHTML = bb_decode(cnt_p[1]);cnt.appendChild(span);cnt.appendChild(dce('br'));break; /*}}} */case 'debug': /*{{{ */var span = dce('span');span.style.color = '#ff0000';span.style.fontWeight = 'bold';span.appendChild(ctn('breakpoint reached:'));cnt.appendChild(span);cnt.appendChild(dce('br'));var span = dce('span');span.innerHTML = bb_decode(cnt_p[1]);cnt.appendChild(span);break; /*}}} */case 'text': /*{{{ */var span = dce('span');span.innerHTML = bb_decode(cnt_p[1]);cnt.appendChild(span);break; /*}}} */case 'board':/*{{{ */var test = cnt_p[1];if (test.substr(0,5) == 'trans') {test = test.substr(6,(test.length-6));board_transparent = true;} else {board_transparent = false;}bbody = dce('table');board = dce('tbody');bbody.setAttribute('id', test);bbody.style.borderCollapse = 'collapse';bbody.style.border = '0px';bbody.appendChild(board);bbody.style.width = '100%';break; /*}}} */case 'brow': /*{{{ */var row = cnt_p[1].split('[[[set]]]');var tr_out = dce('tr');row_cnt++;for (var y=0; y<row.length; y++) {var td = dce('td');var x = row_cnt%2;var check = y%2;var col = false;if (1 == check) {col = x;}if (0 == check) {col = (1 == x ? 0 : 1);}if (board_transparent) {td.className = 'btrans'+comm_skin;} else {td.className = 'b'+col+comm_skin;}td.setAttribute('id', 'R_'+row_cnt+'_'+y);var zeuch = row[y].split('[[[t]]]');td.style.width = zeuch[0];/*td.style.borderBottom = '1px solid #'+comm_col;if (y < (row.length-1)) {td.style.borderRight = '1px solid #'+comm_col;}*/td.style.padding = '2px';td.style.paddingBottom = '10px';td.innerHTML = zeuch[1];tr_out.appendChild(td);board.appendChild(tr_out);}break;/*}}} */case 'browcnt': /*{{{ */var row = cnt_p[1].split('[[[set]]]');for (var y=0; y<row.length; y++) {var le_val = 'R_'+row_cnt+'_'+y;var le_elm = getElm(le_val);le_elm.appendChild(ctn(row[0]));}break;/*}}} */case 'bend': /*{{{ */bbody.appendChild(board);cnt.appendChild(bbody);break; /*}}} */case 'sub_nav': /*{{{ */case 'adm_nav': var nav = dce('div');var anchs = cnt_p[1].split('[[[set]]]');nav.className = ('sub_nav' == cnt_p[0] ? 'sub_nav'+anchs[0] : 'adm_nav')+comm_skin;for (var y=1; y<anchs.length; y++) {var n_point = dce('div');if (MSIE) { n_point.style.styleFloat = 'left';} else {n_point.style.cssFloat = 'left';}n_point.innerHTML = bb_decode(anchs[y])+(y < anchs.length - 1 ? '&nbsp;&nbsp;|&nbsp;&nbsp;' : '');nav.appendChild(n_point);}var n_end = dce('div');n_end.appendChild(ctn(' '));n_end.style.clear = 'left';nav.appendChild(n_end);cnt.appendChild(nav);break;/*}}} */case 'form': /*{{{ */cnt.appendChild(form_gen(cnt_p[1]));window.setTimeout('refresh_bigarea()', '2500');break;/*}}} */case 'eval': /*{{{ */eval(cnt_p[1]);break;/*}}} */case 'chat_out': /*{{{ */to_app.style.background = 'url(\'http://www.bundesschranzeramt.de/gfx/bg_triple_white.png\')';if (!doc_height) {get_width();}info = cnt_p[1].split('|||');chatroom = info[0];var nom = 'chat_input_'+timer.getTime();var chat = dce('div');chat.style.width='100%';chat.style.height=(doc_height-260)+'px';var elm = dce('div');elm.style.background = 'transparent';elm.style.padding = '0px';elm.setAttribute('id', 'chat_out');elm.style.width = '100%';elm.style.height = '100%';elm.style.overflowY = 'scroll';elm.style.overflowX = 'hidden';elm.innerHTML = info[1];chat.appendChild(elm);cnt.appendChild(chat);var chat_entry = dce('div');chat_entry.style.width='80%';chat_entry.style.background = 'transparent';chat_entry.style.height = '35px';var form = dce('form');form.onsubmit = function () { chat_send(nom); return false; };var c_input = dce('input');c_input.type = 'text';c_input.className = 'field'+comm_skin;c_input.setAttribute('id', nom);c_input.setAttribute('title', 'zum absenden deines textes einfach die ENTER-taste benutzen');c_input.style.background = 'transparent';c_input.style.marginLeft = '5px';c_input.style.marginTop = '5px';c_input.style.width = '50%';form.appendChild(c_input);var div = dce('span');div.innerHTML = '&nbsp;';div.style.minWidth='10px';form.appendChild(div);var c_btn = dce('input');c_btn.type = 'button';c_btn.className = 'field'+comm_skin;c_btn.onclick = function () { run_chatscroll(); };var btn_text = "scrolling ";if (bc_scroll) {btn_text = btn_text+"deaktivieren";} else {btn_text = btn_text+"aktivieren";}c_btn.setAttribute('id', 'c_btn');c_btn.value = btn_text;form.appendChild(c_btn);chat_entry.appendChild(form);document.onkeydown = function () { getElm(nom).focus(); };cnt.appendChild(chat_entry);if (!chatroom) {if (ocs_debug) {alert(chatroom + ' is false - entering room 1');}chatroom = 1;} else {if (ocs_debug) {alert ('entering room '+chatroom);}}chat_enter(chatroom);break;case 'die':die = true;break;default:cnt.appendChild(ctn('no rule defined to generate "'+cnt_p[0]+'" --> content should be: '+cnt_p[1]));break;} /*}}} */}if (!override) {var ft = dce('div');var cp = String.fromCharCode(169);var d_to = new Date;var cp_t = '2001-'+d_to.getFullYear();if (!foot) {foot = '%copy%';}if (foot) {foot = foot.replace('%copy%', cp+cp_t+' bundesschranzeramt.de');ft.className = 'cnt_foot'+comm_skin;ft.appendChild(dce('br'));ft.appendChild(ctn(foot));}if ('chat_out' != cnt_p[0]) {for (var ii=0; ii<10; ii++) {ft.appendChild(dce('br'));}}}if (!override) out.appendChild(hd);out.appendChild(cnt);if (!override) out.appendChild(ft);to_app.appendChild(out);to_app.scrollTop = 0;} /*}}} */function quick_content(what) { /*{{{ */var div = getElm('div_cnt');if (is_undef(div)) {alert ('div not found...');return;}do_content(false, what, false, div);} /*}}} */var m_init = false;function refresh_bigarea() { /*{{{ */ for (var i = 0; i < forms_switch.length; i++) {var api;eval ("api = FCKeditorAPI.GetInstance('"+forms_switch[i]+"');");if (api) {var tmp_elm = getElm(forms_switch[i]);if (tmp_elm) {tmp_elm.value = '';}api.InsertHtml(forms_contents[i]);}}for (var i = 0; i < forms_checkboxes.length; i++) {var chk = getElm(forms_checkboxes[i]);if (null != chk && 'undefinded' != typeof(elm)) {chk.setAttribute('checked', 'checked');}}forms_checkboxes = false;forms_switch = false;} /*}}} */function hide_del_dialog() { /*{{{ */var elm = getElm('del_dialog');document.body.removeChild(elm);black_out(false);} /*}}} */function call_del_dialog(title, text, cnt_id, sub_id, step, override, where, alternate, tele) { /*{{{ */var div = dce('div');div.setAttribute('id', 'del_dialog');div.style.width = '450px';div.style.height = '150px';div.style.background = 'url("'+U_GFX+'bg_black.png")'; div.style.position = 'absolute';div.style.border = '2px solid red';div.style.zIndex = '999';var cdiv = dce('div'); /*content & headline {{{ */cdiv.style.height = '145px';cdiv.style.width = '445px';cdiv.style.padding = '5px';cdiv.style.position = 'relative';if (MSIE) {cdiv.style.styleFloat = 'left';} else {cdiv.style.cssFloat = 'left';}var h1 = dce('h1');h1.style.color = 'red';h1.appendChild(ctn(title));cdiv.appendChild(h1);var p = dce('p');p.style.color = 'red';p.innerHTML = text;cdiv.appendChild(p);div.appendChild(cdiv); /*}}} */var cdiv = dce('div'); /*yes & no - buttons {{{ */cdiv.style.height = '30px';cdiv.style.width = '445px';cdiv.style.padding = '0px';cdiv.style.position = 'relative';cdiv.style.background = 'url("'+U_GFX+'bg_black.png")'; cdiv.style.borderTop = '0px';if (MSIE) {cdiv.style.styleFloat = 'left';} else {cdiv.style.cssFloat = 'left';}var no = dce('div');no.onmouseover = function () { this.style.color = 'white'; };no.onmouseout = function () { this.style.color = 'red'; };no.style.cursor = 'pointer';no.style.border = '1px solid red';no.style.width = '50px';no.style.height = '16px';no.style.textAlign = 'center';no.style.verticalAlign = 'middle';no.style.color = 'red';no.style.fontWeight = 'bold';no.appendChild(ctn('nein'));if ('undefined' != typeof(tele)) {no.onclick = function () { tele_send_false(where); hide_del_dialog(); };} else {no.onclick = function () { hide_del_dialog(); };}no.style.margin = '5px';if (MSIE) {no.style.styleFloat = 'right';} else {no.style.cssFloat = 'right';}cdiv.appendChild(no);var yes = dce('div');yes.onmouseover = function () { this.style.color = 'white'; };yes.onmouseout = function () { this.style.color = 'red'; };yes.style.cursor = 'pointer';yes.style.border = '1px solid red';yes.style.width = '50px';yes.style.height = '16px';yes.style.textAlign = 'center';yes.style.verticalAlign = 'middle';yes.style.color = 'red';yes.style.fontWeight = 'bold';yes.appendChild(ctn('ja'));yes.style.margin = '5px';if ('undefined' == typeof(alternate) || 'undefined' != typeof(tele)) {if ('undefined' != typeof(tele)) {yes.onclick = function () { hide_del_dialog(); do_popup('?_w=telegramm&_accept='+where, 'no', '400', '700'); };} else {yes.onclick = function () { hide_del_dialog(); do_request(cnt_id, sub_id, step, override, where); };}} else {yes.onclick = function () { document.location.replace(alternate); };}if (MSIE) {yes.style.styleFloat = 'right';} else {yes.style.cssFloat = 'right';}cdiv.appendChild(yes);div.appendChild(cdiv); /*}}} */black_out(true);document.body.appendChild(div);alignCenter(div, false, false);} /*}}} *//*gästebuchgalerie {{{ */var opt_active = false;var opt_clone = false;var opt_move = false;function hide_gal_opts(where, override) { /*{{{ */if ('undefined' == typeof(override)) {override = false;}var elm = getElm('opts_'+where);if (elm) {var p_elm = getElm('pic_'+where);p_elm.style.border = '1px solid #6c6c6c';document.body.removeChild(elm);}if (!override) {opt_active = false;}} /*}}} */function hide_gal_befbox(where) { /*{{{ */var elm = getElm('bef_'+where);elm.style.visibility = 'hidden';elm.style.display = 'none';for (i=0; i<document.getElementsByTagName("div").length; i++) {var r_elm = document.getElementsByTagName("div")[i];var nom = r_elm.getAttribute('id');if (nom) {if (nom != 'bef_'+where && nom.substr(0,4) == 'bef_') {r_elm.style.visibility = 'hidden';r_elm.style.display = 'none';}}}} /*}}} */function do_gal_befbox(where) { /*{{{ */if (opt_active && opt_move) {var elm = getElm('bef_'+where);elm.style.visibility = 'visible';elm.style.display = '';}} /*}}} */function do_gal_pic_move_to(where) { /*{{{ */if (opt_active && opt_move) {var e1 = getElm('c_cont_'+opt_active);document.body.removeChild(e1);hide_gal_befbox(where);var sub = opt_active;opt_active = false;opt_clone = false;opt_move = false;do_request(420, 400, 31, false, sub+'_'+where);}} /*}}} */function run_chatscroll() { /*{{{ */var elm = getElm('c_btn');bc_scroll = !bc_scroll;if (bc_scroll) {elm.value = 'scrolling deaktivieren';} else {elm.value = 'scrolling aktivieren';}return;} /*}}} */function do_gal_moving(event) { /*{{{ */if (opt_active && opt_move) {if (MSIE) {var body = window.document.body;} if (document.all) {var x = event.x+body.scrollLeft+5;var y = event.y+body.scrollTop+5;} else {var x = event.pageX+5;var y = event.pageY+5;}elm = getElm('c_cont_'+opt_active);elm.style.top = y + 'px';elm.style.left = x + 'px';}} /*}}} */function do_gal_move(where) { /*{{{ */if (gal_fetching) {window.clearTimeout(gal_fetching);gal_fetching = false;}hide_gal_opts(where, true);var elm = getElm('pic_'+where);var tb_elm = getElm('gb_gal');var add_y = tb_elm.offsetTop;opt_clone = elm.cloneNode(true);opt_clone.setAttribute('id', 'clone_'+where);var copy = dce('div');copy.setAttribute('id', 'c_cont_'+where);copy.style.position = 'absolute';copy.style.border = '1px solid white';copy.style.zIndex = '999';copy.style.background = 'url("'+U_GFX+'bg_r_div.png")';copy.style.top = (elm.offsetTop + add_y + 20)+'px';copy.style.left = (elm.offsetLeft + 220)+'px';copy.appendChild(opt_clone);opt_move = true;document.body.appendChild(copy);if (MSIE) {document.onmousemove = function () { do_gal_moving(event); };} else {document.onmousemove = function (event) { do_gal_moving(event); };}} /*}}} */function do_gal_renameit(where, event) { /*{{{ */if (gal_fetching) {window.clearTimeout(gal_fetching);gal_fetching = false;}if (13 == event.keyCode) {var elm = getElm('renamer');var nu_name = getElm('nu_name').value;document.body.removeChild(elm);var sub = where;opt_active = false;opt_clone = false;opt_move = false;do_request(420, 400, 32, false, sub+'_'+nu_name);}} /*}}} */function do_gal_rename(where) { /*{{{ */if (gal_fetching) {window.clearTimeout(gal_fetching);gal_fetching = false;}hide_gal_opts(where, true); var elm = getElm('pic_'+where);var tb_elm = getElm('gb_gal');var add_y = tb_elm.offsetTop;var div = dce('div');div.setAttribute('id', 'renamer');div.style.position = 'absolute';div.style.border = '1px solid white';div.style.zIndex = '999';div.style.background = 'url("'+U_GFX+'bg_double_white.png")';div.style.top = (elm.offsetTop + add_y + 20)+'px';div.style.left = (elm.offsetLeft + 220)+'px';div.style.width = '200px';div.style.height = '45px';var table = dce('table');var tbd = dce('tbody');var tr = dce('tr');var td = dce('td');table.style.width = '100%';td.style.width = '20px';td.style.textAlign = 'center';td.style.verticalAlign = 'middle';td.style.border = '1px solid #6c6c6c';td.style.fontWeight = 'bold';td.appendChild(ctn('X'));td.style.cursor = 'pointer';td.onclick = function () { document.body.removeChild(getElm('renamer')); };tr.appendChild(td);var td = dce('td');td.style.textAlign = 'left';td.style.paddingLeft = '2px';td.style.verticalAlign = 'middle';td.style.border = '1px solid #6c6c6c';td.style.fontWeight = 'bold';td.appendChild(ctn('umbenennen'));tr.appendChild(td);tbd.appendChild(tr);var tr = dce('tr');var td = dce('td');td.colSpan = '2';var input = dce('input');input.type = 'text';input.style.width = '100%';input.className = 'field'+comm_skin;input.setAttribute('id', 'nu_name');input.value = elm.getAttribute('title');if (MSIE) { input.onkeydown = function () { do_gal_renameit(where, event); };} else {input.onkeydown = function (event) { do_gal_renameit(where, event); };}td.appendChild(input);td.setAttribute ('title', 'zum umbenennen einfach enter drücken!');tr.appendChild(td);tbd.appendChild(tr);table.appendChild(tbd);div.appendChild(table);document.body.appendChild(div);} /*}}} */function do_gal_delete(where) { /*{{{ */if (gal_fetching) {window.clearTimeout(gal_fetching);gal_fetching = false;}hide_gal_opts(where);var elm = getElm('pic_'+where);var title = elm.getAttribute('title');call_del_dialog('galeriebild löschen', 'bist du dir sicher, dass du das bild &raquo;'+title+'&laquo; löschen möchtest?', 420, 400, 33, false, where);} /*}}} */function do_gal_opts(where) { /*{{{ */var elm = getElm('pic_'+where);var tb_elm = getElm('gb_gal');var add_y = tb_elm.offsetTop;if (MSIE) {var x = elm.offsetLeft;var y = elm.offsetTop + 160;} else {var x = elm.offsetLeft + 5;var y = elm.offsetTop + 20 + add_y;}var div = dce('div');if (opt_active) {hide_gal_opts(opt_active);}div.setAttribute('id', 'opts_'+where);div.style.position = 'absolute';div.style.zIndex = '999';div.style.top = (y + 20)+'px';div.style.left = (x + 220)+'px';div.style.width = '204px';div.style.height = '110px';div.style.border = '1px solid #6c6c6c';div.style.background = 'url("'+U_GFX+'bg_double_white.png")';var btns = new Array('move', 'rename', 'delete');for (var i=0; i<btns.length; i++) {var btn = dce('div');btn.style.border = '2px solid white';btn.style.width = '200px';btn.style.height = '33px';btn.style.background = 'url("'+U_GFX+'ico_'+btns[i]+'.png")';btn.onmouseover = function () { this.style.border = '2px solid #334356'; };btn.onmouseout = function () { this.style.border = '2px solid #ffffff'; };eval ("btn.onmousedown = function () { do_gal_"+btns[i]+"("+where+"); };");if (MSIE) {btn.style.styleFloat = 'left';} else {btn.style.cssFloat = 'left';}div.appendChild(btn);}document.body.appendChild(div);opt_active = where;elm.style.border = '1px solid red';} /*}}} *//*gb-galerie ende }}} */function start_out(to_eval) { /*{{{ */eval(to_eval);return;} /*}}} */function hdl_radar_msg() { /*{{{ */var i = 0;if (msg_call.readyState == 4) {if (die) {return;}var response = msg_call.responseText;response = unescape(response);if ('NULL' != response) {var trans = response.split('|||');if (rad_msg_active) {fade_out('radar_msg', 100);m_init = window.setTimeout("start_out(\"rad_out_msg(\'"+trans[0]+"\', \'"+trans[1]+"\')\")", 3000);} else {start_out("rad_out_msg('"+trans[0]+"', '"+trans[1]+"')");}}}} /*}}} */function read_radar_msg() { /*{{{ */uri = U_AJAX+'?_w=radar&_s=113';msg_call = cre_reqObj();msg_call.open('get', uri);msg_call.onreadystatechange = hdl_radar_msg;msg_call.send(null);window.clearTimeout(r_active);if (die) {return;}r_active = false;r_active = window.setTimeout("read_radar_msg();", 15000);} /*}}} */function read_radar() { /*{{{ */var timer = new Date();if (die) {return;}debug_out(timer+' radar fetched.');uri = U_AJAX+'?_w=radar';rad_call = cre_reqObj();rad_call.open('get', uri);rad_call.onreadystatechange = hdl_radar;rad_call.send(null);if (!r_active) { r_active = window.setTimeout("read_radar_msg();", 15000);}} /*}}} */function check_return(what) { /*{{{ */var timer = new Date();if (last_fetch != what) {debug_out (timer+' board delivered...');last_fetch = what;eval (fetch_eval);} else {debug_out (timer+' state unchanged - nothing delivered...');}} /*}}} */function check_sum(what, eval_code) { /*{{{ */fetch_eval=eval_code;var uri = U_FETCH+'mp_fetch.php?action=check_sum&where='+what;any_call = cre_reqObj();any_call.open('get', uri);any_call.onreadystatechange = hdl_anycall;any_call.send(null);} /*}}} */function fetch_board() { /*{{{ */clearTimeouts();var timer = new Date();debug_out(timer+' board fetching...');check_sum('board', 'do_request(450, 400, 0, true);');fetching = window.setTimeout("fetch_board();", board_fetch);} /*}}} */function fetch_gbpic() { /*{{{ */clearTimeouts();fetch_mod = 'gbpic';var timer = new Date();debug_out(timer+' gbpic fetching...');check_sum('gbpic', 'do_request(420, 400, 20, true);');gbpic_fetching = window.setTimeout("fetch_gbpic();", board_fetch);} /*}}} */function fetch_gbgal() { /*{{{ */clearTimeouts();fetch_mod = 'gbgal';var timer = new Date();debug_out(timer+' gbgal fetching...');check_sum('gbgal', 'do_request(420, 400, 30, true);');gal_fetching = window.setTimeout("fetch_gbgal();", board_fetch);} /*}}} */function fetch_online() { /*{{{ */clearTimeouts();var timer = new Date();if (view_fetching) {window.clearTimeout(view_fetching);}debug_out(timer+' onlinelist fetching...');check_sum('online', 'div_refresh("online");');view_fetching = window.setTimeout("fetch_online();", board_fetch);} /*}}} */function clearTimeouts() { /*{{{ */if (fetching) {window.clearTimeout(fetching);fetching = false;}if (gbpic_fetching) {window.clearTimeout(gbpic_fetching);gbpic_fetching = false;}if (gal_fetching) {window.clearTimeout(gal_fetching);gal_fetching = false;}} /*}}} */function fetch_chat() { /*{{{ */return;} /*}}} */function fetch_friends() { /*{{{ */return;} /*}}} */function start_board() { /*{{{ */if (fetching) {return;}fetch_board();} /*}}} */function start_gbgal() { /*{{{ */var timer = new Date();if (gal_fetching) {debug_out(timer+' gal_fetch aborted: already running');return;}fetch_gbgal();} /*}}} */function start_gbpic() { /*{{{ */var timer = new Date();if (gbpic_fetching) {debug_out(timer+' gbpic_fetch aborted: already running');return;}fetch_gbpic();} /*}}} */function start(what) { /*{{{ */var timer = new Date();debug_out(timer+' fetching "'+what+'"');if (fetching) {debug_out(timer+' fetch aborted.');return;}eval ("fetch_"+what+"();");} /*}}} */function stop(what) { /*{{{ */var timer = new Date();debug_out(timer+' HALT fetch "'+what+'"');if (fetching) {window.clearTimeout(fetching);}} /*}}} */function chat_send(what) { /*{{{ */var string = getElm(what);var text = string.value;text = text.replace(/\+/g, '&#43;');text = text.replace(/\[img]/g, '');text = text.replace(/\</g, '&lt;');var uri = U_FETCH+'mp_fetch.php?action=chat_send&what='+escape(text)+'&where='+chatroom;cht_call = cre_reqObj();cht_call.open('get', uri);cht_call.onreadystatechange = hdl_chtcall;cht_call.send(null);string.value = '';} /*}}} */function unfold_nav(u_id) { /*{{{ */if (0 == u_id) {var elm = getElm('a_400_410');elm.innerHTML = "LOGIN";elm.style.fontSize = "9pt";return;} else {for (var i=20; i<500; i+=10) {var elm = getElm('nav_400_4'+i);if ('undefined' != typeof(elm) && elm != null) {elm.style.border = '0px';var elm2 = getElm('td_nav_400_4'+i);if ('undefined' != typeof(elm2) && elm2 != null) {elm2.style.display = '';elm2.style.visibility = 'visible'; }}}var elm = getElm('a_400_410');elm.innerHTML = "LOGOUT";elm.style.fontSize = "9pt";fold = false;} } /*}}} */function chat_push(what) { /*{{{ */if ("false" != what && "die" != what && "jump" != what.substr(0,4)) {var nu_time = new Date();var since = nu_time.getTime();debug_out(since+' fetching chat for room '+chatroom);since = since / 1000;var c_elm = getElm('chat_out');what = unescape(what);var out = what.split('~R__R~');chatroom = out[0];what = out[1];var id = what.split('~_ID_~');chat_max = id[1];var words = id[0].split('~C__C~');for (var i=0; i<words.length; i++) {var to_out = words[i];var le_spl = to_out.split('___*|*___');var le_id = le_spl[0];var le_out = le_spl[1];if (!chat_rows[le_id]) {chat_rows[le_id] = 1;var push = dce('div');push.style.width = '100%';push.style.wordWrap = 'break-word';le_out = le_out.replace(/\\'/g, '\'');le_out = le_out.replace(/\\"/g, '\"');le_out = le_out.replace(/\\\\/g, '\\');push.innerHTML = le_out;c_elm.appendChild(push);if (bc_scroll) { c_elm.scrollTop = (c_elm.scrollHeight + 25000);}}}} if ("jump" == what.substr(0,4)) {chatroom = what.substr(4,4);alert('fetched jump to room '+chatroom);var c_elm = getElm('chat_out');if (c_elm && bc_scroll) {c_elm.scrollTop = (c_elm.scrollHeight + 25000);}chatting = window.setTimeout("chat_fetch('"+chat_max+"~"+chatroom+"')", chat_speed);} else {if ("die" == what) {debug_out('chat output died by core-command.');window.clearTimeout(chatting);chatroom = false;chat_max = false;document.onkeydown = function () { return; };do_request(400,0);return;} else {var c_elm = getElm('chat_out');if (c_elm && bc_scroll) {c_elm.scrollTop = (c_elm.scrollHeight + 25000);}chatting = window.setTimeout("chat_fetch('"+chat_max+"~"+chatroom+"')", chat_speed);}}} /*}}} */function chat_fetch(what) { /*{{{ */debug_out('chat_id now: '+chat_max+' room: '+chatroom);if (!chat_rows) {chat_rows = new Array(); }if (0 == chatroom) {window.clearTimeout(chatting);chatroom = false;chat_max = false;chat_rows = false;return;}if (chatting) {window.clearTimeout(chatting);}var arr = what.split('~');var time = arr[0];var room = arr[1];chatroom = room;var uri = U_FETCH+'mp_fetch.php?action=chat_out&since='+time+'&where='+room;chat_obj = cre_reqObj();chat_obj.open('get', uri);chat_obj.onreadystatechange = hdl_chtcall;chat_obj.send(null);} /*}}} */function hdl_chtcall() {/*{{{ */if (chat_obj.readyState == 4) {if (die) {return; }var response = chat_obj.responseText;response = unescape(response);resp_todo = response.split('|||');if (resp_todo[0] != 'failed') {eval (resp_todo[0]+'("'+resp_todo[1]+'")');} else {if (resp_todo[1] != 'failed') {debug_out(resp_todo[1]);} else return;}} } /*}}} */function hdl_anycall() {/*{{{ */if (any_call.readyState == 4) {if (die) {return; }var response = any_call.responseText;response = unescape(response);resp_todo = response.split('|||');if (resp_todo[0] != 'failed') {eval (resp_todo[0]+'("'+resp_todo[1]+'")');} else {if (resp_todo[1] != 'failed') {debug_out(resp_todo[1]);} else return;}} } /*}}} */function do_plzinfo(what) {/*{{{ */var timer = new Date();debug_out(timer+' fetching memberzone '+what);if (div_active) {return;}get_width();var div_wd = 40;if (doc_width <= 1000) {div_wd = 35;}if (doc_width > 1000) {div_wd = 40;}if (doc_width > 1200) {div_wd = 45;}if (doc_width > 1400) {div_wd = 50;}if (doc_width > 1500) {div_wd = 55;}if (doc_width > 1600) {div_wd = 60;}if (null != getElm('usr_plzinfo')) {remove_users_byplz();}var cnt = getElm('ajax_returned');var temp = what.split('~~~');var users = temp[1].split('[usr]');var head = temp[0];var h_div = dce('div');h_div.className = 'cnt_head'+comm_skin;h_div.style.height = '35px';var hd = dce('h1');hd.className = 'news'+comm_skin;hd.appendChild(ctn(head));hd.style.textAlign = 'right';h_div.appendChild(hd);h_div.style.textAlign = 'right';var u_div = dce('div');u_div.appendChild(h_div);u_div.style.position = 'absolute';u_div.style.zIndex = 6;u_div.style.right = '10px';u_div.style.top = '300px';u_div.style.width = div_wd+'%';u_div.style.padding = '3px';u_div.style.height = 'auto';u_div.setAttribute ('id', 'usr_plzinfo');u_div.style.display = '';for (var i=0; i<users.length; i++) {var to_do = users[i].split('[set]');var shit = dce('div');shit.style.width = '250px';if (MSIE) {shit.style.styleFloat = 'left';} else {shit.style.cssFloat = 'left';}to_do[2] = to_do[2].replace('#', '');shit.style.color = '#'+(to_do[2].length == 6 ? to_do[2] : '000000');shit.appendChild(ctn(to_do[1]));shit.style.cursor = 'pointer';shit.style.fontWeight = 'bold';shit.onmouseover = function () { this.style.letterSpacing = '2px'; };shit.onmouseout = function () { this.style.letterSpacing = '0px'; };eval ("shit.onclick = function () { do_popup('?_w=guestbook&_s=1000"+to_do[0]+"'); };");u_div.appendChild(shit);}cnt.appendChild(u_div);} /*}}} */function unfix_users_byplz() {/*{{{ */div_active = false;remove_users_byplz();return;} /*}}} */function fix_users_byplz() {/*{{{ */if (div_active) {return;}var elm = getElm('usr_plzinfo');elm.style.border = '1px solid #fcfcfc';var btn = dce('div');btn.style.width='36px';btn.style.height='36px';btn.style.lineHeight = '10px';btn.style.position = 'absolute';if (!MSIE) {btn.style.top = '3px';btn.style.left = '3px';} else {btn.style.cssFloat = 'left';btn.style.top = '3px';btn.style.left = '3px';}btn.style.background = 'url("'+U_GFX+skin_name+'/ico/ico_close_0.png")';btn.style.cursor = 'pointer';btn.onclick = function () { unfix_users_byplz(); };eval ("btn.onmouseover = function () { this.style.background='url(\""+U_GFX+skin_name+"/ico/ico_close_1.png\")'; };");eval ("btn.onmouseout = function () { this.style.background='url(\""+U_GFX+skin_name+"/ico/ico_close_0.png\")'; };");elm.appendChild(btn);div_active = true;}/*}}} */function remove_users_byplz() {/*{{{ */if (div_active) {return;}var cnt = getElm('ajax_returned');var to_rem = getElm('usr_plzinfo');if (null != to_rem) {cnt.removeChild(to_rem);}}/*}}} */function chat_enter(room) { /*{{{ */var uri = U_FETCH+'mp_fetch.php?action=chat_enter&where='+room;chat_obj = cre_reqObj();chat_obj.open('get', uri);chat_obj.onreadystatechange = hdl_chtcall;chat_obj.send(null);} /*}}} */function fetch_users_byplz(p_plz) {/*{{{ */plz = p_plz;var uri = U_FETCH+'mp_fetch.php?action=users_byplz&what='+plz;any_call = cre_reqObj();any_call.open('get', uri);any_call.onreadystatechange = hdl_anycall;any_call.send(null);}/*}}} */function hide_user_opts() { /*{{{ */black_out(false);document.body.removeChild(getElm('adm_dialog'));} /*}}} */function hide_admin_frame() { /*{{{ */var div = getElm('adm_frame');document.body.removeChild(div);black_out(false);} /*}}} */function call_admin_frame(sub, where) { /*{{{ */var div = dce('div');div.setAttribute('id', 'adm_frame');div.style.background = 'url("'+U_GFX+'bg_double_white.png")';div.style.width = '820px';div.style.height = '600px';div.style.zIndex = '999';div.style.padding = '0px';div.style.position = 'absolute';div.style.border = '2px solid white';div.style.overflow = 'hidden';var div3 = dce('div');div3.style.background = 'url("'+U_GFX+'bg_double_white.png")';div3.style.color = '#00006c';div3.style.fontSize = '10pt';div3.style.fontWeight = 'bold';div3.style.textAlign = 'right';div3.style.position = 'absolute';div3.style.top = '2px';div3.style.right = '2px';div3.style.width = '680px';div3.style.height = '15px';div3.style.cursor = 'pointer';div3.appendChild(ctn('fenster schliessen [x]'));div3.onclick = function () { hide_admin_frame(); };var div2 = dce('div');div2.style.position = 'absolute';div2.style.top = '20px';div2.style.left = '10px';div2.style.width = '810px';div2.style.height = '565px';var iframe = dce('iframe');iframe.setAttribute('src', U_HTTP+'?_admin=1&_sub='+sub+'&_where='+where);iframe.style.width = '810px';iframe.style.height = '565px';iframe.style.border = '0';div2.appendChild(iframe);div.appendChild(div3);div.appendChild(div2);black_out(true);document.body.appendChild(div);alignCenter(div, false, false);} /*}}} */function call_user_opts(event, where) { /*{{{ */if (event.button == 2) {var div = dce('div');div.setAttribute('id', 'adm_dialog');div.oncontextmenu = function () { return false; };div.style.width = '450px';div.style.height = '230px';div.style.background = 'url("'+U_GFX+'bg_double_white.png")'; div.style.position = 'absolute';div.style.zIndex = '999';var cdiv = dce('div'); /*topspacer {{{ */cdiv.style.height = '30px';cdiv.style.width = '450px';cdiv.style.position = 'relative';if (MSIE) {cdiv.style.cssFloat = 'left';} else {cdiv.style.styleFloat = 'right';}div.appendChild(cdiv); /*}}} */var cdiv = dce('div'); /*content & headline {{{ */cdiv.style.height = '160px';cdiv.style.width = '445px';cdiv.style.padding = '5px';cdiv.style.position = 'relative';if (MSIE) {cdiv.style.styleFloat = 'left';} else {cdiv.style.cssFloat = 'left';}var mcnt = new Array(' ', ' ', 'user', 'userverwaltung', 'ustat', 'userstatus', 'ustats', 'userstatistiken', 'urel', 'relationship-viewer', 'fblock', 'funktionssperren', 'fban', 'systemsperren');var i;for (i=0; i<mcnt.length; i+=2) {var umenu = dce('div');umenu.style.width = '445px';umenu.style.height = '20px';umenu.style.fontSize = '12pt';umenu.style.textAlign = 'center';umenu.style.cursor = 'pointer';if (1 < i) {umenu.onmouseover = function () { this.style.fontWeight = 'bold'; };umenu.onmouseout = function () { this.style.fontWeight = 'normal'; };eval ("umenu.onclick = function () { hide_user_opts(); call_admin_frame('"+mcnt[i]+"', "+where+"); };");}umenu.appendChild(ctn(mcnt[i+1]));cdiv.appendChild(umenu);}div.appendChild(cdiv); /*}}} */black_out(true);document.body.appendChild(div);div.onclick = function () { hide_user_opts(); };alignCenter(div, false, false);}return false;} /*}}} */function set_opacity(obj, opacity) {opacity = (opacity == 100)?99.999:opacity;if (MSIE) {if (80 > opacity) {obj.style.filter = "alpha(opacity="+opacity+")";}} else {obj.style.opacity = opacity/100;}}var fader = false;var rad_msg_active = false;function rad_out_msg(type, what) {if (15 == type) {var stack = what.split(':::');var w_what = stack[0];var t_sess_id = stack[1];var call = w_what;call_del_dialog('einladung zu einem telegramm-chat', call, 0, 0, 0, false, t_sess_id, true, true);} else {rad_msg_active = true;var m_typ = new Array('ico/ico_online_on.png','ico/ico_gb_on.png','ico/ico_friends_on.png','','ico/ico_mail_on.png','ico/ico_chat_on.png');var r_msg = dce('div');r_msg.className = 'radar_msg';r_msg.setAttribute('id', 'radar_msg');ocs_out.appendChild(r_msg);var span = dce('span');span.className = 'radar_txt';span.innerHTML = bb_decode(what);var out = dce('div');out.style.width = '100%';out.style.height = '100px';out.style.overflowY = 'auto';out.style.overflowX = 'hidden';out.style.cursor = 'pointer';out.style.textAlign = 'center';out.style.verticalAlign = 'middle';out.onclick = function () { fade_out("radar_msg", 100); };out.appendChild(span);if (MSIE) {r_msg.style.filter = 'alpha(opacity=0.01)';} else {r_msg.style.opacity = '0.01';}r_msg.appendChild(out);fade_in('radar_msg', 0);}}function show_loc_box(what) {var loc_tbl = getElm('loc_box'+what);var loc_btn = getElm('loc_btn_'+what);var loc_div = getElm('loc_div_'+what);if (loc_tbl && loc_btn) {if (loc_tbl.style.display == 'none') {loc_tbl.style.display = '';loc_tbl.style.visibility = 'visible';loc_btn.src = U_GFX+'btn_info_on.png';loc_div.style.border = '1px solid #6c6c6c';loc_div.style.background = 'url(\''+U_GFX+'bg_r_div.png\')';} else {loc_tbl.style.display = 'none';loc_tbl.style.visibility = 'hidden';loc_btn.src = U_GFX+'btn_info_off.png';loc_div.style.border = '1px solid transparent';loc_div.style.background = 'transparent';}}}function fade_in(what, op) {var obj = getElm(what);if (op > 100) {window.clearTimeout(fader);fader = false;return;} set_opacity(obj, op);op+=10;eval ("fader = window.setTimeout(\"fade_in('"+what+"', "+op+");\", 100);");}function fade_out(what, op) {var obj = getElm(what);if (op == 0) {document.body.removeChild(obj);window.clearTimeout(fader);fader = false;rad_msg_active = false;return;} set_opacity(obj, op);op-=10;eval ("fader = window.setTimeout(\"fade_out('"+what+"', "+op+");\", 100);");}/**** initializing *** {{{ */function resize_viewport() {get_width();winX = doc_width;winY = doc_height;var elm = getElm('ocs_out');var top_space = 120;var lft_space = 160;elm.style.height = (winY-top_space-10)+'px';elm.style.width = (winX-lft_space-10)+'px';}function init(sid, sdebug, skin, classes, colors, skin_id) {if ('undef' == typeof(colors) || null == colors || false == colors) {skin_colors = new Array();} else {skin_colors = colors;}if ('undef' == typeof(classes) || null == classes || false == classes) {skin_classes = new Array();} else {skin_classes = classes;}if ('undef' == typeof(skin) || null == skin || false == skin) {comm_skin = '_bundesschranzeramt';skin_name = 'bundesschranzeramt';} else {comm_skin = '_'+skin;skin_name = skin;}if ('undef' == typeof(skin_id) || null == skin_id || false == skin_id) {comm_skin_id = 1;} else {comm_skin_id = skin_id;}comm_col = skin_colors[comm_skin_id-1];if ('undef' == typeof(sdebug) || null == sdebug || false == sdebug ) {sdebug = false; } else {alert('debugmodus ist aktiviert');}if (sid == 'none') {sid = false;}ocs_debug = sdebug;get_width();winX = doc_width;winY = doc_height;var elm = getElm('ocs_out');var top_space = 150;var lft_space = 150;elm.style.height = (winY-top_space-10)+'px';elm.style.width = (winX-lft_space-10)+'px';if ('undefined' != typeof(sid)) {s_id = sid;} else {s_id = false;}ocs_call = cre_reqObj(); ocs_out = document.body;resize_viewport();window.onresize = function () { resize_viewport(); };active = window.setTimeout("read_radar();", radar_fetch);init_fetching = window.setTimeout("window.clearTimeout(init_fetching); do_request(100,0,0);", 5);}function gb_init(sid, gb, skin, skin_col) {if ('undef' == typeof(skin) || null == skin || false == skin) {comm_skin = '_freestyle';} else {comm_skin = '_'+skin;}if ('undef' == typeof(skin_col) || null == skin_col || false == skin_col) {comm_col = skin_col;} else {comm_col = '#6c6c6c';}s_id = sid;gb_id = gb;ocs_call = cre_reqObj();ocs_out = document.body;uri = U_AJAX+'?_w=430&_a=400&_s=1000'+gb;ocs_call.open('get', uri);ocs_call.onreadystatechange = hdl_request;ocs_call.send(null);}/*}}} */