/*
§ ALUIZIO MOTOS [BR/EN/ES/FR]
§ ARQ: NAVEGADOR COMPATIBILIDADES
§ ART: ADRIANO PÉRES
$ VER: v1.0
*/
var OP = (navigator.userAgent.toLowerCase().indexOf('opera') + 1 ) ? true : false;
	OP = (OP || (navigator.userAgent.toLowerCase().indexOf('opera') + 1 && !window.opera)) ? true : false;
	OP = (OP || (window.opera && !window.print)) ? true : false;
	OP = (OP || (window.opera && window.print && !document.childNodes)) ? true : false;
	OP = (OP || (window.opera && document.childNodes)) ? true : false;
var NS = (navigator.product == 'Gecko' ) ? true : false;
	NS = (NS || (document.layers && navigator.mimeTypes['*'])) ? true : false;
	NS = (NS || (navigator.product == 'Gecko' && !window.find)) ? true : false;
	NS = (NS || (navigator.product == 'Gecko' && window.find)) ? true : false;

if(OP || NS) var IE = false;
else{
	var IE = (document.all && !document.getElementById) ? true : false;
		IE = (IE || (document.getElementById && !document.compatMode)) ? true : false;
		IE = (IE || (document.getElementById && document.compatMode)) ? true : false;
}

function imports(libName){
	switch(libName){
		case 'libValidacao':
			if(IE) document.writeln("<script language='JavaScript' src='../lib/libValidacao_IE.js'></script>");
			else document.writeln("<script language='JavaScript' src='../lib/libValidacao_NS.js'></script>");
			break;
			
		case 'libEditor':
			document.writeln("<script language='JavaScript' src='../lib/libEditor.js'></script>");
			break;
	}	
}