var browserName = '';
var browserNew = '';
function getIdProperty(id,property) {
        var styleObject = document.getElementById( id );
        if (styleObject != null) {
            styleObject = styleObject.style;
                if (styleObject[property]) {
                    return styleObject[ property ];
                }
            }
        return (styleObject != null) ?
        styleObject[property] :
        null;
    }
function setIdProperty(id,property,value) {
        var styleObject = document.getElementById( id );
        if (styleObject != null) {
            styleObject = styleObject.style;
            styleObject[ property ] = value;
        }
    }
function getDisplay(id) {
        if (browserNew) {
            return getIdProperty(id,"display");
        }
        else {
            if (browserName == "NS") {
                return document.layers[id].display;
            }
            else {
                return document.all[id].style.display;
            }
        }
    }
function switchDisplay(id,value) {
        if (browserNew) {
            setIdProperty(id,"display",value);
        }
        else {
            if (browserName == "NS") {
                document.layers[id].display = value;
            }
            else {
                document.all[id].style.display = value;
            }
        }
    }
function expandContent(id, param){
    if (getDisplay('t' + id) == 'none') {
        switchDisplay('t'+id,'block');
        setIdProperty('a'+id, 'color', '#000000')

    } else {
        switchDisplay('t'+id,'none');                          
        setIdProperty('a'+id, 'color', '#444444')
    }
}

var textcolours = Array(
"#0000CC",  "#FF6666" , "#BBBBBB"
 );
function flashtext() {
	var colour = Math.round(Math.random()*2);
	document.getElementById("flashingtext").style.color = textcolours[ colour ];
	document.getElementById("flashingtext").style.fontSize=20;
}
