function loadLocalURL()
{    var pageURL = document.location.href
var host = window.location.host


var MyArray = pageURL.split("?")
var BaseURL = MyArray[0]
/* Any variables would be appended */
/* using the ? and would appear in */
/* MyArray[1] */
//alert('pageURL = ' + pageURL)
//alert('BaseURL = ' + BaseURL)
//alert('host = ' + host)

//alert('value1 = ' + value)
if(host == "www.pg.com" )
{
window.location.href = 'indexRedirect.jsp';
}

}

/* home Flash */

//non-flash image swap
$(function() {
	
	var homeNoFlashImages = [
		'/en_US/_images/content/home/feature_purpose/noflash_img01.jpg'
		,'/en_US/_images/content/home/feature_purpose/noflash_img02.jpg'
		,'/en_US/_images/content/home/feature_purpose/noflash_img03.jpg'
		,'/en_US/_images/content/home/feature_purpose/noflash_img04.jpg'		
		,'/en_US/_images/content/home/feature_purpose/noflash_img05.jpg'
	];
	if(!PGUtil.hasFlash) {
		var _imgTotal = homeNoFlashImages.length,
			_num = (Math.floor(Math.random()*_imgTotal)),
			$img = $('img','#lead').hide().css('visibility','visible');
			
		//check to make sure right images are being populated in case this file doesn't get updated; also no need to update source if first image is used
		if(_num !== 0 && $img.attr('src').indexOf(homeNoFlashImages[0]) !== -1) {
			$img.attr('src',homeNoFlashImages[_num]);
		} 
		$('#lead').height($img.height());
		$img.fadeIn();
	}

	if(PGUtil.isIE) {
		$('ul.links li:last-child').css({
			'border-right': '0',
			'margin-right': '0',
			'padding-right': '0'
		});
	}	
});
