try {
    BrowserDetect.init();
}
catch (err) {
    //alert(err);
}

var nexumfeaturelabeltagstart;
var nexumfeaturelabeltagend;
var generalContent;
var featureLabelStrongSignStart = 'FEATURELABELSTRONGSTART';
var featureLabelStrongSignEnd = 'FEATURELABELSTRONGEND';
var featurePosition = false;
var ContinueToPassive = false;
var browserType = 'Explorer';
var _obj;
var featureLabelNodeControl = false;
var featureLabelStrongPassiveControl = false;
var p = 0;

try {
    browserType = BrowserDetect.browser;
}
catch (err) {
    //alert(err);
}

ApplyFeatureLabelIfNecessary();

function ApplyFeatureLabelIfNecessary() {

    if (typeof (FeatureLabel_keywordArray) === 'undefined') return false;

    nexumfeaturelabeltagstart = 'nexumfeaturelabeltagstart';
    nexumfeaturelabeltagend = 'nexumfeaturelabeltagend';

    _obj = document.getElementById('NC_mainContent');

    if (_obj != null) {

        var content = _obj.innerHTML.toLowerCase();

        FeatureLabelStrong(_obj);

        if (content.indexOf(nexumfeaturelabeltagstart.toLowerCase()) > -1) {

            if (typeof (FeatureLabel_keywordArray) === 'undefined') return false;

            for (var i = 0; i < FeatureLabel_keywordArray.length; i++) {
                if (content.indexOf(FeatureLabel_keywordArray[i].toLowerCase()) >= 0) {
                    if (FeatureLabel_sitemapArray[i] != "" || (FeatureLabel_catalogueArray != undefined && FeatureLabel_catalogueArray[i] != "")) {
                        if (FeatureLabel_sitemapArray[i] != "") {
                            var sitemaparray = FeatureLabel_sitemapArray[i];
                            sitemaparray = sitemaparray.split(",");
                            for (var j = 0; j < sitemaparray.length; j++) {
                                if (sitemaparray[j] == pID) {
                                    ApplyFeatureLabel(FeatureLabel_keywordArray[i], i, nexumfeaturelabeltagstart, nexumfeaturelabeltagend);
                                    break;
                                }
                            }
                        }
                        if (FeatureLabel_catalogueArray != undefined && FeatureLabel_catalogueArray[i] != "") {
                            var cataloguearray = FeatureLabel_catalogueArray[i];
                            cataloguearray = cataloguearray.split(",");
                            for (var j = 0; j < cataloguearray.length; j = j + 2) {
                                if ((cataloguearray[j + 1] == 11 && cataloguearray[j] == Navigator.CatalogueId) ||
                                (cataloguearray[j + 1] == 13 && cataloguearray[j] == Navigator.CategoryId) ||
                                (cataloguearray[j + 1] == 14 && cataloguearray[j] == Navigator.AssortmentId) ||
                                (cataloguearray[j + 1] == 15 && cataloguearray[j] == Navigator.SegmentId)) {
                                    ApplyFeatureLabel(FeatureLabel_keywordArray[i], i, nexumfeaturelabeltagstart, nexumfeaturelabeltagend);
                                    break;
                                }
                            }
                        }
                    } else {
                        ApplyFeatureLabel(FeatureLabel_keywordArray[i], i, nexumfeaturelabeltagstart, nexumfeaturelabeltagend);
                    }
                }
            }
        }

        FeatureLabelStrongPassive(_obj, null);
    }
    // Init Product Filder Labels
    if (typeof (InjectDoFilter) == "function") { InjectDoFilter(); }
}

function ApplyFeatureLabel(term, keywordIndex, nexumfeaturelabeltagstart, nexumfeaturelabeltagend) {

    if (typeof (FeatureLabel_keywordArray) === 'undefined') return false;

    generalContent = _obj.innerHTML;
    term = term.replace(/\"/g, "");
    HighlightFeatureLabels(term, document.getElementById('NC_mainContent'), keywordIndex);

}

function FeatureLabelStrong(container, counter) {

    if (container.tagName == 'STRONG' && container.childNodes.length == 1) {
        var parent = container.parentNode;
        if (parent != null) {
            for (i = 0; i < parent.childNodes.length; i++) {
                if (parent.childNodes[i] == container) {
                    counter = i;
                    break;
                }
            }
        }
        if (parent.childNodes[counter].childNodes.length == 1 && parent.childNodes[counter].childNodes[0].nodeType == 3) {

            if (counter > 0) {
                var previousNode = parent.childNodes[counter - 1];
            }

            var currentNode = parent.childNodes[counter].childNodes[0];
            var nextNode = parent.childNodes[counter + 1];
            var newData = '';

            if (previousNode != null && previousNode.data != null) {

                if (previousNode.data != null) {
                    newData += previousNode.data;
                }


                newData += featureLabelStrongSignStart + currentNode.data + featureLabelStrongSignEnd;


                if (nextNode != null && nextNode.data != null) {
                    newData += nextNode.data;
                }

                previousNode.data = newData;

                if (nextNode != null) {
                    parent.removeChild(parent.childNodes[counter + 1]);
                }

                parent.removeChild(parent.childNodes[counter]);

                featureLabelNodeControl = true;

            } else {
                if (previousNode == null) {

                } else if (previousNode.data == null) {

                    newData += featureLabelStrongSignStart + currentNode.data + featureLabelStrongSignEnd;

                    //if(nextNode != null && nextNode.data != null){
                    //newData += nextNode.data;
                    //}

                    var newNode = document.createTextNode(newData);

                    container.parentNode.replaceChild(newNode, parent.childNodes[counter]);

                    //if(nextNode != null){
                    //	parent.removeChild(parent.childNodes[counter+1]);
                    //}
                }
            }
        }
    } else {
        for (var i = 0; i < container.childNodes.length; i++) {
            var node = container.childNodes[i];
            if (node.nodeType != 3) {
                FeatureLabelStrong(node, i);
                if (featureLabelNodeControl) {
                    i = i - 1;
                    featureLabelNodeControl = false;
                }
            }
        }
    }
}

function FeatureLabelStrongPassive(container) {

    var _containerchildNodeslength = container.childNodes.length;
    var k = -1;
    var l = -1;
    var emptybottleK = -1;
    var indexOfNoderesultFeatureLabelStrongStart = -1;
    var indexOfNoderesultFeatureLabelStrongEnd = -1;
    for (var i = 0; i < _containerchildNodeslength; i++) {

        var node = container.childNodes[i];
        var _span = document.createElement("SPAN");
        var _strong = document.createElement("STRONG");

        if (node.nodeType == 3) {
            var _parent = node.parentNode;
            var _node = node.data;

            if (_node.indexOf(featureLabelStrongSignStart) > -1) {
                if (_node.indexOf(featureLabelStrongSignEnd) > -1) {

                    while (_node.indexOf(featureLabelStrongSignStart) > -1) {
                        if (_node.indexOf(featureLabelStrongSignEnd) > -1) {
                            if (_node.indexOf(featureLabelStrongSignStart) < _node.indexOf(featureLabelStrongSignEnd)) {
                                // bu demektir ki content featurelabelstart content featurelabelend ..... (yani düzenli)
                                _span.appendChild(document.createTextNode(_node.substr(0, _node.indexOf(featureLabelStrongSignStart)) + ""));
                                var _strongNode = document.createElement("STRONG");
                                _strongNode.appendChild(document.createTextNode(_node.substr(_node.indexOf(featureLabelStrongSignStart) + featureLabelStrongSignStart.length, (_node.indexOf(featureLabelStrongSignEnd) - _node.indexOf(featureLabelStrongSignStart) - featureLabelStrongSignStart.length)) + ""));
                                _span.appendChild(_strongNode);
                                _node = _node.substr(_node.indexOf(featureLabelStrongSignEnd) + featureLabelStrongSignEnd.length);
                                if (_node.indexOf(featureLabelStrongSignStart) == -1 && _node.indexOf(featureLabelStrongSignEnd) == -1) {
                                    _span.appendChild(document.createTextNode(_node));
                                }
                            } else {
                                // bu demektir ki content featurelabelend content featurelabelstart content......
                                var _strongNode = document.createElement("STRONG");
                                _strongNode.appendChild(document.createTextNode(_node.substr(0, _node.indexOf(featureLabelStrongSignEnd)) + ""));
                                _span.appendChild(_strongNode);
                                _node = _node.substr(_node.indexOf(featureLabelStrongSignEnd) + featureLabelStrongSignEnd.length);
                                featureLabelStrongPassiveControl = false;
                            }
                        } else {
                            // bu demektir ki content featurelabelstart content......
                            _span.appendChild(document.createTextNode(_node.substr(0, _node.indexOf(featureLabelStrongSignStart)) + ""));
                            var _strongNode = document.createElement("STRONG");
                            _strongNode.appendChild(document.createTextNode(_node.substr(_node.indexOf(featureLabelStrongSignStart) + featureLabelStrongSignStart.length) + ""));
                            _span.appendChild(_strongNode);
                            _node = "";
                            featureLabelStrongPassiveControl = true;
                        }
                    }
                } else {
                    // bu demektir ki content featurelabelstart content......
                    _span.appendChild(document.createTextNode(_node.substr(0, _node.indexOf(featureLabelStrongSignStart)) + ""));
                    var _strongNode = document.createElement("STRONG");
                    _strongNode.appendChild(document.createTextNode(_node.substr(_node.indexOf(featureLabelStrongSignStart) + featureLabelStrongSignStart.length) + ""));
                    _span.appendChild(_strongNode);
                    _node = "";
                    featureLabelStrongPassiveControl = true;
                }
            } else if (_node.indexOf(featureLabelStrongSignEnd) > -1) {
                //bu demektir ki  featurelabelend content........
                var _strongNode = document.createElement("STRONG");
                _strongNode.appendChild(document.createTextNode(_node.substr(0, _node.indexOf(featureLabelStrongSignEnd)) + ""));
                _span.appendChild(_strongNode);
                _span.appendChild(document.createTextNode(_node.substr(_node.indexOf(featureLabelStrongSignEnd) + featureLabelStrongSignEnd.length) + ""));
                _node = "";
                featureLabelStrongPassiveControl = false;
            }


            if (_span.childNodes.length > 0) {
                node.parentNode.replaceChild(_span, node);
            }
        } else {
            if (featureLabelStrongPassiveControl) {
                var _strong = document.createElement("STRONG");
                var _node = node.cloneNode(true);
                _strong.appendChild(_node);
                node.parentNode.replaceChild(_strong, node);
                featureLabelStrongPassiveControl = false;
            }
        }

        if (container.childNodes[i].childNodes != null && container.childNodes[i].childNodes.length > 0) {
            FeatureLabelStrongPassive(node);
        }
    }
}

function HighlightFeatureLabels(term, container, keywordIndex) {

    var term_low = term.toLowerCase().replace('<strong>', featureLabelStrongSignStart.toLowerCase()).replace('</strong>', featureLabelStrongSignEnd.toLowerCase());

    for (var i = 0; i < container.childNodes.length; i++) {
        var node = container.childNodes[i];

        if (node.tagName != null && node.tagName.toUpperCase() == 'SPAN' && node.attributes['class'] != null && node.attributes['class'].value != null) {
            if (node.attributes['class'].value.toLowerCase() == nexumfeaturelabeltagstart.toLowerCase()) {
                featurePosition = true;
            }

            if (node.attributes['class'].value.toLowerCase() == nexumfeaturelabeltagend.toLowerCase()) {
                featurePosition = false;
            }
        }

        if (node.nodeType == 3) {

            var data = node.data;
            var _parentNode = node.parentNode;
            var data_low = data.toLowerCase();
            var _spam = document.createElement("SPAN");

            var index = data_low.indexOf(term_low);
            if (index != -1) {

                var dataIndex = generalContent.toLowerCase().indexOf(data_low);

                if (featurePosition && node.parentNode.tagName != 'A') {


                    while (data_low.indexOf(term_low) != -1) {

                        if (data_low.indexOf(term_low) > -1) {
                            _spam.appendChild(document.createTextNode(data.substr(0, data_low.indexOf(term_low))));
                            var _featureLabelWord = CreateFeatureLabel(data.substr(data_low.indexOf(term_low), term_low.length), keywordIndex);
                            _spam.appendChild(_featureLabelWord);
                            data = data.substr(data_low.indexOf(term_low) + term_low.length);
                            data_low = data_low.substr(data_low.indexOf(term_low) + term_low.length);
                        } else {
                            _spam.appendChild(document.createTextNode(data));
                        }
                    }

                    _spam.appendChild(document.createTextNode(data));
                    if (_spam.innerHTML != "") {
                        node.parentNode.replaceChild(_spam, node);
                    }
                    generalContent = document.getElementById('NC_mainContent').innerHTML;

                }
            }
        } else {
            HighlightFeatureLabels(term, node, keywordIndex);
        }
    }
}

function CreateFeatureLabel(child, featureIndex) {

    var descriptionText = escape(FeatureLabel_textArray[featureIndex]);

    var featureLabelStartTag;
    var node;

    if (browserType == 'Explorer') {
        if (navigator.appVersion.indexOf('9.0') > -1) {
            featureLabelStartTag = "a";
            node = document.createElement(featureLabelStartTag);
            node.setAttribute('href', 'javascript:void(0);');
            node.setAttribute('class', 'NC_featureLabel');
            node.setAttribute('onmouseover', 'this.T_TITLE="' + FeatureLabel_titleArray[featureIndex] + '";this.T_STICKY=true;this.T_PATH="' + FeatureLabel_pathArray[featureIndex] + '";this.T_TARGET="' + FeatureLabel_targetArray[featureIndex] + '";this.T_POPUP="' + FeatureLabel_popupWindowArray[featureIndex] + '";this.T_TARGETTYPE="' + FeatureLabel_targetTypeArray[featureIndex] + '";return escape(unescape("' + descriptionText + '"));');
        } else {
            featureLabelStartTag = "<a href=\"javascript:void(0);\" class=\"NC_featureLabel\" onmouseover=\"this.T_TITLE='" + FeatureLabel_titleArray[featureIndex] + "';this.T_STICKY=true;this.T_PATH='" + FeatureLabel_pathArray[featureIndex] + "';this.T_TARGET='" + FeatureLabel_targetArray[featureIndex] + "';this.T_POPUP='" + FeatureLabel_popupWindowArray[featureIndex] + "';this.T_TARGETTYPE='" + FeatureLabel_targetTypeArray[featureIndex] + "';return escape(unescape('" + descriptionText + "'));\">";
            node = document.createElement(featureLabelStartTag);
        }
    }


    else if (browserType == 'Firefox') {
        featureLabelStartTag = "a";
        node = document.createElement(featureLabelStartTag);
        node.setAttribute('href', 'javascript:void(0);');
        node.setAttribute('class', 'NC_featureLabel');
        node.setAttribute('onmouseover', 'this.T_TITLE="' + FeatureLabel_titleArray[featureIndex] + '";this.T_STICKY=true;this.T_PATH="' + FeatureLabel_pathArray[featureIndex] + '";this.T_TARGET="' + FeatureLabel_targetArray[featureIndex] + '";this.T_POPUP="' + FeatureLabel_popupWindowArray[featureIndex] + '";this.T_TARGETTYPE="' + FeatureLabel_targetTypeArray[featureIndex] + '";return escape(unescape("' + descriptionText + '"));');
    }
    else {
        featureLabelStartTag = "a";
        node = document.createElement(featureLabelStartTag);
        node.setAttribute('href', 'javascript:void(0);');
        node.setAttribute('class', 'NC_featureLabel');
        node.setAttribute('onmouseover', 'this.T_TITLE="' + FeatureLabel_titleArray[featureIndex] + '";this.T_STICKY=true;this.T_PATH="' + FeatureLabel_pathArray[featureIndex] + '";this.T_TARGET="' + FeatureLabel_targetArray[featureIndex] + '";this.T_POPUP="' + FeatureLabel_popupWindowArray[featureIndex] + '";this.T_TARGETTYPE="' + FeatureLabel_targetTypeArray[featureIndex] + '";return escape(unescape("' + descriptionText + '"));');
    }

    node.appendChild(document.createTextNode(child));
    return node;
}

function CheckCharacter(character) {

    var list = "abcdefghijklmnoprstuvyzqwxABCDEFGHIJKLMNOPRSTUVYZQWX><";

    for (var i = 0; i < list.length; i++)
        if (character == list.charAt(i)) { return false; }

    return true;
}



var Drag = {

    obj: null,

    init: function (o, oRoot, minX, maxX, minY, maxY, bSwapHorzRef, bSwapVertRef, fXMapper, fYMapper) {
        o.onmousedown = Drag.start;

        o.hmode = bSwapHorzRef ? false : true;
        o.vmode = bSwapVertRef ? false : true;

        o.root = oRoot && oRoot != null ? oRoot : o;

        if (o.hmode && isNaN(parseInt(o.root.style.left))) o.root.style.left = "0px";
        if (o.vmode && isNaN(parseInt(o.root.style.top))) o.root.style.top = "0px";
        if (!o.hmode && isNaN(parseInt(o.root.style.right))) o.root.style.right = "0px";
        if (!o.vmode && isNaN(parseInt(o.root.style.bottom))) o.root.style.bottom = "0px";

        o.minX = typeof minX != 'undefined' ? minX : null;
        o.minY = typeof minY != 'undefined' ? minY : null;
        o.maxX = typeof maxX != 'undefined' ? maxX : null;
        o.maxY = typeof maxY != 'undefined' ? maxY : null;

        o.xMapper = fXMapper ? fXMapper : null;
        o.yMapper = fYMapper ? fYMapper : null;

        o.root.onDragStart = new Function();
        o.root.onDragEnd = new Function();
        o.root.onDrag = new Function();
    },

    start: function (e) {
        var o = Drag.obj = this;
        e = Drag.fixE(e);
        var y = parseInt(o.vmode ? o.root.style.top : o.root.style.bottom);
        var x = parseInt(o.hmode ? o.root.style.left : o.root.style.right);
        o.root.onDragStart(x, y);

        o.lastMouseX = e.clientX;
        o.lastMouseY = e.clientY;

        if (o.hmode) {
            if (o.minX != null) o.minMouseX = e.clientX - x + o.minX;
            if (o.maxX != null) o.maxMouseX = o.minMouseX + o.maxX - o.minX;
        } else {
            if (o.minX != null) o.maxMouseX = -o.minX + e.clientX + x;
            if (o.maxX != null) o.minMouseX = -o.maxX + e.clientX + x;
        }

        if (o.vmode) {
            if (o.minY != null) o.minMouseY = e.clientY - y + o.minY;
            if (o.maxY != null) o.maxMouseY = o.minMouseY + o.maxY - o.minY;
        } else {
            if (o.minY != null) o.maxMouseY = -o.minY + e.clientY + y;
            if (o.maxY != null) o.minMouseY = -o.maxY + e.clientY + y;
        }

        document.onmousemove = Drag.drag;
        document.onmouseup = Drag.end;
        //showElement(); //göster 

        return false;
    },

    drag: function (e) {
        //hideElement('SELECT',document.getElementById('root')); //gizle

        e = Drag.fixE(e);
        var o = Drag.obj;

        var ey = e.clientY;
        var ex = e.clientX;
        var y = parseInt(o.vmode ? o.root.style.top : o.root.style.bottom);
        var x = parseInt(o.hmode ? o.root.style.left : o.root.style.right);
        var nx, ny;

        if (o.minX != null) ex = o.hmode ? Math.max(ex, o.minMouseX) : Math.min(ex, o.maxMouseX);
        if (o.maxX != null) ex = o.hmode ? Math.min(ex, o.maxMouseX) : Math.max(ex, o.minMouseX);
        if (o.minY != null) ey = o.vmode ? Math.max(ey, o.minMouseY) : Math.min(ey, o.maxMouseY);
        if (o.maxY != null) ey = o.vmode ? Math.min(ey, o.maxMouseY) : Math.max(ey, o.minMouseY);

        nx = x + ((ex - o.lastMouseX) * (o.hmode ? 1 : -1));
        ny = y + ((ey - o.lastMouseY) * (o.vmode ? 1 : -1));

        if (o.xMapper) nx = o.xMapper(y)
        else if (o.yMapper) ny = o.yMapper(x)

        Drag.obj.root.style[o.hmode ? "left" : "right"] = nx + "px";
        Drag.obj.root.style[o.vmode ? "top" : "bottom"] = ny + "px";
        Drag.obj.lastMouseX = ex;
        Drag.obj.lastMouseY = ey;

        Drag.obj.root.onDrag(nx, ny);
        return false;
    },

    end: function () {
        document.onmousemove = null;
        document.onmouseup = null;
        Drag.obj.root.onDragEnd(parseInt(Drag.obj.root.style[Drag.obj.hmode ? "left" : "right"]),
									parseInt(Drag.obj.root.style[Drag.obj.vmode ? "top" : "bottom"]));
        Drag.obj = null;
    },

    fixE: function (e) {
        if (typeof e == 'undefined') e = window.event;
        if (typeof e.layerX == 'undefined') e.layerX = e.offsetX;
        if (typeof e.layerY == 'undefined') e.layerY = e.offsetY;
        return e;
    }
};
/////////////////End Drag and Drop Functionalty/////////////////
/////////////////To Show Explanation Window Centered - Begin -/////////////////
function tt_f_clientWidth() {
    return tt_f_filterResults(
		window.innerWidth ? window.innerWidth : 0,
		document.documentElement ? document.documentElement.clientWidth : 0,
		document.body ? document.body.clientWidth : 0
	);
}
function tt_f_clientHeight() {
    return tt_f_filterResults(
		window.innerHeight ? window.innerHeight : 0,
		document.documentElement ? document.documentElement.clientHeight : 0,
		document.body ? document.body.clientHeight : 0
	);
}
function tt_f_scrollLeft() {
    return tt_f_filterResults(
		window.pageXOffset ? window.pageXOffset : 0,
		document.documentElement ? document.documentElement.scrollLeft : 0,
		document.body ? document.body.scrollLeft : 0
	);
}
function tt_f_scrollTop() {
    return tt_f_filterResults(
		window.pageYOffset ? window.pageYOffset : 0,
		document.documentElement ? document.documentElement.scrollTop : 0,
		document.body ? document.body.scrollTop : 0
	);
}
function tt_f_filterResults(n_win, n_docel, n_body) {
    var n_result = n_win ? n_win : 0;
    if (n_docel && (!n_result || (n_result > n_docel)))
        n_result = n_docel;
    return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
}

/////////////////To Show Explanation Window Centered - End -/////////////////

////////////////  GLOBAL TOOPTIP CONFIGURATION  /////////////////////
var gloTT = null;
var ttAbove = false;        // tooltip above mousepointer? Alternative: true
var ttBgColor = "#ffffff";
var ttBgImg = "";           // path to background image;
var ttBorderColor = "#99ccff";
var ttBorderWidth = 1;
var ttDelay = 100;          // time span until tooltip shows up [milliseconds]
var ttFontColor = "#000066";
var ttFontFace = "arial,helvetica,sans-serif";
var ttFontSize = "11px";
var ttFontWeight = "normal";     // alternative: "bold";
var ttLeft = false;        // tooltip on the left of the mouse? Alternative: true
var ttOffsetX = 12;           // horizontal offset of left-top corner from mousepointer
var ttOffsetY = 15;           // vertical offset                   "
var ttOpacity = 98;          // opacity of tooltip in percent (must be integer between 0 and 100)
var ttPadding = 4;            // spacing between border and content
var ttShadowColor = "";
var ttShadowWidth = 0;
var ttStatic = false;        // tooltip NOT move with the mouse? Alternative: true
var ttSticky = true;        // do NOT hide tooltip on mouseout? Alternative: true
var ttTemp = 0;            // time span after which the tooltip disappears; 0 (zero) means "infinite timespan"
var ttTextAlign = "left";
var ttTitleColor = "#ffffff";    // color of caption text
var ttWidth = 200;

var ttMoreLink = true;
var ttMoreLinkText = FeatureLabelMoreLinkText;
var ttFindMoreProductsText = FeatureLabelFindMoreProductsText; //See all product with this feature text
////////////////////  END OF TOOLTIP CONFIG  ////////////////////////



//////////////  TAGS WITH TOOLTIP FUNCTIONALITY  ////////////////////
// List may be extended or shortened:
var tt_tags = new Array("a", "area", "b", "big", "caption", "center", "code", "dd", "div", "dl", "dt", "em", "h1", "h2", "h3", "h4", "h5", "h6", "i", "img", "input", "li", "map", "ol", "p", "pre", "s", "select", "small", "span", "strike", "strong", "sub", "sup", "table", "td", "th", "tr", "tt", "u", "var", "ul", "layer");
/////////////////////////////////////////////////////////////////////

///////// DON'T CHANGE ANYTHING BELOW THIS LINE /////////////////////
var tt_obj = null,         // current tooltip
tt_ifrm = null,            // iframe to cover windowed controls in IE
tt_objW = 0, tt_objH = 0,  // width and height of tt_obj
tt_objX = 0, tt_objY = 0,
tt_offX = 0, tt_offY = 0,
xlim = 0, ylim = 0,        // right and bottom borders of visible client area
tt_sup = false,            // true if T_ABOVE cmd
tt_sticky = false,         // tt_obj sticky?
tt_wait = false,
tt_act = false,            // tooltip visibility flag
tt_sub = false,            // true while tooltip below mousepointer
tt_u = "undefined",
tt_mf = null,              // stores previous mousemove evthandler
// Opera: disable href when hovering <a>
tt_tag = null;             // stores hovered dom node, href and previous statusbar txt


var tt_db = (document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body ? document.body : null,
tt_n = navigator.userAgent.toLowerCase(),
tt_nv = navigator.appVersion;
// Browser flags
var tt_op = !!(window.opera && document.getElementById),
tt_op6 = tt_op && !document.defaultView,
tt_op7 = tt_op && !tt_op6,
tt_ie = tt_n.indexOf("msie") != -1 && document.all && tt_db && !tt_op,
tt_ie6 = tt_ie && parseFloat(tt_nv.substring(tt_nv.indexOf("MSIE") + 5)) >= 5.5,
tt_n4 = (document.layers && typeof document.classes != tt_u),
tt_n6 = (!tt_op && document.defaultView && typeof document.defaultView.getComputedStyle != tt_u),
tt_w3c = !tt_ie && !tt_n6 && !tt_op && document.getElementById;

function tt_Int(t_x) {
    var t_y;
    return isNaN(t_y = parseInt(t_x)) ? 0 : t_y;
}
function wzReplace(t_x, t_y) {
    var t_ret = "",
	t_str = this,
	t_xI;
    while ((t_xI = t_str.indexOf(t_x)) != -1) {
        t_ret += t_str.substring(0, t_xI) + t_y;
        t_str = t_str.substring(t_xI + t_x.length);
    }
    return t_ret + t_str;
}
String.prototype.wzReplace = wzReplace;
function tt_N4Tags(tagtyp, t_d, t_y) {
    t_d = t_d || document;
    t_y = t_y || new Array();
    var t_x = (tagtyp == "a") ? t_d.links : t_d.layers;
    for (var z = t_x.length; z--; ) t_y[t_y.length] = t_x[z];
    for (z = t_d.layers.length; z--; ) t_y = tt_N4Tags(tagtyp, t_d.layers[z].document, t_y);
    return t_y;
}
function tt_Htm(tt, t_id, txt) {
    var t_bgc = (typeof tt.T_BGCOLOR != tt_u) ? tt.T_BGCOLOR : ttBgColor,
	t_bgimg = (typeof tt.T_BGIMG != tt_u) ? tt.T_BGIMG : ttBgImg,
	t_bc = (typeof tt.T_BORDERCOLOR != tt_u) ? tt.T_BORDERCOLOR : ttBorderColor,
	t_bw = (typeof tt.T_BORDERWIDTH != tt_u) ? tt.T_BORDERWIDTH : ttBorderWidth,
	t_ff = (typeof tt.T_FONTFACE != tt_u) ? tt.T_FONTFACE : ttFontFace,
	t_fc = (typeof tt.T_FONTCOLOR != tt_u) ? tt.T_FONTCOLOR : ttFontColor,
	t_fsz = (typeof tt.T_FONTSIZE != tt_u) ? tt.T_FONTSIZE : ttFontSize,
	t_fwght = (typeof tt.T_FONTWEIGHT != tt_u) ? tt.T_FONTWEIGHT : ttFontWeight,
	t_opa = (typeof tt.T_OPACITY != tt_u) ? tt.T_OPACITY : ttOpacity,
	t_padd = (typeof tt.T_PADDING != tt_u) ? tt.T_PADDING : ttPadding,
	t_shc = (typeof tt.T_SHADOWCOLOR != tt_u) ? tt.T_SHADOWCOLOR : (ttShadowColor || 0),
	t_shw = (typeof tt.T_SHADOWWIDTH != tt_u) ? tt.T_SHADOWWIDTH : (ttShadowWidth || 0),
	t_algn = (typeof tt.T_TEXTALIGN != tt_u) ? tt.T_TEXTALIGN : ttTextAlign,
	t_tit = (typeof tt.T_TITLE != tt_u) ? tt.T_TITLE : "",
	t_path = (typeof tt.T_PATH != tt_u) ? tt.T_PATH : "",
	t_target = (typeof tt.T_TARGET != tt_u) ? tt.T_TARGET : "",
	t_targettype = (typeof tt.T_TARGETTYPE != tt_u) ? tt.T_TARGETTYPE : "",
	t_popup = (typeof tt.T_POPUP != tt_u) ? tt.T_POPUP : "",
	t_titc = (typeof tt.T_TITLECOLOR != tt_u) ? tt.T_TITLECOLOR : ttTitleColor,
	t_more = (typeof tt.T_MORELINK != tt_u) ? tt.T_MORELINK : ttMoreLink,
	t_moretxt = (typeof tt.T_MORELINKTEXT != tt_u) ? tt.T_MORELINKTEXT : ttMoreLinkText,
	t_w = (typeof tt.T_WIDTH != tt_u) ? tt.T_WIDTH : ttWidth;

    if (t_shc || t_shw) {
        t_shc = t_shc || "#cccccc";
        t_shw = t_shw || 5;
    }
    if (tt_n4 && (t_fsz == "10px" || t_fsz == "11px")) t_fsz = "12px";

    var t_optx = (tt_n4 ? '' : tt_n6 ? ('-moz-opacity:' + (t_opa / 100.0)) : tt_ie ? ('filter:Alpha(opacity=' + t_opa + ')') : ('opacity:' + (t_opa / 100.0))) + ';';
    var t_y = '<div id="' + t_id + '" style="position:absolute;z-index:1010;';
    t_y += 'left:0px;top:0px;visibility:' + (tt_n4 ? 'hide' : 'hidden') + ';' + t_optx + '" class="NC_featuteLabelWidth" onclick="FeatureLabelDivClicked = jsHideFeatureLabelOnOutSideClick">' +
		'<table border="0" cellpadding="0" cellspacing="0"' + (t_bc ? (' bgcolor="' + t_bc + '"  class="NC_featuteLabelWindows"  style="background:' + t_bc + ';"') : '') + ' width="' + t_w + '">';
    if (t_tit) {
        t_y += '<tr><td align="left" class="flheader" style="padding:3px;" align="' + t_algn + '"><font color="' + t_titc + '" face="' + t_ff + '" ' +
			'style="color:' + t_titc + ';font-family:' + t_ff + ';font-size:' + t_fsz + ';"><b>' +
			(tt_n4 ? '&nbsp;' : '') + t_tit + '</b></font></td><td class="flclose" align="right" style="padding:3px;"><a href="javascript:void(0);" onClick="javascript:tt_Hide();"><img src="' + jsapp + '/Templates/images/bosch/x.gif" border="0" alt="close"></a></td></tr>';
    }
    t_y += '<tr><td colspan="2"><table border="0" cellpadding="' + t_padd + '" cellspacing="' + t_bw + '" width="100%">' +
		'<tr><td' + (t_bgc ? (' bgcolor="' + t_bgc + '"') : '') + (t_bgimg ? ' background="' + t_bgimg + '"' : '') + ' class="fltext" style="text-align:' + t_algn + ';';
    if (tt_n6) t_y += 'padding:' + t_padd + 'px;';
    t_y += '" align="' + t_algn + '"><font color="' + t_fc + '" face="' + t_ff + '"' +
		' style="color:' + t_fc + ';font-family:' + t_ff + ';font-size:' + t_fsz + ';font-weight:' + t_fwght + ';">';
    if (t_fwght == 'bold') t_y += '<b>';
    t_y += txt;
    if (t_fwght == 'bold') t_y += '</b><br /><br />';
    if (ttFindMoreProductsText != '')//Show all products with this feature
    {
        t_y += '<a href="javascript:try {  ProductSearchFor(\'' + t_tit + '\');  } catch(err)  { top.parent.opener.ProductSearchFor(\'' + t_tit + '\');top.parent.opener.focus(); };void(0);" class="NC_lnkRight float_left NC_txt">' + ttFindMoreProductsText + '</a>';
    }
    if (t_more && t_path != '') if (t_more) t_y += '<div class=\"NC_h1\"></div><a href="javascript:' + linkFeature(t_tit, t_path + '#' + t_tit, t_target, t_popup, t_targettype) + ';void(0);" class="NC_lnkRight float_left NC_txt" style="margin: 0 5px 0 0;display:block;">' + t_moretxt + '</a>';
    t_y += '</font></td></tr></table></td></tr></table>';
    if (t_shw) {
        var t_spct = Math.round(t_shw * 1.3);
        if (tt_n4) {
            t_y += '<layer bgcolor="' + t_shc + '" left="' + t_w + '" top="' + t_spct + '" width="' + t_shw + '" height="0"></layer>' +
				'<layer bgcolor="' + t_shc + '" left="' + t_spct + '" align="bottom" width="' + (t_w - t_spct) + '" height="' + t_shw + '"></layer>';
        }
        else {
            t_optx = tt_n6 ? '-moz-opacity:0.85;' : tt_ie ? 'filter:Alpha(opacity=85);' : 'opacity:0.85;';
            t_y += '<div id="' + t_id + 'R" style="position:absolute;background:' + t_shc + ';left:' + t_w + 'px;top:' + t_spct + 'px;width:' + t_shw + 'px;height:1px;overflow:hidden;' + t_optx + '"></div>' +
				'<div style="position:relative;background:' + t_shc + ';left:' + t_spct + 'px;top:0px;width:' + (t_w - t_spct) + 'px;height:' + t_shw + 'px;overflow:hidden;' + t_optx + '"></div>';
        }
    }
    return (t_y + '</div>' +
		(tt_ie6 ? '<iframe id="TTiEiFrM" src="javascript:false" scrolling="no" frameborder="0" style="filter:Alpha(opacity=0);position:absolute;top:0px;left:0px;display:none;"></iframe>' : ''));
}

function OpenExplanationWindow(t_path, t_target, t_popup) {

    var t_bc = (typeof gloTT.T_BORDERCOLOR != tt_u) ? gloTT.T_BORDERCOLOR : ttBorderColor,
  t_ff = (typeof gloTT.T_FONTFACE != tt_u) ? gloTT.T_FONTFACE : ttFontFace,
  t_fsz = (typeof gloTT.T_FONTSIZE != tt_u) ? gloTT.T_FONTSIZE : ttFontSize,
  t_shc = (typeof gloTT.T_SHADOWCOLOR != tt_u) ? gloTT.T_SHADOWCOLOR : (ttShadowColor || 0),
  t_algn = (typeof gloTT.T_TEXTALIGN != tt_u) ? gloTT.T_TEXTALIGN : ttTextAlign,
  t_tit = (typeof gloTT.T_TITLE != tt_u) ? gloTT.T_TITLE : "",
  t_titc = (typeof gloTT.T_TITLECOLOR != tt_u) ? gloTT.T_TITLECOLOR : ttTitleColor,
  t_w = (typeof gloTT.T_WIDTH != tt_u) ? gloTT.T_WIDTH : ttWidth;
    var t_y = "";
    t_y += '<table border="0" cellpadding="0" cellspacing="0"' + (t_bc ? (' bgcolor="' + t_bc + '" style="background:' + t_bc + ';"') : '') + ' width="100%">';
    t_y += '<tr><td id="divForMoveExplanationWindow" style="cursor:move" align="left" style="padding:3px;" align="' + t_algn + '"><font color="' + t_titc + '" face="' + t_ff + '" ' +
         'style="color:' + t_titc + ';font-family:' + t_ff + ';font-size:' + t_fsz + ';"><b>' + FeatureLabelTitleText +
		 '</b></font></td><td align="right" style="padding:3px;" width="11"><a href="javascript:void(0);" onClick="javascript:document.body.removeChild(document.getElementById(\'divFeatureLabelExplanationWindow\'));"><img src="' + jsapp + '/Templates/images/siemens/x.gif" border="0" alt="close"></a></td></tr>';
    t_y += '</table>'
    tt_Hide();
    var str = t_y + "<iframe src=\"" + t_path + "\" width=\"100%\" marginwidth=\"0\" height=\"100%\" marginheight=\"0\" scrolling=\"auto\" frameBorder=\"0\"></iframe>";
    var ni = document.body;
    var newdiv = document.createElement('div');
    var divIdName = 'divFeatureLabelExplanationWindow';
    var divSize = 500;
    newdiv.style.position = 'absolute';
    newdiv.style.width = divSize.toString() + 'px';
    newdiv.style.height = divSize.toString() + 'px'; ;
    newdiv.style.zIndex = 9999;
    newdiv.style.backgroundColor = "#FFFFFF"
    var topPos = ((tt_f_clientHeight() - divSize) / 2) + tt_f_scrollTop();
    var leftPos = ((tt_f_clientWidth() - divSize) / 2) + tt_f_scrollLeft();
    newdiv.style.top = topPos.toString() + 'px';
    newdiv.style.left = leftPos.toString() + 'px';
    newdiv.setAttribute('id', divIdName);
    newdiv.innerHTML = str;
    ni.appendChild(newdiv);
    Drag.init(document.getElementById('divForMoveExplanationWindow'), document.getElementById('divFeatureLabelExplanationWindow'));
}

function linkFeature(t_tit, t_path, t_target, t_popup, t_targettype) {
    if (t_targettype == '')
        t_path = ApplicationPath + t_path;

    var sc_scr = 'if (typeof(window[\'s_account\']) != \'undefined\') linkCode(s_account, this, \'' + t_tit + '\');';

    if (t_target == '_self') {
        return sc_scr + 'window.open(\'' + t_path + '\', \'' + t_target + '\')';
    }
    else if (t_target == 'ExplanationWindow') {
        return sc_scr + 'OpenExplanationWindow(\'' + t_path + '\', \'' + t_target + '\', \'' + t_popup + '\')';
    }
    else {
        /*
        if (heightArray[indexNum] != '' && widthArray[indexNum] != '')
        {
        var leftDim = (screen.width - widthArray[indexNum]) / 2;
        var topDim = (screen.height - heightArray[indexNum]) / 2;
        hwString = 'left=' + leftDim + ',top=' + topDim + ',' + hwString;
        }
        */

        return sc_scr + 'window.open(\'' + t_path + '\', \'' + t_target + '\', \'' + t_popup + '\')';
    }

}


function tt_EvX(t_e) {
    var t_y = tt_Int(t_e.pageX || t_e.clientX || 0) +
		tt_Int(tt_ie ? tt_db.scrollLeft : 0) +
		tt_offX;
    if (t_y > xlim) t_y = xlim;
    var t_scr = tt_Int(window.pageXOffset || (tt_db ? tt_db.scrollLeft : 0) || 0);
    if (t_y < t_scr) t_y = t_scr;
    return t_y;
}
function tt_EvY(t_e) {
    var t_y = tt_Int(t_e.pageY || t_e.clientY || 0) +
		tt_Int(tt_ie ? tt_db.scrollTop : 0);
    if (tt_sup) t_y -= (tt_objH + tt_offY - 15);
    else if (t_y > ylim || !tt_sub && t_y > ylim - 24) {
        t_y -= (tt_objH + 5);
        tt_sub = false;
        if (browserType == 'Explorer') {
            if (navigator.appVersion.indexOf('9.0') > -1) {
                if ((t_e.clientY + tt_objH) > tt_db.clientHeight) {
                    t_y = t_e.pageY - tt_objH - 9;
                } else {
                    t_y = t_e.pageY + 9;
                }
            }
        }
    }
    else {
        t_y += tt_offY;
        tt_sub = true;
    }
    return t_y;
}
function tt_ReleasMov() {
    if (document.onmousemove == tt_Move) {
        if (!tt_mf && document.releaseEvents) document.releaseEvents(Event.MOUSEMOVE);
        document.onmousemove = tt_mf;
    }
}
function tt_ShowIfrm(t_x) {
    if (!tt_obj || !tt_ifrm) return;
    if (t_x) {
        tt_ifrm.style.width = tt_objW + 'px';
        tt_ifrm.style.height = tt_objH + 'px';
        tt_ifrm.style.display = "block";
    }
    else tt_ifrm.style.display = "none";
}
function tt_GetDiv(t_id) {
    return (
		tt_n4 ? (document.layers[t_id] || null)
		: tt_ie ? (document.all[t_id] || null)
		: (document.getElementById(t_id) || null)
	);
}
function tt_GetDivW() {
    return tt_Int(
		tt_n4 ? tt_obj.clip.width
		: (tt_obj.style.pixelWidth || tt_obj.offsetWidth)
	);
}
function tt_GetDivH() {
    return tt_Int(
		tt_n4 ? tt_obj.clip.height
		: (tt_obj.style.pixelHeight || tt_obj.offsetHeight)
	);
}

// Compat with DragDrop Lib: Ensure that z-index of tooltip is lifted beyond toplevel dragdrop element
function tt_SetDivZ() {
    var t_i = tt_obj.style || tt_obj;
    if (t_i) {
        if (window.dd && dd.z)
            t_i.zIndex = Math.max(dd.z + 1, t_i.zIndex);
        if (tt_ifrm) tt_ifrm.style.zIndex = t_i.zIndex - 1;
    }
}
function tt_SetDivPos(t_x, t_y) {
    var t_i = tt_obj.style || tt_obj;
    var t_px = (tt_op6 || tt_n4) ? '' : 'px';
    t_i.left = (tt_objX = t_x) + t_px;
    t_i.top = (tt_objY = t_y) + t_px;

    if (tt_ifrm) {
        tt_ifrm.style.left = t_i.left;
        tt_ifrm.style.top = t_i.top;
    }
}
function tt_ShowDiv(t_x) {
    tt_ShowIfrm(t_x);
    if (tt_n4) tt_obj.visibility = t_x ? 'show' : 'hide';
    else tt_obj.style.visibility = t_x ? 'visible' : 'hidden';
    tt_act = t_x;
}
function tt_OpDeHref(t_e) {
    var t_tag;
    if (t_e) {
        t_tag = t_e.target;
        while (t_tag) {
            if (t_tag.hasAttribute("href")) {
                tt_tag = t_tag
                tt_tag.t_href = tt_tag.getAttribute("href");
                tt_tag.removeAttribute("href");
                tt_tag.style.cursor = "hand";
                tt_tag.onmousedown = tt_OpReHref;
                tt_tag.stats = window.status;
                window.status = tt_tag.t_href;
                break;
            }
            t_tag = t_tag.parentElement;
        }
    }
}
function tt_OpReHref() {
    if (tt_tag) {
        tt_tag.setAttribute("href", tt_tag.t_href);
        window.status = tt_tag.stats;
        tt_tag = null;
    }
}
function tt_Show(t_e, t_id, t_sup, t_delay, t_fix, t_left, t_offx, t_offy, t_static, t_sticky, t_temp) {
    if (tt_obj) tt_Hide();
    tt_mf = document.onmousemove || null;
    if (window.dd && (window.DRAG && tt_mf == DRAG || window.RESIZE && tt_mf == RESIZE)) return;
    var t_sh, t_h;

    tt_obj = tt_GetDiv(t_id);
    if (tt_obj) {
        t_e = t_e || window.event;
        tt_sub = !(tt_sup = t_sup);
        tt_sticky = t_sticky;
        tt_objW = tt_GetDivW();
        tt_objH = tt_GetDivH();
        tt_offX = t_left ? -(tt_objW + t_offx) : t_offx;
        tt_offY = t_offy;
        if (tt_op7) tt_OpDeHref(t_e);
        if (tt_n4) {
            if (tt_obj.document.layers.length) {
                t_sh = tt_obj.document.layers[0];
                t_sh.clip.height = tt_objH - Math.round(t_sh.clip.width * 1.3);
            }
        }
        else {
            t_sh = tt_GetDiv(t_id + 'R');
            if (t_sh) {
                t_h = tt_objH - tt_Int(t_sh.style.pixelTop || t_sh.style.top || 0);
                if (typeof t_sh.style.pixelHeight != tt_u) t_sh.style.pixelHeight = t_h;
                else t_sh.style.height = t_h + 'px';
            }
        }

        xlim = tt_Int((tt_db && tt_db.clientWidth) ? tt_db.clientWidth : window.innerWidth) +
			tt_Int(window.pageXOffset || (tt_db ? tt_db.scrollLeft : 0) || 0) -
			tt_objW -
			(tt_n4 ? 21 : 0);
        ylim = tt_Int(window.innerHeight || tt_db.clientHeight) +
			tt_Int(window.pageYOffset || (tt_db ? tt_db.scrollTop : 0) || 0) -
			tt_objH - tt_offY;

        tt_SetDivZ();
        if (t_fix) tt_SetDivPos(tt_Int((t_fix = t_fix.split(','))[0]), tt_Int(t_fix[1]));
        else tt_SetDivPos(tt_EvX(t_e), tt_EvY(t_e));

        var t_txt = 'tt_ShowDiv(\'true\');';
        if (t_sticky) t_txt += '{' +
				'tt_ReleasMov();' +
				'window.tt_upFunc = document.onmouseup || null;' +
				'if(document.captureEvents) document.captureEvents(Event.MOUSEUP);' +
        //'document.onmouseup = new Function("window.setTimeout(\'tt_Hide();\', 10);");'+
				'document.onmouseup = new Function();' +
			'}';
        else if (t_static) t_txt += 'tt_ReleasMov();';
        if (t_temp > 0) t_txt += 'window.tt_rtm = window.setTimeout(\'tt_sticky = false; tt_Hide();\',' + t_temp + ');';
        window.tt_rdl = window.setTimeout(t_txt, t_delay);

        if (!t_fix) {
            if (document.captureEvents) document.captureEvents(Event.MOUSEMOVE);
            document.onmousemove = tt_Move;
        }
    }
}
var tt_area = false;
function tt_Move(t_ev) {
    if (!tt_obj) return;
    if (tt_n6 || tt_w3c) {
        if (tt_wait) return;
        tt_wait = true;
        setTimeout('tt_wait = false;', 5);
    }
    var t_e = t_ev || window.event;
    tt_SetDivPos(tt_EvX(t_e), tt_EvY(t_e));
    if (tt_op6) {
        if (tt_area && t_e.target.tagName != 'AREA') tt_Hide();
        else if (t_e.target.tagName == 'AREA') tt_area = true;
    }
}

function tt_Hide() {
    if (FeatureLabelDivClicked == false) {
        if (window.tt_obj) {
            if (window.tt_rdl) window.clearTimeout(tt_rdl);
            if (!tt_sticky || !tt_act) {
                if (window.tt_rtm) window.clearTimeout(tt_rtm);
                tt_ShowDiv(false);

                if (USE_FEATURE_LABEL_IN_RTL) {
                    tt_SetDivPos(0, 0);
                } else {
                    tt_SetDivPos(-tt_objW, -tt_objH);
                }

                tt_obj = null;
                if (typeof window.tt_upFunc != tt_u) document.onmouseup = window.tt_upFunc;
            }
            tt_sticky = false;
            if (tt_op6 && tt_area) tt_area = false;
            tt_ReleasMov();
            if (tt_op7) tt_OpReHref();
        }




    }
    FeatureLabelDivClicked = false;

}

function tt_Init() {
    if (!(tt_op || tt_n4 || tt_n6 || tt_ie || tt_w3c)) return;

    var htm = tt_n4 ? '<div style="position:absolute;"></div>' : '',
	tags,
	t_tj,
	over,
	esc = 'return escape(';
    var i = tt_tags.length; while (i--) {
        tags = tt_ie ? (document.all.tags(tt_tags[i]) || 1)
			: document.getElementsByTagName ? (document.getElementsByTagName(tt_tags[i]) || 1)
			: (!tt_n4 && tt_tags[i] == "a") ? document.links
			: 1;
        if (tt_n4 && (tt_tags[i] == "a" || tt_tags[i] == "layer")) tags = tt_N4Tags(tt_tags[i]);
        var j = tags.length; while (j--) {
            if (typeof (gloTT = t_tj = tags[j]).onmouseover == "function" && t_tj.onmouseover.toString().indexOf(esc) != -1 && !tt_n6 || tt_n6 && (over = t_tj.getAttribute("onmouseover")) && over.indexOf(esc) != -1) {
                if (over) t_tj.onmouseover = new Function(over);
                var txt = unescape(t_tj.onmouseover());
                txt = txt.wzReplace('\\"', '"');
                htm += tt_Htm(
					t_tj,
					"tOoLtIp" + i + "" + j,
					txt.wzReplace("& ", "&")
				);

                t_tj.onmouseover = new Function('e',
					'tt_Show(e,' +
					'"tOoLtIp' + i + '' + j + '",' +
					((typeof t_tj.T_ABOVE != tt_u) ? t_tj.T_ABOVE : ttAbove) + ',' +
					((typeof t_tj.T_DELAY != tt_u) ? t_tj.T_DELAY : ttDelay) + ',' +
					((typeof t_tj.T_FIX != tt_u) ? '"' + t_tj.T_FIX + '"' : '""') + ',' +
					((typeof t_tj.T_LEFT != tt_u) ? t_tj.T_LEFT : ttLeft) + ',' +
					((typeof t_tj.T_OFFSETX != tt_u) ? t_tj.T_OFFSETX : ttOffsetX) + ',' +
					((typeof t_tj.T_OFFSETY != tt_u) ? t_tj.T_OFFSETY : ttOffsetY) + ',' +
					((typeof t_tj.T_STATIC != tt_u) ? t_tj.T_STATIC : ttStatic) + ',' +
					((typeof t_tj.T_STICKY != tt_u) ? t_tj.T_STICKY : ttSticky) + ',' +
					((typeof t_tj.T_TEMP != tt_u) ? t_tj.T_TEMP : ttTemp) +
					');'
				);
                t_tj.onmouseout = tt_Hide;
                if (t_tj.alt) t_tj.alt = "";
                if (t_tj.title) t_tj.title = "";
            }
        }
    }
    document.write(htm);
    if (document.getElementById) tt_ifrm = document.getElementById("TTiEiFrM");
}
tt_Init();

function insertAnArrayBefore(receivedArray, indexOfreceivedArray, data_low, term_low, data, keywordIndex) {
    var newArray = new Array();
    var arrayLength = receivedArray.length;
    var j = 0;
    for (var i = 0; i < arrayLength; i++) {
        if (i < indexOfreceivedArray) {
            newArray[j] = receivedArray[i];
            j++;
        } else if (indexOfreceivedArray == i) {
            result = data_low.indexOf(term_low);
            newArray[j] = document.createTextNode(data.substr(0, result) + "");
            j++;
            newArray[j] = CreateFeatureLabel(data.substr(result, term_low.length), keywordIndex);
            j++;
            newArray[j] = document.createTextNode(data.substr(result + term_low.length) + "");
            j++;
        } else if (i > indexOfreceivedArray) {
            newArray[j] = receivedArray[i];
            j++;
        }
    }
    return newArray;
}

