<!--
var topics;
var hints;
var curTopic = null;
var curTopicK = null;
var curHint = null;
var oldColor;

//Change the topic background color and display a hint
function highlight() {
    //Ignore movement outside the topics but in thold
    if (event.srcElement.id == "topic") {
        curTopic = event.srcElement;
        curTopic.style.backgroundColor = '<%=Session("colButa")%>';
    }
}

//Change the topic background color and display a hint
function highlight_new() {
    //Is the hint still visible? This is called if we have moved from the
    //topic to the hint and then back to some other hint
    if ((curHint != null) && (curHint.style.visibility == "visible")) {
        curTopic.style.backgroundColor = "";
        curHint.style.visibility = "hidden";
    }
    //Ignore movement outside the topics but in thold
    if (event.srcElement.id == "topic") {
        curTopic = event.srcElement;
        curTopic.style.backgroundColor = '<%=Session("Color2")%>';
        for (i = 0; i < topics.length; i++)
            if (event.srcElement == topics[i]) {
                curHint = hints[i]
                curHint.style.visibility = "visible"
        }
    }
}

//Change the topic fontcolor and background color
function highligh(color) {
    //Is the hint still visible? This is called if we have moved from the
    //topic to the hint and then back to some other hint
    if (curTopicK != null) {
        curTopicK.style.backgroundColor = "";
    }
    //Ignore movement outside the topics but in thold
    if (event.srcElement.id == "topicK") {
        curTopicK = event.srcElement;
        curTopicK.style.backgroundColor = color;
		oldColor = curTopicK.style.color
    }
}

//Change the topic background color
function highlighS(color, color1) {
    //Is the hint still visible? This is called if we have moved from the
    //topic to the hint and then back to some other hint
    if (curTopic != null) {
        curTopic.style.backgroundColor = "";
		curTopic.style.color = "";
    }
    //Ignore movement outside the topics but in thold
    if (event.srcElement.id == "topic") {
        curTopic = event.srcElement;
        curTopic.style.backgroundColor = color;
		curTopic.style.color = color1;
		oldColor = curTopic.style.color
//        if (oldColor = "white") {
//			curTopic.style.color = "black";
//        }
    }
}

//Hide the hint if we've moved on to another topic or beyond the top of the
//topic list
function unhigh_old() {
        curTopic = event.srcElement;
        curTopic.style.backgroundColor = '<%=Session("colButt")%>'
}

//Hide the hint if we've moved on to another topic or beyond the top of the topic list
function unhigh() {
	if  (event.Element != null) {
		if  (event.toElement != null) {
			if (event.toElement.id == "topic") {
				curHint.style.visibility = "hidden";
				curTopic.style.backgroundColor = "";
			}
		}
	}
}

//Hide the hint if we've moved on to anywhere
function unhighA() {
	if  (event.srcElement != null) {
		if (event.srcElement.id == "topicK") {
			event.srcElement.style.backgroundColor = "";
			event.srcElement.style.color = oldColor;
		}
	}
}

//Jump to the href specified in the expando property
function jump() {
    if (event.srcElement.jump)
        document.location.href = event.srcElement.jump
}

//Change of language - jump to same page
function langch() {
    pom = document.location.href.indexOf("?");
    document.location.href = document.location.href.substring(0, pom) + "?lang=" + event.srcElement.id;
}

//If moving over a hint anchor, highlight it. 
function onHint() {
    if (event.srcElement.tagName == "A")
        event.srcElement.style.backgroundColor = "cyan";
}

//If moving off of a hint anchor, unhighlight it. 
function offHint() {
    if (event.srcElement.tagName == "A")
        event.srcElement.style.backgroundColor = "";
}

function over() {
	src = event.toElement;
    src.oldcol = src.style.color;
    src.style.color = "#FF0000";
}

function out() {
	src=event.fromElement;
    src.style.color = src.oldcol;
}

//function init() {
//    topics = document.all.item("topic");
//    hints = document.all.item("hint");
//}

function mouseEvent_cb (evt) {
  /* The following is for compatability */
  /* IE does NOT by default pass the event object */
  /* obtain a ref to the event if one was not given */
  if (!evt) evt = window.event;
	
  /* obtain event type and target as earlier */
  var eType = evt.type;
  var eTarget = evt.target || evt.srcElement;
 // alert (eType +' event on element with id: '+ eTarget.id);
}

function handleEnter (field, event) {
var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
if (keyCode == 13) {
	return false;
	} 
else
	return true;
} 

function elemId (evt) {

    /* The following is for compatability */
    /* IE does NOT by default pass the event object */
    /* obtain a ref to the event if one was not given */
    if (!evt) evt = window.event;

    /* obtain event type and target as earlier */
    var eType = evt.type;
    var eTarget = evt.target || evt.srcElement;
    return eTarget.id;
}

function elem (evt) {

    /* The following is for compatability */
    /* IE does NOT by default pass the event object */
    /* obtain a ref to the event if one was not given */
    if (!evt) evt = window.event;

    /* obtain event type and target as earlier */
    var eType = evt.type;
    var eTarget = evt.target || evt.srcElement;
    return eTarget;
}

function fUnderlineOver() {
	var evt = event;
    if (!evt) evt = window.event;
	
    /* obtain event type and target as earlier */
    var eType = evt.type;
    var eTarget = evt.target || evt.srcElement;
	
    if (eTarget.id == "topic") {
        curTopic = eTarget;
        curTopic.style.textDecoration = "underline";
		curTopic.oldcol = curTopic.style.color;
		curTopic.style.color = "#4B4B4B";
    }
}

function fUnderlineOut() {
	var evt = event;
    if (!evt) evt = window.event;
	
    /* obtain event type and target as earlier */
    var eType = evt.type;
    var eTarget = evt.target || evt.srcElement;

    if (eTarget.id == "topic") {
        curTopic = eTarget;
        curTopic.style.textDecoration = "none";
	    curTopic.style.color = curTopic.oldcol;
    }
}

//function nabidka(idex)
//{
//    if (idex.style.display == 'none')
//        idex.style.display='';
//    else
//        idex.style.display='none'
//}

//-->

