var isNav, isIE;
var coll = "";
var styleObj = "";
	if( parseInt(navigator.appVersion) >= 4 ) 
	{if( navigator.appName == "Netscape" ) 
	{isNav = true;}
else {isIE = true; coll = "all."; styleObj = ".style";}
}

var ns = 0;
var ie = 0;
var cc = 0;

function andapantalla()
{if (navigator.appName == 'Netscape')
	{ns = 1;document.onClick = esAnda;}
	else 
	{ie = 1;document.onClick = esAnda;}
}

function esAnda() {
var x=0;
cc = 1;
if (ns) {x=document.layers["caballoa"].left; document.layers["caballoa"].left= (x+55);}

if (ie) {x=parseInt(document.all.caballoa.style.left); document.all["caballoa"].style.left= (x+55);}

if (x==615) {show("winner1");show("fin1");}
}

	function esAndaDos() {
var x=0;
cc = 1;
if (ns) {x=document.layers["caballob"].left; document.layers["caballob"].left= (x+55);}

if (ie) {x=parseInt(document.all.caballob.style.left); document.all["caballob"].style.left= (x+55);}

if (x==615) {show("winner2"); show("fin2");}
}


function getObject(obj) {var theObj;
    if( typeof obj == "string" )
	{theObj = eval("document." + coll + obj + styleObj);}
    else {theObj = obj;}return theObj;}

function show(obj) {
   var theObj = getObject(obj);
   if( isNav ) {theObj.visibility = "show";}
   else {theObj.visibility = "visible";}
}

function hide(obj) {var theObj = getObject(obj);
   if( isNav ) theObj.visibility = "hide";
   else theObj.visibility = "hidden";
}

function NewReload(){location.reload(); return false;} 

function hideCambiaLayers() { hide("preg0");hide("preg1"); hide("preg2");hide("preg3");hide("preg4");hide("preg5");hide("preg6");hide("preg7");hide("preg8");hide("preg9");hide("preg10");hide("preg11");hide("preg12");hide("preg13");hide("preg14");hide("preg15");hide("preg16");hide("preg17");hide("preg18");hide("preg19");hide("preg20");}

function ver(n) {hideCambiaLayers(); show("preg" + n);}
