function showAuthProfile(divObj,arrayObj,arrayIndex,action){
	pageTracker._trackPageview('/clicks/blogs/sports/authorPopUp');
	if($(divObj)){
		containerObj = document.getElementById(divObj);
		if(action == "show"){
			var showResponse = function (originalRequest) {
				if(originalRequest.responseText == 0){
					str = 'There was a problem processing your request.';
				}else{
					str = originalRequest.responseText;
				}
				containerObj.innerHTML = str+'<br /><a class="link" style="display: block; font-size: 11px; text-align: right;" href="javascript:showAuthProfile(\''+divObj+'\',\'\',\'\',\'shrink\');" style="">CLOSE</a>';
				tempTop = document.getElementById(arrayObj+arrayIndex).offsetTop;
				if(tempTop < 1){
					imgTop = 404;
				}else{
					imgTop =  parseInt(tempTop);
				}
				if(imgTop < 404) imgTop = 404;
				containerObj.style.top = imgTop+"px";
				containerObj.style.display="block";
			}
			var showProgress = function () { containerObj.innerHTML = 'loading, please wait...'; }
			var param = "auth="+arrayIndex;
			var url = publicdomainobj + "ajax/blogs_sports_auth.php";
			var myAjax = new Ajax.Request( url,{method: 'get', parameters: param, onComplete: showResponse,onLoading: showProgress});					 
		}else if(action == "shrink"){
			containerObj.style.display="none";
		}
	}
}

function showAuthProfile2(divObj,arrayObj,arrayIndex,action){
	pageTracker._trackPageview('/clicks/blogs/mansblog/authorPopUp');
	
	if($(divObj)){
		containerObj = document.getElementById(divObj);
		if(action == "show"){
			var showResponse = function (originalRequest) {
				if(originalRequest.responseText == 0){
					str = 'There was a problem processing your request.';
				}else{
					str = originalRequest.responseText;
				}
				containerObj.innerHTML = str+'<br /><a class="link" style="display: block; font-size: 11px; text-align: right;" href="javascript:showAuthProfile2(\''+divObj+'\',\'\',\'\',\'shrink\');" style="">CLOSE</a>';
				tempTop = document.getElementById(arrayObj+arrayIndex).offsetTop;
				if(tempTop < 1){
					imgTop = 404;
				}else{
					imgTop =  parseInt(tempTop);
				}
				if(imgTop < 404) imgTop = 404;
				containerObj.style.top = imgTop+"px";
				containerObj.style.display="block";
			}
			var showProgress = function () { containerObj.innerHTML = 'loading, please wait...'; }
			var param = "auth="+arrayIndex;
			var url = publicdomainobj + "ajax/blogs_sports_auth.php";
			var myAjax = new Ajax.Request( url,{method: 'get', parameters: param, onComplete: showResponse,onLoading: showProgress});					 
		}else if(action == "shrink"){
			containerObj.style.display="none";
		}
	}
	
}
