function videoplayerpop(sid,pid,rgroup) 
{
  rgroup = rgroup ? '&rgroup=' + rgroup : '';
  popupWin = window.open('FotoBelle-op-televisie.htm?sid=' + sid + '&pid=' + pid + rgroup, 'videoplayerpop', 'width=810,height=540,resizable=0,scrollbars=0');
  popupWin.focus();
}

mesk=new Array();mesk[10]="A";mesk[11]="B";mesk[12]="C";mesk[13]="D";mesk[14]="E";mesk[15]="F";A=10;B=11;C=12;D=13;E=14;F=15;let="ABCDEF";function mes(num){if(let.indexOf(num) != -1){return eval(num)};else{if(num < 10){return eval(num)};else{return mesk[num]}}};

function color(begin,einde,stappen,stap){
hh1=(mes(begin.charAt(0))*16)+mes(begin.charAt(1));
hh2=(mes(begin.charAt(2))*16)+mes(begin.charAt(3));
hh3=(mes(begin.charAt(4))*16)+mes(begin.charAt(5));
pp1=(mes(einde.charAt(0))*16)+mes(einde.charAt(1));
pp2=(mes(einde.charAt(2))*16)+mes(einde.charAt(3));
pp3=(mes(einde.charAt(4))*16)+mes(einde.charAt(5));

if(hh1 < pp1){ff1=hh1+Math.floor((pp1-hh1)/stappen*stap);
ff1=eval("\'"+mes(Math.floor(ff1/16))+"\'")+eval("\'"+mes(ff1-(Math.floor(ff1/16)*16))+"\'");}
;else{ff1=hh1-Math.floor((hh1-pp1)/stappen*stap);
ff1=eval("\'"+mes(Math.floor(ff1/16))+"\'")+eval("\'"+mes(ff1-(Math.floor(ff1/16)*16))+"\'");}
if(hh2 < pp2){ff2=hh2+Math.floor((pp2-hh2)/stappen*stap);
ff2=eval("\'"+mes(Math.floor(ff2/16))+"\'")+eval("\'"+mes(ff2-(Math.floor(ff2/16)*16))+"\'");}
;else{ff2=hh2-Math.floor((hh2-pp2)/stappen*stap);
ff2=eval("\'"+mes(Math.floor(ff2/16))+"\'")+eval("\'"+mes(ff2-(Math.floor(ff2/16)*16))+"\'");}
if(hh3 < pp3){ff3=hh3+Math.floor((pp3-hh3)/stappen*stap);
ff3=eval("\'"+mes(Math.floor(ff3/16))+"\'")+eval("\'"+mes(ff3-(Math.floor(ff3/16)*16))+"\'");}
;else{ff3=hh3-Math.floor((hh3-pp3)/stappen*stap);
ff3=eval("\'"+mes(Math.floor(ff3/16))+"\'")+eval("\'"+mes(ff3-(Math.floor(ff3/16)*16))+"\'");}
;return ff1+ff2+ff3}
bum=0;bum2=0;txt=new Array();txt[0]="";function kleuren(){
for(i=0;i != Math.floor(message.length/2);i++){txt[i]=color(lightcolor1,lightcolor2,Math.floor(message.length/2),i)};
for(i=Math.floor(message.length/2);i != message.length;i++){txt[i]=color(lightcolor2,lightcolor1,Math.floor(message.length/2),(i-Math.floor(message.length/2)))};
lightf1()}
function lightf1(){txt[message.length+1]="";bum2=message.length-bum;for(i=0;i != message.length;i++){if(i+bum < message.length){txt[message.length+1]=txt[message.length+1]+"<font color='#"+txt[(i+bum)]+"'>"+message.charAt(i)+"</font>"};else{txt[message.length+1]=txt[message.length+1]+"<font color='#"+txt[i-bum2]+"'>"+message.charAt(i)+"</font>"
}};if(bum != message.length){bum++;};else{bum=0};light.innerHTML=txt[message.length+1];setTimeout("lightf1()",50)}


function hidestatus()
{
window.status=''
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus

// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000

// Duration of crossfade (seconds)
var crossFadeDuration = 15

// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'inc/img/index/1.jpg'
Pic[1] = 'inc/img/index/2.jpg'
Pic[2] = 'inc/img/index/3.jpg'
Pic[3] = 'inc/img/index/4.jpg'
Pic[4] = 'inc/img/index/5.jpg'
Pic[5] = 'inc/img/index/6.jpg'
Pic[6] = 'inc/img/index/6.jpg'
Pic[7] = 'inc/img/index/5.jpg'
Pic[8] = 'inc/img/index/4.jpg'
Pic[9] = 'inc/img/index/3.jpg'
Pic[10] = 'inc/img/index/2.jpg'
Pic[11] = 'inc/img/index/1.jpg'
Pic[12] = 'inc/img/index/4.jpg'
Pic[13] = 'inc/img/index/5.jpg'
Pic[14] = 'inc/img/index/6.jpg'
Pic[15] = 'inc/img/index/2.jpg'
Pic[16] = 'inc/img/index/3.jpg'
Pic[17] = 'inc/img/index/1.jpg'
Pic[18] = 'inc/img/index/3.jpg'
Pic[19] = 'inc/img/index/6.jpg'
Pic[20] = 'inc/img/index/1.jpg'
Pic[21] = 'inc/img/index/2.jpg'
Pic[22] = 'inc/img/index/5.jpg'
Pic[23] = 'inc/img/index/4.jpg'

// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow (){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}

function runSlideShow2 (){
   if (document.all){
      document.images.SlideShow2.style.filter="blendTrans(duration=2)"
      document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow2.filters.blendTrans.Apply()
   }
   document.images.SlideShow2.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow2.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow2()', slideShowSpeed)
}

function runSlideShow3 (){
   if (document.all){
      document.images.SlideShow3.style.filter="blendTrans(duration=2)"
      document.images.SlideShow3.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow3.filters.blendTrans.Apply()
   }
   document.images.SlideShow3.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow3.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow3()', slideShowSpeed)
}

function runSlideShow4 (){
   if (document.all){
      document.images.SlideShow4.style.filter="blendTrans(duration=2)"
      document.images.SlideShow4.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow4.filters.blendTrans.Apply()
   }
   document.images.SlideShow4.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow4.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow4()', slideShowSpeed)
}

function runSlideShow5 (){
   if (document.all){
      document.images.SlideShow5.style.filter="blendTrans(duration=2)"
      document.images.SlideShow5.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow5.filters.blendTrans.Apply()
   }
   document.images.SlideShow5.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow5.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow5()', slideShowSpeed)
}

function runSlideShow6 (){
   if (document.all){
      document.images.SlideShow6.style.filter="blendTrans(duration=2)"
      document.images.SlideShow6.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow6.filters.blendTrans.Apply()
   }
   document.images.SlideShow6.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow6.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow6()', slideShowSpeed)
}

if (window.Event) // Only Netscape will have the CAPITAL E.
document.captureEvents(Event.MOUSEUP); // catch the mouse up event
 
function nocontextmenu()  // this function only applies to IE4, ignored otherwise.
{
 event.cancelBubble = true
 event.returnValue = false;
 return false;}
function norightclick(e) // This function is used by all others
{
 if (window.Event) // again, IE or NAV?
{
  if (e.which == 2 || e.which == 3)
  return false;}
 else
  if (event.button == 2 || event.button == 3)
  {
   event.cancelBubble = true
   event.returnValue = false;
   return false;}}
document.oncontextmenu = nocontextmenu;  // for IE5+
document.onmousedown = norightclick;  // for all others
