<!-- //
// preload home page, portfolio and showroom imagery
for (h = 0; h < 3;h++) { 
	thisImg = "hBkd"+h;
	thisImg = new Image();
	thisImg.src = "/images/bkd_home_h"+h+".jpg";
	}

for (v = 0; v < 6;v++) { 
	thisImg = "vBkd"+v;
	thisImg = new Image();
	thisImg.src = "/images/bkd_home_v"+v+".jpg";
	}

for (p = 0; p < 12; p++) {
	thisImg = "port"+p;
	thisImg = new Image();
	thisImg.src = "/portfolio/images/lg_"+p+".jpg";
	}

for (s = 0; s < 4;s++) { 
	thisImg = "showroom"+s;
	thisImg = new Image();
	thisImg.src = "/showroom/images/lg_"+s+".jpg";
	}

function navOver(id, curr) {
	if(id != curr) {
		document.getElementById(id).setAttribute('src','/resources/images/nav_'+id+'_on.gif');
		}
	}

function navOut(id, curr) {
	if(id != curr) {
		document.getElementById(id).setAttribute('src','/resources/images/nav_'+id+'_off.gif');
		}
	}
	
function thmOver(id) {
	document.getElementById(id).style.borderColor="#aa9f4e";
	}	

function thmOut(id) {
	document.getElementById(id).style.borderColor="#666666";
	}	

var num;
var prev;
var next;
var tot;

function prevPopcb() {
	// Callback function for previous button
	showPop(prev);
	}

function nextPopcb() {
	// Callback function for next button
	showPop(next);
	}

function currPop(num) {
	num = parseInt(num);
	prev = num-1;
	next = num+1;

	if(prev < 1) {
		prev = tot;
		}
	if(next > tot) {
		next = 1;
		}

	document.getElementById('popLgImg').setAttribute('src','images/lg_'+num+'.jpg');
	new Effect.Appear('popLgImg',{to: 1.0, from: 0.1, duration: 1.2});
	}

function showPop(num) {
	document.getElementById('popLg').style.display="block";
	currPop(num);
	}
	
function hidePop() {
	new Effect.Fade('popLg',{to:0.0, from: 1.0, duration: 1.2});
	}	

function prevPop() {
	new Effect.Fade('popLgImg',{to:0.1, from: 1.0, duration: 1.2, afterFinish: prevPopcb});
	}	
	
function nextPop() {
	new Effect.Fade('popLgImg',{to:0.1, from: 1.0, duration: 1.2, afterFinish: nextPopcb});
	}	

var currLtr = "a";
function showBrands(ltr) {
	document.getElementById(currLtr).style.display="none";
	new Effect.Appear(ltr,{to: 1.0, from: 0.0, duration: .8});
	currLtr = ltr;
	}	
// -->