var imgPath = ""; var tipActiveObj = false; var tipObj = false; var tipOver = false; var tipTimer = false; var myWidth = 0; var myHeight = 0; var scrOfY = 0; var scrOfX = 0; function tipLib(objName) { if (objName) { eval(objName + " = this;"); this.objName = objName; this.tipLaag = "tipLayerC"; this.tipKader = "tipLayerB"; this.tipBGR = "tipLayerBGR"; this.tipSchaduw = "tipLayerS"; this.tipHTML = ""; this.tipId = ""; this.error = new Array; this.pos1 = "top"; this.pos2 = "left"; this.posPerc = 25; this.fontColor = "333333"; this.width = 256; this.minWidth = 0; this.height = -1; this.minHeight = 0; this.borderSize = 1; this.borderColor = "000000"; this.borderOpacity = 10; this.backgroundColor = "fdfeb2"; this.backgroundOpacity = 100; this.shadowX = 2; this.shadowY = 1; this.shadowSize = 1; this.shadowColor = "000000"; this.shadowOpacity = 10; this.shadowBlur = true; this.timerIn = 10; this.timerOut = 250; this.tipPaddingTop = 2; this.tipPaddingRight = 4; this.tipPaddingBottom = 3; this.tipPaddingLeft = 4; this.fontSize = 11; this.screenX = -1; this.screenY = -1; this.closeBool = false; this.alwaysUpdate = false; this.custom = 0; this.frameImages = new Array(); this.bgrImages = new Array(); this.shadowImages = new Array(); this.arrowImages = new Array(); this.customFrameSize = new Array(0, 0, 0, 0); this.customMarginSize = new Array(); } }
tipLib.prototype.getError = getError; tipLib.prototype.tipPosition = tipPosition; tipLib.prototype.tipMaxWidth = tipMaxWidth; tipLib.prototype.tipMinWidth = tipMinWidth; tipLib.prototype.tipHeight = tipHeight; tipLib.prototype.tipBorder = tipBorder; tipLib.prototype.tipBackground = tipBackground; tipLib.prototype.tipShadow = tipShadow; tipLib.prototype.tipColor = tipColor; tipLib.prototype.tipTime = tipTime; tipLib.prototype.tipShow = tipShow; tipLib.prototype.tipHide = tipHide; tipLib.prototype.tipPadding = tipPadding; tipLib.prototype.tipFontSize = tipFontSize; tipLib.prototype.tipFrame = tipFrame; tipLib.prototype.tipCorner = tipCorner; tipLib.prototype.tipCustomClose = tipCustomClose; tipLib.prototype.tipUpdate = tipUpdate; function getError(flag, html) {
	with (this) {
		if (!error.length) { return false; } else if (flag && error.length > 0) { return error[error.length - 1]; } else {
			var str = ""; for (var i = 0; i < error.length; i++)
			{ if (html) { str += error[i] + "<BR>"; } else { str += error[i] + "\n"; } }
			return str;
		} 
	} 
}
function tipPosition(positie1, positie2, percentage) {
	with (this) {
		if (typeof (positie1) != "string" && typeof (positie1) != "string") { positie1 = parseInt(positie1); positie2 = parseInt(positie2); screenX = -1; screenY = -1; } else if (positie1 == "screen") { screenX = parseInt(positie2); screenY = parseInt(percentage); } else {
			var errorTest = false; if (positie1 != "top" && positie1 != "right" && positie1 != "bottom" && positie1 != "left") { error[error.length] = (error.length + 1) + ". Wrong attribute for positie1 (" + positie1 + ") in stickPosition"; } else if (positie2 != "top" && positie2 != "right" && positie2 != "bottom" && positie2 != "left") { error[error.length] = (error.length + 1) + ". Wrong attribute for positie2 (" + positie1 + ") in stickPosition"; } else if ((positie1 == "top" && positie2 == "bottom") || (positie2 == "top" && positie1 == "bottom")) { error[error.length] = (error.length + 1) + ". No corner assigned (" + positie1 + "," + positie2 + ") in stickPosition"; } else if ((positie1 == "left" && positie2 == "right") || (positie2 == "left" && positie1 == "right")) { error[error.length] = (error.length + 1) + ". No corner assigned (" + positie1 + "," + positie2 + ") in stickPosition"; } else if (positie1 == positie2) { error[error.length] = (error.length + 1) + ". No corner assigned (" + positie1 + "," + positie2 + ") in stickPosition"; } else { if (!percentage) percentage = 0; percentage = parseInt(percentage); if (percentage < 0) percentage = 0; if (percentage > 100) percentage = 100; pos1 = positie1; pos2 = positie2; posPerc = percentage; }
			screenX = -1; screenY = -1;
		} 
	} 
}
function tipPadding(top, right, bottom, left) { with (this) { if (!top) top = 0; top = parseInt(top); if (!right) right = 0; right = parseInt(right); if (!bottom) bottom = 0; bottom = parseInt(bottom); if (!left) left = 0; left = parseInt(left); tipPaddingTop = top; tipPaddingRight = right; tipPaddingBottom = bottom; tipPaddingLeft = left; } }
function tipMaxWidth(size) { with (this) { if (!size || size == "auto") { width = -1; } else { width = parseInt(size); } } }
function tipMinWidth(size) { with (this) { if (!size) { minWidth = 0; } else { minWidth = parseInt(size); } } }
function tipHeight(size) { with (this) { if (!size || size == "auto") { height = -1; } else { height = parseInt(size); } } }
function tipMinHeight(size) { with (this) { if (!size) { minHeight = 0; } else { minHeight = parseInt(size); } } }
function tipColor(colour) {
	with (this) {
		colour = colour.replace(regEx, ""); if (colour.length == 3) { regEx = /([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})/gi; colour = colour.replace(regEx, "$1$1$2$2$3$3"); }
		if (colour.length != 6) { error[error.length] = (error.length + 1) + ". Wrong value (" + colour + ") for color in tipColor"; } else { fontColor = colour; } 
	} 
}
function tipFontSize(size) { with (this) { if (!size || size < 0) size = 0; size = parseInt(size); fontSize = size; } }
function tipBorder(size, color, opacity) {
	with (this) {
		if (!color && !opacity) { opacity = size; size = 0; color = ""; }
		if (color == "") color = "transparent"; if (!size || size < 0) size = 0; size = parseInt(size); regEx = /[^0-9a-fA-F]*/gi; color = color.replace(regEx, ""); if (color.length == 3) { regEx = /([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})/gi; color = color.replace(regEx, "$1$1$2$2$3$3"); }
		if (color.length != 6) { error[error.length] = (error.length + 1) + ". Wrong value (" + color + ") for color in tipBorder"; } else { if (!opacity) opacity = 100; opacity = parseInt(opacity); if (opacity < 0) opacity = 0; if (opacity > 100) opacity = 100; borderSize = size; borderColor = color; borderOpacity = opacity; } 
	} 
}
function tipBackground(color, opacity) {
	with (this) {
		image = false; if (typeof (color) == "number" && typeof (opacity) == "string") { image = opacity; opacity = color; color = ""; }
		if (color == "") color = "transparent"; regEx = /[^0-9a-fA-F]*/gi; color = color.replace(regEx, ""); if (color.length == 3) { regEx = /([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})/gi; color = color.replace(regEx, "$1$1$2$2$3$3"); }
		if (color.length != 6) { error[error.length] = (error.length + 1) + ". Wrong value (" + color + ") for color in tipBackground"; } else { if (!opacity) opacity = 100; opacity = parseInt(opacity); if (opacity < 0) opacity = 0; if (opacity > 100) opacity = 100; backgroundColor = color; backgroundOpacity = opacity; if (image) bgrImages[4] = image; } 
	} 
}
function tipShadow(x, y, size, color, opacity, blur) {
	with (this) {
		if (!opacity && !blur) { blur = false; opacity = size; image = color; color = ""; size = 0; }
		if (color == "") color = "transparent"; if (x == 0 && typeof (y) == "undefined") { shadowOpacity = 0; } else {
			if (!x) x = 0; x = parseInt(x); if (!y) y = 0; y = parseInt(y); if (!size) size = 0; size = parseInt(size); regEx = /[^0-9a-fA-F]*/gi; color = color.replace(regEx, ""); if (color.length == 3) { regEx = /([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})/gi; color = color.replace(regEx, "$1$1$2$2$3$3"); }
			if (color.length != 6) { error[error.length] = (error.length + 1) + ". Wrong value (" + color + ") for color in tipShadow"; } else { if (!opacity) opacity = 100; opacity = parseInt(opacity); if (opacity < 0) opacity = 0; if (opacity > 100) opacity = 100; if (!blur) blur = false; shadowX = x; shadowY = y; shadowSize = size; shadowColor = color; shadowOpacity = opacity; shadowBlur = blur; if (typeof (image) == "string") shadowImages[4] = image; } 
		} 
	} 
}
function tipFrame(side, fnFrame, fnBGR, fnShadow, frame, margin)
{ with (this) { if (side != "top" && side != "right" && side != "bottom" && side != "left") { error[error.length] = (error.length + 1) + ". Wrong attribute for side (" + side + ") in tipFrame"; } else { if (side == "top") s = 1; if (side == "right") s = 5; if (side == "bottom") s = 7; if (side == "left") s = 3; frameImages[s] = fnFrame; bgrImages[s] = fnBGR; shadowImages[s] = fnShadow; if (side == "top") s = 0; if (side == "right") s = 1; if (side == "bottom") s = 2; if (side == "left") s = 3; if (!frame) frame = 0; frame = parseInt(frame); if (!margin) margin = 0; margin = parseInt(margin); customFrameSize[s] = frame; customMarginSize[s] = margin; if (side == "top") custom |= 1; if (side == "right") custom |= 2; if (side == "bottom") custom |= 4; if (side == "left") custom |= 8; } } }
function tipCorner(side1, side2, fnFrame, fnBGR, fnShadow)
{ with (this) { if (side1 != "top" && side1 != "right" && side1 != "bottom" && side1 != "left") { error[error.length] = (error.length + 1) + ". Wrong attribute for side1 (" + side1 + ") in tipCorner"; } else if (side2 != "top" && side2 != "right" && side2 != "bottom" && side2 != "left") { error[error.length] = (error.length + 1) + ". Wrong attribute for side2 (" + side1 + ") in tipCorner"; } else if ((side1 == "top" && side2 == "bottom") || (side2 == "top" && side1 == "bottom")) { error[error.length] = (error.length + 1) + ". No corner assigned (" + side1 + "," + side2 + ") in tipCorner"; } else if ((side1 == "left" && side2 == "right") || (side2 == "left" && side1 == "right")) { error[error.length] = (error.length + 1) + ". No corner assigned (" + side1 + "," + side2 + ") in tipCorner"; } else if (side1 == side2) { error[error.length] = (error.length + 1) + ". No corner assigned (" + side1 + "," + side2 + ") in tipCorner"; } else { if (side1 == "top" && side2 == "left") s = 0; if (side1 == "top" && side2 == "right") s = 2; if (side1 == "right" && side2 == "top") s = 2; if (side1 == "right" && side2 == "bottom") s = 8; if (side1 == "bottom" && side2 == "left") s = 6; if (side1 == "bottom" && side2 == "right") s = 8; if (side1 == "left" && side2 == "top") s = 0; if (side1 == "left" && side2 == "bottom") s = 6; frameImages[s] = fnFrame; bgrImages[s] = fnBGR; shadowImages[s] = fnShadow; if (s == 0) custom |= 16; if (s == 2) custom |= 32; if (s == 6) custom |= 64; if (s == 8) custom |= 128; } } }
function tipCustomClose(actie) { with (this) { closeBool = actie; } }
function tipTime(tIn, tOut) { with (this) { if (!tIn) tIn = 10; if (!tOut) tOut = 250; timerIn = tIn; timerOut = tOut; } }
function tipUpdate(state) { with (this) { state ? alwaysUpdate = true : alwaysUpdate = false; } }
function tipShow(html, obj) {
	with (this) {
		if (!html && !obj) { if (tipTimer) clearTimeout(tipTimer); tipOver = tempTipOver; } else {
			if (tipActiveObj && tipActiveObj != objName) { tipHideNow(tipActiveObj); }
			tipOver = objName; tipId = false; if (typeof (obj) != "undefined") { if (typeof (obj) == "object") { tipId = obj.id; if (!tipId) tipId = false; } else { tipId = obj; } }
			if (tipHTML == html) { if (tipTimer) clearTimeout(tipTimer); } else { tipObj = this; tipHTML = html; tipTimer = setTimeout("tipShowNow('" + objName + "')", timerIn); } 
		} 
	} 
}
function tipTestPos(tipObj, hoogte, breedte, disHor, disVer, objBreedte, objHoogte, objTop, objLeft, startX, startY) {
	with (tipObj) {
		if (custom == 255) { borderTemp = 0; frameTempX = customFrameSize[1] + customFrameSize[3] - (customMarginSize[1] + customMarginSize[3]); frameTempY = customFrameSize[0] + customFrameSize[2] - (customMarginSize[0] + customMarginSize[2]); } else { borderTemp = borderSize; frameTempX = 0; frameTempY = 0; }
		if (pos1 == "top") { startY = objTop - hoogte - frameTempY - tipPaddingTop - tipPaddingBottom - borderTemp * 2 - disVer; verschil = (posPerc / 100) * (objBreedte + breedte + frameTempX + tipPaddingLeft + tipPaddingRight + borderTemp * 2); } else if (pos1 == "bottom") { startY = objTop + objHoogte + disVer; verschil = (posPerc / 100) * (objBreedte + breedte + frameTempX + tipPaddingLeft + tipPaddingRight + borderTemp * 2); } else if (pos1 == "left") { startX = objLeft - breedte - frameTempX - tipPaddingLeft - tipPaddingRight - borderTemp * 2 - disHor; verschil = (posPerc / 100) * (objHoogte + hoogte - frameTempY + tipPaddingTop + tipPaddingBottom + borderTemp * 2); } else if (pos1 == "right") { startX = objLeft + objBreedte + disHor; verschil = (posPerc / 100) * (objHoogte + hoogte - frameTempY + tipPaddingTop + tipPaddingBottom + borderTemp * 2); } else if (pos1 == "center") { br = breedte + frameTempX + tipPaddingLeft + tipPaddingRight + borderTemp * 2 + disHor; startX = objLeft + (myWidth - 20 - br) * screenX / 100; }
		if (pos2 == "top") {
			startY = objTop - hoogte - frameTempY - tipPaddingTop - tipPaddingBottom - borderTemp * 2 - disVer + verschil; if (startY < scrOfY + 9) { startY = scrOfY + 9; }
			if (startY + hoogte + 22 + frameTempY + tipPaddingTop + tipPaddingBottom + borderTemp * 2 > scrOfY + myHeight) { startY = scrOfY + myHeight - (hoogte + 22 + frameTempY + tipPaddingTop + tipPaddingBottom + borderTemp * 2); }
			if (pos1 == "right") {
				if (startX + breedte + 22 + frameTempX + tipPaddingLeft + tipPaddingRight + borderTemp * 2 > scrOfX + myWidth) { startX = objLeft - (breedte + frameTempX + tipPaddingLeft + tipPaddingRight + borderTemp * 2 + disHor); }
				if (startX < scrOfX + 9) { startX = scrOfX + 9; }
				if (startX + breedte + 22 + frameTempX + tipPaddingLeft + tipPaddingRight + borderTemp * 2 > scrOfX + myWidth) { startX = (scrOfX + myWidth) - (breedte + 22 + frameTempX + tipPaddingLeft + tipPaddingRight + borderTemp * 2); } 
			} else {
				if (startX < scrOfX + 9) { startX = objLeft + objBreedte + disHor; }
				if (startX + breedte + 22 + frameTempX + tipPaddingLeft + tipPaddingRight + borderTemp * 2 > scrOfX + myWidth) { startX = (scrOfX + myWidth) - (breedte + 22 + frameTempX + tipPaddingLeft + tipPaddingRight + borderTemp * 2); }
				if (startX < scrOfX + 9) { startX = scrOfX + 9; } 
			} 
		} else if (pos2 == "bottom") {
			startY = objTop + objHoogte + disVer - verschil; if (startY + hoogte + 22 + frameTempY + tipPaddingTop + tipPaddingBottom + borderTemp * 2 > scrOfY + myHeight) { startY = scrOfY + myHeight - (hoogte + 22 + frameTempY + tipPaddingTop + tipPaddingBottom + borderTemp * 2); }
			if (startY < scrOfY + 9) { startY = scrOfY + 9; }
			if (pos1 == "right") {
				if (startX + breedte + 22 + frameTempX + tipPaddingLeft + tipPaddingRight + borderTemp * 2 > scrOfX + myWidth) { startX = objLeft - (breedte + frameTempX + tipPaddingLeft + tipPaddingRight + borderTemp * 2 + disHor); }
				if (startX < scrOfX + 9) { startX = scrOfX + 9; }
				if (startX + breedte + 22 + frameTempX + tipPaddingLeft + tipPaddingRight + borderTemp * 2 > scrOfX + myWidth) { startX = (scrOfX + myWidth) - (breedte + 22 + frameTempX + tipPaddingLeft + tipPaddingRight + borderTemp * 2); } 
			} else {
				if (startX < scrOfX + 9) { startX = objLeft + objBreedte + disHor; }
				if (startX + breedte + 22 + frameTempX + tipPaddingLeft + tipPaddingRight + borderTemp * 2 > scrOfX + myWidth) { startX = (scrOfX + myWidth) - (breedte + 22 + frameTempX + tipPaddingLeft + tipPaddingRight + borderTemp * 2 + disHor); }
				if (startX < scrOfX + 9) { startX = scrOfX + 9; } 
			} 
		} else if (pos2 == "left") {
			startX = objLeft - breedte - frameTempX - tipPaddingLeft - tipPaddingRight - borderTemp * 2 - disHor + verschil; if (startX < scrOfX + 9) { startX = scrOfX + 9; }
			if (startX + breedte + 22 + frameTempX + tipPaddingLeft + tipPaddingRight + borderTemp * 2 > scrOfX + myWidth) { startX = scrOfX + myWidth - (breedte + 22 + frameTempX + tipPaddingLeft + tipPaddingRight + borderTemp * 2); }
			if (pos1 == "bottom") {
				if (startY + hoogte + 22 + frameTempY + tipPaddingTop + tipPaddingBottom + borderTemp * 2 > scrOfY + myHeight) { startY = objTop - (hoogte + frameTempY + tipPaddingTop + tipPaddingBottom + borderTemp * 2 + disVer); }
				if (startY < scrOfY + 9) { startY = scrOfY + 9; }
				if (startY + hoogte + 22 + frameTempY + tipPaddingTop + tipPaddingBottom + borderTemp * 2 > scrOfY + myHeight) { startY = (scrOfY + myHeight) - (hoogte + 22 + frameTempY + tipPaddingTop + tipPaddingBottom + borderTemp * 2); } 
			} else {
				if (startY < scrOfY + 9) { startY = objTop + objHoogte + disVer; }
				if (startY + hoogte + 22 + frameTempY + tipPaddingTop + tipPaddingBottom + borderTemp * 2 > scrOfY + myHeight) { startY = (scrOfY + myHeight) - (hoogte + 22 + frameTempY + tipPaddingTop + tipPaddingBottom + borderTemp * 2); }
				if (startY < scrOfY + 9) { startY = scrOfY + 9; } 
			} 
		} else if (pos2 == "right") {
			startX = objLeft + objBreedte + disHor - verschil; if (startX + breedte + 22 + frameTempX + tipPaddingLeft + tipPaddingRight + borderTemp * 2 > scrOfX + myWidth) { startX = scrOfX + myWidth - (breedte + 22 + frameTempX + tipPaddingLeft + tipPaddingRight + borderTemp * 2); }
			if (startX < scrOfX + 9) { startX = scrOfX + 9; }
			if (pos1 == "bottom") {
				if (startY + hoogte + 22 + frameTempY + tipPaddingTop + tipPaddingBottom + borderTemp * 2 > scrOfY + myHeight) { startY = objTop - (hoogte + frameTempY + tipPaddingTop + tipPaddingBottom + borderTemp * 2 + disVer); }
				if (startY < scrOfY + 9) { startY = scrOfY + 9; }
				if (startY + hoogte + 22 + frameTempY + tipPaddingTop + tipPaddingBottom + borderTemp * 2 > scrOfY + myHeight) { startY = (scrOfY + myHeight) - (hoogte + 22 + frameTempY + tipPaddingTop + tipPaddingBottom + borderTemp * 2); } 
			} else {
				if (startY < scrOfY + 9) { startY = objTop + objHoogte + disVer; }
				if (startY + hoogte + 22 + frameTempY + tipPaddingTop + tipPaddingBottom + borderTemp * 2 > scrOfY + myHeight) { startY = (scrOfY + myHeight) - (hoogte + 22 + frameTempY + tipPaddingTop + tipPaddingBottom + borderTemp * 2); }
				if (startY < scrOfY + 9) { startY = scrOfY + 9; } 
			} 
		} else if (pos2 == "center") { hr = hoogte + frameTempY + tipPaddingTop + tipPaddingBottom + borderTemp * 2 + disVer; startY = objTop + (myHeight - 20 - hr) * screenY / 100; }
		return Array(startX, startY);
	} 
}
function tipShowNow(objName) {
	eval("tipObj = " + objName); tipActiveObj = objName; with (tipObj) {
		getSize(); getScrollXY(); var startX = tempX; var startY = tempY; tipLayer = document.getElementById(tipLaag); tipLayer.style.display = 'none'; tipLayer.style.left = 0; tipLayer.style.top = 0; tipLayer.style.width = "auto"; tipLayer.style.height = "auto"; tipLayer.style.padding = "0"; tipLayer.style.fontSize = fontSize + "px"; if (tipHTML != "") tipLayer.innerHTML = tipHTML; tipLayer.style.display = ''; var breedte = getElementWidth(tipLaag); var hoogte = getElementHeight(tipLaag); if (breedte < minWidth) { tipLayer.style.width = parseInt(minWidth) + "px"; }
		else if (breedte > width) { tipLayer.style.width = parseInt(width) + "px"; }
		var breedte = getElementWidth(tipLaag); var hoogte = getElementHeight(tipLaag); if (tipHTML != "") tipLayer.innerHTML = tipHTML; if (screenX > -1 && screenY > -1) { objBreedte = 0; objHoogte = 0; objLeft = scrOfX; objTop = scrOfY; pos1 = "center"; pos2 = "center"; disVer = 0; disHor = 0; } else if (tipId) { objBreedte = getElementWidth(tipId); objHoogte = getElementHeight(tipId); objTop = getElementTop(tipId); objLeft = getElementLeft(tipId) - getElementLeft(oScheme.id); disVer = 0; disHor = 0; } else { objBreedte = 8; objHoogte = 16; objTop = tempY; objLeft = tempX; disVer = 0; disHor = 0; }
		if (custom == 255) { borderTemp = 0; } else { borderTemp = borderSize; }
		start = tipTestPos(tipObj, hoogte, breedte, disHor, disVer, objBreedte, objHoogte, objTop, objLeft, startX, startY); startX = parseInt(start[0]); startY = parseInt(start[1]); if (custom == 255) {
			tipLayer = document.getElementById(tipLaag); tipLayer.style.width = (breedte) + "px"; tipLayer.style.height = (hoogte) + "px"; tipLayer.style.left = (startX + borderTemp + customFrameSize[3] - customMarginSize[3]) + "px"; tipLayer.style.top = (startY + borderTemp + customFrameSize[0] - customMarginSize[0]) + "px"; tipLayer.style.color = "#" + fontColor; tipLayer.style.padding = tipPaddingTop + "px " + tipPaddingRight + "px " + tipPaddingBottom + "px " + tipPaddingLeft + "px"; tipLayer.style.fontSize = fontSize + "px"; tipLayer.style.display = ''; if (borderOpacity > 0) { tipLayer = document.getElementById(tipKader); tipLayer.style.backgroundColor = "transparent"; tipLayer.innerHTML = tipTable("border", tipObj, hoogte + tipPaddingTop + tipPaddingBottom, breedte + tipPaddingRight + tipPaddingLeft); tipLayer.style.border = borderTemp + "px #" + borderColor + " solid"; tipLayer.style.width = (breedte) + "px"; tipLayer.style.height = (hoogte) + "px"; tipLayer.style.left = (startX) + "px"; tipLayer.style.top = (startY) + "px"; tipLayer.style.padding = "0"; tipLayer.style.opacity = borderOpacity / 100; tipLayer.style.filter = "alpha(opacity=" + borderOpacity + ")"; tipLayer.style.display = ''; }
			if (backgroundOpacity > 0) { tipLayer = document.getElementById(tipBGR); tipLayer.style.backgroundColor = "transparent"; tipLayer.innerHTML = tipTable("background", tipObj, hoogte + tipPaddingTop + tipPaddingBottom, breedte + tipPaddingRight + tipPaddingLeft); tipLayer.style.width = breedte + "px"; tipLayer.style.height = hoogte + "px"; tipLayer.style.left = (startX) + "px"; tipLayer.style.top = (startY) + "px"; tipLayer.style.padding = "0"; tipLayer.style.opacity = backgroundOpacity / 100; tipLayer.style.filter = "alpha(opacity=" + backgroundOpacity + ")"; tipLayer.style.display = ''; }
			if (shadowOpacity > 0) { tipLayer = document.getElementById(tipSchaduw); tipLayer.style.backgroundColor = "transparent"; tipLayer.innerHTML = tipTable("shadow", tipObj, hoogte + tipPaddingTop + tipPaddingBottom, breedte + tipPaddingRight + tipPaddingLeft); tipLayer.style.width = breedte + "px"; tipLayer.style.height = hoogte + "px"; tipLayer.style.left = (startX + shadowX) + "px"; tipLayer.style.top = (startY + shadowY) + "px"; tipLayer.style.padding = "0"; tipLayer.style.opacity = shadowOpacity / 100; tipLayer.style.filter = "alpha(opacity=" + shadowOpacity + ")"; tipLayer.style.display = ''; } 
		} else {
			tipLayer = document.getElementById(tipLaag); tipLayer.style.width = (breedte) + "px"; tipLayer.style.height = (hoogte) + "px"; tipLayer.style.left = (startX + borderTemp) + "px"; tipLayer.style.top = (startY + borderTemp) + "px"; tipLayer.style.color = "#" + fontColor; tipLayer.style.padding = tipPaddingTop + "px " + tipPaddingRight + "px " + tipPaddingBottom + "px " + tipPaddingLeft + "px"; tipLayer.style.fontSize = fontSize + "px"; tipLayer.style.display = ''; if (borderTemp > 0 && borderOpacity > 0) { tipLayer = document.getElementById(tipKader); tipLayer.style.border = borderTemp + "px #" + borderColor + " solid"; tipLayer.style.width = (breedte) + "px"; tipLayer.style.height = (hoogte) + "px"; tipLayer.style.left = (startX) + "px"; tipLayer.style.top = (startY) + "px"; tipLayer.style.padding = tipPaddingTop + "px " + tipPaddingRight + "px " + tipPaddingBottom + "px " + tipPaddingLeft + "px"; tipLayer.style.opacity = borderOpacity / 100; tipLayer.style.filter = "alpha(opacity=" + borderOpacity + ")"; tipLayer.style.display = ''; }
			if (backgroundOpacity > 0) { tipLayer = document.getElementById(tipBGR); tipLayer.style.backgroundColor = "#" + backgroundColor; tipLayer.style.width = breedte + "px"; tipLayer.style.height = hoogte + "px"; tipLayer.style.left = (startX + borderTemp) + "px"; tipLayer.style.top = (startY + borderTemp) + "px"; tipLayer.style.padding = tipPaddingTop + "px " + tipPaddingRight + "px " + tipPaddingBottom + "px " + tipPaddingLeft + "px"; tipLayer.style.opacity = backgroundOpacity / 100; tipLayer.style.filter = "alpha(opacity=" + backgroundOpacity + ")"; tipLayer.style.display = ''; }
			if (shadowOpacity > 0) { tipLayer = document.getElementById(tipSchaduw); tipLayer.style.width = (breedte + shadowSize + (borderTemp * 2)) + "px"; tipLayer.style.height = (hoogte + shadowSize + (borderTemp * 2)) + "px"; tipLayer.style.left = (startX + shadowX) + "px"; tipLayer.style.top = (startY + shadowY) + "px"; tipLayer.style.backgroundColor = "#" + shadowColor; tipLayer.style.padding = tipPaddingTop + "px " + tipPaddingRight + "px " + tipPaddingBottom + "px " + tipPaddingLeft + "px"; tipLayer.style.opacity = shadowOpacity / 100; tipLayer.style.filter = "alpha(opacity=" + shadowOpacity + ")"; tipLayer.style.display = ''; if (shadowBlur) { tipLayer = document.getElementById(tipSchaduw + "1"); tipLayer.style.width = (breedte + shadowSize + (borderTemp * 2) + 2) + "px"; tipLayer.style.height = (hoogte + shadowSize + (borderTemp * 2) - 2) + "px"; tipLayer.style.left = (startX + shadowX - 1) + "px"; tipLayer.style.top = (startY + shadowY + 1) + "px"; tipLayer.style.backgroundColor = "#" + shadowColor; tipLayer.style.padding = tipPaddingTop + "px " + tipPaddingRight + "px " + tipPaddingBottom + "px " + tipPaddingLeft + "px"; tipLayer.style.opacity = shadowOpacity / 100; tipLayer.style.filter = "alpha(opacity=" + shadowOpacity + ")"; tipLayer.style.display = ''; tipLayer = document.getElementById(tipSchaduw + "2"); tipLayer.style.width = (breedte + shadowSize + (borderTemp * 2) - 2) + "px"; tipLayer.style.height = (hoogte + shadowSize + (borderTemp * 2) + 2) + "px"; tipLayer.style.left = (startX + shadowX + 1) + "px"; tipLayer.style.top = (startY + shadowY - 1) + "px"; tipLayer.style.backgroundColor = "#" + shadowColor; tipLayer.style.padding = tipPaddingTop + "px " + tipPaddingRight + "px " + tipPaddingBottom + "px " + tipPaddingLeft + "px"; tipLayer.style.opacity = shadowOpacity / 100; tipLayer.style.filter = "alpha(opacity=" + shadowOpacity + ")"; tipLayer.style.display = ''; } } 
		} 
	} 
}
function tipTable(layer, tipObj, hoogte, breedte) {
	html = ""; with (tipObj) {
		breedte -= (customMarginSize[1] + customMarginSize[3]); hoogte -= (customMarginSize[0] + customMarginSize[2]); if (layer == "border") { tipImages = frameImages; } else if (layer == "background") { tipImages = bgrImages; } else if (layer == "shadow") { tipImages = shadowImages; }
		html += "<table cellspacing='0' cellpadding='0' border='0' style='width:" + (customFrameSize[1] + breedte + customFrameSize[3]) + "px;height:" + (customFrameSize[0] + hoogte + customFrameSize[2]) + "px;'>"; html += "<tr valign='bottom'>"; html += "<td style='width:" + (customFrameSize[3]) + "px;height:" + (customFrameSize[0]) + "px;background-image:url(" + imgPath + tipImages[0] + ");background-repeat:no-repeat;background-position:right bottom;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"" + imgPath + tipImages[0] + "\", sizingMethod=\"crop\");'>"; html += "</td>"; html += "<td style='width:" + (breedte) + "px;height:" + (customFrameSize[0]) + "px;background-image:url(" + imgPath + tipImages[1] + ");background-repeat:repeat-x;background-position:top;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"" + imgPath + tipImages[1] + "\", sizingMethod=\"crop\");'>"; html += "</td>"; html += "<td style='width:" + (customFrameSize[1]) + "px;height:" + (customFrameSize[0]) + "px;background-image:url(" + imgPath + tipImages[2] + ");background-repeat:no-repeat;background-position:left bottom;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"" + imgPath + tipImages[2] + "\", sizingMethod=\"crop\");'>"; html += "</td>"; html += "</tr>"; html += "<tr valign='top'>"; html += "<td style='width:" + (customFrameSize[3]) + "px;height:" + (hoogte) + "px;background-image:url(" + imgPath + tipImages[3] + ");background-repeat:repeat-y;background-position:right;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"" + imgPath + tipImages[3] + "\", sizingMethod=\"crop\");'>"; html += "</td>"; html += "<td style='width:" + (breedte) + "px;height:" + (hoogte) + "px;background-image:url(" + imgPath + tipImages[4] + ");background-repeat:repeat;background-position:top;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"" + imgPath + tipImages[4] + "\", sizingMethod=\"crop\");'>"; html += "</td>"; html += "<td style='width:" + (customFrameSize[1]) + "px;height:" + (hoogte) + "px;background-image:url(" + imgPath + tipImages[5] + ");background-repeat:repeat-y;background-position:left;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"" + imgPath + tipImages[5] + "\", sizingMethod=\"crop\");'>"; html += "</td>"; html += "</tr>"; html += "<tr valign='top'>"; html += "<td style='width:" + (customFrameSize[3]) + "px;height:" + (customFrameSize[2]) + "px;background-image:url(" + imgPath + tipImages[6] + ");background-repeat:no-repeat;background-position:right top;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"" + imgPath + tipImages[6] + "\", sizingMethod=\"crop\");'>"; html += "</td>"; html += "<td style='width:" + (breedte) + "px;height:" + (customFrameSize[2]) + "px;background-image:url(" + imgPath + tipImages[7] + ");background-repeat:repeat-x;background-position:top;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"" + imgPath + tipImages[7] + "\", sizingMethod=\"crop\");'>"; html += "</td>"; html += "<td style='width:" + (customFrameSize[1]) + "px;height:" + (customFrameSize[2]) + "px;background-image:url(" + imgPath + tipImages[8] + ");background-repeat:no-repeat;background-position:left top;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"" + imgPath + tipImages[8] + "\", sizingMethod=\"crop\");'>"; html += "</td>"; html += "</tr>"; html += "</table>";
	}
	return html;
}
var tempTipOver = false; function tipHide(internal) { with (this) { if (!internal || !closeBool) { tempTipOver = tipOver; tipOver = false; if (tipTimer) clearTimeout(tipTimer); tipTimer = setTimeout("tipHideNow('" + objName + "')", timerOut); } } }
function tipHideNow(objName) { eval("tipObj = " + objName); with (tipObj) { if (!tipOver) { document.getElementById(tipLaag).style.display = 'none'; document.getElementById(tipKader).style.display = 'none'; document.getElementById(tipSchaduw).style.display = 'none'; document.getElementById(tipSchaduw + "1").style.display = 'none'; document.getElementById(tipSchaduw + "2").style.display = 'none'; document.getElementById(tipBGR).style.display = 'none'; tipHTML = ""; tipOver = false; } } }
var tipPadding = new Array(5, 9, 5, 9); var tipKader = true; var tipShaduw = new Array(3, 3, 0, 0); var tipShaduw2 = new Array(2, 2, 0, 0); var tipShaduwBlur = 1; var tipBackground = true; var tipBorder = 0; var tipMaxWidth = 100; var muisShift = new Array(9, 9); var windowClear = 22; if (!document.all) document.captureEvents(Event.ONSELECTSTART)
document.onselectstart = cancelSelect; function cancelSelect() { if (hulpIsOpen) return false; }
if (!document.all) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = locatie; var tipLaag = "tipContent"; var tipLaagS = "tipShadow"; var tipLaagK = "tipFrame"; var tipBgr = "tipBGR"; var tempX = 0; var tempY = 0; var topX = 0; var topY = 0; var deltaX = 0; var deltaY = 0; var hulpIsOpen = 0; rolloverTimer = false; verplaats = false; rolloverStatus = false; laag = ""; function locatie(e) {
	if (document.all) {
		if (document.documentElement.scrollTop) { xx = document.documentElement.scrollLeft; yy = document.documentElement.scrollTop; } else { xx = document.body.scrollLeft; yy = document.body.scrollTop; }
		topX = xx + 20; topY = yy + 20; tempX = event.clientX + xx; tempY = event.clientY + yy;
	} else { if (document.body.scrollTop || document.body.scrollLeft) { tempX = parseInt(e.pageX); tempY = parseInt(e.pageY); topX = parseInt(document.body.scrollLeft) + 20; topY = parseInt(document.body.scrollTop) + 20; } else { xx = parseInt(window.pageXOffset); yy = parseInt(window.pageYOffset); topX = xx + 20; topY = yy + 20; tempX = parseInt(e.pageX); tempY = parseInt(e.pageY); } }
	if (tempX < 0) { tempX = 0; }
	if (tempY < 0) { tempY = 0; }
	if (myWidth && tipOver) {
		eval("tipObj = " + tipOver); with (tipObj) {
			getScrollXY(); if (!tipId || alwaysUpdate) {
				var startX = tempX; var startY = tempY; var breedte = getElementWidth(tipLaag) - tipPaddingLeft - tipPaddingRight; var hoogte = getElementHeight(tipLaag) - tipPaddingTop - tipPaddingBottom; if (screenX > -1 && screenY > -1) { objBreedte = 0; objHoogte = 0; objLeft = scrOfX; objTop = scrOfY; pos1 = "center"; pos2 = "center"; disVer = 0; disHor = 0; } else if (tipId) { objBreedte = getElementWidth(tipId); objHoogte = getElementHeight(tipId); objTop = getElementTop(tipId); objLeft = getElementLeft(tipId) - getElementLeft(oScheme.id); disVer = 0; disHor = 0; } else { objBreedte = 8; objHoogte = 16; objTop = tempY; objLeft = tempX; disVer = -0; disHor = -0; }
				if (custom == 255) { borderTemp = 0; } else { borderTemp = borderSize; }
				start = tipTestPos(tipObj, hoogte, breedte, disHor, disVer, objBreedte, objHoogte, objTop, objLeft, startX, startY); startX = start[0]; startY = start[1]; if (custom == 255) {
					tipLayer = document.getElementById(tipLaag); tipLayer.style.left = (startX + borderTemp + customFrameSize[3] - customMarginSize[3]) + "px"; tipLayer.style.top = (startY + borderTemp + customFrameSize[0] - customMarginSize[0]) + "px"; if (borderOpacity > 0) { tipLayer = document.getElementById(tipKader); tipLayer.style.left = (startX) + "px"; tipLayer.style.top = (startY) + "px"; }
					if (backgroundOpacity > 0) { tipLayer = document.getElementById(tipBGR); tipLayer.style.left = (startX) + "px"; tipLayer.style.top = (startY) + "px"; }
					if (shadowOpacity > 0) { tipLayer = document.getElementById(tipSchaduw); tipLayer.style.left = (startX + shadowX) + "px"; tipLayer.style.top = (startY + shadowY) + "px"; } 
				} else {
					tipLayer = document.getElementById(tipLaag); tipLayer.style.left = (startX + borderTemp) + "px"; tipLayer.style.top = (startY + borderTemp) + "px"; if (borderSize > 0 || custom) { tipLayer = document.getElementById(tipKader); tipLayer.style.left = (startX) + "px"; tipLayer.style.top = (startY) + "px"; }
					if (backgroundOpacity > 0) { tipLayer = document.getElementById(tipBGR); tipLayer.style.left = (startX + borderTemp) + "px"; tipLayer.style.top = (startY + borderTemp) + "px"; }
					if (shadowOpacity > 0) { tipLayer = document.getElementById(tipSchaduw); tipLayer.style.left = (startX + shadowX) + "px"; tipLayer.style.top = (startY + shadowY) + "px"; if (shadowBlur) { tipLayer = document.getElementById(tipSchaduw + "1"); tipLayer.style.left = (startX + shadowX - 1) + "px"; tipLayer.style.top = (startY + shadowY + 1) + "px"; tipLayer = document.getElementById(tipSchaduw + "2"); tipLayer.style.left = (startX + shadowX + 1) + "px"; tipLayer.style.top = (startY + shadowY - 1) + "px"; } } 
				} 
			} 
		} 
	} 
}
function getSize() { if (typeof (window.innerWidth) == 'number') { myWidth = window.innerWidth; myHeight = window.innerHeight; } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) { myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } }
function getScrollXY() { scrOfY = 0; scrOfX = 0; if (typeof (window.pageYOffset) == 'number') { scrOfY = window.pageYOffset; scrOfX = window.pageXOffset; } else if (document.body && (document.body.scrollLeft || document.body.scrollTop)) { scrOfY = document.body.scrollTop; scrOfX = document.body.scrollLeft; } else if (document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) { scrOfY = document.documentElement.scrollTop; scrOfX = document.documentElement.scrollLeft; } }
function getElementHeight(Elem) {
	yPos = false; if (typeof (Elem) == "string")
	{ if (document.getElementById) { var elem = document.getElementById(Elem); } else if (document.all) { var elem = document.all[Elem]; } }
	if (elem.offsetHeight) { yPos = elem.offsetHeight; } else if (elem.style) { if (elem.style.pixelHeight) yPos = elem.style.pixelHeight; }
	return yPos;
}
function getElementWidth(Elem) {
	xPos = false; if (typeof (Elem) == "string")
	{ if (document.getElementById) { var elem = document.getElementById(Elem); } else if (document.all) { var elem = document.all[Elem]; } }
	if (elem.offsetWidth) { xPos = elem.offsetWidth; } else if (elem.style) { if (elem.style.pixelWidth) xPos = elem.style.pixelWidth; }
	return xPos;
}
function getElementLeft(id) {
	var elem; if (document.getElementById) { elem = document.getElementById(id); } else if (document.all) { elem = document.all[id]; }
	xPos = elem.offsetLeft; tempEl = elem.offsetParent; while (tempEl != null) { xPos += tempEl.offsetLeft; tempEl = tempEl.offsetParent; }
	return xPos;
}
function getElementTop(Elem) {
	if (document.getElementById) { var elem = document.getElementById(Elem); } else if (document.all) { var elem = document.all[Elem]; }
	yPos = elem.offsetTop; tempEl = elem.offsetParent; while (tempEl != null) { yPos += tempEl.offsetTop; tempEl = tempEl.offsetParent; }
	return yPos;
}
