function clickIE() { 
	if (document.all) return false; 
}
function clickNS(e) { 
	if (document.layers || (document.getElementById && !document.all)) {
		if (e.which == 2 || e.which == 3) return false;
	}
}
if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown = clickNS;
} else {
	document.onmouseup = clickNS;
	document.oncontextmenu = clickIE;
}
document.oncontextmenu = new Function("return false");

/*

function accordion(el) {
	$(el.parentNode.id+'-body').style.display != 'none' ? new Effect.SlideUp(el.parentNode.id+'-body', {duration: 0.1}) : new Effect.SlideDown(el.parentNode.id+'-body', {duration: 0.1});
}

function init() {

    // hide all elements apart from the one with id visible
    var acc = document.getElementById('accordion');
    var apanels = acc.getElementsByTagName('div');
    for (i = 0; i < apanels.length; i++) {
        if (apanels[i].className == 'panel_body') {
            apanels[i].style.display = 'none';
        }
    }
	if ($('visible')) {
    	var avis = $('visible').parentNode.id+'-body';
    	$(avis).style.display = 'block';
	}
}
function addEvent(elm, evType, fn, useCapture) {
    elm["on"+evType]=fn;return;
}

addEvent(window, "load", init);

*/