// JanB 2001-2002.
var w=window; var d=document;
var nav=navigator.appName.indexOf("Microsoft");
var referrer=top.document.referrer
var D=new Date(); 
var Exp=new Date(); Ta=(D.getYear()<1900)?1903:3; Exp.setYear(D.getYear()+Ta);
function STBinit() {
STBs=new String(); STBs=cookie("PopupMin");
Ta=new Array(); if(STBs!=null){Ta=STBs.split("&");}
STBa=new Array(); 
for(x in Ta){ Tb=new Array();Tb=Ta[x].split(":");STBa[Tb[0]]=Tb[1];}
}
function SetC(n){ if(typeof(STBa)!="object") STBinit(); d.write((STBa[n]==1)?"<tr id=\""+n+"\" style=\"display:none\">":"<tr id=\""+n+"\">"); }
function STB(n){STBs=new String();STBa[n]=(STBa[n]==1)?0:1;
Exp=new Date(); Ta=1; Ta+=(D.getYear()<1900)?1900:0; Exp.setYear(D.getYear()+Ta);
for(id in STBa){STBs+=(STBa[id]==1)?"&"+id+":1":"";}
d.cookie="PopupMin="+escape(STBs.substr(1))+"; expires="+Exp.toGMTString();
if(nav>=0){Ta=eval(n).style.display;
 switch(Ta) {
  case "block": eval(n).style.display = "none"; break;
  case "": eval(n).style.display = "none"; break;
  default : eval(n).style.display = "block"; }}
else{d.location.reload();}
}
function cookie(n){Ta=d.cookie.indexOf(n+"=");Tb=Ta+n.length+1;
if((Ta==-1)||((!Ta)&& (n != d.cookie.substring(0,n.length)))) return null;
Tc=d.cookie.indexOf(";",Tb);if(Tc==-1)Tc=d.cookie.length;
return unescape(d.cookie.substring(Tb,Tc));}
function cookie_s(n,v,e,r){ 
d.cookie=escape(n)+"="+escape(v)+"; expires="+e.toGMTString(); if(r)d.location.reload(); }

//----------------------------------------------------------------------------------------------------
// Author: karl snares
// Contact: karl@ckctenerife.com
// Website: http://www.ckctenerife.com/
// Version: 1.0 16/10/2007
// tree menu
//----------------------------------------------------------------------------------------------------

function exp_coll(ind)

{
 s = document.getElementById("sp_" + ind);
 i = document.getElementById("im_" + ind);
 //i2 = document.getElementById("im2_" + ind);
 if (s.style.display == 'none')
 {
   s.style.display = 'block';
   i.src = "http://actualproperties.com/App_Themes/images/minus.gif";
   //i2.src = "../../images/folder-open.gif";
 }
 else if (s.style.display == 'block')
 {
   s.style.display = 'none';
   i.src = "http://actualproperties.com/App_Themes/images/plus.gif";
   //i2.src = "../../images/folder.gif";
 }
}

function exp(ind)
{
 s = document.getElementById("sp_" + ind);
 i = document.getElementById("im_" + ind);
 //i2 = document.getElementById("im2_" + ind);
 if (!(s && i)) return false;
 s.style.display = 'block';
 i.src = "http://actualproperties.com/App_Themes/images/minus.gif";
 //i2.src = "../../images/folder-open.gif";
}

function coll(ind)
{
 s = document.getElementById("sp_" + ind);
 i = document.getElementById("im_" + ind);
 //i2 = document.getElementById("im2_" + ind);
 if (!(s && i)) return false;
 s.style.display = 'none';
 i.src = "http://actualproperties.com/App_Themes/images/plus.gif";
 //i2.src = "../../images/folder.gif";
}

function coll_all()
{

 coll(0);
 coll(1);
 coll(2);
 coll(3);
 coll(4);
 coll(5);
 coll(6);
 coll(7);
 coll(8);
 coll(9);
}

function exp_all()
{

 exp(0);
 exp(1);
 exp(2);
 exp(3);
 exp(4);
 exp(5);
 exp(6);
 exp(7);
 exp(8);
 exp(9);
}
function coll_show(n){
    exp(n);
}
