// Desenvolvido por conseld design digital http://www.conseld.com

//------------------------------------------------
function Abre(url, width, height)
{
window.open(url,"_blank","resizable=no,toolbar=no,status=no,menubar=no,scrollbars=yes,width=" + width + ",height=" + height)
}

//-----------------------------
img1=new Image()
img1.src="img/fold.gif"
img2=new Image()
img2.src="img/open.gif"
ns6_index=0

function change(e){

if(!document.all&&!document.getElementById)
return

if (!document.all&&document.getElementById)
ns6_index=1

var source=document.getElementById&&!document.all? e.target:event.srcElement

if (source.className=="folding"){
	
var source2=document.getElementById&&!document.all? source.parentNode.childNodes:source.parentElement.all

if (source2[2+ns6_index].style.display=="none"){
	
source2[0].src="img/open.gif"

source2[2+ns6_index].style.display=''
}
else{
source2[0].src="img/fold.gif"
source2[2+ns6_index].style.display="none"
}
}
}
document.onclick=change

// Fonction anti-clic droit
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 disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
