actually_opened_tab = 0; TAB2_actual_start_menu_tab = 0; try{window.setTimeout("TAB2_fld_menus = document.getElementById('dlakjro3au4q30yuihaeyu39437q9yiyha3ioya3')", 900);}catch(e){} try{window.setTimeout("TAB2_fld_body = document.getElementById('fkdhsrkjiewahr83yhta3hkjreahtkjaherkjah3tkj')", 950);}catch(e){} TAB2_div = new Array(); TAB2_static_names = new Array(); TAB2 = new Object(); TAB2.MaximizedWindows = 0; TAB2.opened_tabs_history = ''; TAB2 = function(nam, cfg_dat, url){ if(nam){ cfg = Array(); if(cfg_dat){ cfg_dat = cfg_dat.split(","); for(i=0; i 15){ nam2 = nam.substr(0, 15) + '...'; }else{ nam2 = nam; } dv = document.createElement("div"); dv.onmouseover = function(){ if(nam.length > 15){ JavCursor(nam); } if(document.getElementById(this.id+'_center').className != 'crm-main-tab-selected'){ document.getElementById(this.id+'_left').className = 'crm-main-tab-over-left'; document.getElementById(this.id+'_center').className = 'crm-main-tab-over'; document.getElementById(this.id+'_right').className = 'crm-main-tab-over-right'; } } dv.onmouseout = function(){ if(nam.length > 15){ JavCursorHide(1); } if(document.getElementById(this.id+'_center').className != 'crm-main-tab-selected'){ document.getElementById(this.id+'_left').className = 'crm-main-tab-left'; document.getElementById(this.id+'_center').className = 'crm-main-tab'; document.getElementById(this.id+'_right').className = 'crm-main-tab-right'; } } dv.onclick = function(){ if(document.getElementById(this.id+'_center').className == 'crm-main-tab-selected'){ TAB2.Minimize(this.id); }else{ TAB2.SelectOne(this.id); } } dv.setAttribute('tab-no', TAB2_actual_start_menu_tab); dv.setAttribute('tab-url', url); dv.id = 'dlakjroaue90e3ktnkasjeri3aujt93ai50q3ta3'+TAB2_actual_start_menu_tab; dvleft = document.createElement("div"); dvleft.id = 'dlakjroaue90e3ktnkasjeri3aujt93ai50q3ta3'+TAB2_actual_start_menu_tab+'_left'; dv.appendChild(dvleft); dvcenter = document.createElement("div"); dvcenter.id = 'dlakjroaue90e3ktnkasjeri3aujt93ai50q3ta3'+TAB2_actual_start_menu_tab+'_center'; if(cfg['img']){ if(mozilla_ff){ dvcenter.innerHTML = '
'+nam2+'
'; }else{ dvcenter.innerHTML = '
'+nam2+'
'; picpng = ('dfsljrlwejriow3utwej'+TAB2_actual_start_menu_tab+''); window.setTimeout('PNGRollOverSrc(picpng)', 0); } dvcenter.innerHTML += ''; }else{ dvcenter.innerHTML = '
'+nam2+'
'; } dv.appendChild(dvcenter); dvright = document.createElement("div"); dvright.id = 'dlakjroaue90e3ktnkasjeri3aujt93ai50q3ta3'+TAB2_actual_start_menu_tab+'_right'; dv.appendChild(dvright); /* window.setTimeout('PNGRollOverStyle(dvleft)', 0); window.setTimeout('PNGRollOverStyle(dvcenter)', 0); window.setTimeout('PNGRollOverStyle(dvright)', 0); */ actually_opened_tab = dv.getAttribute('tab-no'); TAB2_div[TAB2_actual_start_menu_tab] = dv; TAB2_static_names[dv.id] = nam; TAB2_fld_menus.appendChild(TAB2_div[TAB2_actual_start_menu_tab]); TAB2.SelectOne(dv.id, cfg); } } TAB2.tipBox = function(txt,cfg){ if(cfg){ cf = cfg.split(","); cfg = new Array(); for(i=0; i 15){ nam2 = nam.substr(0, 15) + '...'; }else{ nam2 = nam; } cfg = Array(); if(cfg_dat){ cfg_dat = cfg_dat.split(","); for(i=0; i '+nam2; }else{ document.getElementById('startmenu_'+id).innerHTML = nam2; } document.getElementById('tab_ifr_'+id).src = url; document.getElementById('TAB2_static_names_dsakjdfkaetgea'+id).innerHTML = nam; } TAB2.SelectOne = function(id, cfg){ if(TAB2.opened_tabs_history){ arr = TAB2.opened_tabs_history.split(";;"); for(lldkkjre=0; lldkkjre '; }else{ buttons = ' '; } td.className = "b"; td.innerHTML = '
'+TAB2_static_names[id]+'
'+buttons+'
'; tr.appendChild(td); td = document.createElement("td"); td.className = "c"; tr.appendChild(td); tr = document.createElement("tr"); tableBody.appendChild(tr); td = document.createElement("td"); td.className = "d"; td.id = 'tabResizeHorLeftDiv'+id; tr.appendChild(td); td = document.createElement("td"); td.className = "popupBody"; td.setAttribute("valign", "top"); td.setAttribute("align", "left"); td.setAttribute("height", "100%"); td.id = 'mainContentTabDiv'+id; tr.appendChild(td); td = document.createElement("td"); td.className = "f"; td.id = 'tabResizeHorDiv'+id; tr.appendChild(td); tr = document.createElement("tr"); tableBody.appendChild(tr); td = document.createElement("td"); td.className = "g"; tr.appendChild(td); td = document.createElement("td"); td.className = "h"; td.id = 'tabResizeVerDiv'+id; tr.appendChild(td); td = document.createElement("td"); td.className = "i"; td.id = 'tabResizeAllDiv'+id; tr.appendChild(td); document.getElementById('movableContainer'+id).style['cursor'] = 'move'; document.getElementById('movableContainer'+id).onmousedown = function(e){ if(TAB2.MaximizedWindows != 1){ offX = (e) ? e.pageX : event.clientX; offY = (e) ? e.pageY : event.clientY; TAB2.thisPopupIsMoving = 1; TAB2.mainDivContainerOffsetWidth = TAB2.actualDiv.offsetWidth; TAB2.mainDivContainerOffsetHeight = TAB2.actualDiv.offsetHeight; TAB2.movingPopupOffX = offX; TAB2.movingPopupOffY = offY; if(!TAB2.mimicDivForResize2){ TAB2.mimicDivForResize2 = document.createElement("div"); TAB2.mimicDivForResize2.style['position'] = 'absolute'; TAB2.mimicDivForResize2.style['border'] = 'dashed #ffffff 1px'; TAB2.mimicDivForResize2.style['background'] = '#000000'; TAB2.mimicDivForResize2.style['opacity'] = '0.2'; TAB2.mimicDivForResize2.style['zIndex'] = '10000'; TAB2.actualDiv.parentNode.insertBefore(TAB2.mimicDivForResize2, TAB2.actualDiv.nextSibling); }else{ TAB2.mimicDivForResize2.style['display'] = 'block'; } TAB2.mimicDivForResize2.style['top'] = '27px'; TAB2.mimicDivForResize2.style['left'] = '1px'; TAB2.mimicDivForResize2.style['width'] = window.innerWidth - 3 + 'px'; TAB2.mimicDivForResize2.style['height'] = window.innerHeight - 30 + 'px'; if(!TAB2.mimicDivForResize){ TAB2.mimicDivForResize = document.createElement("div"); TAB2.mimicDivForResize.style['position'] = 'absolute'; TAB2.mimicDivForResize.style['border'] = 'dashed #15428b 1px'; TAB2.mimicDivForResize.style['background'] = '#d1dff0'; TAB2.mimicDivForResize.style['opacity'] = '0.5'; TAB2.mimicDivForResize.style['zIndex'] = '10001'; TAB2.actualDiv.parentNode.insertBefore(TAB2.mimicDivForResize, TAB2.actualDiv.nextSibling); }else{ TAB2.mimicDivForResize.style['display'] = 'block'; } TAB2.mimicDivForResize.style['top'] = TAB2.actualDiv.style['top']; TAB2.mimicDivForResize.style['left'] = TAB2.actualDiv.style['left']; TAB2.mimicDivForResize.style['width'] = TAB2.mainDivContainerOffsetWidth - 3 + 'px'; TAB2.mimicDivForResize.style['height'] = TAB2.mainDivContainerOffsetHeight - 3 + 'px'; } return false; } document.getElementById('tabResizeVerDiv'+id).style['cursor'] = 's-resize'; document.getElementById('tabResizeVerDiv'+id).onmousedown = function(e){ if(TAB2.MaximizedWindows != 1){ offX = (e) ? e.pageX : event.clientX; offY = (e) ? e.pageY : event.clientY; TAB2.thisPopupIsDragable = 1; TAB2.thisPopupIsDragableVerOnly = 1; TAB2.mainDivContainerOffsetWidth = TAB2.actualDiv.offsetWidth; TAB2.mainDivContainerOffsetHeight = TAB2.actualDiv.offsetHeight; if(!TAB2.mimicDivForResize2){ TAB2.mimicDivForResize2 = document.createElement("div"); TAB2.mimicDivForResize2.style['position'] = 'absolute'; TAB2.mimicDivForResize2.style['border'] = 'dashed #ffffff 1px'; TAB2.mimicDivForResize2.style['background'] = '#000000'; TAB2.mimicDivForResize2.style['opacity'] = '0.2'; TAB2.mimicDivForResize2.style['zIndex'] = '10000'; TAB2.actualDiv.parentNode.insertBefore(TAB2.mimicDivForResize2, TAB2.actualDiv.nextSibling); }else{ TAB2.mimicDivForResize2.style['display'] = 'block'; } TAB2.mimicDivForResize2.style['top'] = '27px'; TAB2.mimicDivForResize2.style['left'] = '1px'; TAB2.mimicDivForResize2.style['width'] = window.innerWidth - 3 + 'px'; TAB2.mimicDivForResize2.style['height'] = window.innerHeight - 30 + 'px'; if(!TAB2.mimicDivForResize){ TAB2.mimicDivForResize = document.createElement("div"); TAB2.mimicDivForResize.style['position'] = 'absolute'; TAB2.mimicDivForResize.style['border'] = 'dashed #15428b 1px'; TAB2.mimicDivForResize.style['background'] = '#d1dff0'; TAB2.mimicDivForResize.style['opacity'] = '0.5'; TAB2.mimicDivForResize.style['zIndex'] = '10001'; TAB2.actualDiv.parentNode.insertBefore(TAB2.mimicDivForResize, TAB2.actualDiv.nextSibling); }else{ TAB2.mimicDivForResize.style['display'] = 'block'; } TAB2.mimicDivForResize.style['top'] = TAB2.actualDiv.style['top']; TAB2.mimicDivForResize.style['left'] = TAB2.actualDiv.style['left']; TAB2.mimicDivForResize.style['width'] = TAB2.mainDivContainerOffsetWidth - 3 + 'px'; TAB2.mimicDivForResize.style['height'] = TAB2.mainDivContainerOffsetHeight - 3 + 'px'; } return false; } document.getElementById('tabResizeHorLeftDiv'+id).style['cursor'] = 'e-resize'; document.getElementById('tabResizeHorLeftDiv'+id).onmousedown = function(e){ if(TAB2.MaximizedWindows != 1){ offX = (e) ? e.pageX : event.clientX; offY = (e) ? e.pageY : event.clientY; TAB2.thisPopupIsDragable = 1; TAB2.thisPopupIsDragableHorLeftOnly = 1; TAB2.mainDivContainerOffsetWidth = TAB2.actualDiv.offsetWidth; TAB2.mainDivContainerOffsetHeight = TAB2.actualDiv.offsetHeight; if(!TAB2.mimicDivForResize2){ TAB2.mimicDivForResize2 = document.createElement("div"); TAB2.mimicDivForResize2.style['position'] = 'absolute'; TAB2.mimicDivForResize2.style['border'] = 'dashed #ffffff 1px'; TAB2.mimicDivForResize2.style['background'] = '#000000'; TAB2.mimicDivForResize2.style['opacity'] = '0.2'; TAB2.mimicDivForResize2.style['zIndex'] = '10000'; TAB2.actualDiv.parentNode.insertBefore(TAB2.mimicDivForResize2, TAB2.actualDiv.nextSibling); }else{ TAB2.mimicDivForResize2.style['display'] = 'block'; } TAB2.mimicDivForResize2.style['top'] = '27px'; TAB2.mimicDivForResize2.style['left'] = '1px'; TAB2.mimicDivForResize2.style['width'] = window.innerWidth - 3 + 'px'; TAB2.mimicDivForResize2.style['height'] = window.innerHeight - 30 + 'px'; if(!TAB2.mimicDivForResize){ TAB2.mimicDivForResize = document.createElement("div"); TAB2.mimicDivForResize.style['position'] = 'absolute'; TAB2.mimicDivForResize.style['border'] = 'dashed #15428b 1px'; TAB2.mimicDivForResize.style['background'] = '#d1dff0'; TAB2.mimicDivForResize.style['opacity'] = '0.5'; TAB2.mimicDivForResize.style['zIndex'] = '10001'; TAB2.actualDiv.parentNode.insertBefore(TAB2.mimicDivForResize, TAB2.actualDiv.nextSibling); }else{ TAB2.mimicDivForResize.style['display'] = 'block'; } TAB2.mimicDivForResize.style['top'] = TAB2.actualDiv.style['top']; TAB2.mimicDivForResize.style['left'] = TAB2.actualDiv.style['left']; TAB2.mimicDivForResize.style['width'] = TAB2.mainDivContainerOffsetWidth - 3 + 'px'; TAB2.mimicDivForResize.style['height'] = TAB2.mainDivContainerOffsetHeight - 3 + 'px'; } return false; } document.getElementById('tabResizeHorDiv'+id).style['cursor'] = 'w-resize'; document.getElementById('tabResizeHorDiv'+id).onmousedown = function(e){ if(TAB2.MaximizedWindows != 1){ offX = (e) ? e.pageX : event.clientX; offY = (e) ? e.pageY : event.clientY; TAB2.thisPopupIsDragable = 1; TAB2.thisPopupIsDragableHorOnly = 1; TAB2.mainDivContainerOffsetWidth = TAB2.actualDiv.offsetWidth; TAB2.mainDivContainerOffsetHeight = TAB2.actualDiv.offsetHeight; if(!TAB2.mimicDivForResize2){ TAB2.mimicDivForResize2 = document.createElement("div"); TAB2.mimicDivForResize2.style['position'] = 'absolute'; TAB2.mimicDivForResize2.style['border'] = 'dashed #ffffff 1px'; TAB2.mimicDivForResize2.style['background'] = '#000000'; TAB2.mimicDivForResize2.style['opacity'] = '0.2'; TAB2.mimicDivForResize2.style['zIndex'] = '10000'; TAB2.actualDiv.parentNode.insertBefore(TAB2.mimicDivForResize2, TAB2.actualDiv.nextSibling); }else{ TAB2.mimicDivForResize2.style['display'] = 'block'; } TAB2.mimicDivForResize2.style['top'] = '27px'; TAB2.mimicDivForResize2.style['left'] = '1px'; TAB2.mimicDivForResize2.style['width'] = window.innerWidth - 3 + 'px'; TAB2.mimicDivForResize2.style['height'] = window.innerHeight - 30 + 'px'; if(!TAB2.mimicDivForResize){ TAB2.mimicDivForResize = document.createElement("div"); TAB2.mimicDivForResize.style['position'] = 'absolute'; TAB2.mimicDivForResize.style['border'] = 'dashed #15428b 1px'; TAB2.mimicDivForResize.style['background'] = '#d1dff0'; TAB2.mimicDivForResize.style['opacity'] = '0.5'; TAB2.mimicDivForResize.style['zIndex'] = '10001'; TAB2.actualDiv.parentNode.insertBefore(TAB2.mimicDivForResize, TAB2.actualDiv.nextSibling); }else{ TAB2.mimicDivForResize.style['display'] = 'block'; } TAB2.mimicDivForResize.style['top'] = TAB2.actualDiv.style['top']; TAB2.mimicDivForResize.style['left'] = TAB2.actualDiv.style['left']; TAB2.mimicDivForResize.style['width'] = TAB2.mainDivContainerOffsetWidth - 3 + 'px'; TAB2.mimicDivForResize.style['height'] = TAB2.mainDivContainerOffsetHeight - 3 + 'px'; } return false; } document.getElementById('tabResizeAllDiv'+id).style['cursor'] = 'se-resize'; document.getElementById('tabResizeAllDiv'+id).onmousedown = function(e){ if(TAB2.MaximizedWindows != 1){ offX = (e) ? e.pageX : event.clientX; offY = (e) ? e.pageY : event.clientY; TAB2.thisPopupIsDragable = 1; TAB2.mainDivContainerOffsetWidth = TAB2.actualDiv.offsetWidth; TAB2.mainDivContainerOffsetHeight = TAB2.actualDiv.offsetHeight; if(!TAB2.mimicDivForResize2){ TAB2.mimicDivForResize2 = document.createElement("div"); TAB2.mimicDivForResize2.style['position'] = 'absolute'; TAB2.mimicDivForResize2.style['border'] = 'dashed #ffffff 1px'; TAB2.mimicDivForResize2.style['background'] = '#000000'; TAB2.mimicDivForResize2.style['opacity'] = '0.2'; TAB2.mimicDivForResize2.style['zIndex'] = '10000'; TAB2.actualDiv.parentNode.insertBefore(TAB2.mimicDivForResize2, TAB2.actualDiv.nextSibling); }else{ TAB2.mimicDivForResize2.style['display'] = 'block'; } TAB2.mimicDivForResize2.style['top'] = '27px'; TAB2.mimicDivForResize2.style['left'] = '1px'; TAB2.mimicDivForResize2.style['width'] = window.innerWidth - 3 + 'px'; TAB2.mimicDivForResize2.style['height'] = window.innerHeight - 30 + 'px'; if(!TAB2.mimicDivForResize){ TAB2.mimicDivForResize = document.createElement("div"); TAB2.mimicDivForResize.style['position'] = 'absolute'; TAB2.mimicDivForResize.style['border'] = 'dashed #15428b 1px'; TAB2.mimicDivForResize.style['background'] = '#d1dff0'; TAB2.mimicDivForResize.style['opacity'] = '0.5'; TAB2.mimicDivForResize.style['zIndex'] = '10001'; TAB2.actualDiv.parentNode.insertBefore(TAB2.mimicDivForResize, TAB2.actualDiv.nextSibling); }else{ TAB2.mimicDivForResize.style['display'] = 'block'; } TAB2.mimicDivForResize.style['top'] = TAB2.actualDiv.style['top']; TAB2.mimicDivForResize.style['left'] = TAB2.actualDiv.style['left']; TAB2.mimicDivForResize.style['width'] = TAB2.mainDivContainerOffsetWidth - 3 + 'px'; TAB2.mimicDivForResize.style['height'] = TAB2.mainDivContainerOffsetHeight - 3 + 'px'; } return false; } top.document.onmousemove = function(e){ if(TAB2.thisPopupIsDragable == 1){ if(TAB2.thisPopupIsDragableHorOnly == 1){ actualOffX = (e) ? e.pageX : event.clientX; actualOffY = (e) ? e.pageY : event.clientY; actualOffX = parseInt(actualOffX); actualOffY = parseInt(actualOffY); TAB2.mimicDivForResizeFinalWidth = TAB2.mainDivContainerOffsetWidth + (actualOffX - offX); TAB2.mimicDivForResize.style['width'] = TAB2.mimicDivForResizeFinalWidth + 'px'; }else if(TAB2.thisPopupIsDragableHorLeftOnly == 1){ actualOffX = (e) ? e.pageX : event.clientX; actualOffY = (e) ? e.pageY : event.clientY; actualOffX = parseInt(actualOffX); actualOffY = parseInt(actualOffY); TAB2.mimicDivForResizeFinalWidth = TAB2.mainDivContainerOffsetWidth - (actualOffX - offX); TAB2.mimicDivForResize.style['width'] = TAB2.mimicDivForResizeFinalWidth + 'px'; TAB2.mimicDivForResize.style['left'] = parseInt(TAB2.actualDiv.style['left']) + (actualOffX - offX) + 'px'; }else if(TAB2.thisPopupIsDragableVerOnly == 1){ actualOffX = (e) ? e.pageX : event.clientX; actualOffY = (e) ? e.pageY : event.clientY; actualOffX = parseInt(actualOffX); actualOffY = parseInt(actualOffY); TAB2.mimicDivForResizeFinalHeight = TAB2.mainDivContainerOffsetHeight + (actualOffY - offY) TAB2.mimicDivForResize.style['height'] = TAB2.mimicDivForResizeFinalHeight + 'px'; }else{ actualOffX = (e) ? e.pageX : event.clientX; actualOffY = (e) ? e.pageY : event.clientY; actualOffX = parseInt(actualOffX); actualOffY = parseInt(actualOffY); TAB2.mimicDivForResizeFinalHeight = TAB2.mainDivContainerOffsetHeight + (actualOffY - offY) TAB2.mimicDivForResizeFinalWidth = TAB2.mainDivContainerOffsetWidth + (actualOffX - offX) TAB2.mimicDivForResize.style['height'] = TAB2.mimicDivForResizeFinalHeight + 'px'; TAB2.mimicDivForResize.style['width'] = TAB2.mimicDivForResizeFinalWidth + 'px'; } }else if(TAB2.thisPopupIsMoving == 1){ actualOffX = (e) ? e.pageX : event.clientX; actualOffY = (e) ? e.pageY : event.clientY; actualOffX = parseInt(actualOffX); actualOffY = parseInt(actualOffY); mimicDivTop = actualOffY - parseInt(TAB2.movingPopupOffY); mimicDivLeft = actualOffX - parseInt(TAB2.movingPopupOffX); actTop = TAB2.mimicDivForResize.style['top']; actTop = actTop.replace("px", ""); actLeft = TAB2.mimicDivForResize.style['left']; actLeft = actLeft.replace("px", ""); actTop = parseInt(actTop); actLeft = parseInt(actLeft); TAB2.mimicDivForResize.style['top'] = actTop + mimicDivTop + 'px'; TAB2.mimicDivForResize.style['left'] = actLeft + mimicDivLeft + 'px'; TAB2.movingPopupOffX = actualOffX; TAB2.movingPopupOffY = actualOffY; TAB2.movingReallyMoved = 1; } } top.document.onmouseup = function(){ if(TAB2.thisPopupIsDragable == 1){ TAB2.actualDiv.style['width'] = TAB2.mimicDivForResizeFinalWidth + 'px'; TAB2.actualDiv.style['height'] = TAB2.mimicDivForResizeFinalHeight + 'px'; if(TAB2.thisPopupIsDragableHorLeftOnly == 1){ TAB2.actualDiv.style['left'] = TAB2.mimicDivForResize.style['left']; } TAB2.mimicDivForResize2.style['display'] = 'none'; TAB2.mimicDivForResize.style['display'] = 'none'; TAB2.thisPopupIsDragable = 0; TAB2.thisPopupIsDragableHorOnly = 0; TAB2.thisPopupIsDragableHorLeftOnly = 0; TAB2.thisPopupIsDragableVerOnly = 0; TAB2.thisPopupIsDragableVerTopOnly = 0; }else if(TAB2.thisPopupIsMoving == 1){ TAB2.thisPopupIsMoving = 0; if(TAB2.movingReallyMoved){ TAB2.actualDiv.style['top'] = TAB2.mimicDivForResize.style['top']; TAB2.actualDiv.style['left'] = TAB2.mimicDivForResize.style['left']; } TAB2.mimicDivForResize2.style['display'] = 'none'; TAB2.mimicDivForResize.style['display'] = 'none'; TAB2.movingReallyMoved = 0; } } iframeContainer = document.createElement('iframe'); url = String(url); if(url.match(/\?/)){ iframeContainer.src = url + '&TAB_act_num=' + id; }else{ iframeContainer.src = url + '?TAB_act_num=' + id; } iframeContainer.style['width'] = '100%'; iframeContainer.height = '100%'; iframeContainer.setAttribute("frameBorder", "0"); iframeContainer.setAttribute("frameSpacing", "0"); iframeContainer.setAttribute("marginHeight", "0"); iframeContainer.setAttribute("marginWidth", "0"); iframeContainer.setAttribute("scrolling", "no"); iframeContainer.setAttribute("parentId", id); iframeContainer.id = 'tab_ifr_' + id; iframeContainer.style['background'] = '#ffffff'; document.getElementById('mainContentTabDiv'+id).appendChild(iframeContainer); if(cfg['small'] != 1 && cfg['medium'] != 1 && cfg['big'] != 1){ if(TAB2.MaximizedWindows == 1){ TAB2.Maximize(id, 1); }else{ } } iframeContainer.contentWindow.name = id; iframeContainer.contentWindow.onmousedown = function(){ TAB2.SelectOne(this.name); } }else{ TAB2.actualDiv = document.getElementById('tab_dv_'+id); TAB2.actualDiv.style['zIndex'] = '2000'; TAB2.actualDiv.style['opacity'] = '1'; TAB2.actualDiv.style['visibility'] = 'visible'; if(TAB2.MaximizedWindows == 1){ } } TabsCreateCookie('dslajdkawelhrao3jtohqa3ioyjiaetea', id); } TAB2.Deactivate = function(id){ document.getElementById('tab_dv_'+id).style['visibility'] = 'hidden'; } TAB2.Deactivate2 = function(id,tabNo){ fld = document.getElementById('tab_dv_'+id); fld.setAttribute("deactivated", "true"); if(tabNo){ fld.style['zIndex'] = (parseInt(1000)+parseInt(tabNo)); }else{ fld2 = document.getElementById(id); fld.style['zIndex'] = (parseInt(1000)+parseInt(fld2.getAttribute('tab-no'))); } fldOv = document.createElement("div"); fldOv.style['position'] = 'absolute'; fldOv.style['top'] = fld.style['top']; fldOv.style['left'] = fld.style['left']; fldOv.style['width'] = fld.offsetWidth + 'px'; fldOv.style['height'] = fld.offsetHeight + 'px'; } TAB2.resizeFrames = function(){ if(mozilla_ff){ hei = document.body.scrollHeight - 59; wid = document.body.scrollWidth - 2; }else{ hei = document.body.offsetHeight - 130; } if(TAB2_div.length > 1){ for(lldkkjre=1; lldkkjre<=TAB2_div.length; lldkkjre++){ fl = document.getElementById('tab_ifr_'+TAB2_div[lldkkjre].id); fl = document.getElementById('tab_dv_'+TAB2_div[lldkkjre].id); if(fl){ fl.style['height'] = (hei) + 'px'; fl.style['width'] = (wid) + 'px'; } } } } TAB2.Remove = function(id){ try{ TAB2_div[document.getElementById(id).getAttribute('tab-no')] = false; }catch(e){} try{ TAB2_fld_body.removeChild(document.getElementById('tab_dv_'+id)); }catch(e){} try{ TAB2_fld_menus.removeChild(document.getElementById(id)); }catch(e){} if(TAB2.opened_tabs_history){ TAB2.opened_tabs_history = String(TAB2.opened_tabs_history); idregexp = RegExp(id+';;'); TAB2.opened_tabs_history = TAB2.opened_tabs_history.replace(idregexp, ""); arr = TAB2.opened_tabs_history.split(";;"); for(i=0; i 1){ for(lldkkjre=1; lldkkjre<=TAB2_div.length; lldkkjre++){ try{ fl = TAB2_div[lldkkjre]; fl = document.getElementById('tab_dv_' + fl.id); if(fl){ fl.setAttribute("maximized_old_width" , fl.style['width']); fl.setAttribute("maximized_old_height" , fl.style['height']); fl.setAttribute("maximized_old_top" , fl.style['top']); fl.setAttribute("maximized_old_left" , fl.style['left']); fl.style['width'] = innerWidth - 2 + 'px'; fl.style['height'] = innerHeight - reduceHeightBy + 'px'; fl.style['top'] = '27px'; fl.style['left'] = '1px'; } }catch(e){} } } }else{ TAB2.MaximizedWindows = 0; if(TAB2_div.length > 1){ lastTop = 17; lastLeft = -10; for(lldkkjre=1; lldkkjre<=TAB2_div.length; lldkkjre++){ try{ fl = TAB2_div[lldkkjre]; fl = document.getElementById('tab_dv_' + fl.id); if(fl){ fl.style['width'] = fl.getAttribute("maximized_old_width"); fl.style['height'] = fl.getAttribute("maximized_old_height"); fl.style['top'] = lastTop + 10 + 'px'; fl.style['left'] = lastLeft + 10 + 'px'; lastTop += 10; lastLeft += 10; fl.setAttribute("maximized_old_width" , ""); fl.setAttribute("maximized_old_height" , ""); fl.setAttribute("maximized_old_top" , ""); fl.setAttribute("maximized_old_left" , ""); } }catch(e){} } } } } TAB2.positionWindows = function(){ if(TAB2.MaximizedWindows == 0){ if(TAB2_div.length > 1){ lastTop = 17; lastLeft = -10; for(lldkkjre=1; lldkkjre<=TAB2_div.length; lldkkjre++){ fl = TAB2_div[lldkkjre]; fl = document.getElementById('tab_dv_' + fl.id); if(fl){ fl.style['width'] = (fl.getAttribute("maximized_old_width")) ? fl.getAttribute("maximized_old_width") : fl.offsetWidth; fl.style['height'] = (fl.getAttribute("maximized_old_height")) ? fl.getAttribute("maximized_old_height") : fl.offsetHeight; fl.style['top'] = lastTop + 10 + 'px'; fl.style['left'] = lastLeft + 10 + 'px'; lastTop += 10; lastLeft += 10; fl.setAttribute("maximized_old_width" , ""); fl.setAttribute("maximized_old_height" , ""); fl.setAttribute("maximized_old_top" , ""); fl.setAttribute("maximized_old_left" , ""); } } } } } TAB2.MenuStart = function(){ if(dskajdkwaejhfkeajkghaeikhae == 0){ if(!document.getElementById('dsaljeka3jhrao3jtoa3jioa3h943u895yu2hykw4jyio4yu2')){ dvsrc = document.getElementById('dsaljerao3ua3jtaekjojyoyea'); dvmain = document.createElement("div"); dvmain.id = 'dsaljeka3jhrao3jtoa3jioa3h943u895yu2hykw4jyio4yu2'; dvmain.style['position'] = 'relative'; dvmain.style['zIndex'] = '99999'; dvmain.onmousedown = function(){ TAB2.MenuStartHide(); } dv = document.createElement("div"); dv.style['position'] = 'absolute'; dv.style['left'] = '2px'; dv.style['top'] = '-371px'; dv.style['height'] = '350px'; dv.style['width'] = '200px'; dv.style['padding'] = '10px'; dv.style['zIndex'] = '9998'; dv.className = 'crm-start-div-background'; dvmain.appendChild(dv); window.setTimeout('PNGRollOverStyle(dv)', 0); dv2 = document.getElementById('dsaljerao3ua3jtaekjojyoyea'); dv2.style['position'] = 'absolute'; dv2.style['left'] = '2px'; dv2.style['top'] = '-371px'; dv2.style['height'] = '350px'; dv2.style['width'] = '200px'; dv2.style['padding'] = '10px'; dv2.style['zIndex'] = '9999'; dv2.style['display'] = 'block'; dvmain.appendChild(dv2); document.getElementById('Dsalkrlaepwjrpiaetr0aui3jklh63wpkjo2632').appendChild(dvmain); }else{ document.getElementById('Dsalkrlaepwjrpiaetr0aui3jklh63wpkjo2632').style['display'] = 'block'; } dskajdkwaejhfkeajkghaeikhae = 1; }else{ TAB2.MenuStartHide(); } } TAB2.MenuStartHide = function(){ try{document.getElementById('Dsalkrlaepwjrpiaetr0aui3jklh63wpkjo2632').style['display'] = 'none';}catch(e){} dskajdkwaejhfkeajkghaeikhae = 0; } dskajdkwaejhfkeajkghaeikhae = 0; /* document.onmousedown = function(){ if(dskajdkwaejhfkeajkghaeikhae == 1){ TAB2.MenuStartHide(); } } */ var photoeditorvar='go.live.php/';