// home page rotating panels
doShow = {
	panels:[
		'<img src="/img/1550nm-CATV-Transmitters.jpg" width="978" height="286" alt="CATV Transmitters" usemap="#Map" /><map name="Map" id="Map"><area shape="rect" coords="31,228,396,254" href="/fiber_optics/catv_fttx/1550nm_catv_transmitters" /></map>',
		
		'<img src="/img/56-Gbps-EmcoreConnects-Cables.jpg" width="978" height="286" border="0" usemap="#Map11" /><map name="Map11" id="Map11"><area shape="rect" coords="32,193,323,216" href="/fiber_optics/emcoreconnects" /><area shape="rect" coords="31,223,469,238" href="/news_events/release?y=2011&news=308" /></map>',

		'<img src="/img/Home-Rotation-TunableXFP.jpg" width="978" height="286" alt="TunableXFP" usemap="#cpv" /><map name="cpv"><area shape ="rect" coords ="1,128,395,150"  href ="/fiber_optics/telecom/tunable_xfp" alt="CPV" /></map>',
		'<img src="/img/Home-Rotation-Satcom.jpg" width="978" height="286" alt="Satcom" usemap="#sat" /><map name="sat"><area shape ="rect" coords ="343,163,563,179"  href ="http://emcorephotonicsystems.com/products/fiberoptic-rf-microwave-signal-transmission-rack-equipment/" alt="Satcom" /></map>',	
		
		'<img src="/img/Home-Rotation-3-FOG.jpg" width="978" height="286" alt="Satcom" usemap="#Map" /><map name="Map" id="Map"><area shape="rect" coords="275,218,576,244" href="http://emcorephotonicsystems.com/products/fiber-optic-gyro-fog/" /><area shape="rect" coords="32,21,661,61" href="http://emcorephotonicsystems.com/products/fiber-optic-gyro-fog/" /></map>',	
			
		'<a href="/solar_photovoltaics/terrestrial_concentrator_photovoltaic_arrays"><img src="/img/home_img6.jpg" width="978" height="286" alt="EMCORE completes construction of a Gen3 CPV Solar Power Generation System on the Hawaiian Island of Maui" /></a>',
		'<a href="/terrestrial_photovoltaics"><img src="/img/home_img5.jpg" width="978" height="286" alt="100,000 kW/hrs Generated with EMCORE\'s CPV System Technology" /></a>',
		/*'<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>',*/
	/*
		'<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_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:7000,
	laps:10000,
	toggle:0,
	ts:0,
	tmr:null,
	spd:500,
		
	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/10,function(){
					doShow.ts++;
					doShow.toggle = doShow.ts%doShow.panels.length;
					$('#pics').empty();
					$(doShow.panels[doShow.toggle]).appendTo('#pics');
						doShow.f_in();
				});
			}
		}// length >
	}
}

//doShow.speed/10/4

$(function(){
		$('#pics').empty();
		$(doShow.panels[0]).appendTo("#pics");
		//setTimeout("doShow.f_in()",0);
		doShow.f_in();
	});
	
