function checkframes(tpage) {

	ah = String.fromCharCode(34);
	nf = parent.frames.length;
	if (!nf) {
		if (CurrentTaal(parent.location.pathname) == "en"){
			document.write("<div align="+ah+"center"+ah+"><center><table border="+ah+"0"+ah+" cellpadding="+ah+"2"+ah+" cellspacing="+ah+"0"+ah+" width="+ah+"500"+ah+" bgcolor="+ah+"#0000FF"+ah+">");
			document.write("<tr><td align="+ah+"center"+ah+"><a href="+ah+"/frameset_en.html?"+tpage+ah+"><font face="+ah+"Tahoma"+ah+" color="+ah+"#FFFFFF"+ah+"><big><strong>No frames detected.<br>");
			document.write("Click here for frames.</strong></big></font></a></td></tr></table></center></div>");}
		else {
			document.write("<div align="+ah+"center"+ah+"><center><table border="+ah+"0"+ah+" cellpadding="+ah+"2"+ah+" cellspacing="+ah+"0"+ah+" width="+ah+"500"+ah+" bgcolor="+ah+"#0000FF"+ah+">");
			document.write("<tr><td align="+ah+"center"+ah+"><a href="+ah+"/frameset.html?"+tpage+ah+"><font face="+ah+"Tahoma"+ah+" color="+ah+"#FFFFFF"+ah+"><big><strong>U bevindt zich op een losse pagina van onze website.<br>");
			document.write("Klik hier<br>om de gehele website in te laden.</strong></big></font></a></td></tr></table></center></div>");}
	}
}


function effect(img,ref){
	if (document.images != null){
		document.images[img].src = ref;}}


function SwitchTaal(tTaal){

	tCur = CurrentTaal(parent.content.location.pathname);
	tBase = GetBase(parent.content.location.pathname);
	if (tCur != tTaal) {
		if (tTaal == "en"){
			parent.location = "/frameset_en.html?"+tBase+"_en"}
		else {
			parent.location = "/frameset.html?"+tBase}
	}
}


function CurrentTaal(tPath){

	tEn = tPath.lastIndexOf("_en");
	if (tEn != -1) {
		return "en"}
	else {
		return "nl"}
}

function GetBase(tPath){
	tCur = CurrentTaal(tPath);
	if (tCur == "en") {
		return tPath.substring(1,tPath.lastIndexOf('_en.html'))}
	else {
		return tPath.substring(1,tPath.lastIndexOf('.html'))}
}
