// JavaScript Document

function EmbedFlash(URL, width, height, menu, quality, flash, transparency){
 //Is version nuber entered.
 if(flash == null){
  flash = "6,0,0,0"; //Replace with default version number. Default = 6,0,0,0.
 }
 
 //Checks if the menu constance is entered (correctly)
 if(menu != true && menu != false && menu != "true" && menu != "false"){
  menu = true; //Replace with default. Default = true.
 }
 
 //Checks if the quality constance is entered (correctly)
 if(quality != "high" && quality != "normal" && quality != "low"){
  quality = "high"; //Replace with default. Defautl = high.
 }
 
 //See if we can continue. 
 if(URL == null || width == null || height == null){
  //Nope, we can't.
  document.writeln("No URL, width or height entered");
 }else{
  //Add the code to the document.
  document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="' + flash + '" width="' +  width + '" height="' + height + '">');
  document.writeln('<param name="movie" value="' + URL + '" />');
  document.writeln('<param name="quality" value="' + quality + '" />');
  document.writeln('<param name="menu" value="' + menu + '" />');
  addtrans="";
  if(transparency==true)
  {
  document.writeln('<param name="wmode" value="transparent" />');
  addtrans = " wmode=\"transparent\" ";
  }
  document.writeln('<embed src="' + URL + '" quality="' + quality + '" menu="' + menu + '"' + addtrans + 'pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' +  width + '" height="' + height + '"></embed></object>');
 }
}

// HTML TOOL TIP VOOR MAATTABEL

/***********************************************
* Cool DHTML tooltip script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
var offsetxpoint=-350 //Customize x offset of tooltip
var offsetypoint=10 //Customize y offset of tooltip
var enabletip=false
var ie="";
var ns6="";
var tipobj="";

function setTooltip(){	
	ie=document.all
	ns6=document.getElementById && !document.all	

	if (ie||ns6)
		tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""
}

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

function ddrivetip(thetext, thecolor, thewidth) {

	if (thetext == 'wachtwoord') {
		thetext	= 'U kunt hier een wachtwoord naar keuze invullen.';
	} 
	else if (thetext == 'persoonlijke_gegevens') {
		thetext	= 'Uw persoonlijke gegevens zijn niet zichtbaar op het forum.';
	}
	else if (thetext == 'pakjegemak') {
		thetext	= 'U kunt hier Pakjegemak Servicepunt naar keuze invullen.';
	}	
	else if (thetext == 'gebruikersnaam') {
		thetext	= 'Uw gebruikersnaam is zichtbaar op het forum.';
	}	
	else if (thetext == 'bestelstatus') {
		thetext	= 'De volgorde van de bestelstatus is als volgt:<br/>1. Bestelling ontvangen<br />2. Betaling ontvangen<br />3. Bestelling verzonden.';
	}	
	else if (thetext == 'nieuwsbrief') {
		thetext	= 'Door dit vinkvakje aan te zetten gaat u akkoord met het ontvangen van onze nieuwsbrief.';
	}		

	if (ns6||ie){
	if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
	if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
	tipobj.innerHTML=thetext
	enabletip=true
	return false
}
}

function positiontip(e){
	if (enabletip) {
		var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
		var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
		//Find out how close the mouse is to the corner of the window
		var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
		var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20
		
		var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000
	
		//if the horizontal distance isn't enough to accomodate the width of the context menu
		if (rightedge<tipobj.offsetWidth)
			//move the horizontal position of the menu to the left by it's width
			tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobj.offsetWidth+"px"
		else if (curX<leftedge)
			tipobj.style.left="5px"
		else
			//position the horizontal position of the menu where the mouse is positioned
			tipobj.style.left=curX+offsetxpoint+"px"
	
			//same concept with the vertical position
			if (bottomedge<tipobj.offsetHeight)
				tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
			else
				tipobj.style.top=curY+offsetypoint+"px"
			tipobj.style.visibility="visible"
	}
}
function hideddrivetip(){
	if (ns6||ie) {
		enabletip=false
		tipobj.style.visibility="hidden"
		tipobj.style.left="-1000px"
		tipobj.style.backgroundColor=''
		tipobj.style.width=''
	}
}
document.onmousemove=positiontip





