/* HM */

window.onload=function() {
if(document.getElementById("p1")){var p1=document.getElementById('p1');p1.onclick=function(){showPhotos(1);};}
if(document.getElementById("p2")){var p1=document.getElementById('p2');p1.onclick=function(){showPhotos(2);};}
if(document.getElementById("p3")){var p1=document.getElementById('p3');p1.onclick=function(){showPhotos(3);};}
if(document.getElementById("p4")){var p1=document.getElementById('p4');p1.onclick=function(){showPhotos(4);};}
};

function showPhotos(n) {
if(document.getElementById("showcase")){document.getElementById("showcase").style.display='block';}
document.getElementById('s1').src='/wp-content/themes/bbr/images/s/'+n+'.jpg';
}

function closePhotos(n) {
if(document.getElementById("showcase")){document.getElementById("showcase").style.display='none';}
}

/* SIFR */
var vt = { src: '/wp-content/themes/bbr/js/sifr/flash/vgr.swf' };
sIFR.activate(vt);


sIFR.replace(vt, {
  selector: 'h1',
  css: '.sIFR-root { background-color:#00109B; color: #FFFFFF; }',
  wmode: 'transparent'
});

sIFR.replace(vt, {
  selector: 'h2',
  css: '.sIFR-root { background-color:#00109B; color: #FFFFFF; }',
  wmode: 'transparent'
});

var popUpWin=0;
function popMap() {
	
var URLStr='/find';
var left='100';
var top='100';
var width='800';
var height='600';
	
if(popUpWin) {  if(!popUpWin.closed) popUpWin.close();  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}


function printBTN() {
	var pbtn='<div id="printbtn"><a href="javascript:window.print();"><img src="/wp-content/themes/bbr/images/1.gif" alt="Print" width="84" height="37" /></a></div>';
	document.write(pbtn);	
}




mc=new Array()
mc[0]='55276330624330305860522758235852352734322359323533573039';

function mc2(e) {
op='';chars='st2-n74opr.uyqz9m:0vwk_5x16hjab3igcdel8@f'; m='39525560243040';
inp=m+mc[e];for(i=0; i<inp.length; i+=2) {id=parseInt(inp.substr(i,2));op+=chars.charAt(id-23);}
window.location.href= op;
}