function openMenu(menu) {
    menu = menu.parentNode.childNodes[2].style;
	menu.display = ((menu.display != "block") || (menu.display == "")) ? "block" : "none";
}

function getImageFillSize(imageReferrer, imageName) {
    pos = Position.cumulativeOffset(imageReferrer);

    //Zera o cache de imagem, para aparecer o loading enquanto está carregando a nova imagem
    $('tmpImage').src        = themePath+"imgs/transparent.gif";

    $('tmpImage').src        = imageName;
    $('tmpImage').style.left = pos[0]+"px";
    $('tmpImage').style.top  = pos[1]+"px";
    $('tmpImage').title      = "Clique para reduzir";
    $('tmpImage').alt        = "Clique para reduzir";
    $('tmpImage').style.display = ($('tmpImage').style.display == "block") ? "none" : "block";
}

/*******************************************
* Função q bloqueia o botão direito do Mouse
********************************************/
// CAPTURA E ALERTA

/*var message1="Conteúdo Reservado!!! \n Nós da MyClipartCorner agradecemos a sua compreensão.";
function click(e) {
	if (Is.ie) {
		if (event.button == 2) {
			alert(message1);
			return false;
		}
	}
	if (!Is.ie) {
		if (e.which == 3) {
			alert(message1);
			return false;
		}
	}
}

if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;


// COMPLEMENTO PARA PRIMEIRO BLOQUEIO
//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";

function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);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")*/

/*******************************************
* Fim da Função q bloqueia o botão direito do Mouse
********************************************/

/*******************************************
* bloqueia seleção do texto
********************************************/
/*function disableInterfaceThings() {
	document.ondragstart = new Function("return false;");
	document.oncontextmenu = new Function("return false;");
	document.onselectstart = new Function("return false;");
}

window.onfocus = new Function("disableInterfaceThings();");*/
/*******************************************
* Fim da Função bloqueia seleção do texto
********************************************/
