function navlink(thelink){

//alert('The links on this page are temporarily being serviced.');
//return;

linkpath = "../";
//linkpath = "";

switch( thelink ){


case "home":
	location.href= "/index.asp";
	return;
case "bday":
	location.href= "/birthday.asp";
	return;
	
case "birthdayclub":
	location.href= "/birthday_club.asp";
	return;
	
case "package":
	location.href= "/birthday_packages.asp";
	return;
	
case "bookparty":
	location.href= "/book_party.asp";
	return;
	
case "pmenu":
	location.href= "/party_menu.asp";
	return;

case "schoolteam":
	location.href= "/school_team.asp";
	return;

case "schoolprogram":
	location.href= "/school_programs.asp";
	return;
case "incentive":
	location.href= "/incentive_award.asp#main";
	return;
case "fundraise":
	location.href= "/fund_raising.asp#main";
	return;
case "game":
	location.href= "/game_entertainment.asp";
	return;
case "teamprogram":
	location.href= "/team_program.asp";
	return;
case "gamedetail":
	location.href= "/game_detail.asp";
	return;
case "menu":
	location.href= "/menu_nutrition.asp";
	return;
case "nutrition":
	location.href= "/nutrition_database.asp";
	return;
case "coupons":
	location.href= "/online_coupons.asp";
	return;
case "location":
	location.href= "/locations.asp";
	return;
case "contact":
	location.href= "/contact_us.asp";
	return;
case "contact_top":
	location.href= "/contact_us.asp#top";
	return;	

case "about":
	location.href= "/about_us.asp";
	return;
case "bios":
	location.href= "/executive_bios.asp";
	return;
case "partners":
	location.href= "/corporate_partners.asp";
	return;
case "privacy":
	location.href= "/privacy_policy.asp";
	return;
case "map":
	location.href= "/site_map.asp";
	return;
case "thanks":
	location.href= "/thank_you.asp";
	return;
case "employment":
	location.href= "/employment.asp";
	return;
case "news":
	location.href= "/news.asp";
	return;
case "franchise_old":
	location.href= "/franchise_info.asp";
	return;
case "support":
	location.href= "/franchise_support.asp";
	return;
case "becoming":
	location.href= "/franchise_becoming.asp";
	return;
case "construction":
	location.href= "/franchise_construction.asp";
	return;
case "costs":
	location.href= "/franchise_costs.asp";
	return;
case "entertainment":
	location.href= "/franchise_entertainment.asp";
	return;
case "ffaq":
	location.href= "/franchise_FAQ.asp";
	return;
case "finance":
	location.href= "/franchise_finance.asp";
	return;
case "learning":
	location.href= "/franchise_learning.asp";
	return;
case "marketing":
	location.href= "/franchise_marketing.asp";
	return;
case "moreinfo":
	location.href= "/franchise_more_info.asp";
	return;
case "operations":
	location.href= "/franchise_operations.asp";
	return;
case "purchasing":
	location.href= "/franchise_purchasing.asp";
	return;
case "realestate":
	location.href= "/franchise_realestate.asp";
	return;
case "gift":
	location.href= "/gift_cards.asp";
	return;
case "commercials":
	location.href= "/commercials.asp";
	return;
case "contest":
	location.href= "/contest.asp";
	return;
case "schoollunch":
	location.href= "/school_lunch.asp#main";
	return;
case "faqs":
	location.href= "/faq.asp";
	return;
case "Ipix":
	alert("Our IPIX images are currently unavailable. Please check back later. We apologize for any inconvience.");
	//location.href= "/ipix.asp";
	return;
case "tour":	
	location.href = "/team_program.asp#tour";
	return;	
case "photo":	
	location.href = "/team_program.asp#photo";
	return;	
case "camp":	
	location.href = "/team_program.asp#camp";
	return;	
case "registration":	
	location.href = "/team_program.asp#registration";
	return;
case "sponsorship":	
	location.href = "/team_program.asp#sponsor";
	return;	
case "mvp":	
	location.href = "/team_program.asp#mvp";
	return;	
case "fund":	
	location.href = "/team_program.asp#fund";
	return;	
case "spanish":	
	location.href = "/spanish/index.asp";
	return;	
case "english":	
	location.href = "../index.asp";
	return;	
case "spa_birthday":	
	location.href = "birthday.asp";
	return;
case "spa_aboutus":	
	location.href = "about_us.asp";
	return;
case "moreInfo":	
	location.href = "more_info.asp";
	return;	
case "spa_moreInfo":	
	location.href = "more_info.asp";
	return;	
case "nutrition_info":	
	location.href = "nutrition_info.asp";
	return;		
case "allergenpdf":	
var ppp_allergen_pdf;
if((ppp_allergen_pdf)&&(!ppp_allergen_pdf.closed))
{
	ppp_allergen_pdf.close();
	ppp_allergen_pdf=
	window.open("/pdf/buffet.pdf","ppp_buffet_pdf","location=0,width=652,height=600,scrollbars=0,status=1, resizable=1,menubar=0,toolbars=0,left=10, top=10, screenX=10, screenY=10");
	ppp_allergen_pdf.focus();
	return;
}
else 
{
	ppp_allergen_pdf=
	window.open("/pdf/allergen.pdf","ppp_buffet_pdf","location=0,width=652,height=600,scrollbars=0,status=1, resizable=1,menubar=0,toolbars=0,left=10, top=10, screenX=10, screenY=10");
	ppp_allergen_pdf.focus();
	return;
}
	


case "franchise":	
var ppp_franchise;
if((ppp_franchise)&&(!ppp_franchise.closed))
{
	ppp_franchise.close();
	ppp_franchise=
	window.open("http://www.peterpiperfranchise.com","ppp_franchise","location=1,width=800,height=600,scrollbars=1,status=1,resizable=1,menubar=1,toolbars=1,left=10, top=10, screenX=10, screenY=10");
	ppp_franchise.focus();
	return;
}
else 
{
	ppp_franchise=
	window.open("http://www.peterpiperfranchise.com","ppp_franchise","location=1,width=800,height=600,scrollbars=1,status=1,resizable=1,menubar=1,toolbars=1,left=10, top=10, screenX=10, screenY=10");
	ppp_franchise.focus();
	return;
}

case "jingle_english":	
var jingle_english_window;
if((jingle_english_window)&&(!jingle_english_window.closed))
{
	jingle_english_window.close();
	jingle_english_window=
	window.open("/english_jingle.asp","jingle_english_window","location=0,width=310,height=260,scrollbars=0,status=1, resizable=1,menubar=0,toolbars=0,left=10, top=10, screenX=10, screenY=10");
	jingle_english_window.focus();
	return;
}
else 
{
	jingle_english_window=
	window.open("/english_jingle.asp","jingle_english_window","location=0,width=310,height=260,scrollbars=0,status=1, resizable=1,menubar=0,toolbars=0,left=10, top=10, screenX=10, screenY=10");
	jingle_english_window.focus();
	return;
}

case "jingle_spanish":	
var jingle_spanish_window;
if((jingle_spanish_window)&&(!jingle_spanish_window.closed))
{
	jingle_spanish_window.close();
	jingle_spanish_window=
	window.open("/spanish_jingle.asp","jingle_spanish_window","location=0,width=310,height=260,scrollbars=0,status=1, resizable=1,menubar=0,toolbars=0,left=10, top=10, screenX=10, screenY=10");
	jingle_spanish_window.focus();
	return;
}
else 
{
	jingle_spanish_window=
	window.open("/spanish_jingle.asp","jingle_spanish_window","location=0,width=310,height=260,scrollbars=0,status=1, resizable=1,menubar=0,toolbars=0,left=10, top=10, screenX=10, screenY=10");
	jingle_spanish_window.focus();
	return;
}

case "location_mex":	
var ppp_location_mex;
if((ppp_location_mex)&&(!ppp_location_mex.closed))
{
	ppp_location_mex.close();
	ppp_location_mex=
	window.open("/locations_mex.asp","ppp_location_mex","location=0,width=557,height=530,scrollbars=1,status=1, resizable=1,menubar=1,toolbars=1,left=10, top=10, screenX=10, screenY=10");
	ppp_location_mex.focus();
	return;
}
else 
{
	ppp_location_mex=
	window.open("/locations_mex.asp","ppp_location_mex","location=0,width=557,height=530,scrollbars=1,status=1, resizable=1,menubar=1,toolbars=1,left=10, top=10, screenX=10, screenY=10");
	ppp_location_mex.focus();
	return;
}	
	
case "location_usa":	
var ppp_location;
if((ppp_location)&&(!ppp_location.closed))
{
	ppp_location.close();
	ppp_location=
	window.open("http://peterpiperpizza.findlocation.com/search.aspx","ppp_location","location=0,width=557,height=530,scrollbars=1,status=1, resizable=1,menubar=1,toolbars=1,left=10, top=10, screenX=10, screenY=10");
	ppp_location.focus();
	return;
}
else 
{
	ppp_location=
	window.open("http://peterpiperpizza.findlocation.com/search.aspx","ppp_location","location=0,width=557,height=530,scrollbars=1,status=1, resizable=1,menubar=1,toolbars=1,left=10, top=10, screenX=10, screenY=10");
	ppp_location.focus();
	return;
}	
	
case "lead_capture":	
var ppp_lead_capture;
if((ppp_lead_capture)&&(!ppp_lead_capture.closed))
{
	ppp_lead_capture.close();
	ppp_lead_capture=
	window.open("http://www.fishbowl.com/clt/ptrppr/lp/join/join.asp","ppp_lead_capture","location=0,width=590,height=590,scrollbars=1,status=1, resizable=1,menubar=0,toolbars=0,left=10, top=10, screenX=10, screenY=10");
	ppp_lead_capture.focus();
	return;
}
else 
{
	ppp_lead_capture=
	window.open("http://www.fishbowl.com/clt/ptrppr/lp/join/join.asp","ppp_lead_capture","location=0,width=590,height=590,scrollbars=1,status=1, resizable=1,menubar=0,toolbars=0,left=10, top=10, screenX=10, screenY=10");
	ppp_lead_capture.focus();
	return;
}

case "lead_capture_SP":	
var ppp_lead_capture_SP;
if((ppp_lead_capture_SP)&&(!ppp_lead_capture_SP.closed))
{
	ppp_lead_capture_SP.close();
	ppp_lead_capture_SP=
	window.open("http://www.fishbowl.com/clt/ptrppr/lp/sp/join/join.asp","ppp_lead_capture_SP","location=0,width=590,height=590,scrollbars=1,status=1, resizable=1,menubar=0,toolbars=0,left=10, top=10, screenX=10, screenY=10");
	ppp_lead_capture_SP.focus();
	return;
}
else 
{
	ppp_lead_capture_SP=
	window.open("http://www.fishbowl.com/clt/ptrppr/lp/sp/join/join.asp","ppp_lead_capture_SP","location=0,width=590,height=590,scrollbars=1,status=1, resizable=1,menubar=0,toolbars=0,left=10, top=10, screenX=10, screenY=10");
	ppp_lead_capture_SP.focus();
	return;
}



case "menupdf":	
var ppp_menu_pdf;
if((ppp_menu_pdf)&&(!ppp_menu_pdf.closed))
{
	ppp_menu_pdf.close();
	ppp_menu_pdf=
	window.open("/pdf/menu.pdf","ppp_menu_pdf","location=0,width=652,height=600,scrollbars=0,status=1, resizable=1,menubar=0,toolbars=0,left=10, top=10, screenX=10, screenY=10");
	ppp_menu_pdf.focus();
	return;
}
else 
{
	ppp_menu_pdf=
	window.open("/pdf/menu.pdf","ppp_menu_pdf","location=0,width=652,height=600,scrollbars=0,status=1, resizable=1,menubar=0,toolbars=0,left=10, top=10, screenX=10, screenY=10");
	ppp_menu_pdf.focus();
	return;
}

case "buffetpdf":	
var ppp_buffet_pdf;
if((ppp_buffet_pdf)&&(!ppp_buffet_pdf.closed))
{
	ppp_buffet_pdf.close();
	ppp_buffet_pdf=
	window.open("/pdf/buffet.pdf","ppp_buffet_pdf","location=0,width=652,height=600,scrollbars=0,status=1, resizable=1,menubar=0,toolbars=0,left=10, top=10, screenX=10, screenY=10");
	ppp_buffet_pdf.focus();
	return;
}
else 
{
	ppp_buffet_pdf=
	window.open("/pdf/buffet.pdf","ppp_buffet_pdf","location=0,width=652,height=600,scrollbars=0,status=1, resizable=1,menubar=0,toolbars=0,left=10, top=10, screenX=10, screenY=10");
	ppp_buffet_pdf.focus();
	return;
}

case "nutritiondb":	
var ppp_nutrition_db;
if((ppp_nutrition_db)&&(!ppp_nutrition_db.closed))
{
	ppp_nutrition_db.close();
	ppp_nutrition_db=
	window.open("/nutrition_facts.asp","ppp_nutrition_db","location=0,width=561,height=600,scrollbars=1,status=1, resizable=1,menubar=0,toolbars=0,left=10, top=10, screenX=10, screenY=10");
	ppp_nutrition_db.focus();
	return;
}
else 
{
	ppp_nutrition_db=
	window.open("/nutrition_facts.asp","ppp_nutrition_db","location=0,width=652,height=600,scrollbars=1,status=1, resizable=1,menubar=0,toolbars=0,left=10, top=10, screenX=10, screenY=10");
	ppp_nutrition_db.focus();
	return;
}

case "g_e_ipix":	
var g_e_ipix;
if((g_e_ipix)&&(!g_e_ipix.closed))
{
	g_e_ipix.close();
	g_e_ipix=
	window.open("/quicktime/PPP_game_room.html","g_e_ipix","location=0,width=550,height=360,scrollbars=1,status=1, resizable=1,menubar=0,toolbars=0,left=10, top=10, screenX=10, screenY=10");
	g_e_ipix.focus();
	return;
}
else 
{
	g_e_ipix=
	window.open("/quicktime/PPP_game_room.html","g_e_ipix","location=0,width=550,height=360,scrollbars=1,status=1, resizable=1,menubar=0,toolbars=0,left=10, top=10, screenX=10, screenY=10");
	g_e_ipix.focus();
	return;
}

case "lob_ipix":	
var lob_ipix;
if((lob_ipix)&&(!lob_ipix.closed))
{
	lob_ipix.close();
	lob_ipix=
	window.open("/quicktime/PPP_store_interior.html","g_e_ipix","location=0,width=550,height=360,scrollbars=1,status=1, resizable=1,menubar=0,toolbars=0,left=10, top=10, screenX=10, screenY=10");
	g_e_ipix.focus();
	return;
}
else 
{
	lob_ipix=
	window.open("/quicktime/PPP_store_interior.html","g_e_ipix","location=0,width=550,height=360,scrollbars=1,status=1, resizable=1,menubar=0,toolbars=0,left=10, top=10, screenX=10, screenY=10");
	lob_ipix.focus();
	return;
}




	
default:
	
	location.href = linkpath + thelink + ".asp";
	return;
	
}



	
}

var jumpage_windowname;
function contestPopUp(){
	if((jumpage_windowname)&&(!jumpage_windowname.closed)) {
		jumpage_windowname.close();
		jumpage_windowname = window.open("poll.asp","jumpage_windowname","width=620,height=600,scrollbars=1,location=0,status=0,resizable=0,menubar=0;toolbars=0");
		jumpage_windowname.focus();
	}else{
		jumpage_windowname = window.open("poll.asp","jumpage_windowname","width=620,height=600,scrollbars=1,location=0,status=0,resizable=0,menubar=0;toolbars=0");
		jumpage_windowname.focus();
	}
}

