

//function Mover(){
//var divs = document.getElementsByTagName('div');
//for(i = 0; i <divs.length; i++)
//{if(divs[i].id.indexOf('X')!= -1 || divs[i].id.indexOf('TEST')!= -1)
//divs[i].onmouseover = divs[i].style.cursor = 'pointer';
//}
//}
//window.onload=Mover;
//divs[i].onmouseover = divs[i].style.backgroundPosition="0 -17px";
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////



//OPEN WINDOW - PICS
var pW = '';
function p(id,loc){
if (!pW.closed && pW.location) 
{pW.close();}
pW=window.open("/plymouth-1/pics/?home="+id+"&pic="+loc+"&picN=1","pW","width=790,height=525,left=0,top=0");
}


///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
//MOUSEOVER
//GET homeID & bedT from php variables/db
var N;var homeID;var bedT;
function m(iV){
//document.getElementById(iV).style.cursor = 'pointer';
//document.getElementById(iV).style.backgroundPosition="0 -17px";
document.getElementById('picS').innerHTML="<img src='pS/"+homeID+"/"+iV+"/1.JPG'>";
  
for(N=1;N<=bedT;N+=1) 
{document.getElementById('br'+N).className='BGb';} 

if(iV>0 && iV<9)
{document.getElementById('br'+iV).className='BGr';}
}


///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
//SHOW HIDE - WILL UPDATE
function fp1(){
document.getElementById('f1').className='Y';
document.getElementById('f2').className='X';
document.getElementById('f3').className='X';
}

function fp2(){
document.getElementById('f1').className='X';
document.getElementById('f2').className='Y';
document.getElementById('f3').className='X';
}

function fp3(){
document.getElementById('f1').className='X';
document.getElementById('f2').className='X';
document.getElementById('f3').className='Y';
}

///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
//DONT SHOW ANY ERRORS
//function blockError(){return true;}
//window.onerror = blockError;
