ishome=0;

// BrowserCheck Object
function BrowserCheck() 
{
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
  this.version = navigator.appVersion
	this.v = parseInt(this.version)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (this.version.indexOf('MSIE 4')>0)
	this.ie5 = (this.version.indexOf('MSIE 5')>0)
	this.ie6 = (this.version.indexOf('MSIE 6')>0)
	this.ie7 = (this.version.indexOf('MSIE 7')>0)
	this.min = (this.ns||this.ie)
	this.comp = (this.ns5||this.ie5||this.ie6)
	this.platf = navigator.platform.toUpperCase();
	this.linux = (this.platf.indexOf('LINUX')!=-1);
}
is = new BrowserCheck()

function ventana(talla,pag,nom){
  aw=screen.availWidth-10;
  switch (talla){
	case 1://aviso legal, bases...
	default:
	ancho=540;alto=500;
	xc=(aw-ancho)/2;
	carac='status=yes,scrollbars=yes,menubar=no,toolbar=yes,location=yes,directories=no,resizable=yes,copyhistory=no,width='+ancho+',height='+alto+',left='+xc+',top=0,screenX='+xc+',screenY=0';
	break;
  }
  if(!nom)nom='FINESTRA';
  eval(nom+'=window.open("'+pag+'","'+nom+'","'+carac+'")');
  setTimeout("eval("+nom+".focus())",400);
}

function trackpe(cual){
	_gaq.push(['_trackPageview', cual]);
	_gaq.push(['_trackEvent','descarga','clic','comic']);
}
function trackflash(cual){
	_gaq.push(['_trackPageview',cual]);
	_gaq.push(['_trackEvent','jugar','juego',cual]);
}
