// JavaScript Document
        var conf = 
        {
          //APIKey: '2_-w6bfc0CvCGxh2JRyq85EFfmjZu5heudfGydluE8kcG2FtiQpyGidKX-HT__x51b' //*YRSF API Key
	   		//APIKey: '2_hHM_6cS_x3qQmmQkQRo4sD1wXSI_aDD1GVmKKctqKjMnhUKiV9OAE2fsdEFpF2gA' //Chevron API Key
			APIKey: '2_gg5OYPzaFxh5ifsghMVFXKqokPs59jbthYvr2O7lj2inUqgA-iHSymieAIZakOh0' //FYS API Key
        };
		
		var thisURL = "";
        
        function onLoad()
        {
            // get user info
            gigya.services.socialize.getUserInfo(conf,{callback:renderUI});	    
            
            // register for connect status changes
            gigya.services.socialize.addEventHandlers(conf, { onConnect:renderUI, onDisconnect:renderUI}   ); 
			
	
            
        }
		
	
		thisURL = document.location.href;
		var tURL = thisURL.split("?");
		thisURL = tURL[0];
		var lastS = thisURL.lastIndexOf("/");		
		tURL = thisURL.slice(0, lastS+1);

		window.status = tURL;
		
//---------------------------------------------------------------------
// Main share item in the global footer of the site.
// Create and Publish User's Action
// This method is associated with the "btnPublishAction" click
//---------------------------------------------------------------------
        function mainShare() {
			
			closeIntroSwf();

		    // Constructing a UserAction Object
		    var actmain = new gigya.services.socialize.UserAction();

		    // Setting the default user message 
		    // (will be presented as default text in the edit box on the Share UI)
		    actmain.setUserMessage("Your comment here...");

		    // Setting the title and description 
		    // (will be presented in the preview on the Share UI)
		    actmain.setTitle("Fuel Your School");
			    
		    actmain.setDescription("Help Fuel Your School this September. When everyone fills-up with 8 gallons or more, at participating Chevron locations, Chevron will donate $1 per fill-up, up to $1 million, to support public education at schools in the cities of Alameda and Contra Costa Counties. Go to FuelYourSchool.com for more information and to submit a project.");					
            // Setting a link back to the publishing source
		    actmain.setLinkBack("http://www.fuelyourschool.com/");

		    // Adding Action Link
		    actmain.addActionLink("Learn More", 
		        "http://www.fuelyourschool.com/");

		    // Adding an image (will be presented in the preview on the Share UI)
	        var image = {
	            src: tURL+'imgs/fys-icon55x55.jpg',
	            href: 'http://www.fuelyourschool.com/',
	            type: 'image'
	        }
			actmain.addMediaItem(image);

			// Parameters for the showShareUI method, including the UserAction object
			var params = 
			{
			    userAction: actmain,  // The UserAction object enfolding the newsfeed data.			                                  
			    onError: onError,  // onError method will be summoned if an error occurs. 
			    onSendDone: onSendDone, // onError method will be summoned after 
			                        // Gigya finishes the publishing process.
    		    showEmailButton:true,
				emailBody:  "Hi there,<br><br>My message:  $userMsg$<br><br>Help Fuel Your School This Fall.<br><br>Dear Friends:<br><br>Chevron's new Fuel Your School promotion is helping support local public schools this fall. In September, when everyone fills-up with 8 gallons or more, Chevron will donate $1 per fill-up, up to a total of $1 million, to help fund eligible projects in Alameda county and Contra Costa county public schools.<br><br>Through a shared vision, Chevron is working together with DonorsChoose.org to help provide teachers with the supplies they need for their classrooms. Chevron supports the learning experience, which is designed to assist today’s students and tomorrow’s leaders, with the help of DonorsChoose.org.  DonorsChoose.org is a non-profit organization that benefits the community and makes it easy for anyone to help students in need. <br><br>Spread the word about filling up at a Chevron station in your city, in September, and inform a teacher about submitting a project request for funding. Ten teachers from ten different public schools could win an additional $25,000 cash grant for their school, in the Chevron Classroom Challenge. Innovative science, technology, engineering or math (STEM) oriented classroom projects will have a chance to win the additional $25,000 grant. Visit <a href=$URL$>http://www.fuelyourschool.com/</a> for more information about these promotions and how we can all help make them a success.", //sets the email body
				emailSubject:"Get the public schools some of the funding they need through Fuel Your School", //Sets the email subject
    		    showMoreButton:true,
				useHTML:false,
				useFBDialog:true,
				cid:"Main Share In Footer"
				
				
			};

			// Show the "Share" dialog
			gigya.services.socialize.showShareUI(conf, params);

		}
		
		// onError event handler
		function onError(event) {
		    alert('An error has occured' + ': ' + event.status + '; ' + event.statusMessage);
		}

		// onSendDone event handler. 
		// Displays in the status field, the list of providers to which the newsfeed has been 
		// successfully published.
		function onSendDone(event)
		{
		    document.getElementById('status').style.color = "green";
		    document.getElementById('status').innerHTML = 
                            'The newsfeed has been posted to: ' 
		            + event.providers;
		}

//----------------------- End Of This Share Item ---------------------------------------

//---------------------------------------------------------------------
// Teachers - Promote Fuel Your School share item.
// Create and Publish User's Action
// This method is associated with the "btnPublishAction" click
//---------------------------------------------------------------------
        function teacersPromoteShare() {

		    // Constructing a UserAction Object
		    var actteacherspromote = new gigya.services.socialize.UserAction();

		    // Setting the default user message 
		    // (will be presented as default text in the edit box on the Share UI)
		    actteacherspromote.setUserMessage("Your comment here...");

		    // Setting the title and description 
		    // (will be presented in the preview on the Share UI)
		    actteacherspromote.setTitle("Fuel Your School");
			    
		    actteacherspromote.setDescription("We need to gear up for Back to School! In September, when everyone fills-up with 8 gallons or more, Chevron will donate $1 per fill-up, up to $1 million, to help support public education in Alameda county and Contra Costa county public schools. Submit an eligible classroom project to request the funds you need. Go to FuelYourSchool.com for more information and spread the word.");					
            // Setting a link back to the publishing source
		    actteacherspromote.setLinkBack("http://www.fuelyourschool.com/");

		    // Adding Action Link
		    actteacherspromote.addActionLink("Learn More", 
		        "http://www.fuelyourschool.com/");

		    // Adding an image (will be presented in the preview on the Share UI) http://www.chevron.com/Products/fuelyourschool/share-icons/fys-icon-75x75.jpg
	        var image = {
	            src: tURL+'imgs/fys-icon55x55.jpg',
	            href: 'http://www.fuelyourschool.com/',
	            type: 'image'
	        }
			actteacherspromote.addMediaItem(image);

			// Parameters for the showShareUI method, including the UserAction object
			var params = 
			{
			    userAction: actteacherspromote,  // The UserAction object enfolding the newsfeed data.			                                  
			    onError: onError,  // onError method will be summoned if an error occurs. 
			    onSendDone: onSendDone, // onError method will be summoned after 
			                        // Gigya finishes the publishing process.
    		    showEmailButton:true,
				emailBody:  "My message:  $userMsg$<br><br>Help Fuel Your Public School This Fall.<br><br>Dear Friends:<br><br>I’m participating in Chevron’s new Fuel Your School promotion. This September, when everyone fills-up with 8 gallons or more, Chevron will donate $1 per fill-up, up to $1 million, to help fund eligible projects in Alameda county and Contra Costa county public schools.<br><br>Through a shared vision, Chevron is working together with DonorsChoose.org to help provide teachers with the supplies they need for their classrooms. Chevron supports the learning experience, which is designed to assist today’s students and tomorrow’s leaders, with the help of DonorsChoose.org. DonorsChoose.org is a non-profit organization that benefits the community and makes it easy for anyone to help students in need.<br><br>I submitted a project at http://www.FuelYourSchool.com and other teachers can too. Also, 10 teachers from 10 different public schools could earn an additional $25,000 for their school, in the Chevron Classroom Challenge.<br><br>Spread the word about filling up at a participating Chevron station in your city this September. Visit http://www.FuelYourSchool.com for more information about these promotions and how we can all help make them a success.", //sets the email body
				emailSubject:"Rev up public school funding with the Fuel Your School program", //Sets the email subject
    		    showMoreButton:true,
				useHTML:false,

				useFBDialog:true,
				cid:"Teachers - Promote Fuel Your School"
				
				
			};

			// Show the "Share" dialog
			gigya.services.socialize.showShareUI(conf, params);

		}
		
		// onError event handler
		function onError(event) {
		    alert('An error has occured' + ': ' + event.status + '; ' + event.statusMessage);
		}

		// onSendDone event handler. 
		// Displays in the status field, the list of providers to which the newsfeed has been 
		// successfully published.
		function onSendDone(event)
		{
		    document.getElementById('status').style.color = "green";
		    document.getElementById('status').innerHTML = 
                            'The newsfeed has been posted to: ' 
		            + event.providers;
		}

//----------------------- End Of This Share Item ---------------------------------------

//---------------------------------------------------------------------
// Teachers - Share The News share item.
// Create and Publish User's Action
// This method is associated with the "btnPublishAction" click
//---------------------------------------------------------------------
        function teacersNewsShare() {

		    // Constructing a UserAction Object
		    var actteachersnews = new gigya.services.socialize.UserAction();

		    // Setting the default user message 
		    // (will be presented as default text in the edit box on the Share UI)
		    actteachersnews.setUserMessage("Your comment here...");

		    // Setting the title and description 
		    // (will be presented in the preview on the Share UI)
		    actteachersnews.setTitle("Fuel Your School");
			    
		    actteachersnews.setDescription("I submitted a project at http://FuelYourSchool.com for funding from Chevron. You can help me raise the funds by filling up at a Chevron station in our city. For every fill-up of 8 gallons or more at participating Chevron locations, Chevron will donate $1 per fill-up, up to $1 million, to support public education at schools in the cities of Alameda and Contra Costa Counties.");					
            // Setting a link back to the publishing source
		    actteachersnews.setLinkBack("http://www.fuelyourschool.com/");

		    // Adding Action Link
		    actteachersnews.addActionLink("Learn More", 
		        "http://www.fuelyourschool.com/");

		    // Adding an image (will be presented in the preview on the Share UI)
	        var image = {
	            src: tURL+'imgs/fys-icon55x55.jpg',
	            href: 'http://www.fuelyourschool.com/',
	            type: 'image'
	        }
			actteachersnews.addMediaItem(image);

			// Parameters for the showShareUI method, including the UserAction object
			var params = 
			{
			    userAction: actteachersnews,  // The UserAction object enfolding the newsfeed data.			                                  
			    onError: onError,  // onError method will be summoned if an error occurs. 
			    onSendDone: onSendDone, // onError method will be summoned after 
			                        // Gigya finishes the publishing process.
    		    showEmailButton:true,
				emailBody:  "My message:  $userMsg$<br><br>Help Fuel Your Public School This Fall.<br><br>Dear Friends:<br><br>I’m participating in Chevron’s new Fuel Your School promotion. This September, when everyone fills-up with 8 gallons or more, Chevron will donate $1 per fill-up, up to $1 million, to help fund eligible projects in Alameda county and Contra Costa county public schools.<br><br>Through a shared vision, Chevron is working together with DonorsChoose.org to help provide teachers with the supplies they need for their classrooms. Chevron supports the learning experience, which is designed to assist today’s students and tomorrow’s leaders, with the help of DonorsChoose.org. DonorsChoose.org is a non-profit organization that benefits the community and makes it easy for anyone to help students in need.<br><br>I submitted a project at http://www.FuelYourSchool.com and other teachers can too. Also, 10 teachers from 10 different public schools could earn an additional $25,000 for their school, in the Chevron Classroom Challenge.<br><br>Spread the word about filling up at a participating Chevron station in your city this September. Visit http://www.FuelYourSchool.com for more information about these promotions and how we can all help make them a success.", //sets the email body
				emailSubject:"Rev up public school funding with the Fuel Your School program", //Sets the email subject
    		    showMoreButton:true,
				useHTML:false,

				useFBDialog:true,
				cid:"Teachers - Share The News"
				
				
			};

			// Show the "Share" dialog
			gigya.services.socialize.showShareUI(conf, params);

		}
		
		// onError event handler
		function onError(event) {
		    alert('An error has occured' + ': ' + event.status + '; ' + event.statusMessage);
		}

		// onSendDone event handler. 
		// Displays in the status field, the list of providers to which the newsfeed has been 
		// successfully published.
		function onSendDone(event)
		{
		    document.getElementById('status').style.color = "green";
		    document.getElementById('status').innerHTML = 
                            'The newsfeed has been posted to: ' 
		            + event.providers;
		}

//----------------------- End Of This Share Item ---------------------------------------

//---------------------------------------------------------------------
// Parents - Raise Your Hand share item.
// Create and Publish User's Action
// This method is associated with the "btnPublishAction" click
//---------------------------------------------------------------------
        function parentsRaiseHandShare() {

		    // Constructing a UserAction Object
		    var actparentsraisehand = new gigya.services.socialize.UserAction();

		    // Setting the default user message 
		    // (will be presented as default text in the edit box on the Share UI)
		    actparentsraisehand.setUserMessage("Your comment here...");

		    // Setting the title and description 
		    // (will be presented in the preview on the Share UI)
		    actparentsraisehand.setTitle("Fuel Your School");
			    
		    actparentsraisehand.setDescription("Chevron is helping teachers get school funding through DonorsChoose.org! In September, when everyone fills-up with 8 gallons or more, at participating Chevron locations, Chevron will donate $1 per fill-up, up to $1 million, to support public education at schools in the cities of Alameda and Contra Costa Counties. Go to FuelYourSchool.com for more information.");					
            // Setting a link back to the publishing source
		    actparentsraisehand.setLinkBack("http://www.fuelyourschool.com/");

		    // Adding Action Link
		    actparentsraisehand.addActionLink("Learn More", 
		        "http://www.fuelyourschool.com/");

		    // Adding an image (will be presented in the preview on the Share UI) 
	        var image = {
	            src: tURL+'imgs/fys-icon55x55.jpg',
	            href: 'http://www.fuelyourschool.com/',
	            type: 'image'
	        }
			actparentsraisehand.addMediaItem(image);

			// Parameters for the showShareUI method, including the UserAction object
			var params = 
			{
			    userAction: actparentsraisehand,  // The UserAction object enfolding the newsfeed data.			                                  
			    onError: onError,  // onError method will be summoned if an error occurs. 
			    onSendDone: onSendDone, // onError method will be summoned after 
			                        // Gigya finishes the publishing process.
    		    showEmailButton:true,
				emailBody:  "Hi there,<br><br>My message:  $userMsg$<br><br>Help Fuel Your School This Fall.<br><br>Dear Friends:<br><br>Our school needs your help in raising funds for classroom projects and Chevron’s Fuel Your School promotion is a great way for everyone to get involved. In September, when everyone fills-up with 8 gallons or more, Chevron will donate $1 per fill-up, up to $1 million, to help fund eligible projects in Alameda county and Contra Costa county public schools.<br><br>Through a shared vision, Chevron is working together with DonorsChoose.org to help provide teachers with the supplies they need for their classrooms. Chevron supports the learning experience, which is designed to assist today’s students and tomorrow’s leaders, with the help of DonorsChoose.org. DonorsChoose.org is a non-profit organization that benefits the community and makes it easy for anyone to help students in need.<br><br>Spread the word about filling up at a Chevron station in your city in September and inform a teacher about submitting a project request for funding. Ten teachers from ten different public schools could win an additional $25,000 cash grant for their school (5 public schools in Alameda county and 5 in Contra Costa county), in the Chevron Classroom Challenge™.  Innovative science, technology, engineering or math (STEM)-oriented classroom projects will have a chance to win the additional $25,000 grant.  Visit http://www.FuelYourSchool.com for more information about these promotions and how we can all help make them a success.", //sets the email body
				emailSubject:"Fuel up funding for your school with Fuel Your School", //Sets the email subject
    		    showMoreButton:true,
				useHTML:false,

				useFBDialog:true,
				cid:"Parents Raise Your Hand"
				
				
			};

			// Show the "Share" dialog
			gigya.services.socialize.showShareUI(conf, params);

		}
		
		// onError event handler
		function onError(event) {
		    alert('An error has occured' + ': ' + event.status + '; ' + event.statusMessage);
		}

		// onSendDone event handler. 
		// Displays in the status field, the list of providers to which the newsfeed has been 
		// successfully published.
		function onSendDone(event)
		{
		    document.getElementById('status').style.color = "green";
		    document.getElementById('status').innerHTML = 
                            'The newsfeed has been posted to: ' 
		            + event.providers;
		}

//----------------------- End Of This Share Item ---------------------------------------

//---------------------------------------------------------------------
// Parents - Spread The Word share item.
// Create and Publish User's Action
// This method is associated with the "btnPublishAction" click
//---------------------------------------------------------------------
        function parentsSpreadWordShare() {

		    // Constructing a UserAction Object
		    var actparentsspreadtheword= new gigya.services.socialize.UserAction();

		    // Setting the default user message 
		    // (will be presented as default text in the edit box on the Share UI)
		    actparentsspreadtheword.setUserMessage("Your comment here...");

		    // Setting the title and description 
		    // (will be presented in the preview on the Share UI)
		    actparentsspreadtheword.setTitle("Fuel Your School");
			    
		    actparentsspreadtheword.setDescription("Chevron is helping teachers get public school funding through DonorsChoose.org! In September, when everyone fills-up with 8 gallons or more, at participating Chevron locations, Chevron will donate $1 per fill-up, up to $1 million, to support public education at schools in the cities of Alameda and Contra Costa Counties.  Let's help our children's education by encouraging their teachers to submit projects at FuelYourSchool.com.");					
            // Setting a link back to the publishing source
		    actparentsspreadtheword.setLinkBack("http://www.fuelyourschool.com/");

		    // Adding Action Link
		    actparentsspreadtheword.addActionLink("Learn More", 
		        "http://www.fuelyourschool.com/");

		    // Adding an image (will be presented in the preview on the Share UI)
	        var image = {
	            src: tURL+'imgs/fys-icon55x55.jpg',
	            href: 'http://www.fuelyourschool.com/',
	            type: 'image'
	        }
			actparentsspreadtheword.addMediaItem(image);

			// Parameters for the showShareUI method, including the UserAction object
			var params = 
			{
			    userAction: actparentsspreadtheword,  // The UserAction object enfolding the newsfeed data.			                                  
			    onError: onError,  // onError method will be summoned if an error occurs. 
			    onSendDone: onSendDone, // onError method will be summoned after 
			                        // Gigya finishes the publishing process.
    		    showEmailButton:true,
				emailBody:  "Hi there,<br><br>My message:  $userMsg$<br><br>Help Fuel Your School This Fall.<br><br>Dear Friends:<br><br>Our school needs your help in raising funds for classroom projects and Chevron’s Fuel Your School promotion is a great way for everyone to get involved. In September, when everyone fills-up with 8 gallons or more, Chevron will donate $1 per fill-up, up to $1 million, to help fund eligible projects in Alameda county and Contra Costa county public schools.<br><br>Through a shared vision, Chevron is working together with DonorsChoose.org to help provide teachers with the supplies they need for their classrooms. Chevron supports the learning experience, which is designed to assist today’s students and tomorrow’s leaders, with the help of DonorsChoose.org. DonorsChoose.org is a non-profit organization that benefits the community and makes it easy for anyone to help students in need.<br><br>Spread the word about filling up at a Chevron station in your city in September and inform a teacher about submitting a project request for funding. Ten teachers from ten different public schools could win an additional $25,000 cash grant for their school (5 public schools in Alameda county and 5 in Contra Costa county), in the Chevron Classroom Challenge™.  Innovative science, technology, engineering or math (STEM)-oriented classroom projects will have a chance to win the additional $25,000 grant.  Visit http://www.FuelYourSchool.com for more information about these promotions and how we can all help make them a success.", //sets the email body
				emailSubject:"Fuel up funding for your school with Fuel Your School", //Sets the email subject
    		    showMoreButton:true,
				useHTML:false,

				useFBDialog:true,
				cid:"Parents Spread The Word"
				
				
			};

			// Show the "Share" dialog
			gigya.services.socialize.showShareUI(conf, params);

		}
		
		// onError event handler
		function onError(event) {
		    alert('An error has occured' + ': ' + event.status + '; ' + event.statusMessage);
		}

		// onSendDone event handler. 
		// Displays in the status field, the list of providers to which the newsfeed has been 
		// successfully published.
		function onSendDone(event)
		{
		    document.getElementById('status').style.color = "green";
		    document.getElementById('status').innerHTML = 
                            'The newsfeed has been posted to: ' 
		            + event.providers;
		}

//----------------------- End Of This Share Item ---------------------------------------

//---------------------------------------------------------------------
// Community - Get Started share item.
// Create and Publish User's Action
// This method is associated with the "btnPublishAction" click
//---------------------------------------------------------------------
        function communityGetstarted() {

		    // Constructing a UserAction Object
		    var actcommunitygetstarted= new gigya.services.socialize.UserAction();

		    // Setting the default user message 
		    // (will be presented as default text in the edit box on the Share UI)
		    actcommunitygetstarted.setUserMessage("Your comment here...");

		    // Setting the title and description 
		    // (will be presented in the preview on the Share UI)
		    actcommunitygetstarted.setTitle("Fuel Your School");
			    
		    actcommunitygetstarted.setDescription("Chevron is helping teachers get school funding through DonorsChoose.org! In September, when everyone fills-up with 8 gallons or more, at participating Chevron locations, Chevron will donate $1 per fill-up, up to $1 million, to support public education at schools in the cities of Alameda and Contra Costa Counties. Go to FuelYourSchool.com for more information.");					
            // Setting a link back to the publishing source
		    actcommunitygetstarted.setLinkBack("http://www.fuelyourschool.com/");

		    // Adding Action Link
		    actcommunitygetstarted.addActionLink("Learn More", 
		        "http://www.fuelyourschool.com/");

		    // Adding an image (will be presented in the preview on the Share UI)
	        var image = {
	            src: tURL+'imgs/fys-icon55x55.jpg',
	            href: 'http://www.fuelyourschool.com/',
	            type: 'image'
	        }
			actcommunitygetstarted.addMediaItem(image);

			// Parameters for the showShareUI method, including the UserAction object
			var params = 
			{
			    userAction: actcommunitygetstarted,  // The UserAction object enfolding the newsfeed data.			                                  
			    onError: onError,  // onError method will be summoned if an error occurs. 
			    onSendDone: onSendDone, // onError method will be summoned after 
			                        // Gigya finishes the publishing process.
    		    showEmailButton:true,
				emailBody:  "My message:  $userMsg$<br><br>Help Fuel Your Public School This Fall.<br><br>Dear Friends:<br><br>Chevron’s new Fuel Your School promotion is helping support local public schools this fall. In September, when everyone fills-up with 8 gallons or more, Chevron will donate $1 per fill-up, up to $1 million, to help fund eligible projects in Alameda county and Contra Costa county public schools.<br><br>Through a shared vision, Chevron is working together with DonorsChoose.org to help provide teachers with the supplies they need for their classrooms. Chevron supports the learning experience, which is designed to assist today’s students and tomorrow’s leaders, with the help of DonorsChoose.org. DonorsChoose.org is a non-profit organization that benefits the community and makes it easy for anyone to help students in need.<br><br>Tell a teacher to submit a project for funding at http://www.FuelYourSchool.com. Ten teachers from ten different public schools could win an additional $25,000 cash grant for their school (5 public schools in Alameda county and 5 in Contra Costa county), in the Chevron Classroom Challenge. Innovative science, technology, engineering or math (STEM)-oriented classroom projects  will have a chance to win the additional $25,000 grant.<br><br>Spread the word about filling up at a participating Chevron station in your city, in September, to help teachers obtain the funds they need for their projects. Visit http://www.FuelYourSchool.com/ for more information about these promotions and how we can all help make them a success.", //sets the email body
				emailSubject:"Make a difference by fueling public schools this September", //Sets the email subject
    		    showMoreButton:true,
				useHTML:false,

				useFBDialog:true,
				cid:"Parents Spread The Word"
				
				
			};

			// Show the "Share" dialog
			gigya.services.socialize.showShareUI(conf, params);

		}
		
		// onError event handler
		function onError(event) {
		    alert('An error has occured' + ': ' + event.status + '; ' + event.statusMessage);
		}

		// onSendDone event handler. 
		// Displays in the status field, the list of providers to which the newsfeed has been 
		// successfully published.
		function onSendDone(event)
		{
		    document.getElementById('status').style.color = "green";
		    document.getElementById('status').innerHTML = 
                            'The newsfeed has been posted to: ' 
		            + event.providers;
		}

//----------------------- End Of This Share Item ---------------------------------------


//---------------------------------------------------------------------
// Community - Share the News
// Create and Publish User's Action
// This method is associated with the "btnPublishAction" click
//---------------------------------------------------------------------
        function communitySharethenews() {

		    // Constructing a UserAction Object
		    var actcommunitysharethenews= new gigya.services.socialize.UserAction();

		    // Setting the default user message 
		    // (will be presented as default text in the edit box on the Share UI)
		    actcommunitysharethenews.setUserMessage("Your comment here...");

		    // Setting the title and description 
		    // (will be presented in the preview on the Share UI)
		    actcommunitysharethenews.setTitle("Fuel Your School");
			    
		    actcommunitysharethenews.setDescription("Chevron is helping teachers get public school funding through DonorsChoose.org! In September, when everyone fills-up with 8 gallons or more, at participating Chevron locations, Chevron will donate $1 per fill-up, up to $1 million, to support public education at schools in the cities of Alameda and Contra Costa Counties. Go to FuelYourSchool.com for more information.");					
            // Setting a link back to the publishing source
		    actcommunitysharethenews.setLinkBack("http://www.fuelyourschool.com/");

		    // Adding Action Link
		    actcommunitysharethenews.addActionLink("Learn More", 
		        "http://www.fuelyourschool.com/");

		    // Adding an image (will be presented in the preview on the Share UI)
	        var image = {
	            src: tURL+'imgs/fys-icon55x55.jpg',
	            href: 'http://www.fuelyourschool.com/',
	            type: 'image'
	        }
			actcommunitysharethenews.addMediaItem(image);

			// Parameters for the showShareUI method, including the UserAction object
			var params = 
			{
			    userAction: actcommunitysharethenews,  // The UserAction object enfolding the newsfeed data.			                                  
			    onError: onError,  // onError method will be summoned if an error occurs. 
			    onSendDone: onSendDone, // onError method will be summoned after 
			                        // Gigya finishes the publishing process.
    		    showEmailButton:true,
				emailBody:  "My message:  $userMsg$<br><br>Help Fuel Your Public School This Fall.<br><br>Dear Friends:<br><br>Chevron’s new Fuel Your School promotion is helping support local public schools this fall. In September, when everyone fills-up with 8 gallons or more, Chevron will donate $1 per fill-up, up to $1 million, to help fund eligible projects in Alameda county and Contra Costa county public schools.<br><br>Through a shared vision, Chevron is working together with DonorsChoose.org to help provide teachers with the supplies they need for their classrooms. Chevron supports the learning experience, which is designed to assist today’s students and tomorrow’s leaders, with the help of DonorsChoose.org. DonorsChoose.org is a non-profit organization that benefits the community and makes it easy for anyone to help students in need.<br><br>Tell a teacher to submit a project for funding at http://www.FuelYourSchool.com. Ten teachers from ten different public schools could win an additional $25,000 cash grant for their school (5 public schools in Alameda county and 5 in Contra Costa county), in the Chevron Classroom Challenge. Innovative science, technology, engineering or math (STEM)-oriented classroom projects  will have a chance to win the additional $25,000 grant.<br><br>Spread the word about filling up at a participating Chevron station in your city, in September, to help teachers obtain the funds they need for their projects. Visit http://www.FuelYourSchool.com/ for more information about these promotions and how we can all help make them a success.", //sets the email body
				emailSubject:"Make a difference by fueling public schools this September", //Sets the email subject
    		    showMoreButton:true,
				useHTML:false,

				useFBDialog:true,
				cid:"Parents Spread The Word"
				
				
			};

			// Show the "Share" dialog
			gigya.services.socialize.showShareUI(conf, params);

		}
		
		// onError event handler
		function onError(event) {
		    alert('An error has occured' + ': ' + event.status + '; ' + event.statusMessage);
		}

		// onSendDone event handler. 
		// Displays in the status field, the list of providers to which the newsfeed has been 
		// successfully published.
		function onSendDone(event)
		{
		    document.getElementById('status').style.color = "green";
		    document.getElementById('status').innerHTML = 
                            'The newsfeed has been posted to: ' 
		            + event.providers;
		}

//----------------------- End Of This Share Item ---------------------------------------



// Create and Publish User's Action
// This method is associated with the "btnPublishAction" click
        function showShareUI3() {

		    // Constructing a UserAction Object
		    var act = new gigya.services.socialize.UserAction();

		    // Setting the default user message 
		    // (will be presented as default text in the edit box on the Share UI)
		    act.setUserMessage("Your comment here...");

		    // Setting the title and description 
		    // (will be presented in the preview on the Share UI)
		    act.setTitle("Fuel Your School");
			    
		    act.setDescription("3We need to gear up for Back to School! In September, "
		        + " for every fill-up of 8 gallons or more, Chevron will donate $1, " 
		        + " up to $1 million dollars, to support public education in"
		        + " Alameda and Contra Costa county schools. "
		        + " Chevron encourages classroom project requests that "
				+ " support science, technology, engineering and math."
				+ " Go to FuelYourSchool.com for more information and submit a project.");					
            // Setting a link back to the publishing source
		    act.setLinkBack("http://www.fuelyourschool.com/");

		    // Adding Action Link
		    act.addActionLink("Learn More", 
		        "http://www.fuelyourschool.com/");

		    // Adding an image (will be presented in the preview on the Share UI)
	        var image = {
	            src: tURL+'imgs/fys-icon55x55.jpg',
	            href: 'http://www.fuelyourschool.com/',
	            type: 'image'
	        }
			act.addMediaItem(image);

			// Parameters for the showShareUI method, including the UserAction object
			var params = 
			{
			    userAction: act,  // The UserAction object enfolding the newsfeed data.			                                  
			    onError: onError,  // onError method will be summoned if an error occurs. 
			    onSendDone: onSendDone, // onError method will be summoned after 
			                        // Gigya finishes the publishing process.
    		    showEmailButton:true,
				emailBody:  "Hi there,<br><br>My message:  $userMsg$<br><br>Check out Fuel Your School: $URL$<br><br>We need to gear up for Back to School!  In September, for every fill-up of 8 gallons or more, Chevron will donate $1, up to $1 million dollars, to support public education in Alameda and Contra Costa county schools.  Chevron encourages classroom project requests  that support science, technology, engineering and math.", //sets the email body
				emailSubject:"Check out Fuel Your School", //Sets the email subject
    		    showMoreButton:true,
				useHTML:false,

				useFBDialog:true,
				cid:"share1"
				
				
			};

			// Show the "Share" dialog
			gigya.services.socialize.showShareUI(conf, params);

		}
		
		// onError event handler
		function onError(event) {
		    alert('An error has occured' + ': ' + event.status + '; ' + event.statusMessage);
		}

		// onSendDone event handler. 
		// Displays in the status field, the list of providers to which the newsfeed has been 
		// successfully published.
		function onSendDone(event)
		{
		    document.getElementById('status').style.color = "green";
		    document.getElementById('status').innerHTML = 
                            'The newsfeed has been posted to: ' 
		            + event.providers;
		}

function showShareUI2() {

		    // Constructing a UserAction Object
		    var act2 = new gigya.services.socialize.UserAction();

		    // Setting the default user message 
		    // (will be presented as default text in the edit box on the Share UI)
		    act2.setUserMessage("Your comment here...");

		    // Setting the title and description 
		    // (will be presented in the preview on the Share UI)
		    act2.setTitle("Fuel Your School");
			    
		    act2.setDescription("2We need to gear up for Back to School! In September, "
		        + " for every fill-up of 8 gallons or more, Chevron will donate $1, " 
		        + " up to $1 million dollars, to support public education in"
		        + " Alameda and Contra Costa county schools. "
		        + " Chevron encourages classroom project requests that "
				+ " support science, technology, engineering and math."
				+ " Go to FuelYourSchool.com for more information and submit a project.");					
            // Setting a link back to the publishing source
		    act2.setLinkBack("http://www.fuelyourschool.com/");

		    // Adding Action Link
		    act2.addActionLink("Learn More", 
		        "http://www.fuelyourschool.com/");

		    // Adding an image (will be presented in the preview on the Share UI)
	        var image = {
	            src: tURL+'imgs/fys-icon55x55.jpg',
	            href: 'http://www.fuelyourschool.com/',
	            type: 'image'
	        }
			act2.addMediaItem(image);

			// Parameters for the showShareUI method, including the UserAction object
			var params = 
			{
			    userAction: act2,  // The UserAction object enfolding the newsfeed data.			                                  
			    onError: onError,  // onError method will be summoned if an error occurs. 
			    onSendDone: onSendDone, // onError method will be summoned after 
			                        // Gigya finishes the publishing process.
    		    showEmailButton:true,
    		    showMoreButton:true,
				useHTML:false,

				useFBDialog:true,
				cid:"Share2"
			};

			// Show the "Share" dialog
			gigya.services.socialize.showShareUI(conf, params);

		}
		
		// onError event handler
		function onError(event) {
		    alert('An error has occured' + ': ' + event.status + '; ' + event.statusMessage);
		}

		// onSendDone event handler. 
		// Displays in the status field, the list of providers to which the newsfeed has been 
		// successfully published.
		function onSendDone(event)
		{
		    document.getElementById('status').style.color = "green";
		    document.getElementById('status').innerHTML = 
                            'The newsfeed has been posted to: ' 
		            + event.providers;
		}


