function AbrePop(url) {
	var largura = '600';
	var altura = '400';
	var rolagem = 'yes';
	var params = '';
	if (arguments.length > 1) {
		if (arguments[1]!='') largura = arguments[1];
		if (arguments.length > 2) {
			if (arguments[2]!='') altura = arguments[2];
			if (arguments.length > 3) {
				if (arguments[3]!='') rolagem = arguments[3];
				if (arguments.length > 4) {
					if (arguments[4]!='') params = ',' + arguments[4];
				}
			}
		}
	}
	window.open(url, '_blank', 'top=0,left=0,scrollbars=' + rolagem + ',width=' + largura + ',height=' + altura + params)
}

function VerificarResolucao()
{
	var largura = screen.width;
	var altura = screen.height;	
	
	var objDiv = document.getElementById('tmpBannerSegu');
	if (objDiv != null)
	{
		if (largura > 800 && altura > 600)
		{
			objDiv.style.display = 'inline';
		}
		else
		{
			objDiv.style.display = 'none';
		}
	}
	
}

function RedimensionaMiolo ()
{
	var objDivBanner = document.getElementById('LateralDir');
	if (objDivBanner != null)
	{
		if (objDivBanner.innerHTML.length == 0)
		{
			var objDivMiolo = document.getElementById('MioloArtTmpl');
			if (objDivMiolo != null)
			{
				objDivMiolo.style.width = '99%';
				objDivBanner .style.width = '0%';
			}			
		}	
	}
}

  
function selecionaVideo(urlVideo)
{
	
	var strHtmlVideo;
	
	
	
	if ((urlVideo == '/vste/arq/publicacao/_exc/vid/video_Multisenha.swf') || (urlVideo == '/vste/arq/publicacao/_uni/vid/video_Multisenha_uni1.swf'))
	{

	strHtmlVideo = '';
	strHtmlVideo = strHtmlVideo + '<div id="videoDivmiolo" style="padding:0px 0px 0px 33px;">';
	strHtmlVideo = strHtmlVideo +	'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="320" height="240">';
	strHtmlVideo = strHtmlVideo +		'<param name="movie" value="'+urlVideo+'"/><param name="quality" value="high" /><param name="LOOP" value="false" />';
    strHtmlVideo = strHtmlVideo +		'<embed src="'+urlVideo+'" width="320" height="240" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>';
	strHtmlVideo = strHtmlVideo +	'</object>';
	strHtmlVideo = strHtmlVideo + '</div>';
	strHtmlVideo = strHtmlVideo + '<div id="btVideoSoliciteAgora"><a href="/vste/red/hom/solicitacaotoken/index.asp"><img border="0" src="/vste/images/videotecahome/box_exclusivo/solicite_agora.jpg"></a></div>';
	
	}
	
		
	else
	{
	strHtmlVideo = '';
	strHtmlVideo = strHtmlVideo + '<div id="videoDivmiolo" style="padding:0px 0px 0px 33px;">';
	strHtmlVideo = strHtmlVideo +	'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="320" height="240">';
	strHtmlVideo = strHtmlVideo +		'<param name="movie" value="'+urlVideo+'"/><param name="quality" value="high" /><param name="LOOP" value="false" />';
    strHtmlVideo = strHtmlVideo +		'<embed src="'+urlVideo+'" width="320" height="240" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>';
	strHtmlVideo = strHtmlVideo +	'</object>';
	strHtmlVideo = strHtmlVideo + '</div>';
	}
	
		
	
	
	if ((urlVideo == '/vste/arq/publicacao/_sus/por/vid/Troca_desenha.swf') || (urlVideo == '/vste/arq/publicacao/_sus/por/vid/Troca_desenha_Uniclass.swf'))
	{

	strHtmlVideo = '';
	strHtmlVideo = strHtmlVideo + '<div id="videoDivmiolo" style="padding:0px 0px 0px 33px;">';
	strHtmlVideo = strHtmlVideo +	'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="320" height="240">';
	strHtmlVideo = strHtmlVideo +		'<param name="movie" value="'+urlVideo+'"/><param name="quality" value="high" /><param name="LOOP" value="false" />';
    strHtmlVideo = strHtmlVideo +		'<embed src="'+urlVideo+'" width="320" height="240" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>';
	strHtmlVideo = strHtmlVideo +	'</object>';
	strHtmlVideo = strHtmlVideo + '</div>';
	strHtmlVideo = strHtmlVideo + '<div id="btVideoSoliciteAgora"><a href="/vste/red/hom/solicitacaotoken/index.asp"><img border="0" src="/vste/images/videotecahome/box_exclusivo/btn_solicite_multi.gif"></a></div>';
	
	}
	

	
     if ((urlVideo == '/vste/arq/publicacao/_sus/por/vid/Video_Passivos_Uni.swf') || (urlVideo == '/vste/arq/publicacao/_sus/por/vid/Video_Passivos_Ex.swf'))
	{
		strHtmlVideo = '';
		strHtmlVideo = strHtmlVideo + '<div id="videoDivmiolo" style="padding:0px 0px 0px 33px;">';
		strHtmlVideo = strHtmlVideo +	'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="320" height="240">';
		strHtmlVideo = strHtmlVideo +		'<param name="movie" value="'+urlVideo+'"/><param name="quality" value="high" /><param name="LOOP" value="false" />';
		strHtmlVideo = strHtmlVideo +		'<embed src="'+urlVideo+'" width="320" height="240" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>';
		strHtmlVideo = strHtmlVideo +	'</object>';
		strHtmlVideo = strHtmlVideo + '</div>';
		strHtmlVideo = strHtmlVideo + '<div id="btVideoAplique"><a href="/vste/red/vid/exc/iba/index.asp"><img border="0" src="/vste/images/videotecahome/box_exclusivo/aplique_bt.gif"></a></div>';
	} 
	
	
	 if (urlVideo == '/vste/arq/publicacao/_sus/por/vid/Video_iPhone_uniclass.swf') 
	{
		strHtmlVideo = '';
		strHtmlVideo = strHtmlVideo + '<div id="videoDivmiolo" style="padding:0px 0px 0px 33px;">';
		strHtmlVideo = strHtmlVideo +	'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="320" height="240">';
		strHtmlVideo = strHtmlVideo +		'<param name="movie" value="'+urlVideo+'"/><param name="quality" value="high" /><param name="LOOP" value="false" />';
		strHtmlVideo = strHtmlVideo +		'<embed src="'+urlVideo+'" width="320" height="240" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>';
		strHtmlVideo = strHtmlVideo +	'</object>';
		strHtmlVideo = strHtmlVideo + '</div>';
		strHtmlVideo = strHtmlVideo + '<div id="btVideoIphone"><a href="/vste/_uni/ser/cpa/iph/index.asp "><img border="0" src="/vste/images/videotecahome/box_uniclass/botao_iphone.gif"></a></div>';
	} 
	
	
	if (urlVideo == '/vste/arq/publicacao/_sus/por/vid/Video_iPhone.swf')
	{
		strHtmlVideo = '';
		strHtmlVideo = strHtmlVideo + '<div id="videoDivmiolo" style="padding:0px 0px 0px 33px;">';
		strHtmlVideo = strHtmlVideo +	'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="320" height="240">';
		strHtmlVideo = strHtmlVideo +		'<param name="movie" value="'+urlVideo+'"/><param name="quality" value="high" /><param name="LOOP" value="false" />';
		strHtmlVideo = strHtmlVideo +		'<embed src="'+urlVideo+'" width="320" height="240" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>';
		strHtmlVideo = strHtmlVideo +	'</object>';
		strHtmlVideo = strHtmlVideo + '</div>';
		strHtmlVideo = strHtmlVideo + '<div id="btVideoIphone"><a href="/vste/_exc/ser/cpa/iph/index.asp"><img border="0" src="/vste/images/videotecahome/box_exclusivo/botao_iphone.gif"></a></div>';
	} 
	
	
	if (urlVideo == '/vste/arq/publicacao/_exc/_hom/09_01_29_mascatm.swf')
	{
		strHtmlVideo = '';
		strHtmlVideo = strHtmlVideo + '<div id="videoDivmiolo" style="padding:0px 0px 0px 33px;">';
		strHtmlVideo = strHtmlVideo +	'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="320" height="240">';
		strHtmlVideo = strHtmlVideo +		'<param name="movie" value="'+urlVideo+'"/><param name="quality" value="high" /><param name="LOOP" value="false" />';
		strHtmlVideo = strHtmlVideo +		'<embed src="'+urlVideo+'" width="320" height="240" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>';
		strHtmlVideo = strHtmlVideo +	'</object>';
		strHtmlVideo = strHtmlVideo + '</div>';
		strHtmlVideo = strHtmlVideo + '<div id="btnLocalizador"><a href="/vste/red/_exc/vdd/localizador/index.asp"><img border="0" src="/vste/images/videotecahome/box_exclusivo/bt_localizador.gif"></a></div>';
	} 
	
	if (urlVideo == '/vste/arq/publicacao/_uni/_hom/09_01_29_mascatm_uni.swf')
	{
		strHtmlVideo = '';
		strHtmlVideo = strHtmlVideo + '<div id="videoDivmiolo" style="padding:0px 0px 0px 33px;">';
		strHtmlVideo = strHtmlVideo +	'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="320" height="240">';
		strHtmlVideo = strHtmlVideo +		'<param name="movie" value="'+urlVideo+'"/><param name="quality" value="high" /><param name="LOOP" value="false" />';
		strHtmlVideo = strHtmlVideo +		'<embed src="'+urlVideo+'" width="320" height="240" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>';
		strHtmlVideo = strHtmlVideo +	'</object>';
		strHtmlVideo = strHtmlVideo + '</div>';
		strHtmlVideo = strHtmlVideo + '<div id="btnLocalizador"><a href="/vste/red/_uni/vdd/localizador/index.asp"><img border="0" src="/vste/images/videotecahome/box_uniclass/bt_localizador.gif"></a></div>';
	}
    /*===============================================================*/	
	if (urlVideo.indexOf('08_12_16_masc10anos')!=-1 )
	{
		strHtmlVideo = '';
		strHtmlVideo = strHtmlVideo + '<div id="videoDivmiolo" style="padding:0px 0px 0px 33px;">';
		strHtmlVideo = strHtmlVideo +	'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="320" height="240">';
		strHtmlVideo = strHtmlVideo +		'<param name="movie" value="'+urlVideo+'"/><param name="quality" value="high" /><param name="LOOP" value="false" />';
		strHtmlVideo = strHtmlVideo +		'<embed src="'+urlVideo+'" width="320" height="240" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>';
		strHtmlVideo = strHtmlVideo +	'</object>';
		strHtmlVideo = strHtmlVideo + '</div>';
		strHtmlVideo = strHtmlVideo + '<div style="{margin-top:10px}"><center><a href="/vste/red/hom/extrato10anos/index.asp"><img border="0" src="/vste/images/videotecahome/box_exclusivo/08_12_09_botaoconsulte.jpg"></a></center></div>';
	} 
	
	
	//alert(urlVideo);
	
	ObjMiolo = document.getElementById("MioloArtTmplVidVideo");
	if(ObjMiolo==null)
		ObjMiolo = document.getElementById("MioloArtTmplVid");
		ObjMiolo.innerHTML = strHtmlVideo; 
		//.innerHTML = strHtmlVideo;/*unibanco*/ 
		
	
	
	//alert(document.getElementById("MioloArtTmplVidVideo").innerHTML)						 
}
   
   
function EM(evt)  // para esconder o menu Lateral.
{	
	var browser;
	browser = navigator.appVersion;
	
	try
	{
		if ( browser.indexOf('MSIE') == -1 ) // FireFox
		{
			var aux = evt.target;			
			//exceto
			if	((aux.id.indexOf('divSusMenLatMioItem') != -1) || (aux.tagName == 'SPAN'))
			{				
				return false;
			}
			else
			{
				exibeObjs();
				LimpaMenu();
			}
		}
		else //IE
		{			
			if  ((window.event.srcElement.id.indexOf('divSusMenLatMioItem') != -1) || (window.event.srcElement.tagName == 'SPAN'))
			{				
				return false;
			}
			else
			{
				exibeObjs();
				LimpaMenu();
			}			
		}
	}
	catch(e){}	
}

function LimpaMenu()
{
	var objDivSubItem;
	for (i=0; i<numItens; i++)
	{
		objDivSubItem = document.getElementById('divSusMenLatSubMenu_' + (i));
		if (objDivSubItem != null)
		{			
			objDivSubItem.style.display = 'none';
		}
	}
}

function hiddeObjs() // esconde todos os selects Bubg IE.
{
	var pagtam;
	
	pagtam = document.all.length;
	
	for (i=0;i<=pagtam;i++)
	{
		try
		{
			if (document.all[i].tagName == "SELECT")
			{
				document.all[i].style.visibility = 'hidden';
			}
		}
		catch(e){}
	}
}

function exibeObjs()
{
	var pagtam;
	
	pagtam = document.all.length;
	
	for (i=0;i<=pagtam;i++)
	{
		try
		{
			if (document.all[i].tagName == "SELECT")
			{
				document.all[i].style.visibility = 'inherit';
			}
		}
		catch(e){}
	}
}   