var g_nMouseX = 0; var g_nMouseY = 0; function DisplaySubNav(cSubNavId){ switch(cSubNavId.replace('Section_', '')){ case 'Industry': $('img[@id=Divider_1.gif]').attr('src', '/_PROJECT/_Block/Frame/Arrow_1.gif'); break; case 'Solution': $('img[@id=Divider_2.gif]').attr('src', '/_PROJECT/_Block/Frame/Arrow_2.gif'); break; } $('#' + cSubNavId).css('opacity', 0); $('#' + g_cActiveSubNav).fadeOut('fast'); $('#' + cSubNavId).fadeTo('normal', .98); g_cActiveSubNav = cSubNavId; } function PagePulse(){ document.onmousemove = getMouseXY; $('div[@id=' + g_cActiveSubNav + ']').each( function(i){ var x = parseInt($(this).css('left').replace('px', '')); var y = parseInt($(this).css('top').replace('px', '')) - 25; var nWidth = parseInt($(this).css('width').replace('px', '')); var nHeight = parseInt($(this).css('height').replace('px', '')); if ( (g_nMouseX >= x) && (g_nMouseX <= (x + nWidth)) && (g_nMouseY >= y) && (g_nMouseY <= (y + nHeight + 100)) ) { } else $('div[@id=' + g_cActiveSubNav + ']').hide(); } ); setTimeout('PagePulse()', 400); } function getMouseXY(e) { if (document.all) { tempX = event.clientX + document.body.scrollLeft; tempY = event.clientY + document.body.scrollTop; } else { tempX = e.pageX; tempY = e.pageY; } if (tempX < 0){tempX = 0;} if (tempY < 0){tempY = 0;} g_nMouseX = tempX; g_nMouseY = tempY; return true; } function HideSubNav(cSubNavId){ if ((g_bIsMouseOverSubNav==false) && (g_bIsSubNavHideRunning == false)){ g_bIsSubNavHideRunning = true; switch(cSubNavId){ case 'Section_Solution': $('img[@id=Divider_2.gif]').attr('src', '/_PROJECT/_Block/Frame/Divider_2.gif'); break; case 'Section_Industry': $('img[@id=Divider_1.gif]').attr('src', '/_PROJECT/_Block/Frame/Divider_1.gif'); break; } g_bIsSubNavHideRunning = false; $('#' + cSubNavId).hide(); return ; $('#' + cSubNavId).fadeOut('normal', function(){ if (cSubNavId == g_cActiveSubNav) g_cActiveSubNav = ''; $('div[@id^=Section_]').each( function(i){ if (this.id != g_cActiveSubNav){ $(this).css('opacity', 0); $(this).hide(); } } ); g_bIsSubNavHideRunning = false; } ); } } function FlipVisibility(cId){ if(document.getElementById(cId).style.display!=''){ document.getElementById(cId).style.display = ''; }else{ document.getElementById(cId).style.display = 'none'; } } function fixPNG(myImage, nWidth, nHeight){ var arVersion = navigator.appVersion.split("MSIE") var version = parseFloat(arVersion[1]) if ((version >= 5.5) && (version < 7) && (document.body.filters)){ var imgID = (myImage.id) ? "id='" + myImage.id + "' " : "" var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : "" var imgTitle = (myImage.title) ? "title='" + myImage.title + "' " : "title='" + myImage.alt + "' " var imgStyle = "display:inline-block;" + myImage.style.cssText var strNewHTML = "" myImage.outerHTML = strNewHTML } } //- IfEnterAction -// function IfEnterAction(oEvent, oForm, cAction, cSelId){ if ((EventKeyCode(oEvent) == 13) || (EventKeyCode(oEvent) == 3)) { oForm.Action.value = cAction; oForm.SelId.value = cSelId; oForm.submit(); return false; } return true; } //- AutoCloseWindow -// var g_oAutoCloseWindowArray = new Array(); function OpenAutoCloseWindow(cUrl, cName, cAttrib) { var oWindow = window.open(cUrl, cName, cAttrib); oWindow.focus(); g_oAutoCloseWindowArray[g_oAutoCloseWindowArray.length] = oWindow; } function Body_onUnload() { for (var i = 0; i < g_oAutoCloseWindowArray.length; i++) { if (typeof g_oAutoCloseWindowArray[i] == 'object') { g_oAutoCloseWindowArray[i].close(); g_oAutoCloseWindowArray[i] = null; } } } //- IfEnterScript -// function IfEnterScript(oEvent, cScript) { if ((EventKeyCode(oEvent) == 13) || (EventKeyCode(oEvent) == 3)) { eval(cScript); return false; } return true; } //- EventKeyCode -// function EventKeyCode(oEvent) { return ((oEvent != null) && (oEvent.which != null) ? oEvent.which : event.keyCode); } //- ExportZip -// function ExportZip(cStream) { var cZip = cStream.replace(/\?/g, ''); return cZip; } //- ExportFon -// function ExportFon(cStream) { var cFon = ''; if (cStream.length >= 10) { cFon = cStream.substr(0, 3) + '-' + cStream.substr(3, 3) + '-' + cStream.substr(6, 4) if ((cStream.length == 15) && (cStream.substr(10, 5) != '?????')) { cFon += ' x' + cStream.substr(10, 5).replace('?', '') } } return cFon; } //- Console_AddRemove -// function Console_AddRemove(oFromSet, oToSet, bIsAll) { //+ unselect for (var hOption = 0; hOption < oToSet.length; hOption++) { oToSet.options[hOption].selected = false; } //+ move for (hOption = oFromSet.length; hOption != 0; hOption--) { if ((bIsAll == true) || (oFromSet.options[hOption - 1].selected == true)) { oToSet.options[oToSet.length] = new Option(oFromSet.options[hOption - 1].text, oFromSet.options[hOption - 1].value, false, true); oFromSet.options[hOption - 1] = null; } } } //- Console_Pack -// function Console_Pack(oSet, oField) { var cPack = ''; for (var hOption = 0; hOption < oSet.length; hOption++) { cPack += ',' + oSet.options[hOption].value; } oField.value = cPack.substring(1); }