
function hideOnLoad(){
    
    var w = document.getElementById("ctl00_maincontent_words");
    if (w) {
	    if (w.style.display == "none") {
		    w.style.display = "block";
	        var w1 = document.getElementById("tab");
	        w1.className = "link tabOn";
	    } else {
		    w.style.display = "none";
	        var w1 = document.getElementById("tab");
	        w1.className = "link tabOff";
        }
    }
}

function HideAll() {
	if (navigator.userAgent.match(/Opera (\S+)/)) {
		var operaVersion = parseInt(navigator.userAgent.match(/Opera (\S+)/)[1]);
	}
	if (!document.getElementById||operaVersion <7) return;
	var arr = new Array();
	arr = document.getElementsByTagName('div');
	for (i=0;i<arr.length;i++){
		if (arr[i].className.indexOf('infotext')!=-1){
		    arr[i].style.display = "none";
		}
	}
	
	// also hide declaration
	w = document.getElementById("words");
	if (w) {
	    if (w) w.style.display = "none";
	    var w = document.getElementById("toptab");
	    if (w) w.className = "toptab off";
	}
	
}

function ToggleDeclaration() {
	var w = document.getElementById("ctl00_maincontent_words");
	if (w) {
	    if (w.style.display == "none") {
		    w.style.display = "block";
	        var w1 = document.getElementById("tab");
	        w1.className = "link tabOn";
	    } else {
		    w.style.display = "none";
	        var w1 = document.getElementById("tab");
	        w1.className = "link tabOff";
        }
    }
}

function InfoClicks() {

    if (navigator.userAgent.match(/Opera (\S+)/)) {
		var operaVersion = parseInt(navigator.userAgent.match(/Opera (\S+)/)[1]);
	}
	if (!document.getElementById||operaVersion <7) return;
	var arr = new Array();
	arr = document.getElementsByTagName('div');
	for (i=0;i<arr.length;i++){
		if (arr[i].className.indexOf('infobox')!=-1){
		    var im = arr[i].getElementsByTagName('a');
            var tx = arr[i].getElementsByTagName('div');
            var textobject; 
		    for (j=0;j<tx.length;j++) if(tx[j].className.indexOf('infotext')!=-1) im[0].textobject = tx[j];
		    im[0].onmouseover = function(textobject) {
		        this.textobject.style.display="block";
		    }
		    
		    im[0].onmouseout = function(textobject) {
		        this.textobject.style.display="none";
		    }
		    
		}
	}
/*
	var imgPreload=new Array();
	var imgSrc=new Array();
	var imgClass=new Array();
	for (i=0;i<arr.length;i++){
		if (arr[i].className.indexOf('rollover')!=-1){
			imgSrc[i]=arr[i].getAttribute('src');
			imgPreload[i]=new Image();
			imgPreload[i].src = imgSrc[i].replace('.gif','_over.gif');
			imgarr[i].setAttribute('xsrc', imgSrc[i]);
			imgarr[i].onmouseover=function(){
				this.setAttribute('src',this.getAttribute('src').replace('.gif','_over.gif'))
			}
			imgarr[i].onmouseout=function(){
				this.setAttribute('src',this.getAttribute('xsrc'))
			}
		}
	}*/
}