_pit_url = "penfed.entredemo.com";
_pit_url = "www.PenFedTravelPrivileges.com";

function loadHeader(elementID) {

  var _headerTag = "";

  _headerTag = _headerTag + "<div id='pit_wrapper' class='pit_base'>";
  _headerTag = _headerTag + "<div class='pit_header pit_base'>";
  _headerTag = _headerTag + "<div class='pit_header_logo pit_base'><a class='pit_logo pit_base' href='http://" + _pit_url +  "/?Obj=Home&AutoSetup=True'><img class='pit_logo_img pit_base' src='https://images.ourimagelocation.com/entre/swifttrip/0/images/skins/travelprivileges2011/1178/logo_header.jpg' border='0'></a></div>";
  _headerTag = _headerTag + "<div class='pit_header_actions pit_base'>";
  _headerTag = _headerTag + "<div class='pit_welcome_message pit_base'> <a class='home pit_base' alt='home' href='http://" + _pit_url +  "/?obj=home&AutoSetup=True'>Home</a><a class='mytrip  pit_base' alt='My Trip' href='http://secure.penfedtravelprivileges.com/do/mytrips/DisplayMyTrips?ag=21'>My Trip</a><a class='myprofile pit_base' alt='My Profile' href='https://secure.penfedtravelprivileges.com/do/members/MembersHome?ag=21'>My Profile</a><a class='logout pit_base' alt='logout' href='http://" + _pit_url +  "/?obj=logout&AutoSetup=True'>Logout</a></div>";
  _headerTag = _headerTag + "</div>";
  _headerTag = _headerTag + "<div class='pit_main-navigation pit_base'>";
  _headerTag = _headerTag + "<div class='pit_top_nav pit_base'>";
  _headerTag = _headerTag + "<ul class='pit_nav pit_base'>";
  _headerTag = _headerTag + "<li class='pit_base'> <a class='pit_base' href='http://" + _pit_url +  "/?Obj=Air&iCategoryID=909&Clear=Yes&State=reset&AutoSetup=True' >Air</a> </li>";
  _headerTag = _headerTag + "<li class='pit_base'> <a class='pit_base' href='http://" + _pit_url +  "/?Obj=HotelPrivilegesHome&iCategoryID=910&Clear=Yes&State=reset&AutoSetup=True' >Hotel</a> </li>";
  _headerTag = _headerTag + "<li class='pit_base'> <a class='pit_base' href='http://" + _pit_url +  "/?Obj=Car&iCategoryID=911&Clear=Yes&State=reset&AutoSetup=True' >Car</a> </li>";
  _headerTag = _headerTag + "<li class='pit_base'> <a class='pit_base' href='http://" + _pit_url +  "/?Obj=Cruise&iCategoryID=912&Clear=Yes&State=reset&AutoSetup=True' >Cruise</a> </li>";
  _headerTag = _headerTag + "<li class='pit_base'> <a class='pit_base' href='http://" + _pit_url +  "/?Obj=Vacations&iCategoryID=914&Clear=Yes&State=reset&AutoSetup=True' >Vacations</a> </li>";
  _headerTag = _headerTag + "<li class='pit_base'> <a class='pit_base' href='http://" + _pit_url +  "/?Obj=Rewards&iCategoryID=915&Clear=Yes&State=reset&AutoSetup=True' >Rewards</a> </li>";
  _headerTag = _headerTag + "<li class='pit_base'> <a class='pit_base' href='http://" + _pit_url +  "/?Obj=Concierge&iCategoryID=916&Clear=Yes&State=reset&AutoSetup=True' >Conceirge</a> </li>";
  _headerTag = _headerTag + "</ul>";
  _headerTag = _headerTag + "</div>";
  _headerTag = _headerTag + "</div>";
  _headerTag = _headerTag + "</div>";
  _headerTag = _headerTag + "</div>";

	try {
		elementID.innerHTML = _headerTag;
	}
	catch(e) {
	}

	return (true);	
}

function loadFooter(elementID) {
	
  var _footerTag = "";
  _footerTag = _footerTag + "<div id='pit_footer' class='pit_base'>";
  _footerTag = _footerTag + "<p class='pit_footer_text_for_issuer pit_base'> This Travel Privileges website is owned and managed by American Express<BR>";
  _footerTag = _footerTag + "and features offers from participating American Express merchants.<br>";
  _footerTag = _footerTag + "</p>";
  _footerTag = _footerTag + "<div class='pit_footer_menu pit_base'>";
  _footerTag = _footerTag + "<ul class='pit_base'>";
  _footerTag = _footerTag + "<li class='pit_menu pit_menu_1 pit_base'><a class='pit_base' href='http://" + _pit_url +  "/?Obj=FAQ&Clear=Yes&AutoSetup=True' >FAQs</a></li>";
  _footerTag = _footerTag + "<li class='pit_menu pit_menu_2 pit_base'><a class='pit_base' href='http://" + _pit_url +  "/?Obj=Terms&Clear=Yes&AutoSetup=True'>Website Rules, Regulations, Disclosures</a></li>";
  _footerTag = _footerTag + "<li class='pit_menu pit_menu_3 pit_base'><a class='pit_base' href='http://" + _pit_url +  "/?Obj=Privacy&Clear=Yes&AutoSetup=True'>Privacy Statement</a></li>";
  _footerTag = _footerTag + "<li class='pit_menu pit_menu_4 pit_base'><a class='pit_base' href='http://" + _pit_url +  "/?Obj=Terms&Clear=Yes&AutoSetup=True#trademarks' >Trademarks</a></li>";
  _footerTag = _footerTag + "</ul>";
  _footerTag = _footerTag + "</div>";
  _footerTag = _footerTag + "<p class='pit_copyright pit_base'> &reg; 2009 American Express. All rights reserved worldwide. </p>";
  _footerTag = _footerTag + "</div>";

	try {
		elementID.innerHTML = _footerTag;
	}
	catch(e) {
	}

	return (true);	
}
	
	
function redeemText(elementID) {
	
  var _redeemTag = "";
  _redeemTag = _redeemTag + "<div id='pit_redeem_text'>";
  _redeemTag = _redeemTag + "<p style='color:#666;'>Dial <b>1.866.992.2731</b> to speak with your PenFed Concierge.  Available 24 hours a day, 7 days a week.";
  _redeemTag = _redeemTag + "</p>";
  _redeemTag = _redeemTag + "</div>";

	try {
		elementID.innerHTML = _redeemTag;
	}
	catch(e) {
	}

	return (true);	
}
		
$(document).ready(function() {    
	redeemText(document.getElementById("pit-callaction"));
});
		
