/** Version : 1.2 * Last modified : (K. Breynck) 20.02.2004 * Author : BBDO InterOne Hamburg (K. Breynck) * Copyright : BMW Group 2002-2004 * * Unique scripting solutions that are provided for BMW Group sites are for use exclusively * within BMW Group projects. No other use of these solutions is permitted. * **/ serverRelativeUrl = this_url.substr(this_url.split("?")[0].substr(0,(this_url.split("?")[0].lastIndexOf(location.host) + location.host.length)).length, this_url.length); function writeMiniFrame (miniFrameLayer,frameWidth,frameHeight,frameColor,framePosH,framePosV,frameZIndex,frameBorder,alwaysOpen) { var myMiniFrameLayer; if (miniFrameLayer != null) { myMiniFrameLayer = DynLayer.getInline(miniFrameLayer); if ((framePosH != null) && (framePosV != null)) { myMiniFrameLayer.setLocation(framePosH,framePosV); } if (frameZIndex != null) { myMiniFrameLayer.setZIndex(frameZIndex); } } var thisBorder = (frameBorder != null) ? frameBorder : 10; var miniFrameString = ''; miniFrameString += ' '; miniFrameString += ' '; miniFrameString += ((!alwaysOpen) ? '' : ''); miniFrameString += ' '; miniFrameString += ' '; miniFrameString += ' '; miniFrameString += ' '; miniFrameString += ' '; miniFrameString += ' '; miniFrameString += ' '; miniFrameString += ' '; miniFrameString += ' '; miniFrameString += ' '; miniFrameString += ' '; miniFrameString += ' '; miniFrameString += ' '; miniFrameString += ' '; miniFrameString += ' '; miniFrameString += ' '; miniFrameString += ' '; miniFrameString += ' '; miniFrameString += ' '; miniFrameString += '
'; return miniFrameString; } var popupManager = {}; popupManager.anonymus = []; function centerPopup(popupName,popupUrl,popupWidth,popupHeight,myWidth,myHeight,myScrollbar) { if(!myWidth) {myWidth = 10;} if(!myHeight) {myHeight = 50;} if(!myScrollbar) {myScrollbar = 0;} var popupLeft = (window.screen.width/2) - (popupWidth/2 + myWidth); var popupTop = (window.screen.height/2) - (popupHeight/2 + myHeight); if (isString(popupName) && (popupName !== "")) { popupManager[popupName] = window.open(popupUrl,popupName,("toolbar=no,location=no,status=no,menubar=no,scrollbars=" + myScrollbar + ",resizable=no,width=" + popupWidth + ",height=" + popupHeight + ",left=" + popupLeft + ",top=" + popupTop + ",screenX=" + popupLeft + ",screenY=" + popupTop)); popupManager[popupName].focus(); } else { popupManager.anonymus[popupManager.anonymus.length] = window.open(popupUrl,popupName,("toolbar=no,location=no,status=no,menubar=no,scrollbars=" + myScrollbar + ",resizable=no,width=" + popupWidth + ",height=" + popupHeight + ",left=" + popupLeft + ",top=" + popupTop + ",screenX=" + popupLeft + ",screenY=" + popupTop)); popupManager.anonymus[popupManager.anonymus.length-1].focus(); } } function justifyPopup(popupName,popupUrl,popupWidth,popupHeight,myScrollbar,myLeft,myTop) { if(!myScrollbar) {myScrollbar = 0;} if(!myLeft) {myLeft = 0;} if(!myTop) {myTop = 0;} var popupLeft = ((document.all) ? window.screenLeft + myLeft : window.screenX); var popupTop = ((document.all) ? window.screenTop + myTop : window.screenY); if (isString(popupName) && (popupName !== "")) { popupManager[popupName] = window.open(popupUrl,popupName,("toolbar=no,location=no,status=no,menubar=no,scrollbars=" + myScrollbar + ",resizable=no,width=" + popupWidth + ",height=" + popupHeight + ",left=" + popupLeft + ",top=" + popupTop + ",screenX=" + popupLeft + ",screenY=" + popupTop)); popupManager[popupName].focus(); } else { popupManager.anonymus[popupManager.anonymus.length] = window.open(popupUrl,popupName,("toolbar=no,location=no,status=no,menubar=no,scrollbars=" + myScrollbar + ",resizable=no,width=" + popupWidth + ",height=" + popupHeight + ",left=" + popupLeft + ",top=" + popupTop + ",screenX=" + popupLeft + ",screenY=" + popupTop)); popupManager.anonymus[popupManager.anonymus.length-1].focus(); } } function toolTipInit() { // Call this function to initialise the tool tips. The parameter must be a list of names(String) for all 'toolTipImageLayers'. toolTipImgLyr = new Array(); for(var i=0; i'; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += '
' + myToolTipText + '
'; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += ' '; newToolTipContent += ''; toolTipDynLayer.setHTML(newToolTipContent); toolTipDynLayerHeight = toolTipDynLayer.getContentHeight(); toolTipRightPos = toolTipImageDynLayer.getX() + toolTipImageDynLayer.getWidth() + toolTipDynLayerWidth + myOffset; toolTipBottomPos = toolTipImageDynLayer.getY() + toolTipImageDynLayer.getHeight() + toolTipDynLayerHeight + myOffset; rightToolTipDynLayerPosX = toolTipRightPos - toolTipDynLayerWidth; downToolTipDynLayerPosY = toolTipBottomPos - toolTipDynLayerHeight; leftToolTipDynLayerPosX = toolTipImageDynLayer.getX() - toolTipDynLayerWidth - myOffset; upToolTipDynLayerPosY = toolTipImageDynLayer.getY() - toolTipDynLayerHeight - myOffset; switch (myTooltipModes) { case "1": // down right (if possible) newToolTipDynLayerPosX = (((toolTipRightPos) < dynapi.document.getWidth()) ? rightToolTipDynLayerPosX : ((leftToolTipDynLayerPosX < 0) ? 0 : leftToolTipDynLayerPosX )); newToolTipDynLayerPosY = (((toolTipBottomPos) < dynapi.document.getHeight()) ? downToolTipDynLayerPosY : ((upToolTipDynLayerPosY < 0) ? 0 : upToolTipDynLayerPosY )); break; case "2": // down left (if possible) newToolTipDynLayerPosX = ((leftToolTipDynLayerPosX < 0) ? 0 : leftToolTipDynLayerPosX); newToolTipDynLayerPosY = ((toolTipBottomPos < dynapi.document.getHeight()) ? downToolTipDynLayerPosY : ((upToolTipDynLayerPosY < 0) ? 0 : upToolTipDynLayerPosY )); break; case "3": // top left (if possible) newToolTipDynLayerPosX = ((leftToolTipDynLayerPosX < 0) ? 0 : leftToolTipDynLayerPosX); newToolTipDynLayerPosY = ((upToolTipDynLayerPosY < 0) ? 0 : upToolTipDynLayerPosY); break; default: // top right (if possible) newToolTipDynLayerPosX = ((toolTipRightPos < dynapi.document.getWidth()) ? rightToolTipDynLayerPosX : ((leftToolTipDynLayerPosX < 0) ? 0 : leftToolTipDynLayerPosX )); newToolTipDynLayerPosY = ((upToolTipDynLayerPosY < 0) ? 0 : upToolTipDynLayerPosY); break; } toolTipDynLayer.setX(newToolTipDynLayerPosX); toolTipDynLayer.setY(newToolTipDynLayerPosY); activateToolTipLyr = window.setTimeout("toolTipDynLayer.setVisible(1)",toolTipTimeOut); } else { clearTimeout(activateToolTipLyr); toolTipDynLayer.setHTML(''); toolTipDynLayer.setX(-1000); toolTipDynLayer.setY(-1000); toolTipDynLayer.setVisible(0); } } }