function load_contact_info(profile_username,contact_protocol)
{
	today = new Date();
	
	replace_content('dynmc_cntct_nfo','<img src="http://sttcmfz.firecold.com/images/icons/'+contact_protocol+'.gif"> Loading Contact Info...</span>');
	
	document.getElementById('dynmc_cntct_nfo').style.display = 'block';
	
	call_js('/load_contact_info.php?random='+today.getTime()+'&profile_username='+profile_username+'&contact_protocol='+contact_protocol+'&submit=Login');
	
	return false;
}

function display_contact_icons(profile_username,aim,steam,msn,xbox,yahoo,facebook,twitter)
{
	if(aim)
	{
		document.write(' <img src="http://sttcmfz.firecold.com/images/icons/aim.gif" style="width: 16px; height: 16px; border: none; cursor:pointer;" onclick="return load_contact_info(\''+profile_username+'\',\'aim\');" title="AOL Logon">');
	}
	
	if(steam)
	{
		document.write(' <img src="http://sttcmfz.firecold.com/images/icons/steam.gif" style="width: 16px; height: 16px; border: none; cursor:pointer;" onclick="return load_contact_info(\''+profile_username+'\',\'steam\');" title="Steam ID">');
	}
		
	if(msn)
	{
		document.write(' <img src="http://sttcmfz.firecold.com/images/icons/msn.gif" style="width: 16px; height: 16px; border: none; cursor:pointer;" onclick="return load_contact_info(\''+profile_username+'\',\'msn\');" title="Windows Live (MSN)">');
	}
		
	if(xbox)
	{
		document.write(' <img src="http://sttcmfz.firecold.com/images/icons/xbox.gif" style="width: 16px; height: 16px; border: none; cursor:pointer;" onclick="return load_contact_info(\''+profile_username+'\',\'xbox\');" title="Xbox Live ID">');
	}
		
	if(yahoo)
	{
		document.write(' <img src="http://sttcmfz.firecold.com/images/icons/yahoo.gif" style="width: 16px; height: 16px; border: none; cursor:pointer;" onclick="return load_contact_info(\''+profile_username+'\',\'yahoo\');" title="Yahoo Logon">');
	}
	
	if(facebook)
	{
		document.write(' <img src="http://sttcmfz.firecold.com/images/icons/facebook.gif" style="width: 16px; height: 16px; border: none; cursor:pointer;" onclick="return load_contact_info(\''+profile_username+'\',\'facebook\');" title="Facebook Link">');
	}
	
	if(twitter)
	{
		document.write(' <img src="http://sttcmfz.firecold.com/images/icons/twitter.gif" style="width: 16px; height: 16px; border: none; cursor:pointer;" onclick="return load_contact_info(\''+profile_username+'\',\'twitter\');" title="Twitter Link">');
	}
}

function admin_tools(profile_username)
{
	if (getCookie('mfz_username') && getCookie('mfz_password') && getCookie('mfz_status') >= 7)
	{
		makedeveloper=' ';
		if (getCookie('mfz_username') && getCookie('mfz_password') && getCookie('mfz_status') >= 8)
		{
			makedeveloper='<a href="/admin_makedeveloper.php?profile_username='+profile_username+'" title="Make Developer">Make Developer</a><br><a href="/admin_makebeta.php?profile_username='+profile_username+'" title="Make Beta Tester">Make Beta Tester</a><br>';
		}

	document.write('								<div id="pnl">\
										<div id="pnl_tp">\
											<p id="pnl_ttl">Admin Tools*</p>\
										</div>\
										<p id="pnl_menu">\
											<a href="/admin_warn.php?profile_username='+profile_username+'" title="Warn User">Warn User</a><br>\
											<a href="/admin_suspend.php?profile_username='+profile_username+'" title="Suspend User">Suspend User</a><br>'+makedeveloper+' \
										</p>\
										<img src="http://sttcmfz.firecold.com/images/pnl_btm.png">\
									</div>');
	}
}

