
    var d=new Array();
    var currentshow="";
	var zoomvar=0;
	var zoomsize=0;
	var at="";
	var direction=1;
	var active_ql=-1;


	function quicklink_info() {
		if(i=document.getElementById("ql_info")) {
			index=document.frm_quicklink.target.selectedIndex;

			if(index<active_ql) {
				direction=-1;
			}
			else {	
				direction=1;
			}

			if(document.frm_quicklink.target[index].value.length==0) {
				index=index+direction;
				document.frm_quicklink.target.selectedIndex=index;
			}
			active_ql=index;
			i.innerHTML=ql_info[index];
		}
	}

	function light_on(id) {
		imidiathide();
		if(at!="") {
			at.className="m1";
		}
		if(e=document.getElementById(id)) {
			e.className="m2";
		}
	}
	function light_off(id) {
		if(e=document.getElementById(id)) {
			e.className="m1";
		}
	}


	function light_on2(element) {
		element.parentNode.className="mt2";

	}
	function light_off2(element) {
		element.parentNode.className="mt";

	}

	function do_iframe() {
	    ret =false;
	    if(document.all && navigator.userAgent.toLowerCase().search("opera") == -1) {
		ret = true;
	    }
	    return ret;
	}

    function color(element) {
		element.className="dropdown_active";
    }

    function decolor(element) {
		element.className="dropdown_inactive";
    }

    function display(id,nr,element) {



		if(currentshow!="") {
			at.className='m1';
			imidiathide();
		}

		element.className='m2';
		at=element;	

		if(m=document.getElementById("sub"+id)) {
			d[nr]=id;
			m.style.left=(PageOffsetLeft(element)+8);
			m.style.top=(PageOffsetTop(element)+25);
			m.style.display="";
			currentshow=id;
		}

		if(do_iframe()) {
			if(u=document.getElementById("underground")) {

				u.style.top=m.style.top;
				window.status=(m.style.width);
				u.style.left=m.style.left;
				u.style.width=m.style.width;
				u.style.height=m.offsetHeight;
				u.style.display="";
			}
	    }



    }

    function imidiathide() {
		if(m=document.getElementById("sub"+currentshow)) {
			m.style.display="none";

			if(do_iframe()) {
				if(u=document.getElementById("underground")) {
					u.style.display="none";
				}
			}
		}

    }

    function realhide(id,nr) {
		if(d[nr].length==0) {
			if(m=document.getElementById("sub"+id)) {
				m.style.display="none";
				if(currentshow==id){
					currentshow="";
				}
			}

			if(do_iframe()) {
				if(u=document.getElementById("underground")) {
					u.style.display="none";
				}
			}
			at.className='m1';
		}


    }

    function hide(id,nr) {
		d[nr]="";
		command="realhide('"+id+"',"+nr+")";
		window.setTimeout(command,500);
	
    }

    function over(id,nr) {
		if (d[nr].length==0) {
			d[nr]=id;
		}
    }

    function PageOffsetTop(el) {
		var y;
	
		y = el.offsetTop;
		if (el.offsetParent != null) {
			if(el.offsetParent.style && el.offsetParent.style.overflow && el.offsetParent.style.overflow!="visible") {
			}
			else {
			y += PageOffsetTop(el.offsetParent);
			}
		}
		return y;
	}


    function PageOffsetLeft(el) {
	var x;
  
	x = el.offsetLeft;
	if (el.offsetParent != null) {
	    if(el.offsetParent.style && el.offsetParent.style.overflow && el.offsetParent.style.overflow!="visible") {
	    }
	    else {
		x += PageOffsetLeft(el.offsetParent);
	    }
	}
	return x;
    }