/* ? */ function menu_open(id){ // blu( levelcode ); var obj = $i(id); obj.parentNode.className = obj.parentNode.className + ' active'; obj.style.display='block'; } function menu_close(id){ var obj = $i(id); obj.parentNode.className = obj.parentNode.className.replace(' active', ''); obj.style.display='none'; } function switch_tabs(obj, contentname, active_bgcolor, inactive_bgcolor, active_color, inactive_color){ var content = exclude_nodes($i(contentname+'_tabcontents'), '#text').childNodes; var tabs = exclude_nodes(obj.parentNode,'#text').childNodes; var active_color = (active_color) ? active_color : "ffffff"; var inactive_color = (inactive_color) ? inactive_color : active_color; var truetype; for( var i = 0; i < content.length; i++ ) { content[i].style.display = 'none'; } for (var i=0; i page_length) ? 1 : active_page_index+1); } // alert(next_index); obj[next_index-1].style.display = 'block'; pager[next_index-1].className = 'dot active'; } function show_flexi_page( flexicontent, page_to_activate ) { var obj = exclude_nodes( $i(flexicontent), '#text' ).childNodes; var pager = $i(flexicontent.replace('content', 'pager')).childNodes; for( var i = 0; i < obj.length; i++ ) { pager[i].className = (obj[i].id == page_to_activate) ? 'dot active' : 'dot'; if ( obj[i].className == 'page' ) { obj[i].style.display = ( obj[i].id == page_to_activate ) ? 'block' : 'none'; } } } function groupheader_openchild(id, total){ var obj = $i('ghchild'+id); for(var i=0;i '+typeof(theObj)+''; html+=''; } else { html+='
  • ['+p+'] => '+theObj[p]+'
  • '; } } html+=''; return html; } } function print_r2(theObj){ var html = ''; if(theObj.constructor){ html+=''; return html; } } function change_background(object, color){ object.appendChild(new_div('selection', false, false)); var selector=$i('selection'); selector.style.position = 'absolute'; selector.style.width = object.offsetWidth + "px"; selector.style.height = object.offsetHeight + "px"; selector.style.top = 0; selector.style.left = "-8px"; selector.style.borderRight = '8px solid #fff'; object_opacity(selector, 10); var temp_color = object.style.backgroundColor; var temp_function = object.onmouseover; selector.onmouseover = function (){ object.onmouseover = function(){} } selector.onclick = function (){ object.removeChild(selector); } selector.onmouseout = function (){ object.removeChild(selector); object.onmouseover = temp_function; } } function blueprint() { var width = window.innerWidth; var height = window.innerHeight; if(document.getElementById('dhtml_goodies_id' + divCounter).style.display == 'none'){ document.getElementById('dhtml_goodies_id' + divCounter).style.display = 'block'; } else { fadeoutobject(document.getElementById('dhtml_goodies_id' + divCounter)); //document.getElementById('dhtml_goodies_id' + divCounter).style.display = 'none'; } } function setBGColor(id, hexc){ document.getElementById('' + id + '').style.backgroundColor = hexc; } function unsetBGColor(id, hexc){ document.getElementById(id).style.backgroundColor = hexc; } function closeme(){ opener.focus(); self.close(); } function loadPage(id){ window.open(id, '_parent'); } function listitem_highlite(obj, maxed){ for(var i=1;i<=maxed;i++){ var listitem_object = document.getElementById('listitem' + i); listitem_highlite_force_off(listitem_object); } obj.style.backgroundColor='#ffffff'; //obj.childNodes[1].style.backgroundColor='#000000'; obj.style.color='#305cb6'; } function listitem_highlite_force_off(obj){ obj.style.backgroundColor=''; //obj.childNodes[1].style.backgroundColor='#ffffff'; obj.style.color='#ffffff'; } function resetting_global_function_variables(){ /* this function appears in the frontend environment * external calls, needs a global resetting, when a new page called. */ global_runtime = null motion_sense = false; item_pos = 1; vgt_item_pos = 1; pgt_item_pos = 1; } /* *************** slider **************** */ motion_sense = false; var item_pos = 1; var vgt_item_pos = 1; var pgt_item_pos = 1; function section_pos(id, move){ var obj = $i(id); var childs = exclude_nodes(obj, '#text').childNodes; var active = 0; for(var i=0;childs.length>i;i++){ if(childs[i].className == 'active'){ active = i; childs[i].className = 'inactive'; } } if(move == 'left' && active > 0){ childs[active-1].className = 'active'; } else if((move == 'right') && (active < (childs.length-1))){ childs[active+1].className = 'active'; } else { childs[active].className = 'active'; } } function section_active(active, obj, group, SAMPLE_DST_OBJ, OBJ_ID, MAX_ITEMS){ //autoslide(SAMPLE_DST_OBJ, active, obj, MAX_ITEMS); var childs = exclude_nodes($i(obj), '#text').childNodes; var _obj = document.getElementById(OBJ_ID); var sample = document.getElementById(SAMPLE_DST_OBJ); var objpos = (_obj.style.right) ? eval(_obj.style.right.replace('px', '')) : 0; var POS = active+1; var inactive = 0; var dist = eval(sample.offsetWidth) * active; for(var i=0;childs.length>i;i++){ if(childs[i].className == 'active'){ inactive = i; } if(inactive != active){ childs[i].className = 'inactive'; } } var itempos = inactive+1; if(motion_sense == false){ if(inactive != active){ childs[active].className = 'active'; var DRC = (active > inactive) ? 'left' : 'right'; var step = 0; switch(DRC){ case 'left': step=POS-itempos; break; case 'right': step=itempos-POS; break; } move_object(_obj, DRC, dist, 0, 11, 11); } } } function exclude_nodes(obj, nodename){ if(obj){ for(var i=0;obj.childNodes.length>i;i++){ if(obj.childNodes[i].nodeName == nodename){ obj.removeChild(obj.childNodes[i]); } } return obj; } else { alert(error_message(1)); } } function display_tab(object, tabobject){ var obj = object; /* reseting the channel pos */ var parent = exclude_nodes(obj.parentNode, '#text'); var tabs = exclude_nodes(tabobject.parentNode, '#text'); //alert(tabs.childNodes.length); for(var i=0;parent.childNodes.length>i;i++){ //alert(parent.childNodes[i].id); parent.childNodes[i].style.display = 'none'; tabs.childNodes[i].className = 'inactivetab'; } obj.style.display = 'block'; tabobject.className = 'activetab'; } function slide(SAMPLE_DST_OBJ, DRC, OBJ_ID, MAX_ITEMS, CUST_SPEED){ if(motion_sense == false){ if(!SAMPLE_DST_OBJ) alert('SAMPLE_DST_OBJ'); if(!DRC) alert('DRC'); if(!OBJ_ID) alert('OBJ_ID'); if(!MAX_ITEMS) alert('MAX_ITEMS'); var sample = document.getElementById(SAMPLE_DST_OBJ); var speed = (CUST_SPEED) ? CUST_SPEED : 10; if(client == 'ie'){ speed = speed/2; } var _obj = document.getElementById(OBJ_ID); var rpos = (_obj.style.right) ? eval(_obj.style.right.replace('px', '')) : 0; var sample_w = sample.offsetWidth; var realpos = (DRC == 'left') ? (rpos / sample_w)+1 : (rpos / sample_w); var dist = (DRC == 'left') ? sample.offsetWidth * realpos : sample.offsetWidth * (realpos-1); //if(DRC == 'left') blu (sample.offsetWidth + ' * ' + realpos + ' = ' + dist); //if(DRC == 'right') blu (sample.offsetWidth + ' * ' + (realpos-1) + ' = ' + dist); var limit = sample.offsetWidth * MAX_ITEMS; var cpu = 10; var objpos = (_obj.style.right) ? eval(_obj.style.right.replace('px', '')) : 0; var itempos = (objpos/dist)+1; var realpos_reset = 0; //blu(itempos + ';' + MAX_ITEMS); if(((realpos < MAX_ITEMS) && (DRC == 'left')) || ((realpos > 0 && DRC == 'right'))){ if(motion_sense == false){ move_object(_obj, DRC, dist, limit, speed, cpu); switch(DRC){ case 'left': realpos++; break; case 'right': realpos; break; } var current_listitem_object = document.getElementById('listitem' + (realpos)); listitem_highlite(current_listitem_object, MAX_ITEMS); } var dots = $i(OBJ_ID+'dots').childNodes; for(var i=0;dots.length>i;i++){ dots[i].className = dots[i].className.replace(' active', ''); } dots[realpos-1].className = dots[realpos-1].className+' active'; $i(OBJ_ID+'_page').innerHTML = realpos+'/'+MAX_ITEMS; } else { if(motion_sense == false){ realpos = (DRC == 'left') ? 0 : MAX_ITEMS; dist = (DRC == 'left') ? sample.offsetWidth * realpos : sample.offsetWidth * (realpos-1); move_object(_obj, DRC, dist, limit, speed, cpu); realpos_reset = (DRC == 'left') ? 1 : MAX_ITEMS; current_listitem_object = document.getElementById('listitem' + (realpos_reset)); listitem_highlite(current_listitem_object, MAX_ITEMS); } var dots = $i(OBJ_ID+'dots').childNodes; for(var i=0;dots.length>i;i++){ dots[i].className = dots[i].className.replace(' active', ''); } dots[realpos_reset-1].className = dots[realpos_reset-1].className+' active'; $i(OBJ_ID+'_page').innerHTML = realpos+'/'+MAX_ITEMS; } } } function slide_normal(SAMPLE_DST_OBJ, DRC, OBJ_ID, MAX_ITEMS, CUST_SPEED, step, section_name){ if(!SAMPLE_DST_OBJ) alert('SAMPLE_DST_OBJ'); if(!DRC) alert('DRC'); if(!OBJ_ID) alert('OBJ_ID'); if(!MAX_ITEMS) alert('MAX_ITEMS'); var _obj = document.getElementById(OBJ_ID); var sample = document.getElementById(SAMPLE_DST_OBJ); var steps = (step) ? step : 1; webaudit_hit(); var rpos = (_obj.style.right) ? eval(_obj.style.right.replace('px', '')) : 0; var sample_w = sample.offsetWidth; var realpos = (DRC == 'left') ? (rpos / sample_w)+1 : (rpos / sample_w); var dist = (DRC == 'left') ? sample.offsetWidth * realpos : sample.offsetWidth * (realpos-1); //if(DRC == 'left') blu (sample.offsetWidth + ' * ' + realpos + ' = ' + dist); //if(DRC == 'right') blu (sample.offsetWidth + ' * ' + (realpos-1) + ' = ' + dist); //var dist = eval(sample.offsetWidth) * steps; var objpos = (_obj.style.right) ? eval(_obj.style.right.replace('px', '')) : 0; var itempos = realpos; var speed = (CUST_SPEED) ? CUST_SPEED : 10; if(client == 'ie'){ speed = speed; } var limit = sample.offsetWidth * Math.round(MAX_ITEMS); var cpu = 5; if(((realpos < MAX_ITEMS) && (DRC == 'left')) || ((realpos > 0 && DRC == 'right'))){ if(motion_sense == false){ move_object(_obj, DRC, dist, limit, speed, cpu); var reverse_drc = (DRC == 'right') ? 'left' : 'right'; section_pos(section_name, reverse_drc); //var current_listitem_object = document.getElementById('listitem' + item_pos); //listitem_highlite(current_listitem_object, MAX_ITEMS); } } else { if(motion_sense == 'd'){ realpos = (DRC == 'left') ? 0 : MAX_ITEMS; dist = (DRC == 'left') ? sample.offsetWidth * realpos : sample.offsetWidth * (realpos-1); move_object(_obj, DRC, dist, limit, speed, cpu); realpos_reset = (DRC == 'left') ? 1 : MAX_ITEMS; current_listitem_object = document.getElementById('listitem' + (realpos_reset)); listitem_highlite(current_listitem_object, MAX_ITEMS); } } } function autoslide(SAMPLE_DST_OBJ, POS, OBJ_ID, MAX_ITEMS){ var sample = document.getElementById(SAMPLE_DST_OBJ); var DRC = (POS > item_pos) ? 'left' : 'right'; var dist = eval(sample.offsetWidth) * (POS-1); var speed = 1; //sudden swap for big distances //alert('POS:'+ POS + ' item_pos:' + item_pos + ' DRC:' + DRC + ' dist:' +dist + ' sense:' + motion_sense); var _obj = document.getElementById(OBJ_ID); var _limit_obj = document.getElementById('safeframe'); var limit = _limit_obj.offsetWidth * MAX_ITEMS; _obj.style.width = limit + 'px'; var cpu = 10; if(motion_sense == false){ move_object(_obj, DRC, dist, limit, speed, cpu); item_pos = POS; var current_listitem_object = document.getElementById('listitem' + item_pos); listitem_highlite(current_listitem_object, MAX_ITEMS); } } function autoslide(SAMPLE_DST_OBJ, POS, OBJ_ID, MAX_ITEMS){ var sample = document.getElementById(SAMPLE_DST_OBJ); var DRC = (POS > item_pos) ? 'left' : 'right'; var dist = eval(sample.offsetWidth) * (POS-1); var speed = 1; //sudden swap for big distances //alert('POS:'+ POS + ' item_pos:' + item_pos + ' DRC:' + DRC + ' dist:' +dist + ' sense:' + motion_sense); var _obj = document.getElementById(OBJ_ID); var _limit_obj = document.getElementById('safeframe'); var limit = _limit_obj.offsetWidth * MAX_ITEMS; _obj.style.width = limit + 'px'; var cpu = 10; if(motion_sense == false){ move_object(_obj, DRC, dist, limit, speed, cpu); item_pos = POS; var current_listitem_object = document.getElementById('listitem' + item_pos); listitem_highlite(current_listitem_object, MAX_ITEMS); } } var global_runtime = null; function timeout_autoslide(object, SAMPLE_DST_OBJ, POS, OBJ_ID, MAX_ITEMS){ var dots = $i(OBJ_ID+'dots').childNodes; for(var i=0;dots.length>i;i++){ dots[i].className = dots[i].className.replace(' active', ''); } dots[POS-1].className = dots[POS-1].className+' active'; $i(OBJ_ID+'_page').innerHTML = POS+'/'+MAX_ITEMS; var temp_style = object.style.backgroundColor; if (POS != item_pos) object.style.backgroundColor = '#eeeeee'; if (global_runtime) window.clearInterval(global_runtime); if (object.timeout_memory_flag) window.clearInterval(object.timeout_memory_flag); var step = 0; var length = 25; object.timeout_memory_flag = window.setInterval( function(){ // dummy ... step++; if(step>length){ window.clearInterval(object.timeout_memory_flag); autoslide(SAMPLE_DST_OBJ, POS, OBJ_ID, MAX_ITEMS); } }, 10); object.onmouseout = function(){ if(POS != item_pos) object.style.backgroundColor = temp_style; window.clearInterval(object.timeout_memory_flag); } global_runtime = object.timeout_memory_flag; } function clear_search_value(obj){ if(obj.value == 'Keresés ...'){ obj.value = ''; } } function submit_now(obj){ // not now :-) } function post_content_filter_form(){ var obj = document.forms['content_filter']; var keyword = (obj.elements[0].value.replace('Keresés ...')) ? obj.elements[0].value.replace('Keresés ...') : false; var channel_id = (obj.elements[1].value) ? obj.elements[1].value : false; var year_from = obj.elements[2].value; var month_from = obj.elements[3].value; var day_from = (obj.elements[4].value.length == 1) ? '0' + obj.elements[4].value : obj.elements[4].value; var date_in = year_from + month_from + day_from + '000000'; var year_until = obj.elements[5].value; var month_until = obj.elements[6].value; var day_until = (obj.elements[7].value.length == 1) ? '0' + obj.elements[7].value : obj.elements[7].value; var date_out = year_until + month_until + day_until + '245959'; search_galleries(keyword, channel_id, date_in, date_out); } function post_searchcontent_filter_form(){ var obj = document.forms['content_filter']; var keyword = (obj.elements[0].value.replace('Keresés ...')) ? ((ie6) ? obj.elements[0].value.replace('Keresés ...') : unescape(obj.elements[0].value.replace('Keresés ...'))) : false; var channel_id = (obj.elements[1].value) ? obj.elements[1].value : false; var year_from = obj.elements[2].value; var month_from = obj.elements[3].value; var day_from = (obj.elements[4].value.length == 1) ? '0' + obj.elements[4].value : obj.elements[4].value; var date_in = year_from + month_from + day_from + '000000'; var year_until = obj.elements[5].value; var month_until = obj.elements[6].value; var day_until = (obj.elements[7].value.length == 1) ? '0' + obj.elements[7].value : obj.elements[7].value; var date_out = year_until + month_until + day_until + '245959'; search_articles(keyword, channel_id, date_in, date_out); } var flash_width = 1024; var flash_height = 768; function swap_ajanloitem(obj) { var object = $i(obj); var content = exclude_nodes($i('ajanlo_content'), '#text').childNodes; for(var i=0;i steps) { window.clearInterval(obj.animation); } }, 10); } function submit_form(obj, link){ obj.action = link; } /* top-ajanlo */ var topajanlo_key = 0; function topajanlo_thumb(key){ var last_key = topajanlo_key; $i('clickpoint'+last_key).style.display = 'none'; $i('topajanlo_content'+last_key).style.display = 'none'; $i('clickpoint'+key).style.display = 'block'; $i('topajanlo_content'+key).style.display = 'block'; topajanlo_key = key; /* var object = $i('topajanlo_lead'+key); var lead = object.innerHTML; var power = 1; var step = 0; var length = lead.length; object.timeout_memory_flag = window.setInterval( function(){ // dummy ... minValue,maxValue,totalSteps,actualStep,powr object.innerHTML = lead.substr(0, easeInOut(0,length,length,step,power)); step++; if(step>length){ window.clearInterval(object.timeout_memory_flag); object.innerHTML += '' } }, 20); */ } function topajanlo_slide(object, move_size){ webaudit_hit(); if(object.motion == undefined){ object.motion = true; if (object.timeout_memory_flag) window.clearInterval(object.timeout_memory_flag); object.step = 0; var length = 10; var startpos = (object.offsetLeft) ? object.offsetLeft : 0; var endpos = startpos + move_size; var phase = 0; var max_phase = 2; var prefix = ''; var power = 3; object.timeout_memory_flag = window.setInterval( function(){ // dummy ... minValue,maxValue,totalSteps,actualStep,powr object.style.left = prefix + easeInOut(startpos,endpos,length,object.step,power) + 'px'; object.step++; if(object.step>length){ phase++; endpos = startpos; startpos = eval(object.style.left.replace('px', '')); power = 2; length = 14; object.step = 0; } if(phase == max_phase){ window.clearInterval(object.timeout_memory_flag); object.motion = undefined; } }, 10); } } function addListener(element, type, expression, bubbling) { bubbling = bubbling || false; if(window.addEventListener) { // Standard element.addEventListener(type, expression, bubbling); return true; } else if(window.attachEvent) { // IE element.attachEvent('on' + type, expression); return true; } else return false; } function hex2dec(value){ var input = value.toUpperCase(); var hexa_range = '0123456789ABCDEF'; var equal = []; for(var i=0;i ' + min_move_offset + ' - ' + max_move_offset); if((pos > min_move_offset) && (pos < max_move_offset)){ object_move(content, offset*stepvalue, direction, visible_items); } } function normalize(css_values){ return eval(css_values.replace('px', '').replace('pt', '')); } function object_move(object, move_size, direction, visible_items){ if(object.motion == undefined){ object.motion = true; motion_sense = true; if (object.timeout_memory_flag) window.clearInterval(object.timeout_memory_flag); var step = 0; var length = 20; var startpos = (object.style.left) ? eval(object.style.left.replace('px', '')) : 0; var endpos = (direction == 'left') ? startpos - move_size : startpos + move_size; var prefix = ''; var power = 3; var lap = 0; var position_object = ($i(object.id + '_pos0')) ? $i(object.id + '_pos0') : null; if(move_size.length == 2){ startpos = move_size[0]; endpos = move_size[1]; //alert(startpos +' / '+endpos); } object.timeout_memory_flag = window.setInterval( function(){ // dummy ... minValue,maxValue,totalSteps,actualStep,powr object.style.left = prefix + easeInOut(startpos,endpos,length,step,power) + 'px'; step++; if(step>length){ window.clearInterval(object.timeout_memory_flag); events[object.id] = object.style.left; if(position_object){ lap = Math.abs(normalize(object.style.left)); var items = object.childNodes.length / visible_items; for(var i=0;ilength){ window.clearInterval(object.timeout_memory_flag); events[object.id] = object.style.top; if(position_object){ lap = Math.abs(normalize(object.style.left)); var items = object.childNodes.length / visible_items; for(var i=0;ilength){ window.clearInterval(object.timeout_memory_flag); // object.motion = undefined; } }, 10); //} } /* myDiv.onmouseout=function(evt) { var newEl=evt.relatedTarget||event.toElement; if(newEl==myImg) return true; alert('This alert will only appear if you mouse-out of the div and not into the image element.'); } */ function progress(obj){ levelcode = obj.parentNode.href; webaudit_hit(); var loading = new_div(false, 'progress', false); obj.appendChild(loading); } var active_child = null; var allow_close = true; function display_child(id, owner){ webaudit_hit(); var child = $i(id); var navigation_child = $i('navigation_child'); var navigations = $i('navigations'); var menuitems = exclude_nodes(navigation_child, '#text').childNodes; var menus = exclude_nodes(navigations, '#text').childNodes; for(var i=0; ilength){ active_child = null; child.style.position = 'absolute'; child.style.visibility = 'hidden'; child.style.height = (openheight-20) + 'px'; allow_close = true; window.clearInterval(object.scale_div_height_memory_flag); } }, interval); } } else { var item = null; for(var i=0; ilength){ allow_close = true; object.style.height = (normalize(object.style.height)-20) + 'px'; window.clearInterval(object.scale_div_height_memory_flag); } }, interval); } function auto_close(){ if(allow_close == true && active_child){ active_child.style.display = 'none'; } } function highlight_menuitem(object, chex){ var obj = object; var temp_color = obj.style.backgroundColor; obj.style.backgroundColor = (chex) ? chex : '#edf0f4'; // if(allow_close == true){ obj.onmouseout = function(){ obj.style.backgroundColor = temp_color; } // } } var image_key = 0; function swap_images(id, direction, key){ webaudit_hit(); var obj = $i(id); var caption = $i('caption'); var prev_key = (eval(image_key) > 0) ? eval(image_key)-1 : gallery_images.length-1; var next_key = (eval(image_key)+1 < gallery_images.length) ? eval(image_key)+1 : '0'; var current_key = (direction && (direction == 'next')) ? next_key : prev_key; if(key){ current_key = key; } for(var i=0;gallery_images.length>i;i++){ var itempos = $i('galeria_kepek_container_pos'+i); itempos.className = (i==current_key) ? 'item active' : 'item inactive'; } obj.style.backgroundImage = 'url(/cache/'+gallery_images[current_key]+')'; caption.innerHTML = gallery_captions[current_key]; image_key = current_key; $i('gallery_page').innerHTML = (eval(image_key)+1) + '/' + gallery_images.length; } var last_child = null; function toggle_child(id, total, parent){ webaudit_hit(); var obj = $i(id); var obj_height = obj.style.height.replace('pt', '').replace('px', ''); //blu(obj_height); var state = (obj_height == 0) ? 'close' : 'open'; var openheight = obj.childNodes[0].offsetHeight; //blu('a'); if(last_child == null){ last_child = obj; for(var i=0;ilength){ var box = object.parentNode.parentNode.parentNode; //box.parentNode.style.height = box.parentNode.offsetHeight + offset_end + 'px'; move_bottom_neighbours(box.parentNode); window.clearInterval(object.scale_div_height_memory_flag); } }, interval); } function toggle_search_options(id){ var obj=$i(id); obj.style.display = (obj.style.display == 'none') ? 'block' : 'none'; } function count_chars(obj){ var max_char = 1000; var char_len = obj.value.length; if(char_len > max_char){ obj.value = obj.value.substr(0,max_char); } char_len = obj.value.length; $i('chars').innerHTML = char_len + '/' +max_char + ' karakter'; } function kepmegjelenites_autoswapto(direction, uid, items){ var unique_id = (uid) ? uid+'_' : ''; var content = exclude_nodes($i(unique_id+'kepmegjelenites_content'), '#text').childNodes; var active_key = 0; for(var i=0;i (content.length-1) ? 0 : active_key+1); var frame = $i(unique_id+'kepmegjelenites_frame'); var frame_pos = normalize(frame.style.left); var nums = (items) ? items : 5; var round = ((id/5)-(Math.round(id/nums))); var pages = (Math.round(content.length/nums)); var page = Math.floor(id/nums); var picwidth = $i(unique_id+'content'+id+'picdot').offsetWidth + 5; var distance = page * (picwidth*nums); if((normalize(frame.style.right) != distance) && motion_sense == false){ move_object(frame, direction, distance, 1000, 15, 5); } kepmegjelenites_swapto(unique_id+'content'+id, uid); } function kepmegjelenites_swapto(id, uid){ var unique_id = (uid) ? uid+'_' : ''; var obj = $i(id); if(obj){ var content = exclude_nodes(obj.parentNode, '#text').childNodes; var dot = $i(id+'picdot'); // volt: var page = $i('kepmegjelenites_page'); var page = $i(unique_id+'kepmegjelenites_page'); var active_key = id.replace(unique_id+'content', ''); var lastdot; var lastcontent; for(var i=0;i (content.length-1) ? 0 : active_key+1); ajanlo_swapto('content'+id); } } function ajanlo_swapto(id, motion_break){ if(motion_break){ break_ajanlo(); } var obj = $i(id); var content = exclude_nodes(obj.parentNode, '#text').childNodes; var dot = $i(id+'dot'); var page = $i('ajanlo_page'); for(var i=0;i