// JavaScript Document

function AddEvent(obj, evType, fn)
	{
		if (obj.addEventListener)
			obj.addEventListener(evType, fn, true);
		if (obj.attachEvent)
			obj.attachEvent("on"+evType, fn);
	}

	function Init2()
	{
		var aH1 = document.getElementsByTagName("h1");
		for (i = 0; i < aH1.length; i++)
			AddEvent(aH1[i], 'click', ShowHide);
	}

	function ShowHide( e )
	{
		if(typeof(e) == 'undefined')
			var e = window.event;
		var oSource = e.target ? e.target : e.srcElement;
		if (oSource.nodeType == 3)
			oSource = oSource.parentNode;

		var oTexto = oSource.nextSibling;
		if (oSource.nextSibling.nodeType == 3)
			oTexto = oTexto.nextSibling;
		oTexto.style.display = oTexto.style.display == 'block' ? 'none' : 'block';
		oSource.className = oSource.className == 'selected' ? '' : 'selected';
	}

	AddEvent(window, "load", Init2);

function openPictureWindow_Fever(imageName, imageWidth, imageHeight, alt)
{
	newWindow = window.open("","newWindow","width="+screen.width+",height="+(screen.height)+",scrollbars=no, statusbar=no, top=0, left=0");
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#000000" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onblur="window.close()">');

	newWindow.document.write('<table align="center" height="100%" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="middle">');

	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\" onclick="window.close();" />');
	
	newWindow.document.write('</td></tr></table>');

	newWindow.document.write('<div align="center" style="font-family: Verdana, sans-serif; font-size: 12px; color: #fff;text-align:center;margin-top: 5px;">'+alt+'</div></div></body></html>');
	
	newWindow.document.write('</div></body></html>');
	newWindow.document.close();
	newWindow.focus();
	}

	function janela(pagina)
	{
		window.open(pagina, 'pop', "scrollbars=yes, status=no, width=500, height=400");
	}

function openFlash(imageName, imageWidth, imageHeight, alt)
{
	newWindow = window.open("","newWindow","width="+screen.width+",height="+(screen.height)+",scrollbars=no, statusbar=no, top=0, left=0");
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#000000" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onblur="window.close()">');
	
		newWindow.document.write('<table align="center" height="100%" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="middle">');
	
		newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
		
	newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high />');
	newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('</embed></object>');
	
	newWindow.document.write('</td></tr></table>');

	
	newWindow.document.write('</div></body></html>');
	newWindow.document.close();
	newWindow.focus();
}