function ChequeoVersion(){
	this.version=navigator.appVersion;
	this.agente=navigator.userAgent;
	this.dom=document.getElementById?1:0;
	this.ns6=(this.dom && parseInt(this.version) >= 5) ?1:0;
	this.opera5=this.agente.indexOf('Opera')>-1;
	if (this.opera5) this.ns6 = 0;
		this.ie5=(this.version.indexOf('MSIE 5')>-1 && this.dom && !this.opera5)?1:0;
		this.ie6=(this.version.indexOf('MSIE 6')>-1 && this.dom && !this.opera5)?1:0;
		this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
		this.ns4=(document.layers && !this.dom)?1:0;
		this.soporta=(this.ie6 || this.ie5 || this.ie4 || this.ns6);
		return this;
}
var flashMode = false;
var navegador=new ChequeoVersion()	
if (navegador.ns4){
	scrX= innerWidth;
	scrY= innerHeight;
	onresize= function()
	{
	if(scrX!= innerWidth || scrY!= innerHeight)
		history.go(0);
	}
}
function agregarFavoritos(){
	if (navegador.ie5 || navegador.ie6 || navegador.ie4)  window.external.AddFavorite("http://www.directorio.org/","Directorio Democratico Cubano");
	else alert("\n\n--------------------------------------------------------------\n\nPress Ctrl+D to add Directorio in to your Favorites\n\n--------------------------------------------------------------\n\n");
}
function SP_agregarFavoritos(){
	if (navegador.ie5 || navegador.ie6 || navegador.ie4)  window.external.AddFavorite("http://www.directorio.org/","Directorio Democratico Cubano");
	else alert("\n\n--------------------------------------------------------------\n\nPresione Ctrl+D para agregar al Directorio\n en su lista de Favoritos\n\n--------------------------------------------------------------\n\n");
}
function PopupWindo(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//=================================================
function NewWindow(mypage, myname, w, h, scroll)
{
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;

        winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'

        window.opener = this.window;

        window.open(mypage, myname, winprops);
}