function Launchfire_TAFP( count ){
	
	if (parseInt(navigator.appVersion)>3) {
		 if (navigator.appName=="Netscape") {
		  winW = window.innerWidth-16;
		  winH = window.innerHeight-16;
		 }
		 if (navigator.appName.indexOf("Microsoft")!=-1) {
		  winW = document.body.offsetWidth-20;
		  winH = document.body.offsetHeight-20;
		 }
		}

	if( winW < 856 )
		return;
	
	var taf = Ext.get( 'tafpop' );
	taf.anchorTo( document, "b-b", [0,0] );
	taf.slideIn( 'b', { useDisplay: true });
}

function Launchfire_TAFH(){	
	Ext.fly( 'tafpop' ).slideOut( 'b', { useDisplay: true, remove: false });	
}

function Launchfire_TAF_Success()
{
	Ext.fly('tafpop_content').update('<b style="font-size:18px;">Thanks! An email has been sent</b>' );
	setTimeout( "Launchfire_TAFH();", 2000 );
}

function Launchfire_TAFPS(){
	var email = Ext.get('TAFP_Email' ).dom.value;
	
	if( !email )
		alert( "Please enter an email address." );
	
	Ext.Ajax.request({
		url: 'siteproxy.php',
		success: Launchfire_TAF_Success,
		failure: Launchfire_TAF_Success,
		params: { e : email, command: 'tafp_email' }
	});
}