var fp_data;
var fp_curr;
var fp_count;
var dText;
var dImage;

function StartProjectRotation()
{
	dText=document.getElementById('featuredText');
	dImage=document.getElementById('featuredImage');

	fp_data=new Array();
	fp_count=0;
	fp_curr=0;

//	AddFeaturedProject('OPT','Ocean Power Technologies (OPT) is a leading renewable energy company specializing in cost-effective, advanced, and environmentally sound offshore wave power technology. Since 2004, OPT has succeeded in securing significant federal funding for its wave PowerBuoy® system in conjunction with the Navy. OPT’s PowerBuoy® system extracts the natural energy in ocean waves to create a viable uninterruptible renewable energy source for government and utility customers.','opt.png','http://www.oceanpowertechnologies.com/');

	AddFeaturedProject('Ameresco','Massachusetts-based Ameresco is an independent energy solutions company specializing in the development and execution of comprehensive energy management programs. Ameresco is a leading partner for federal agencies in undertaking energy improvement projects that lower energy bills and create real, sustained economic and operating benefits. Ameresco is an active participant in the Department of Energy\'s Super Energy Savings Performance Contracts program. Ameresco\'s efforts to enhance the energy efficiency of federal buildings, including those throughout the Capitol Region, focus on upgrades to the heating and air conditioning systems, boilers, lighting, water conservation, and adoption of clean energy technologies such as solar roof panels.','ameresco.jpg','http://www.ameresco.com/');

	AddFeaturedProject('Aquantis','Dehlsen Associates of California is a leading advanced energy technology developer with a rich history in the U.S. clean energy movement. Dehlsen Associates is developing several marine renewable technologies, including Centipod, which captures the limitless power of ocean waves, and Aquantis, an ocean tidal flow electricity generator. Founder Jim Dehlsen played a key role in the establishment and growth of the U.S. wind industry, successfully designing, developed and deploying the most widely-used wind generation turbine in the world. Dehlsen Associates is poised to build on its legacy of success with its Centipod and Aquantis generation technologies.','aquantis.jpg','http://aquantistech.com/');

	AddFeaturedProject('Verdant','Established in 2000, Verdant Power is a world leader in the design and application of marine renewable energy solutions. Simple and modular in design, Verdant Power’s patented systems employ underwater turbines to generate renewable and reliable clean energy from the natural water currents of rivers, tides and manmade channels. With the support of the Navy, Verdant’s Kinetic Hydropower System (KHPS) Turbines have secured significant funding towards the development of a renewable tidal power station. As a viable, cost-efficient renewable energy provider, Verdant’s KHPS turbines will possess the capacity to connect to an electrical-grid, providing energy to all types of customers.','verdant.png','http://www.verdantpower.com/');

	AddFeaturedProject('Columbia Power Technologies','Founded in 2005, Columbia Power Technologies (CPT) is a leader in the development and commercialization of ocean wave energy. Working in partnership with Oregon State University, CPT has developed a low cost, easily scalable and deployable modular power buoy system with the highest possible efficiency. CPT has succeeded in securing considerable federal funding for their Permanent Magnet Linear Generator Power Buoy System in conjunction with the Navy. Supplying energy to remote locations, CPT is dedicated to advancing ocean wave energy as a cost-effective and reliable renewable energy source for government and commercial use.','columbia.png','http://www.columbiapwr.com/');

	AddFeaturedProject('OREC','The Ocean Renewable Energy Coalition (OREC) is the national trade association for the marine renewable energy industry in the United States. Founded in April 2005, OREC was formed to promote the advancement and commercialization of marine renewables and provide a unified voice for the marine renewables industry. Representing more than forty members, the coalition works with industry leaders, academic scholars, and other interested NGO\'s to encourage ocean renewable technologies and raise awareness of their vast potential to help secure an affordable, reliable, environmentally friendly energy future.','orec.png','http://www.oceanrenewable.com/');

	//AddFeaturedProject('Specialized Technology Resources','Specialized Technology Resources (STR) is the original developer of ethylene vinyl acetate (EVA) encapsulant technology used in the production of solar energy materials. As the United States’ only commercial-scale manufacturer, STR has taken tremendous steps forward in producing a viable solar renewable energy source for government and commercial use. With the support of the Department of Defense, STR has secured significant federal funding for its Photovoltaic Solar Cell Encapsulant Production Center. As a leader in the development and production of solar cell encapsulant materials, STR serves a critical role in the maintenance, growth and future potential of the United State Photovoltaic Energy Market.','str.png','http://www.str-corp.com/');

	RotateProject();
};

function AddFeaturedProject(theName,theText,theImage,theURL)
{
	info=new Object();
	info['name']=theName;
	info['text']=theText;
	info['image']=theImage;
	info['url']=theURL;
	fp_data[fp_count]=info;
	fp_count++;
};

function RotateProject()
{
/*
	item=fp_data[fp_curr];
	dText.innerHTML='<b>'+item['name']+'</b><br><small>'+item['text']+'</small>';
	dImage.innerHTML='<a href="'+item['url']+'" title="'+item['url']+'" target="_blank"><img alt="'+item['name']+'" src="views/images/featured/'+item['image']+'" /></a>';
*/	
	dText.innerHTML='<b>'+fp_data[fp_curr]['name']+'</b><br><small>'+fp_data[fp_curr]['text']+'</small>';
	dImage.innerHTML='<a href="'+fp_data[fp_curr]['url']+'" title="'+fp_data[fp_curr]['url']+'" target="_blank"><img alt="'+fp_data[fp_curr]['name']+'" src="views/images/featured/'+fp_data[fp_curr]['image']+'" /></a>';
	fp_curr++;
	if(fp_curr>=fp_count)fp_curr=0;
	window.setTimeout('RotateProject()',15000);
};
