function fontSizeUp()
{
	var curSize = parseFloat(jQuery('body').attr('curFontSize'));
	curSize += .1;
	jQuery('body').css('font-size', curSize + 'em');
	jQuery('body').attr('curFontSize', curSize);
}


function fontSizeDown()
{
	var curSize = parseFloat(jQuery('body').attr('curFontSize'));
	curSize -= .1;
	jQuery('body').css('font-size', curSize + 'em');
	jQuery('body').attr('curFontSize', curSize);
	
}

jQuery(function ()
		 {
			 jQuery('body').attr('curFontSize', '1');
			 
			 // setup rotation time for the homepage only
			 var oneRotate = jQuery('.jqRotate');
//			 alert (firstHero.size());
			 if (oneRotate.size() > 0)
			 {
				 // initilize placeholder variables
				 jQuery('#heroRotate-1').attr('index','1');
				 jQuery('#panelRotate-1').attr('index','1');

				 jQuery.timer(5000, function (timer) 
				 {
					var curIndex = parseInt(jQuery('#heroRotate-1').attr('index'));
					var nextIndex = curIndex + 1;
					if (nextIndex > 4)
					{
						nextIndex = 1;	
					}
					jQuery('#heroRotate-' + curIndex).fadeOut();
					jQuery('#heroRotate-' + nextIndex).fadeIn();
					
					jQuery('#heroRotate-1').attr('index', '' + nextIndex);					


					curIndex = parseInt(jQuery('#panelRotate-1').attr('index'));
					nextIndex = curIndex + 1;
					if (nextIndex > 4)
					{
						nextIndex = 1;	
					}
					jQuery('#panelRotate-' + curIndex).fadeOut();
					//jQuery('#imgRotate-' + curIndex).fadeOut();
					jQuery('#panelRotate-' + nextIndex).fadeIn();
					//jQuery('#imgRotate-' + nextIndex).fadeIn();
					
					jQuery('#panelRotate-1').attr('index', '' + nextIndex);					


				 });
			 }
		 });
