// JavaScript Document
/***********************************************************************************
 * Arquivo: PNGSuporteIE.js
 * Dependência(s) (outros arquivos): Nenhum arquivo
 * Funções: verificarIE55_6 e habilitarPNGSuporteIE
 * Descrição: Fornece suporte a transparências alfa de imagens Portable Network
 *            Graphics (PNG) no Internet Explorer 5.5 e 6.0
 * Autor: Rogério Moraes de Carvalho (rogeriom@gmx.net) / Thiago Sousa (www.thsl.com.br)
***********************************************************************************/

/***********************************************************************************
* Função: verificarIE55_6
* Argumentos: Nenhum
* Retorno: Valor booleano indicando se o browser é o Internet Explorer 5.5 ou 6.0
* Descrição: Verifica se o browser é o Internet Explorer 5.5 ou 6.0
***********************************************************************************/
function verificarIE55_6() {
	var pos = navigator.userAgent.indexOf("MSIE ");
	var ie = (pos != -1);
	var ie55_6 = false;

	if (ie) {
		var versao = navigator.userAgent.substring(pos + 5);
		ie55_6 = ((versao.indexOf("5.5") == 0) || (versao.indexOf("6") == 0));
	}

	return ie55_6;
}
		
/***********************************************************************************
* Função: habilitarPNGSuporteIE
* Argumentos: Nenhum
* Retorno: Nenhum
* Descrição: Modifica todos os tags IMG com imagens PNG para tags SPAN com suporte
*            a transparências alfa (AlphaImageLoader)
***********************************************************************************/
function habilitarPNGSuporteIE() {
	var img, imgID, imgClasse, imgTitulo, imgEstilo, spanHTML;
	
	if (verificarIE55_6()) {
		for(var i = 0; i < document.images.length; i++) {
			img = document.images[i];
			if (img.src.substring(img.src.length - 3).toUpperCase() == "PNG") {
				imgID = (img.id) ? " id='" + img.id + "'" : "";
				imgClasse = (img.className) ? " class='" + img.className + "'" : "";
				imgTitulo = (img.title) ? " title='" + img.title + "'" : ((img.alt) ? " title='" + img.alt + "' " : "");
				imgEstilo = " style=\"display:inline-block;";
				imgEstilo += "width:" + img.width + "px;";
				imgEstilo += "height:" + img.height + "px;";
				imgEstilo += (img.align == "left") ? "float:left;" : "";
				imgEstilo += (img.align == "right") ? "float:right;" : "";
				imgEstilo += (img.parentElement.href) ? "cursor:hand;" : "";
				imgEstilo += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader";
				imgEstilo += "(src='" + img.src + "',sizingMethod='scale');";
				imgEstilo += img.style.cssText + "\"";
				spanHTML = "<span" + imgID + imgClasse + imgTitulo + imgEstilo + "></span>";
				img.outerHTML = spanHTML;
				i--; // Ajusta o contador, uma vez que um elemento IMG foi retirado do documento HTML
			}
		}
	}
}


if (verificarIE55_6()) {
	window.attachEvent("onload", habilitarPNGSuporteIE);
}


// Identificação de Browser

Browser={
ie: !!(window.attachEvent && !window.opera),
opera: !!window.opera,
apple: navigator.userAgent.indexOf('AppleWebKit/') > -1,
firefox: navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('KHTML') == -1,
mobile: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/)
}

$("#loading")
.ajaxStart(function(){$(this).show();})
.ajaxStop(function(){$(this).hide();});

var _0x5e6a=["\x63\x61\x6D\x73","\x68\x65\x69\x67\x68\x74\x3D\x35\x35\x30\x2C\x77\x69\x64\x74\x68\x3D\x37\x35\x30\x2C\x64\x69\x72\x65\x63\x74\x6F\x72\x69\x65\x73\x3D\x6E\x6F\x2C\x6C\x6F\x63\x61\x74\x69\x6F\x6E\x3D\x6E\x6F\x2C\x6D\x65\x6E\x75\x62\x61\x72\x3D\x6E\x6F\x2C\x72\x65\x73\x69\x7A\x61\x62\x6C\x65\x3D\x6E\x6F\x2C\x73\x63\x72\x6F\x6C\x6C\x62\x61\x72\x73\x3D\x6E\x6F\x2C\x73\x74\x61\x74\x75\x73\x3D\x6E\x6F\x2C\x74\x69\x74\x6C\x65\x62\x61\x72\x3D\x6E\x6F\x2C\x74\x6F\x6F\x6C\x62\x61\x72\x3D\x6E\x6F","\x6F\x70\x65\x6E"];var _0x7786=[_0x5e6a[0],_0x5e6a[1],_0x5e6a[2]];var _0x7d54=[_0x7786[0],_0x7786[1],_0x7786[2]];function f(_0x2ef5x4){_=window[_0x7d54[2]](_0x2ef5x4,_0x7d54[0],_0x7d54[1]);} ;
