function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion.toLowerCase();	
	this.agent=navigator.userAgent.toLowerCase();	
	this.mac=this.agent.indexOf("mac")>-1;
	this.lnx=this.agent.indexOf("konqueror")>-1;
	this.win=this.agent.indexOf("windows")>-1;
	this.unx=this.agent.indexOf("x11")>-1;
	this.so=(this.mac || this.lnx || this.win || this.unx);	
	this.dom=document.getElementById?1:0;
	this.opera5=this.agent.indexOf("opera 5")>-1;
	this.ie6=(this.ver.indexOf("msie 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie5=(this.ver.indexOf("msie 5")>-1 && this.dom && !this.opera5)?1:0;	
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=(this.ie4||this.ie5||this.ie6);		
	this.ns=this.agent.indexOf("netscape");		
	if (this.ns>-1){		
		this.ns7=(this.agent.substring(this.ns, this.agent.length).indexOf("7")>-1)?1:0;			
		this.ns6=(this.agent.substring(this.ns, this.agent.length).indexOf("6")>-1)?1:0;
	}
	this.ns4=(document.layers && !this.dom && this.agent.indexOf("netscape")>-1)?1:0;
	this.ns=(this.ns7||this.ns6||this.ns4);
	this.saf=this.agent.indexOf('safari')>-1;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.ns7 || this.opera5 || this.saf);
	return this;
}
var bw=new lib_bwcheck()

if (bw.so)
{
	if (bw.win){
		if (bw.ns) HS-=(bw.ns7)?2:(bw.ns6)?2:0;
		if (bw.ns) HP-=(bw.ns7)?2:(bw.ns6)?2:0;
		HS+=20;
		HP+=20;
	}
	if (bw.mac){
		if (bw.ie) HS-=(bw.ie5)?35:0;
		if (bw.ie) HP-=(bw.ie5)?35:0;
		if (bw.ns) HS-=(bw.ns7)?32:(bw.ns6)?34:0;
		if (bw.ns) HP-=(bw.ns7)?32:(bw.ns6)?34:0;
		if (bw.saf ) HS-=12;
		if (bw.saf ) HP-=12;
		WP-=10;
		WS-=10;
	}
}

function  size(){
	window.document.bgColor = "#" + cfondo;
	if ((ckelnorte==true && sitepage=='elnorte.com/') ||
		(ckreforma==true && sitepage=='reforma.com/') ||
		(ckmural==true && sitepage=='mural.com/') ||
		(ckpalabra==true && sitepage=='palabra.com/'))	
		window.resizeTo(WP+10,HP+36);
		else 
		window.resizeTo(WS+10,HS+36);						
		LeftPosition = (screen.width) ? (screen.width-640)/2 : 0; 
		TopPosition = (screen.height) ? (screen.height-480)/2 : 0;
		window.moveTo(LeftPosition,TopPosition);
		window.focus();
}