<!--
	function chLoc(lo){
		var ol = parent.leftnavFrame.location.href + "";
		var arOl = ol.split("/");
		ol = arOl[arOl.length-1];
		if (ol!=lo){
			parent.leftnavFrame.location = lo;
		}
	}

	var loc = window.location + "";
	var arLoc = loc.split("/");
	loc = arLoc[arLoc.length-1];
	if (loc.indexOf("?")>0){loc = loc.substring(0,loc.indexOf("?"));}
	switch(loc){
		case "products.asp": chLoc("subnavhome.asp"); break;
		case "flourtortillas.asp": chLoc("subnavhome_flourtortilla.htm"); break;
		case "organic.asp": chLoc("subnavhome_organic.htm"); break;
		case "tortillachips.asp": chLoc("subnavhome_tortillachips.htm"); break;
		case "dinnerkit.asp": chLoc("subnavhome_dinnerkit.htm"); break;
		case "mexicana.asp": chLoc("subnavhome_mexicana.htm"); break;
		case "rocrolls.asp": chLoc("subnavhome_roc_rolls.htm"); break;
		case "bakerywraps.asp": chLoc("subnavhome_bakerywraps.htm"); break;
        default: 
			var nu = parent.leftnavFrame.location + "";
			if (!(nu.indexOf("subnavhome.asp")>0)){chLoc("subnavhome.asp");}
			break;
	}
// -->


	vanaf_links = 100;
	vanaf_boven = 100;
	grootste_breedte  = 500+20;//afmetingen van het grootste beeld +20
	grootste_hoogte = 768+20;  //afmetingen van het grootste beeld +20
	
	if (parseInt(navigator.appVersion.charAt(0))>=4){
	var isNN=(navigator.appName=="Netscape")?1:0;
	var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
	var optNN='scrollbars=no,width='+grootste_breedte+',height='+grootste_hoogte+',left='+vanaf_links+',top='+vanaf_boven;
	var optIE='scrollbars=no,width=150,height=100,left='+vanaf_links+',top='+vanaf_boven;
	
	function popBeeld(BeeldURL){
		var BeeldTitel = "Poco Loco";
		if (isNN){imgWin=window.open('about:blank','',optNN);}
		if (isIE){imgWin=window.open('about:blank','',optIE);}
		with (imgWin.document){
			writeln('<html><head><title>Bezig met inladen ...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
			writeln('document.onkeypress = function esc(e) {');
			writeln('if(typeof(e) == "undefined") { e=event; }');
			writeln('if (e.keyCode == 27) {');
			writeln('self.close();');
			writeln('}');
			writeln('}');
			writeln('function aanpassen_aan_beeldgrootte() {');
			writeln(' var width = document.images[0].clientWidth;');
			writeln(' var height = document.images[0].clientHeight+80;');
			writeln(' window.resizeTo(width,height);');
			writeln('}');
			//writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
			//writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
			//writeln('function aanpassen_aan_beeldgrootte(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
			//writeln('width=100-(document.body.clientWidth-document.images[0].width);');
			//writeln('height=100-(document.body.clientHeight-document.images[0].height);');
			//writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
			//writeln('window.innerWidth=document.images["BeeldNaam"].width;');writeln('window.innerHeight=document.images["BeeldNaam"].height;}}');
			writeln('function maak_titel(){document.title="'+BeeldTitel+'";}');writeln('</sc'+'ript>');
			writeln('<meta http-equiv="imagetoolbar" content="no">');
			writeln('</head><body bgcolor=000000 scroll="no" onload="aanpassen_aan_beeldgrootte();maak_titel();self.focus()" oncontextmenu="return false">');
			writeln('<img name="BeeldNaam" src="'+BeeldURL+'" style="display:block"></body></html>');
			close(); 
		}
		return false;
	}

