<!--
if (window!= top)
top.location.href=location.href

/* -------------------- rechter click -------------------------*/
function click() {
if (event.button==2)
  window.external.AddFavorite('http://www.tapu.nl','Uw Turkije');
}
document.onmousedown=click
/* ---- einde ---------------- rechter click -------------------------*/
/* -------------------- Zoom functies -------------------------*/

var zoomfactor=0.05 //Enter factor (0.05=5%)

function zoomhelper(){
 if (parseInt(whatcache.style.width)>10&&parseInt(whatcache.style.height)>10){
  whatcache.style.width=parseInt(whatcache.style.width)+parseInt(whatcache.style.width)*zoomfactor*prefix
  whatcache.style.height=parseInt(whatcache.style.height)+parseInt(whatcache.style.height)*zoomfactor*prefix
 }
}

function zoom(originalW, originalH, what, state){
 if (!document.all&&!document.getElementById)
  return
whatcache=eval("document.images."+what)
prefix=(state=="in")? 1 : -1
if (whatcache.style.width==""||state=="restore"){
whatcache.style.width=originalW
whatcache.style.height=originalH
if (state=="restore")
return
}
else{
zoomhelper()
}
beginzoom=setInterval("zoomhelper()",100)
}

function clearzoom(){
if (window.beginzoom)
clearInterval(beginzoom)
}

/* --- Einde ----------------- Zoom functies -------------------------*/
/* --------------------------- Zoek functies -------------------------*/
var NS4 = (document.layers);    // Which browser?
var IE4 = (document.all);

var win = window;    // window to search.
var n   = 0;

function findInPage(str) {

  var txt, i, found;

  if (str == "")
    return false;

  // Find next occurance of the given string on the page, wrap around to the
  // start of the page if necessary.


  if (NS4) {

    // Look for match starting at the current point. If not found, rewind
    // back to the first match.

    if (!win.find(str))
      while(win.find(str, false, true))
        n++;
    else
      n++;

    // If not found in either direction, give message.

    if (n == 0)
      alert("Niets gevonden.");
  }

  if (IE4) {
    txt = win.document.body.createTextRange();

    // Find the nth match from the top of the page.

    for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
      txt.moveStart("character", 1);
      txt.moveEnd("textedit");
    }

    // If found, mark it and scroll it into view.

    if (found) {
      txt.moveStart("character", -1);
      txt.findText(str);
      txt.select();
      txt.scrollIntoView();
      n++;
    }

    // Otherwise, start over at the top of the page and find first match.

    else {
      if (n > 0) {
        n = 0;
        findInPage(str);
      }

      // Not found anywhere, give message.

      else
        alert("Niets gevonden.");
    }
  }

  return false;
}
/*---- Einde -------------Zoek functies -------------------------------------*/
/*------------------------Status bar -----------------------------------------*/
  scrollSpeed = 25
  lineDelay   = 1500

  txt         = ""

  function scrollText(pos) {
    if (message.charAt(pos) != '^') {
      txt    = txt + message.charAt(pos)
      status = txt
      pauze  = scrollSpeed
    }
    else {
      pauze = lineDelay
      txt   = ""
      if (pos == message.length-1) pos = -1
    }
    pos++
    setTimeout("scrollText('"+pos+"')",pauze)
  }
/*------- Einde -------------Status bar --------------------------------------*/
/*-------  -------------fotoalbum --------------------------------------*/

function fotolist(){
which=document.listform.lijst.selectedIndex;
document.images.photoslider.src=photos[which]}

function backward(){
if (which>0){
window.status=''
which--
document.images.photoslider.src=photos[which]
which=document.listform.lijst.selectedIndex=which
}}

function forward(){
if (which<photos.length-1){
which++
document.images.photoslider.src=photos[which]
which=document.listform.lijst.selectedIndex=which
}
else window.status='End of gallery'}
/*------- Einde -------------foto album --------------------------------------*/

// Einde verbergen voor oude brouwsers -->


