function clickBanner(url)
{
	if(ulr != ''){
		window.location.href = url;
	}
}

function possuiFlash()
{
	var UseFlash = 0;
	if ((navigator.mimeTypes) && (navigator.mimeTypes['application/x-shockwave-flash'] )) 
	{
		var plugin = navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin; 
		if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf('.')-1))>=5)			
			UseFlash = 1; 
	} 
	else if (navigator.appName && navigator.appName.indexOf('Microsoft') != -1 && 
		navigator.userAgent.indexOf('Windows') != -1 && navigator.userAgent.indexOf('Windows 3.1') == -1) { 
		UseFlash = 1;
	}
	return UseFlash; 
}
function abrePopup(url, width, height, type)
{

}

function voltar()
{
	window.history.go(-1);
}
function abreCombo()
{
	$('.listaVoceProcura').toggle();
}

function popup(pagina,nome,caracter)
{
	window.open(pagina,nome,caracter);
}

function linkExterno(url)
{
	strUrlAtual = "";
	strUrlAtual = window.location.href;
	if((url.indexOf('vcmmgmtprod') >= 0)||(url.indexOf('.itau.') >= 0)){
		popup(url,'popup','width=720,height=540,left=300,top=150,scrollbars=yes');
	}else{
		url = '/_arquivosestaticos/Gavea/html/aviso.html?lk=' + url;
		popup(url,'popup','width=520,height=420,left=300,top=150,scrollbars=yes');
	}
}

$(document).ready(function(){
	strUrlOld = "";
	strUrlOld = window.location.href;
	if(strUrlOld.indexOf('unibanco') >= 0){
		window.location.href = "http://www.gaveaprevidencia.itau.com.br";
	}
	$('#iframeContato').attr('src', 'https://www.gaveaprevidencia.itau.com.br/_arquivosestaticos/Gavea/html/contato.html');
	$('#iframeContato').attr('style', 'border: 0pt none; height: 280px; *height: 300px;');
	$('#inputBusca').attr('disabled', '1');
	//verificar flash no ie6
	if($.browser.msie){
		if($.browser.version == '6.0'){
			$('#LY140TP_BannerGavea').hide();
		}
	}
});
