
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
 


function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}


function DisplayImage(image_address)
{
  //window.open(image_address,'', 'status=1,width=600,height=475');
	
  //my_window= window.open ("","image","status=1,width=600,height=475"); 
  //my_window.document.write(image_address);
	
  if (image_address != 'empty')
  {		
    windowHandle = window.open(image_address, '', 'width=650,height=525,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no');    

    if (!windowHandle) { windowHandle.opener = self; }	
    windowHandle.focus();
  }	
}

function DisplayFrontLR(image_address)
{
  //window.open(image_address,'', 'status=1,width=600,height=475');
	
  //my_window= window.open ("","image","status=1,width=600,height=475"); 
  //my_window.document.write(image_address);
	
  if (image_address != 'empty')
  {		
    windowHandle = window.open(image_address, '', 'width=1250,height=525,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');    

    if (!windowHandle) { windowHandle.opener = self; }	
    windowHandle.focus();
  }	
}

// ----- DISPLAY TEXT-PAGES (like 'Leveringsvoorwaarden.htm') -----
function DisplayTextPage(PageAddress)
{
  if (PageAddress != 'empty')
  {		
    windowHandle = window.open(PageAddress, '', 'width=650,height=525,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no');    

    if (!windowHandle) { windowHandle.opener = self; }	
    windowHandle.focus();
  }	
}


function RunFotoOverzicht(Item)
{
  document.write("<a href='index.html'>Klik hier om de dia-presentatie te beëindigen en het foto-overzicht weer op te vragen.</a>");
}


function RunSlideShow(Item)
{
  document.write("<tr><td colspan=3><center>Klik op een foto om deze uitvergroot te kunnen bekijken.&nbsp;<a href='index02.htm'>Klik hier om de dia-presentatie te starten.</a></center></td></tr>");
}





// ----- 25.08.2007 - DISPLAY COMMENT RELEASE 03 -----

// ----- WE USE InternetExplorer -----
var MyFil=0;
if (!document.layers&&!document.all&&!document.getElementById) 
  event="Old";
function CommentInt(msgNED,msgENG,BorderColor,BoxWidth)
{
//var PrefixNED="<img src=images/info-ned.gif align=right>"
var PrefixNED=""
var Seperator="<br><hr width=75%>"
//var PrefixENG="<img src=images/info-english.gif align=right>"
//var PrefixENG=""
var Xpos=0
  document.all.HLie.style.width= BoxWidth; // set to selected BoxWidth
  document.all.HLie.innerHTML= PrefixNED + msgNED;
	if (msgENG.length>2)
	{
	  document.all.HLie.innerHTML= PrefixNED + msgNED + Seperator + PrefixENG + msgENG;
	}
// Debugging:
// alert(document.body.clientWidth + " - " + window.event.clientX + " - " + document.body.clientHeight + " - " + window.event.clientY);

	//if((document.body.clientHeight-window.event.clientY)<document.all.HLie.offsetHeight)
	//{
	  if(((document.body.clientWidth-window.event.clientX)<(document.all.BoxWidth + 33)) && ((document.body.clientHeight-window.event.clientY)<document.all.HLie.offsetHeight))
		{
		  //document.all.HLie.style.left= (document.body.clientWidth-(document.all.BoxWidth + 2));
			document.all.HLie.style.left= window.event.clientX; // pos where we mouse-clicked			
			//document.all.HLie.style.top= document.body.scrollTop + (window.event.clientY-(document.all.HLie.offsetHeight + 5));
			//document.all.HLie.style.top= document.body.scrollTop + window.event.clientY + 10;
			document.all.HLie.style.top= document.all.HLie.offsetHeight;
		}
		else
		{
		  if (window.event.clientX<220)
			{document.all.HLie.style.left=200;}
			else
			{document.all.HLie.style.left= window.event.clientX-BoxWidth;}		   
		  //document.all.HLie.style.top= document.body.scrollTop + (document.body.clientHeight-(document.all.HLie.offsetHeight + 5));
			//document.all.HLie.style.top= window.event.clientY;
			
			if (window.event.clientY>400)
			{document.all.HLie.style.top= 400 + document.body.scrollTop;}
			else		
			{document.all.HLie.style.top= window.event.clientY + document.body.scrollTop;}
		}
	//}

	document.all.HLie.filters.revealTrans.Transition= 13; //MyFil;
	document.all.HLie.filters.revealTrans.Apply();
	document.all.HLie.style.visibility="visible";
	document.all.HLie.filters.revealTrans.Play();
	MyFil++;
	window.setTimeout("window.status = ' ' ",0);
} // function hlIE(MyDis,MyStat)

function kill()
{
  if(document.all)
	{
	  document.all.HLie.filters.revealTrans.Transition= 13; //MyFil;
		document.all.HLie.filters.revealTrans.Apply();
		document.all.HLie.style.visibility= "hidden";
		document.all.HLie.filters.revealTrans.Play();
		MyFil++;
		if(MyFil==24)MyFil=0;
	} // if(document.all)
	else if(document.getElementById)
	{
	  MyEle=document.getElementById("HLnn");
		MyEle.style.visibility="hidden";
	} // else if(document.getElementById)
	else if(document.layers)
	{
	  document.HLnn.visibility= "hide";
	} // else if(document.layers)
	window.status='';
} // of function kill()

// ----- END OF 25.08.2007 - DISPLAY COMMENT RELEASE 03 -----


function Facts(url)
  {
	  window.open(url,'Left','width=650,height=525,left=50,top=50,toolbars=0,scrollbars=1,location=0,statusbars=0,menubars=0,resizable=0');
  }

	
var ua = navigator.userAgent.toLowerCase();
var divw=0;
var divh=0;

if (document.getElementById || document.all)
	document.write('<div id="imgtrailer" style="position:absolute;visibility:hidden;font-size:12px;"></div>')

function gettrailobject()
	{
	if (document.getElementById)
		return document.getElementById("imgtrailer")
	else if (document.all)
		return document.all.trailimagid
	}

function gettrailobj()
	{
	if (document.getElementById)
		return document.getElementById("imgtrailer").style
	else if (document.all)
		return document.all.trailimagid.style
	}

function truebody()
	{
	return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
	}

function hidetrail()
	{
	gettrailobject().innerHTML=" ";
	document.onmousemove='';
	gettrailobj().visibility="hidden";
	}


function trailOn(Functie,Bijzonderheden,SchermBreedte,SchermHoogte)
	{
	//if(ua.indexOf('opera') == -1 && ua.indexOf('safari') == -1)
		//{
		gettrailobj().left="-500px";
		divthw = parseInt(SchermBreedte) + 2;		

		divw = parseInt(SchermBreedte)+ 25;
		divh = parseInt(SchermHoogte)+130;

		gettrailobject().innerHTML = '<table width:'+divw+' border=0><tr><td><img src="../artwork/Clippit_LookLeft96x90.gif" border="0" width="96" height="90" align="left"></td><td class="TD_UitlegBijInvullen" valign="top"><div style="background-color: #000000; layer-background-color: #000000; border: 0pt none #; padding: 0pt; width:'+divw+'px;"><div style="background-color: #547117; layer-background-color: #547117; border: 1px solid #688E51;"><div style="padding:3px"><b>Ingave: </b>'+Functie+'<br><b>Bijzonderheden:</b><br><i>'+Bijzonderheden+'</i></div></div></div></td></tr></table>';		
		
		gettrailobj().visibility="visible";
		document.onmousemove=followmouse;
		//}
	}

function followmouse(e)
	{
	var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15
	var docheight=document.all? Math.min(truebody().scrollHeight, truebody().clientHeight) : Math.min(document.body.offsetHeight, window.innerHeight)
if(typeof e != "undefined") // e = "undefined"
	{
	if(docwidth < 15+e.pageX+divw)
		xcoord = e.pageX-divw-5;
	else
		xcoord = 15+e.pageX;
	if(docheight < 15+e.pageY+divh)
		ycoord = 15+e.pageY-Math.max(0,(divh + e.pageY - docheight - truebody().scrollTop - 30));
	else
		ycoord = 15+e.pageY;
	}
else if (typeof window.event != "undefined") // typeof window.event ="object" 
	{
	if(docwidth < 15+truebody().scrollLeft+event.clientX+divw)
		xcoord = truebody().scrollLeft-5+event.clientX-divw;
	else
		xcoord = truebody().scrollLeft+15+event.clientX;

	if(docheight < 15+truebody().scrollTop+event.clientY+divh)
		ycoord = 15+truebody().scrollTop+event.clientY-Math.max(0,(divh + event.clientY - docheight - 30));
	else 
		ycoord = truebody().scrollTop+15+event.clientY;

	}
	gettrailobj().left=xcoord+"px"
	gettrailobj().top=ycoord+"px"	
	}
	
	

