// home page rotating panels
doShow = {
	panels:[
		/*'<div id="cpv-2"><div id="cpv-dazia"><p><a target="_blank" href="http://www.daziaenergy.com/en/index.htm"><img src="/img/09_homepage_dazia_logo.jpg" border="0" align="right"></a>In collaboration with Dazia Energy, EMCORE Solar Power completed this 375 kW concentrating photovoltaic (CPV) installation which is online and providing power to the grid since October 2008. As deployment of other installations similar to this one continue, CPV is gaining a foothold in the multi-billion dollar solar power industry. EMCORE\'s vertical integration of solar cells, packaged receivers and solar array manufacturing is helping shape a competitive alternative to energy production.<br /><a href="/solar_photovoltaics/terrestrial_solar_cells_and_receivers">CPV CELLS & RECEIVERS</a><span class="inv-arrow-grn">&nbsp;&nbsp;</span> &nbsp; &nbsp;<a href="/solar_photovoltaics/terrestrial_concentrator_photovoltaic_arrays">CPV ARRAY TECHNOLOGY</a><span class="inv-arrow-grn">&nbsp;&nbsp;</span></p></div></div>',*/
		/*'<div id="cpv-imm"><div id="cpv-imm-links"><a href="/solar_photovoltaics/imm">EMCORE Inverted Metamorphic Solar Technology</a>&nbsp;&nbsp;<span class="inv-arrow">&nbsp;&nbsp;</span><br><div class="tenvert">&nbsp;</div><a href="http://www.rdmag.com/ShowPR~PUBCODE~014~ACCT~1400000100~ISSUE~0807~RELTYPE~R100~PRODCODE~00000000~PRODLETT~XK.html" target="_blank">R&D Magazine 2008 Top 100 Award Winner</a>&nbsp;&nbsp;<span class="inv-arrow">&nbsp;&nbsp;</span><br /></div></div>',*/
		/*'<div id="connects-panel"><div id="connects-links"><a href="/news_events/release?y=2008&news=199">READ MORE</a>&nbsp;<span class="inv-arrow-wht">&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www-03.ibm.com/press/us/en/pressrelease/24480.wss" target="_blank">IBM PRESS ROOM</a>&nbsp;<span class="inv-arrow-wht">&nbsp;&nbsp;</span><br><a href="/fiber_optics/emcoreconnects">VISIT EMCORECONNECTS.COM</a>&nbsp;<span class="inv-arrow-wht">&nbsp;&nbsp;</span></div><img src="/img/home_img4.jpg" width="978" height="286" /></div>',*/
		/*'<div id="cpv-l"></div><div id="cpv-r"><div class="all-cpv"><a href="/solar_photovoltaics/terrestrial_concentrator_photovoltaic_arrays">PRODUCT INFORMATION</a>&nbsp;<a class="inv-arrow">&nbsp;&nbsp;</a></div><div class="tenvert">&nbsp;</div><div class="inside15s"><img src="/img/home_cpv_projects.gif" width="123" height="17" border="0" alt="Emcore CPV Projects" /><br /><div class="fivevert">&nbsp;</div><a href="/news_events/release?y=2008&news=192">China: XinAo Group</a><br /><div class="fivevert">&nbsp;</div><a href="/news_events/release?y=2008&news=190">Spain: CS la Mancha</a><br /></div></div>',*/
	/*
		'<img src="/img/home_img3.jpg" width="978" height="286" usemap="#cpv-vid" /><map name="cpv-vid"><area shape="rect" coords="608, 85, 660, 138" href="/solar_photovoltaics/terrestrial_solar_cells_and_receivers" /><area shape="rect" coords="608, 145, 660, 196" href="/solar_photovoltaics" /><area shape="rect" coords="608, 200, 660, 253" href="http://www.youtube.com/watch?v=kpy6JV0uW6w" target="_blank" /></map>',
		'<img src="/img/home_img0.jpg" width="978" height="286" />',*/
		/*'<img src="/img/home_img1.jpg" width="978" height="286" />',*/
		/*'<img src="/img/home_img2.jpg" width="978" height="286" alt="EMCORE empowers the world with light" />'*/
		'<img src="/img/homepage_memoriam.jpg" width="978" height="286" usemap="#memoriam" /><map name="memoriam"><area coords="167,231,281,254" href="/memorial" target="_blank" /></map>'
	],
	speed:16000,
	laps:1,
	toggle:0,
	ts:0,
	tmr:null,
		
	f_in:function(){
		$('#pics').fadeIn((doShow.speed/10),function(){doShow.tmr = setTimeout("doShow.f_out()",doShow.speed);});
	},
	
	f_out:function(){
		if(doShow.panels.length > 1){
			if(doShow.ts >= (doShow.panels.length * doShow.laps)){
				clearTimeout(doShow.tmr);
			}else{
				$('#pics').fadeOut(doShow.speed/4,function(){
					doShow.ts++;
					doShow.toggle = doShow.ts%doShow.panels.length;
					$('#pics').empty();
					$(doShow.panels[doShow.toggle]).appendTo('#pics');
						doShow.f_in();
				});
			}
		}// length >
	}
}



$(function(){
		$('#pics').empty();
		$(doShow.panels[0]).appendTo("#pics");
		setTimeout("doShow.f_in()",3000);
	});
	