//
// de algemene functies op een kluitje
//
// eerst even kijken of het frame wel eromheen zit
//
pDir  = "produkt/";
pSite1 = "www.ovost.nl";
pSite2 = "ovost.nl";
pSite3 = "www.ovost.com";
pSite4 = "ovost.com";

hier = new String(top.location.pathname);
delen = new Array();
delen = hier.split("/");
delen = delen[delen.length - 1].split("\\");
pDoc = delen[delen.length - 1];

if ( top.location.protocol == "http:" ) {
	if ((top.location == self.location) || 
		 (pSite1 != top.location.host && pSite2 != top.location.host &&
		  pSite3 != top.location.host && pSite4 != top.location.host)) {
		//
		// locatie klopt niet .. even herstellen..
		//
		top.location = "http://" + pSite1 + "/index.html?page=" + pDir + pDoc;
	}
}

hier = String(location.pathname);
delen = hier.split("/");
delen = delen[delen.length - 1].split("\\");
pDoc = delen[delen.length - 1];

if (parent.menuurl != pDir + pDoc) {
	parent.menuurl=pDir + pDoc;
	parent.menulevel=parent.zoek_url(pDir + pDoc);
}

parent.laad_menu();



