	function MM_swapImgRestore() { //v3.0
		var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}
		
	function MM_preloadImages() { //v3.0
		var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}
		
	function MM_findObj(n, d) { //v4.01
  		var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
		if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
		for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
		if(!x && d.getElementById) x=d.getElementById(n); return x;
	}
		
	function MM_swapImage() { //v3.0
		var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
		if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}
	
	//Abre uma nova Janela
	function Abrir_Janela(theURL,winName) 
	{
		var w = 500;
		var h = 385;
		var winl = (screen.width - w) / 2;
 		var wint = (screen.height - h) / 2;
		winpar = 'height='+h+',width='+w+',top='+wint+',left='+winl;
		window.open(theURL,winName,winpar);
	}
	
	//Atribui o Titulo
	function Escreve_Titulo()
	{
		document.title = ':. Clube Olímpico de Oeiras .:';
	}
	
	//Abre um popup
	function popup(targetPage,w,h) 
	{
	var winl = (screen.width - w) / 2;
 	var wint = (screen.height - h) / 2;
	var msgWin = 'Clube Olímpico de Oeiras';
	winpar = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=1,resizable=0,dependent=1';
	newWin = window.open(targetPage, "msgWin", winpar);
	}
	
	//Abre uma nova Janela para o Mapa
	function Abrir_Mapa(theURL,winName) 
	{
		var w = 475;
		var h = 400;
		var winl = (screen.width - w) / 2;
 		var wint = (screen.height - h) / 2;
		winpar = 'height='+h+',width='+w+',top='+wint+',left='+winl;
		window.open(theURL,winName,winpar);
	}

	//Expande ou comprime uma opção do menu
	function change2(divName)
	{
		var ns6 = document.getElementById && !document.all;
		var obj = ns6?document.getElementById(divName):document.all.item(divName);
		var objs;
			
		nested =ns6?obj.childNodes.item(1).nextSibling.nextSibling:document.all[obj.sourceIndex+4];
		  
		if (nested.style.display == "none")
		{
			nested.style.display = 'block';
		}
		else
		{
			nested.style.display = 'none';
		}

		for (var i=1;(i<=6); i++) 
		{
			if (i!=divName) {
			objs = document.getElementById(i);
			nested =ns6?objs.childNodes.item(1).nextSibling.nextSibling:document.all[objs.sourceIndex+4];
			nested.style.display = 'none';
			}
		}		
	 }    
	 
	//Actualiza a página de detalhe
	function Actualiza_Detalhe(theURL, theFRAME)
	{
		window.open(theURL, theFRAME);
	}
		
	//Actualiza a página de detalhe
	function Actualiza_Frames(pagina,frame)
	{
		window.open(pagina,frame);
	}
	
	//Abrir um flyer
	function Abrir_Flyer() 
	{
		window.open("Paginas/flyer.htm", "_blank","width=283,height=400,resizable=no");
	}
	
/***********************************************************************************************/
	
	//-- popup fastbreaking
	
	var windowW=283
	var windowH=400
	var Yoffset=100   
	var moveSpeed=20 
	var Xmode="right";
	var Xoffset=50;
	var autoclose = false
	var windowX = (screen.width/2)-(windowW/2);
	if (Xmode=="left") windowX=0+Xoffset;
	if (Xmode=="right") windowX=screen.availWidth-Xoffset-windowW;
	var windowY = (screen.availHeight);
	var windowYstop = windowY-windowH-Yoffset;
	var windowYnow = windowY;
	var windowStep = 50;
	var windowYnow = ((windowStep+1)*windowStep/2)+ windowYstop;
	s = "width="+windowW+",height="+windowH;
	
	function PopupBreakingNews()
	{
		popup=window.open('Paginas/flyer.htm',"FastBreakingNews","top=5000, left=5000,"+s)
		popup.blur()
		window.focus() 
		popup.moveTo(windowX,windowY)
		popup.focus()   
		if (autoclose)
		{
			window.onunload = function(){popup.close()}
		}
		movePopup();
	}
	
	function movePopup(){
		if (windowYnow!=windowYstop)
		{
		  popup.moveTo(windowX,windowYnow);
		  popup.focus();
		  windowYnow=windowYnow-windowStep;
		  windowStep--;
		  timer=setTimeout("movePopup()",moveSpeed);
		}
		else
		{
		  clearTimeout(timer);
		  popup.moveTo(windowX,windowYstop);
		  popup.focus();
		}
	}
	//---Fine codice popup fastbreaking
	
/***********************************************************************************************/

	//Disable right mouse click Script
	//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
	//For full source code, visit http://www.dynamicdrive.com
	
	var message="Function Disabled!";
	
	///////////////////////////////////
	function clickIE4()
	{
		if (event.button==2)
		{
			alert(message);
			return false;
		}
	}

	function clickNS4(e)
	{
		if (document.layers||document.getElementById&&!document.all)
		{
			if (e.which==2||e.which==3)
			{
				alert(message);
				return false;
			}
		}
	}

	if (document.layers)
	{
		document.captureEvents(Event.MOUSEDOWN);
		document.onmousedown=clickNS4;
	}
	else if (document.all&&!document.getElementById)
	{
		document.onmousedown=clickIE4;
	}
	
	document.oncontextmenu=new Function("alert(message);return false");

	//Disable right mouse click Script