function pu(n,w,wh,ht,sb,tb)
{
	var s = ['no','yes'];
	var ac = 'scrollbars=' + s[sb] + ',toolbars=' + s[tb] + ',width=' + wh + ',height=' + ht;
	hw=window.open (n,w,ac);
	hw.focus();
}

function f1(){
window.open ("pop/001.html","f1","scrollbars=no,toolbars=no,width=500,height=560");
}
function f2(){
window.open ("pop/002.html","f2","scrollbars=no,toolbars=no,width=550,height=560");
}
function f3(){
window.open ("pop/003.html","f3","scrollbars=no,toolbars=no,width=500,height=560");
}
function f4(){
window.open ("pop/004.html","f4","scrollbars=no,toolbars=no,width=500,height=560");
}
function f5(){
window.open ("pop/005.html","f5","scrollbars=no,toolbars=no,width=500,height=560");
}
function f6(){
window.open ("pop/006.html","f6","scrollbars=no,toolbars=no,width=500,height=560");
}
function f7(){
window.open ("pop/007.html","f7","scrollbars=no,toolbars=no,width=500,height=560");
}
function f8(){
window.open ("pop/008.html","f8","scrollbars=no,toolbars=no,width=500,height=560");
}
function f9(){
window.open ("pop/009.html","f9","scrollbars=no,toolbars=no,width=500,height=560");
}
function f10(){
window.open ("pop/010.html","f10","scrollbars=no,toolbars=no,width=500,height=560");
}

function m1(){

window.open ("mapa.html","m1","scrollbars=no,toolbars=no,width=660,height=583");

}
function MM_swapImgRestore() { //v3.0

  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;

}



function MM_preloadImages() { //v3.0

  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

}



function MM_findObj(n, d) { //v4.0

  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

  if(!x && document.getElementById) x=document.getElementById(n); return x;

}



function MM_swapImage() { //v3.0

  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}

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 "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();
	}
}

