
function divToggle(theDiv,theState) {
 	if(document.getElementById) {
		swapDiv = document.getElementById(theDiv);
		swapDiv.style.display = theState;
	}
}

 
// Make the page a little transparent
function centerPopup() {
	thePage = document.getElementById('pageWrap');
	//'fadeEffect = document.getElementById('pageFade');
	thePopUp = document.getElementById('ctl00_businessCardpopup');
	
	pageWidth = document.body.clientWidth;
	pageHeight = thePage.offsetHeight;
	pageHeight += 100
	
	// For the different browsers
//	fadeEffect.style.filter="alpha(opacity=50)";
//	fadeEffect.style.opacity = .6;
//	fadeEffect.style.MozOpacity=.5;
	
//	fadeEffect.style.height = pageHeight + 'px';
	//fadeEffect.style.display = 'block';
	
	adjustedWidth = pageWidth/2 - 300;
	thePopUp.style.left = adjustedWidth + 'px';
}
 
 
// IE6 Background Hover Flicker Fix
try {
	document.execCommand('BackgroundImageCache',false,true);
	}catch(ignoreme){	
}
