/* home Flash */
//non-flash image swap
$(function() {
	//not applicable to C+D feature
	/*
	var homeNoFlashImages = [
		'_images/content/home/feature_innovation_nonflash_1.jpg'
		,'_images/content/home/feature_innovation_nonflash_2.jpg'
		,'_images/content/home/feature_innovation_nonflash_3.jpg'
	];	
	if(!PGUtil.hasFlash) {
		var _imgTotal = homeNoFlashImages.length;
		var _num = (Math.floor(Math.random()*_imgTotal));
		var $img = $('#lead img');
		//quick check to make sure right images are being populated in case this file doesn't get updated
		if($img.attr('src').indexOf(homeNoFlashImages[0]) === -1) {
			$img.hide().css('visibility','visible').fadeIn();
			return;
		}
		$('#lead').height($img.height());
		$img.hide().css('visibility','visible').attr('src',PGUtil.basePath + homeNoFlashImages[_num]).fadeIn();
	}
	*/
	
	//tweak for IE6 (paging does not work so randomize the panels)
	if(PGUtil.isIE6) {
		var tot = $('#innovator-stories .mf-content').length;
		var num = Math.floor(Math.random()*tot);
		$('#innovator-stories .mf-content').eq(num).show();
	}		
	
	if(PGUtil.isIE) {
		$('ul.links li:last-child').css({
			'border-right': '0',
			'margin-right': '0',
			'padding-right': '0'
		});
	}
});