function openwinr(url,w,h){
	if(w>screen.width) w=screen.width-20;
	if(h>screen.height) h=screen.height-80;
	l=(screen.width-w)/2;
	t=(screen.height-h)/2;
	feat="width="+w+",height="+h+",top="+t+",left="+l+",statusbar=no,scrollbars=yes,menubar=no,resizable=yes";
	w1=window.open(url,'',feat);
}
function aviso(turl){
	openwinr(turl,500,450);
}

function fflasht(tsrc,w,h,version,vars,bg){
	var anchoscr=screen.width;
	var altoscr=screen.height;
	var var1="anchoscr="+anchoscr+"&altoscr="+altoscr+"&"+vars;
	document.write("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' ");
	document.write("codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+version+"' ");
	document.write("WIDTH='"+ w + "' HEIGHT='"+ h + "' id='iflash' ALIGN='center'> ");
	document.write("<param name=movie value='" + tsrc + "'> <PARAM NAME=quality VALUE=high> <PARAM NAME=menu VALUE=false> ");
	document.write("<param name='FlashVars' value='"+ var1 +"'> ");
	document.write("<param name='allowScriptAccess' value='sameDomain'>");
	document.write("<param name='wmode' VALUE='"+bg+"'> <EMBED src='" + tsrc + "' quality=high ");
	document.write("wmode="+bg+" WIDTH='"+ w + "' HEIGHT='"+ h + "' border='1' NAME='iflash' ALIGN='center' ");
	document.write("TYPE='application/x-shockwave-flash' menu='false' ");
	document.write("PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer' flashvars='" + var1 + "' allowScriptAccess='sameDomain'></EMBED></OBJECT>");
}
function fconscroll(how){
	if(how) myBody.scroll='yes';
	else myBody.scroll='no';
}

function yposition(element,y){
	document.getElementById(element).style.top=y
}

function yposition1(){
	if (window.innerHeight){ 
		//navegadores basados en mozilla 
		alto = window.innerHeight - 40;
	}
	else{ 
		if (document.body.clientHeight){ 
			//Navegadores basados en IExplorer, es que no tengo innerHeight 
			alto = document.body.clientHeight-40;
		}
		else{
			//otros navegadores 
			alto = 485;
		}
	}
	document.getElementById('pie').style.top=alto;
	setTimeout('yposition1()',500);
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}


