// JavaScript Document

//Última Actualização em 14 de Abril de 2004 (versão de desenvolvimento)

//Open Browser Window


<!-- e-Learning Generic Functions - Open Browser Windows-->


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);



function LZ_openBrWindow_2 (Left,Top,Width,Height,new_window)
{
	
	window.open("","" + new_window + "","left=" + Left + ",scrollbars=yes,height=" + Height + ",status=no,menubar=no,toolbar=no,location=no,resizable=yes,top=" + Top + ",width=" + Width,true);
	
}


function LZ_openBrWindow_3 (Top,W,new_window)
{
	
	var width = screen.width;
	var width_ = width*(0.70);
	var height = screen.height;
	var height_ = height*(0.70);
	
	window.open("","" + new_window + "","left=" + (screen.width/2 - width_/2) + ",scrollbars=yes,height=" + height_ + ",status=no,menubar=no,toolbar=no,location=no,resizable=yes,top=" + Top + ",width=" + width_ + "",true);
	
}


<!-- Generic Functions -                                -->



function LZ_openBrWindow (theURL, winName,features) {

	window.open(theURL,winName,features);
}


function LZ_RandOpenBrWindow(theURL,allowPOPUPs,POPUP_ZERO,top_ZERO,width_ZERO,POPUP_ONE,top_ONE,width_ONE,POPUP_TWO,top_TWO,width_TWO,POPUP_THREE,top_THREE,width_THREE,POPUP_FOUR,top_FOUR,width_FOUR,POPUP_FIVE,top_FIVE,width_FIVE,POPUP_SIX,top_SIX,width_SIX) {


if (allowPOPUPs) {

					switch (theURL)
					{
						case 0 :
						{
							// After October the 31th - there are no POP UPs available
							LZ_openBrWindow ('../popups/' + POPUP_ZERO + '', '','left=199,scrollbars=no,height=200,status=no,menubar=no,toolbar=no,location=no,resizable=no,top='+ top_ZERO +',width='+ width_ZERO +'');
						}
							break;			
							
						
						case 1 :
						{
							// After October the 31th - there are no POP UPs available
							LZ_openBrWindow ('../popups/' + POPUP_ONE + '', '','left=199,scrollbars=no,height=200,status=no,menubar=no,toolbar=no,location=no,resizable=no,top='+ top_ONE +',width='+ width_ONE +'');
						}
							break;			
							
							
						case 2 :
						{
							// After October the 31th - there are no POP UPs available
							LZ_openBrWindow ('../popups/' + POPUP_TWO + '', '','left=199,scrollbars=no,height=200,status=no,menubar=no,toolbar=no,location=no,resizable=no,top='+ top_TWO +',width='+ width_TWO +'');
						}
							break;			
							
			
						case 3 :
						{
							// After October the 31th - there are no POP UPs available
							LZ_openBrWindow ('../popups/' + POPUP_THREE + '', '','left=199,scrollbars=no,height=200,status=no,menubar=no,toolbar=no,location=no,resizable=no,top='+ top_THREE +',width='+ width_THREE +'');
						}
							break;			
			
						case 4 :
						{
							// After October the 31th - there are no POP UPs available
							LZ_openBrWindow ('../popups/' + POPUP_FOUR + '', '','left=199,scrollbars=no,height=200,status=no,menubar=no,toolbar=no,location=no,resizable=no,top='+ top_FOUR +',width='+ width_FOUR +'');
						}
							break;			
			
			
						case 5 :
						{
							// After October the 31th - there are no POP UPs available
							LZ_openBrWindow ('../popups/' + POPUP_FIVE + '', '','left=199,scrollbars=no,height=200,status=no,menubar=no,toolbar=no,location=no,resizable=no,top='+ top_FIVE +',width='+ width_FIVE +'');
						}
							break;			
			
			
						case 6 :
						{
							// After October the 31th - there are no POP UPs available
							LZ_openBrWindow ('../popups/' + POPUP_SIX + '', '','left=199,scrollbars=no,height=200,status=no,menubar=no,toolbar=no,location=no,resizable=no,top='+ top_SIX +',width='+ width_SIX +'');
						}
							break;			
			
					}		
				}
}


function LZ_RandFlashMovie_OLD(theMovie) {

		switch (theMovie)
		{
			case 0 : case 2 : case 4 : case 6:
			{
				//document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="81" height="340"><param name="movie" value="../../apada/banners/LEFT_congresso_ibero_americano.swf"><param name=quality value=high><embed src="../../apada/banners/LEFT_congresso_ibero_americano.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="81" height="460"></embed></object>');
				
				document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="81" height="340">');
				document.write('<param name="movie" value="../banners/LEFT_Protocolo_Universidade_Chengdu.swf">');
				document.write('<param name=quality value=high>');
				document.write('<embed src="../../apada/banners/LEFT_curso_sup_inscr_abertas.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="81" height="340"></embed>');
				document.write('</object>');
				
			}
				break;			
			
			case 1 : case 3 : case 5:
			{
				//document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="81" height="340"><param name="movie" value="../../apada/banners/LEFT_curso_sup_inscr_abertas.swf"><param name=quality value=high><embed src="../../apada/banners/LEFT_curso_sup_inscr_abertas.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="81" height="460"></embed></object>');
				
				document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="81" height="340">');
				document.write('<param name="movie" value="../banners/LEFT_cerimonia_entrega_diplomas.swf">');
				document.write('<param name=quality value=high>');
				document.write('<embed src="../banners/LEFT_cerimonia_entrega_diplomas.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="81" height="340"></embed>');
				document.write('</object>');
				
			}
				break;			
	 	}		
}

function LZ_RandFlashMovie(theMovie,Movie_ZERO,Movie_ONE,Movie_TWO,Movie_THREE,Movie_FOUR,Movie_FIVE,Movie_SIX) {

		switch (theMovie)
		{
			case 0 :
			{
				//document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="81" height="460"><param name="movie" value="../../apada/banners/LEFT_congresso_ibero_americano.swf"><param name=quality value=high><embed src="../../apada/banners/LEFT_congresso_ibero_americano.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="81" height="460"></embed></object>');
				
				document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="81" height="460">');
				document.write('<param name="movie" value="../banners/' + Movie_ZERO + '">');
				document.write('<param name=quality value=high>');
				document.write('<embed src="../../apada/banners/' + Movie_ZERO + '" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="81" height="460"></embed>');
				document.write('</object>');
				
			}
				break;			

			
			case 1 :
			{
				//document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="81" height="460"><param name="movie" value="../../apada/banners/LEFT_curso_sup_inscr_abertas.swf"><param name=quality value=high><embed src="../../apada/banners/LEFT_curso_sup_inscr_abertas.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="81" height="460"></embed></object>');
				
				document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="81" height="460">');
				document.write('<param name="movie" value="../banners/' + Movie_ONE + '">');
				document.write('<param name=quality value=high>');
				document.write('<embed src="../../apada/banners/' + Movie_ONE + '" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="81" height="460"></embed>');
				document.write('</object>');
				
			}
				break;			

			
			case 2 :
			{
				//document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="81" height="460"><param name="movie" value="../../apada/banners/LEFT_curso_sup_inscr_abertas.swf"><param name=quality value=high><embed src="../../apada/banners/LEFT_curso_sup_inscr_abertas.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="81" height="460"></embed></object>');
				
				document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="81" height="460">');
				document.write('<param name="movie" value="../banners/' + Movie_TWO + '">');
				document.write('<param name=quality value=high>');
				document.write('<embed src="../../apada/banners/' + Movie_TWO + '" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="81" height="460"></embed>');
				document.write('</object>');
				
			}
				break;			

			
			case 3 :
			{
				//document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="81" height="460"><param name="movie" value="../../apada/banners/LEFT_curso_sup_inscr_abertas.swf"><param name=quality value=high><embed src="../../apada/banners/LEFT_curso_sup_inscr_abertas.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="81" height="460"></embed></object>');
				
				document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="81" height="460">');
				document.write('<param name="movie" value="../banners/' + Movie_THREE + '">');
				document.write('<param name=quality value=high>');
				document.write('<embed src="../../apada/banners/' + Movie_THREE + '" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="81" height="460"></embed>');
				document.write('</object>');
				
			}
				break;			

			
			case 4 :
			{
				//document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="81" height="460"><param name="movie" value="../../apada/banners/LEFT_curso_sup_inscr_abertas.swf"><param name=quality value=high><embed src="../../apada/banners/LEFT_curso_sup_inscr_abertas.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="81" height="460"></embed></object>');
				
				document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="81" height="460">');
				document.write('<param name="movie" value="../banners/' + Movie_FOUR + '">');
				document.write('<param name=quality value=high>');
				document.write('<embed src="../../apada/banners/' + Movie_FOUR + '" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="81" height="460"></embed>');
				document.write('</object>');
				
			}
				break;			

			
			case 5 :
			{
				//document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="81" height="460"><param name="movie" value="../../apada/banners/LEFT_curso_sup_inscr_abertas.swf"><param name=quality value=high><embed src="../../apada/banners/LEFT_curso_sup_inscr_abertas.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="81" height="460"></embed></object>');
				
				document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="81" height="460">');
				document.write('<param name="movie" value="../banners/' + Movie_FIVE + '">');
				document.write('<param name=quality value=high>');
				document.write('<embed src="../../apada/banners/' + Movie_FIVE + '" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="81" height="460"></embed>');
				document.write('</object>');
				
			}
				break;			

			
			case 6 :
			{
				//document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="81" height="460"><param name="movie" value="../../apada/banners/LEFT_curso_sup_inscr_abertas.swf"><param name=quality value=high><embed src="../../apada/banners/LEFT_curso_sup_inscr_abertas.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="81" height="460"></embed></object>');
				
				document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="81" height="460">');
				document.write('<param name="movie" value="../banners/' + Movie_SIX + '">');
				document.write('<param name=quality value=high>');
				document.write('<embed src="../../apada/banners/' + Movie_SIX + '" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="81" height="460"></embed>');
				document.write('</object>');
				
			}
				break;			

			
	 	}		
}



function closeWithTimer() {	

	window.setTimeout(close,500);
}


function Reload (url) {
	
	location.replace(url);

}


function initOBW() {

		var Current_LZ_OBW;
		
			Current_LZ_OBW = document.getElementById('LZ_obw');
			/*Current_LZ_OBW.style.visibility = "visible";											*/
			Current_LZ_OBW.style.visibility = "hidden";											
			Current_LZ_OBW.style.zIndex = 1;
	
	}
	

function FecharInfo() {

var Current_LZ_OBW_2;

	Current_LZ_OBW_2 = document.getElementById('LZ_obw');
	Current_LZ_OBW_2.style.visibility = "hidden";											
	Current_LZ_OBW_2.style.zIndex = 1;


}
