var isNav, isIE, isNav2;
var coll = "";
var coy = "";
var styleObj = "";
if (navigator.appVersion.charAt(0) == "5")
 { if (navigator.appName == "Netscape") { 
    isNav2 = true
	coy = "getElementById('"; styleObj = "').style";
   } 
}

else
{ if (navigator.appName == "Netscape") { 
    isNav = true 
	coy = "layers['";styleObj = "']"; 
   } 
else 
	{isIE = true; coll = "all['"; styleObj = "'].style";}
}


function getObject(obj) {
	var theObj;
    if( typeof obj == "string" )
	{theObj = eval("document." + coll + coy  + obj +  styleObj);}
    else {theObj = obj;}return theObj;}

function show(obj) {
   var theObj = getObject(obj);
   if( isNav2 || isNav ) {theObj.visibility = "inherit";}
   else {theObj.visibility = "inherit";}
}

function hide(obj) {
	var theObj = getObject(obj);
   if( isNav2 ) theObj.visibility = "hidden";
   else if ( isNav) theObj.visibility = "hide";
   else theObj.visibility = "hidden";
}


function hideCambiaLayers() { hide("casa1");hide("casa2");hide("casa3");hide("casa4");hide("casa5");hide("casa6");hide("fondito1");hide("fondito2");hide("fondito3");hide("fondito4");hide("fondito5");hide("fondito6");}
function hideCambiaLayers2() { hide("tur1");hide("tur2");hide("tur3");hide("tur4");hide("tur5");hide("tur6");}
		
		function ver1(n) { hideCambiaLayers(); show("fondito" + n);}
		function ver2(n) { hideCambiaLayers2(); show("tur" + n);}
		function ver(n) { hideCambiaLayers(); show("casa" + n);}
		function nover() {hideCambiaLayers();}
		function nover2() {hideCambiaLayers2();}
		


	
	




