// JavaScript Document

// this function governs the position of merchant exclusions text for the merchant listing page. Ariel
// currently only works for ie.
function merchantExclusions(merchantName,displayDesc) {
	var merchantName;
	var displayDesc;
	var merchantDesc = merchantName + "Desc";
	var merchantDivId = merchantName + "Div";
	var scrollTop = Math.max(document.documentElement.scrollTop, document.body.scrollTop);
	var scrollLeft = Math.max(document.documentElement.scrollLeft, document.body.scrollLeft);
	var descPos = document.getElementById(merchantDivId).getBoundingClientRect();
	
	var curLeft = descPos.left + 60 + scrollLeft;
	var curBottom = descPos.top + scrollTop;
	
	if (displayDesc == "over") {
		document.getElementById(merchantDesc).style.display='inline';
		document.getElementById(merchantDesc).style.left=curLeft;
		document.getElementById(merchantDesc).style.top=curBottom;
	} else if (displayDesc == "out") {
		document.getElementById(merchantDesc).style.display='none';
	}								
}


