function showLogo(profile_url,eventid,hdlogo,Filename)
{
	//var hdEmailAddress = document.getElementById("hdEmailAddress").value;
	//document.getElementById("EmailAddressLayer").style.visibility = "visible";
	var success = function(t){showLogoComplete(t,eventid,hdlogo);}
	var failure = function(t){showLogoFailed(t);}
	var url = Filename;
	var pars = '&showLogo=yes'+'&hint_Chars='+profile_url+'&UniqueId='+eventid; //alert(pars);
    var myAjax = new Ajax.Request(url, {method:'post',postBody:pars, onSuccess:success, onFailure:failure});
}

function showLogoComplete(t,eventid,hdlogo)
{	
	
	var strValue = trim(t.responseText); 
	var strLogo = strValue.split('||');
	var strFadeinFlag;
	var strFadeinId = document.getElementById(hdlogo).value;
	
	//document.getElementById(eventid).style.visibility = 'hidden';
	document.getElementById(eventid).innerHTML = strLogo[0];
	document.getElementById(hdlogo).value =strLogo[1];
	
	if(strLogo[0]!="") {
	
		if(strFadeinId==strLogo[1])
			strFadeinFlag = 0;
		else
			strFadeinFlag = 1;
			
		if(strFadeinFlag==1)
			opacity(eventid+"_ID", 0, 200, 500);
	}
}

function showLogoFailed(t) {
	
}

function trim(str)
{
   return str.replace(/^\s*|\s*$/g,"");
}
