ajximg = new Object(); ajximg.am = 0; ajximg.init = function() { ajximg.popuparrayi = 0; ajximg.popuparray = new Array(); ajximg.popuparrayi_prevnext = new Array(); for(var i=0; i < document.getElementsByTagName('img').length; i++) { fld = document.getElementsByTagName('img')[i]; try{ act = fld.getAttribute("rel"); /* if(!act) { act = fld.getAttribute("AJXIMG:action"); } */ }catch(e){} if(act) { cfg = ajximg.getcfg(fld.getAttribute("AJXIMG:cfg")); ajximg.cfg = cfg; switch(act) { case "popup": ajximg.popuparray[ajximg.popuparrayi] = fld; ajximg.popuparrayi++; if(cfg['flague']){ if(!ajximg.popuparrayi_prevnext[cfg['flague']]){ ajximg.popuparrayi_prevnext[cfg['flague']] = new Array(); } ajximg.popuparrayi_prevnext[cfg['flague']][ajximg.popuparrayi-1] = fld; } fld.setAttribute("act_i_for_AJXIMG", ajximg.popuparrayi); ajximg.launchpopup(fld, cfg); break; } } } } ajximg.launchpopup = function(fld, cfg) { dksajdkaejkgea = 0; if(!cfg){ cfg = ajximg.getcfg(fld.getAttribute("AJX:cfg")); } fld.style['cursor'] = 'pointer'; fld.onclick = function(){ ajximg.popup(cfg['src'], fld); } } ajximg.dragdrop = function(e) { if(ajximg.popSRC.dragdrop == 1){ offX = (e) ? e.pageX : event.clientX; offY = (e) ? e.pageY : event.clientY; if(ajximg.popSRC.oldoffX){ offXmod = offX - ajximg.popSRC.oldoffX; offYmod = offY - ajximg.popSRC.oldoffY; ajximg.popBG.scrollTop = ajximg.popBG.scrollTop + offYmod + (offYmod * 0.9); ajximg.popBG.scrollLeft = ajximg.popBG.scrollLeft + offXmod + (offXmod * 0.9); } ajximg.popSRC.oldoffX = offX; ajximg.popSRC.oldoffY = offY; } } ajximg.popup = function(src, fld) { try{ ajximg.popupclose(); document.body.removeChild(document.getElementById('grejt5h436j43j5ioyh435jiouj4i3dsaflkaeltgae')); if(document.getElementById('dsakdopqa3jhireq3trkj43py2yu42')){ document.body.removeChild(document.getElementById('dsakdopqa3jhireq3trkj43py2yu42')); } }catch(e){} cfg = ajximg.getcfg(fld.getAttribute("AJXIMG:cfg")); var pageScroll = new Array(); ajximg.pageScroll = getPageScroll(); var pageSize = new Array(); ajximg.pageSize = getPageSize(); ajximg.popSRC = document.createElement('img'); ajximg.drawIFrame(); ajximg.popBG = document.createElement('div'); ajximg.popBG.id = 'dsakdopqa3jhireq3trkj43py2yu42'; ajximg.popBG.style['background'] = '#ffffff'; ajximg.popBG.style['width'] = '0'; ajximg.popBG.style['height'] = '0'; ajximg.popBG.style['position'] = 'absolute'; ajximg.popBG.style['left'] = '0'; ajximg.popBG.style['top'] = '0'; ajximg.popBG.style['zIndex'] = '78565'; ajximg.popBG.style['overflowY'] = 'auto'; ajximg.popBG.style['overflowX'] = 'hidden'; ajximg.popBG.style['border'] = 'solid #ffffff 10px'; ajximg.popBG.style['display'] = 'none'; ajximg.popBG.style['padding'] = '35px 0 0 0'; ajximg.popBG.style['margin'] = '0px'; document.body.insertBefore(ajximg.popBG, document.body.nextSibling); if(!document.getElementById('dslajrfa3p54a3hiptjuahra3iohy0a3itajht9a')){ ajximg.preLoader = document.createElement('div'); ajximg.preLoader.style['position'] = 'absolute'; ajximg.preLoader.style['top'] = (ajximg.pageSize[3] / 2 - 25) + 'px'; ajximg.preLoader.style['left'] = (ajximg.pageSize[2] / 2 - 25) + 'px'; ajximg.preLoader.style['opacity'] = '0.7'; ajximg.preLoader.innerHTML = ''; ajximg.preLoader.id = 'dslajrfa3p54a3hiptjuahra3iohy0a3itajht9a'; document.body.insertBefore(ajximg.preLoader, document.body.nextSibling); }else{ document.getElementById('dslajrfa3p54a3hiptjuahra3iohy0a3itajht9a').style['display'] = 'block'; } ajximg.am = 0; ajximg.popSRC.onload = function() { document.onkeyup = function(e) { if(e){ var keycd = e.keyCode ? e.keyCode : e.charCode; }else{ var keycd = window.event.keyCode; } switch(keycd){ case 27: ajximg.popupclose(); break; case 37: try{document.getElementById('fwreklrhw432j5i32jy6ipj43left').childNodes[0].onclick();}catch(e){} break; case 39: try{document.getElementById('fwreklrhw432j5i32jy6ipj43right').childNodes[0].onclick();}catch(e){} break; } } ajximg.picWid = this.width; ajximg.picHei = this.height; rez = 0; if(ajximg.picWid > (ajximg.pageSize[0])){ ajximg.picWidMax = ajximg.pageSize[0] - 100; rez = 1; }else{ ajximg.picWidMax = this.width; } if(ajximg.picHei > (ajximg.pageSize[3])){ ajximg.picHeiMax = ajximg.pageSize[3] - 100; rez = 1; }else{ ajximg.picHeiMax = this.height; } if(ajximg.popSRC.width > ajximg.picWidMax){ ajximg.popSRC.width = ajximg.picWidMax; } if(ajximg.picHeiMax < ajximg.picHei){ ajximg.popBG.style['width'] = ajximg.picWidMax + 18 + 'px'; }else{ ajximg.popBG.style['width'] = ajximg.picWidMax + 'px'; } ajximg.feasjroahi5a = ajximg.picWidMax; ajximg.popBG.style['height'] = (ajximg.picHeiMax+2) + 'px'; ajximg.centerW = (ajximg.pageSize[2] - ajximg.picWidMax) / 2 - 18; ajximg.centerH = ((ajximg.pageSize[3]) - ajximg.picHeiMax) / 2; ajximg.centerH += ajximg.pageScroll[1]; ajximg.popBG.style['left'] = ajximg.centerW + 'px'; ajximg.popBG.style['top'] = ajximg.centerH + 'px'; document.getElementById('dslajrfa3p54a3hiptjuahra3iohy0a3itajht9a').style['display'] = 'none'; ajximg.resize(); if(rez == 1){ ajximg.popSRC.dragdrop = 1; ajximg.popSRC.style['cursor'] = 'pointer'; ajximg.popSRC.onmousedown = function(e){ } ajximg.popSRC.onmousemove = function(e){ } ajximg.popSRC.onclick = function(){ } ajximg.popSRC.onmouseup = function(){ } }else{ ajximg.popSRC.onclick = function(){ } } if(cfg['des']){ pageScroll = getPageScroll(); ajximg.popDes = document.createElement('div'); ajximg.popDes.id = 'dslakfeagoaekfoaekeoajotae'; ajximg.popDes.style['zIndex'] = '90000'; ajximg.popDes.style['position'] = 'absolute'; ajximg.popDes.style['top'] = ajximg.pageSize[3] - 120 + pageScroll[1] + 'px'; ajximg.popDes.style['left'] = (ajximg.pageSize[2] / 2 - 195) + 'px'; ajximg.popDes2 = document.createElement('div'); ajximg.popDes2.innerHTML = cfg['des']; ajximg.popDes2.style['zIndex'] = '90001'; ajximg.popDes2.style['background'] = '#ffffff'; ajximg.popDes2.style['opacity'] = '0.7'; ajximg.popDes2.style['filter'] = 'alpha(opacity=70)'; ajximg.popDes2.style['position'] = 'absolute'; ajximg.popDes2.style['padding'] = '5px'; ajximg.popDes2.style['height'] = '40px'; ajximg.popDes2.style['width'] = (ajximg.picWidMax + 10) + 'px'; ajximg.popDes2.style['overflow'] = 'hidden'; document.body.insertBefore(ajximg.popDes, document.body.nextSibling); ajximg.popDes.appendChild(ajximg.popDes2); } if(ajximg.cfg['flague']){ arr = ajximg.popuparrayi_prevnext[ajximg.cfg['flague']]; }else{ arr = ajximg.popuparray; } ajximg.popBGprev = document.createElement('div'); ajximg.popBGprev.id = 'fwreklrhw432j5i32jy6ipj43righteaae'; ajximg.popBGprev.style['position'] = 'relative'; ajximg.popBGprev.style['opacity'] = '1.0'; ajximg.popBGprev.style['filter'] = 'alpha(opacity=100)'; ajximg.popBGprev2 = document.createElement('div'); ajximg.popBGprev2.style['position'] = 'absolute'; ajximg.popBGprev2.innerHTML = ''; ajximg.popBGprev2.style['top'] = '-35px' ajximg.popBGprev2.style['fontSize'] = '0'; ajximg.popBGprev2.style['fontFamily'] = 'Arial'; ajximg.popBGprev2.style['fontWeight'] = 'normal'; ajximg.popBGprev2.style['padding'] = '7px 5px 0px 0px'; ajximg.popBGprev2.style['width'] = (ajximg.picWidMax + 1) + 'px'; ajximg.popBGprev2.style['height'] = '30px'; ajximg.popBGprev2.style['right'] = '-1px'; ajximg.popBGprev2.style['cursor'] = 'pointer'; ajximg.popBGprev2.style['background'] = '#ffffff'; ajximg.popBGprev2.style['textAlign'] = 'right'; ajximg.popBGprev2.style['color'] = '#000000'; ajximg.popBGprev2.style['margin'] = '0 0 0 0px'; ajximg.popBGprev2.style['border'] = '0px'; ajximg.popBGprev2.onmouseover = function(){ document.getElementById('fwreklrhw432j5i32jy6ipj43righteaae').childNodes[0].style['background'] = '#ffffff'; document.getElementById('fwreklrhw432j5i32jy6ipj43righteaae').style['opacity'] = '1.0'; document.getElementById('fwreklrhw432j5i32jy6ipj43righteaae').style['filter'] = 'alpha(opacity=100)'; } ajximg.popBGprev2.onmouseout = function(){ document.getElementById('fwreklrhw432j5i32jy6ipj43righteaae').childNodes[0].style['background'] = '#ffffff'; document.getElementById('fwreklrhw432j5i32jy6ipj43righteaae').style['opacity'] = '1.0'; document.getElementById('fwreklrhw432j5i32jy6ipj43righteaae').style['filter'] = 'alpha(opacity=100)'; } ajximg.popBGprev2.onclick = function(){ ajximg.popupclose(); } ajximg.popBG.appendChild(ajximg.popBGprev); ajximg.popBGprev.appendChild(ajximg.popBGprev2); for(i=0; i 0){ ajximg.popBGprev = document.createElement('div'); ajximg.popBGprev.id = 'fwreklrhw432j5i32jy6ipj43left'; ajximg.popBGprev.style['position'] = 'relative'; ajximg.popBGprev.style['opacity'] = '0.6'; ajximg.popBGprev.style['filter'] = 'alpha(opacity=60)'; ajximg.popBGprev2 = document.createElement('div'); ajximg.popBGprev2.style['position'] = 'absolute'; ajximg.popBGprev2.innerHTML = ''; ajximg.popBGprev2.style['top'] = '-37px'; ajximg.popBGprev2.style['fontSize'] = '13px'; ajximg.popBGprev2.style['fontWeight'] = 'bold'; ajximg.popBGprev2.style['padding'] = '0px'; ajximg.popBGprev2.style['left'] = (ajximg.picWidMax / 2 - 40) + 'px' ajximg.popBGprev2.style['cursor'] = 'pointer'; ajximg.popBGprev2.style['background'] = '#ffffff'; ajximg.popBGprev2.style['color'] = '#000000'; ajximg.popBGprev2.style['margin'] = '0px'; ajximg.popBGprev2.style['border'] = '0px'; ajximg.popBGprev2.onmouseover = function(){ document.getElementById('fwreklrhw432j5i32jy6ipj43left').style['opacity'] = '1.0'; document.getElementById('fwreklrhw432j5i32jy6ipj43left').style['filter'] = 'alpha(opacity=100)'; } ajximg.popBGprev2.onmouseout = function(){ document.getElementById('fwreklrhw432j5i32jy6ipj43left').style['opacity'] = '0.6'; document.getElementById('fwreklrhw432j5i32jy6ipj43left').style['filter'] = 'alpha(opacity=60)'; } ajximg.popBGprev2.onclick = function(){ godaejieahyae = 0; for(ix=0; ix 10) ? 10 : ajximg.am; ajximg.popBG.style['opacity'] = '0.'+ajximg.am; ajximg.popBG.style['filter'] = 'alpha(opacity='+ajximg.am * 10+')'; ajximg.popBG.style['display'] = 'block'; window.setTimeout('ajximg.resize()', 1); }else{ window.setTimeout('ajximg.resize()', 1); } }else if(ajximg.am == 9){ ajximg.popBG.style['opacity'] = '1'; ajximg.popBG.style['filter'] = 'alpha(opacity=100)'; ajximg.popBG.appendChild(ajximg.popSRC); } } ajximg.popupclose = function() { try{document.body.removeChild(document.getElementById('dsakdopqa3jhireq3trkj43py2yu42'));}catch(e){} try{document.body.removeChild(document.getElementById('grejt5h436j43j5ioyh435jiouj4i3'));}catch(e){} try{document.body.removeChild(document.getElementById('dslajrfa3p54a3hiptjuahra3iohy0a3itajht9a'));}catch(e){} try{document.body.removeChild(document.getElementById('dslakfeagoaekfoaekeoajotae'));}catch(e){} } ajximg.getcfg = function(dat) { if(dat){ dat = dat.split(";"); cg = new Array(); for(var line in dat){ line = dat[line].split(":", 2); line[0] = line[0].replace(/^\s+|\s+$/g,""); if(line[0].length >= 1){ line[1] = line[1].replace(/dopppddkeer/g,":"); cg[line[0]] = line[1]; } } return cg; }else{ cg = new Array(); return cg; } } ajximg.drawIFrame = function() { ajximg.popBGcover = document.createElement('iframe'); ajximg.popBGcover.id = 'grejt5h436j43j5ioyh435jiouj4i3'; ajximg.popBGcover.style['width'] = ajximg.pageSize[2] - 0 + 'px'; ajximg.popBGcover.style['height'] = ajximg.pageSize[1] - 1 + 'px'; ajximg.popBGcover.style['top'] = '0'; ajximg.popBGcover.style['left'] = '0'; ajximg.popBGcover.style['zIndex'] = '78564'; ajximg.popBGcover.frameborder = 0; ajximg.popBGcover.bgcolor = '#ffffff'; ajximg.popBGcover.setAttribute("frameBorder", "0"); ajximg.popBGcover.setAttribute("frameSpacing", "0"); ajximg.popBGcover.setAttribute("marginHeight", "0"); ajximg.popBGcover.setAttribute("marginWidth", "0"); ajximg.popBGcover.setAttribute("scrolling", "no"); ajximg.popBGcover.setAttribute("bgcolor", "#ffffff"); ajximg.popBGcover.style['position'] = 'absolute'; ajximg.popBGcover.style['background'] = '#000000'; ajximg.popBGcover.style['backgroundColor'] = '#ffffff'; ajximg.popBGcover.style['opacity'] = '0.8'; ajximg.popBGcover.style['filter'] = 'alpha(opacity=80)'; ajximg.popBGcover.src = 'engine_tools/jscript/bg.html'; document.body.insertBefore(ajximg.popBGcover, document.body.nextSibling); } window.setTimeout('ajximg.init()', 1000);