﻿
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-10040107-35']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';

  cookie_str = document.cookie;
  cookie_str.toString();

  pos_start  = cookie_str.indexOf(name);
  pos_end    = cookie_str.indexOf('=', pos_start);

  cookie_name = cookie_str.substring(pos_start, pos_end);

  pos_start  = cookie_str.indexOf(name);
  pos_start  = cookie_str.indexOf('=', pos_start);
  pos_end    = cookie_str.indexOf(';', pos_start);
  
  if (pos_end <= 0) pos_end = cookie_str.length;
  cookie_val = cookie_str.substring(pos_start + 1, pos_end);
  if (cookie_name == name && cookie_val  == "done")
    return;

  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}


function namosw_rotate_banner()
{
  if (!document._rotateimages) {
    document._rotateimages  = new Array();
    document._rotatelinks   = new Array();
    document._rotatetargets = new Array();

    document._rotate_name = 'image2';
    document._rotate_interval = 3000;
    document._rotate_itemnum = 4;
    document._rotateimages[document._rotateimages.length] = "Foto's/RC1.jpg";
    document._rotatelinks[document._rotatelinks.length] = "http://";
    document._rotatetargets[document._rotatetargets.length] = "self";
    document._rotateimages[document._rotateimages.length] = "Foto's/Mounts.jpg";
    document._rotatelinks[document._rotatelinks.length] = "http://";
    document._rotatetargets[document._rotatetargets.length] = "self";
    document._rotateimages[document._rotateimages.length] = "Foto's/POD.jpg";
    document._rotatelinks[document._rotatelinks.length] = "http://";
    document._rotatetargets[document._rotatetargets.length] = "self";
    document._rotateimages[document._rotateimages.length] = "Foto's/Brug.jpg";
    document._rotatelinks[document._rotatelinks.length] = "http://";
    document._rotatetargets[document._rotatetargets.length] = "self";
    setInterval("namosw_rotate_banner()", document._rotate_interval);
    document._rotate_no = -1;
  }

  document._rotate_no++;
  if (document._rotate_no == document._rotateimages.length)
    document._rotate_no = 0;

  document.images[document._rotate_name].src = document._rotateimages[document._rotate_no];
}


function namosw_rotate_banner_go() 
{
  var targetstr = document._rotatetargets[document._rotate_no];
  if (targetstr == 'blank') {
    window.open(document._rotatelinks[document._rotate_no], 'win1');
  } else {
    var frameobj;
    if (targetstr == '') targetstr = 'self';
    if ((frameobj = eval(targetstr)) != null)
      frameobj.location = document._rotatelinks[document._rotate_no];
  }
}


