function getFaceBookList(){
	var swf = swfobject.getObjectById("Application");
	swf.facebookLogin();
	generateXML();
}

function generateXML() {
	var xmlString = "<friends><friend fbid='id0' firstname='Damian' lastname='Mitchell' image='' /><friend fbid='id1' firstname='Lou' lastname='Thretheway' image='' /><friend fbid='id2' firstname='Anthony' lastname='Onumonu' image='' /></friends>"
    
	var swf = swfobject.getObjectById("Application");
	swf.facebookList(xmlString);
}

function shareOnFaceBook() {
	window.open('http://www.facebook.com/sharer.php?u=http://' + window.location.host + window.location.pathname, '_blank');
}

function shareOnTwitter(msg) {
	window.open('http://twitter.com/home?status=' + escape( msg.split( ']' )[ 0 ].replace( '"', '' ) + ' #givechrome http://bit.ly/givechrome' ), '_blank');
}

function getVars() {
	var url = window.location.search;
	var vars = url.substr( 1, url.length ).split( '&' );
	var utms = [ ];

	for ( var i = 0; i < vars.length; i++ )
	{
	  if ( vars[ i ].indexOf( 'utm_' ) === 0 )
	  {
	    utms.push( vars[ i ] );
	  }
	}

	return ( utms.length > 0 ? utms.join( '&' ) : null );
}