var contador=0;

function animaboton() {				
		textoboton="Buscando...";
		document.busqueda.qb.value=textoboton.substring(0,(contador%textoboton.length));
		contador=contador+1;
		window.setTimeout("animaboton();",100);
	}

var panels = new Array('panel1', 'panel2', 'panel3');
var selectedTab = null;
function showPanel(tab, name)
      {
        if (selectedTab) 
        {
          selectedTab.style.backgroundColor = '';
          selectedTab.style.paddingTop = '';
          selectedTab.style.paddingBottom = '';
        }
        selectedTab = tab;
	selectedTab.style.backgroundColor= 'white';
	selectedTab.style.color= '#666';
        for(i = 0; i < panels.length; i++)
        {
	document.getElementById(panels[i]).style.display = (name == panels[i]) ? 'block':'none';
        }
        return false;
      }

if (document.getElementById){ 
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function popswindows(website,name,width,height) {
var windowprops='width=10,height=10,scrollbars=yes,status=yes,resizable=no'
var heightspeed = 12; // vertical scrolling speed (higher = slower)
var widthspeed = 7;  // horizontal scrolling speed (higher = slower)
var leftdist = 420;    // distance to left edge of window
var topdist = 300;     // distance to top edge of window

if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {
var winwidth = width;
var winheight = height;
var sizer = window.open("","","left=" + leftdist + ",top=" + topdist +","+ windowprops);
sizewidth=100;
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed) {
sizer.moveTo((screen.availWidth/2)-(sizewidth/2),(screen.availHeight/2)-(sizeheight/2));
sizer.resizeTo(sizewidth, sizeheight);
}
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed) {
sizer.resizeTo(sizewidth, sizeheight);
sizer.moveTo((screen.availWidth/2)-(sizewidth/2),(screen.availHeight/2)-(sizeheight/2));
}
sizer.location = website;
}
else
window.open(website,'mywindow');
}



