function updatePage(){
	var newURL;

	// Warranty move
	if ( location.hash == "#/warranty" ) {
		location.replace( 'http://www.pennzoilwarranty.com/login/?next=/' );
		return;
	}
	
	if ( location.hash == "#/interview-sweepstakes/?utm_source=bobistheoilguy&utm_medium=banner&utm_content=motoroil&utm_campaign=pz_us_tapheliohearmystory" ) {
		location.replace( 'http://www.pennzoil.com' );
		return;
	}
	
	if ( location.hash == "#/interview-sweepstakes/interview-andre" ) {
		location.replace( 'http://www.pennzoil.com' );
		return;
	}
	
	if ( location.hash == "#/interview-sweepstakes/interview-helio" ) {
		location.replace( 'http://www.pennzoil.com/' );
		return;
	}
	
	if ( location.hash == "#/interview-sweepstakes/interview-mike" ) {
		location.replace( 'http://www.pennzoil.com/' );
		return;
	}
	
	if ( location.hash == "#/interview-sweepstakes/interview-mark" ) {
		location.replace( 'http://www.pennzoil.com/' );
		return;
	}
	
	if ( location.hash == "#/interview-sweepstakes/interview-chad" ) {
		location.replace( 'http://www.pennzoil.com/' );
		return;
	}
	
	if ( location.hash == "#/interview-sweepstakes" ) {
		location.replace( 'http://www.pennzoil.com/' );
		return;
	}
	
	if ( location.hash == "#/win" ) {
		location.replace( 'http://www.pennzoil.com/' );
		return;
	}
	
	if(location.href.indexOf("#") == -1){
		if(location.pathname.length>1){
			newURL = location.protocol+"//"+location.hostname+"/#"+location.pathname+ location.search;
			location.replace(newURL);
		}
	} else {
		if (location.hash == '#/transmission-fluids-and-gear-oil/pennzoil-gearplus-sae-80w-90-gl-4-and-gl-5') {
			newURL = location.protocol+"//"+location.hostname+"/#/transmission-fluids-and-gear-oil/pennzoil-gearplus-sae-80w-90-gl-5";
			location.replace(newURL);
		}
	}
}

var analyticsURL = function (url) {
	if (url.length == 0) {
		return '/';
	}
	if (url.substring(url.length - 1) == '#') {
		url = url.substring(0, url.length - 1);
	}
	if (url.substring(url.length - 1) != '/') {
		url = url + '/';
	}
	return url;
};

