azfGeenVoorkeurString = "Maak een keuze";

function azfButtonHTML()	{
	addInitFunction( azfButtonInit );
	addStepFunction( azfButtonStep );
	var s = "";
	s += layerStartHTML( window.azfButtonLayerId = UI(), "width:100%;text-align:right;" );
	s += '<nobr>';
	s += moImageHTML( eImageArray( "/azf/images/but_wis_out.gif", "/azf/images/but_wis_over.gif" ), "javascript: void( azfButtonWis() );", "Wissen" );
	s += '<img src="/azf/images/spacer.gif" width="3" height="1" border="0" alt="">';
	s += moImageHTML( eImageArray( "/azf/images/but_ok_out.gif", "/azf/images/but_ok_over.gif" ), "javascript: void( azfButtonOk() );", "Ok" );
	s += '</nobr>';
	s += endHTML();
	return s;
	}
function azfButtonInit()	{
	window.azfButtonLayer = window.document.getElementById( window.azfButtonLayerId );
	window.azfForm = window.document.getElementById( "azf" );
	}
function azfButtonStep()	{
	window.azfButtonLayer.style.display = window.azfIsOpen ? "none" : "block";
	}
function azfButtonOk()	{
	window.azfForm.submit();
	}
function azfButtonWis()	{
	for( var c = 0; c < window.azfCollection.length; c++ )	{
		window.azfCollection[ c ].wis();
		}
	for( var c = 0; c < window.azfCollection.length; c++ )	{
		window.azfCollection[ c ].updateValue();
		}
	}

function azfPopButtonHTML()	{
	var s = "";
	s += moImageHTML( eImageArray( "/azf/images/but_wis_out.gif", "/azf/images/but_wis_over.gif" ), "javascript: void( azfPopButtonWis() );", "Wissen" );
	s += '<img src="/azf/images/spacer.gif" width="3" height="1" border="0" alt="" />';
	s += moImageHTML( eImageArray( "/azf/images/but_ok_out.gif", "/azf/images/but_ok_over.gif" ), "javascript: void( azfPopButtonOk() );", "Ok" );
	return s;
	}
function azfPopButtonOk()	{
	if( window.azfIsOpen )	{
		window.azfIsOpen.ok();
		}
	}
function azfPopButtonWis()	{
	if( window.azfIsOpen )	{
		window.azfIsOpen.wis();
		}
	}


window.azfPopCollection = new Array();
function AzfPop()	{
	this.toString = new Function( "return 'window. azfPopCollection[ " + window.azfPopCollection.length + " ]';" )
	window.azfPopCollection[ window.azfPopCollection.length ] = this;

	this.formId = arguments[ 0 ];
	this.searchRowId = "azf" + this.formId + "SearchRow";
	this.selectRowId = "azf" + this.formId + "SelectRow";

	this.popSpeed = 0.5;
	this.popZIndex = 100;
	this.popBgColor = "#ffffff";

	this.isOpen = false;
	}
AzfPop.prototype.startHTML = function()	{
	var s = '';
	with( this.pop = new LayerTransition() )	{
		speed = this.popSpeed;
		s += layerStartHTML( layerId, "display:hidden;/*z-index:" + this. popZIndex + ";*/background-color:" + this. popBgColor + ";" );
		}
	return s;
	}
AzfPop.prototype.init = function()	{
	this.form = window.document.getElementById( this.formId );
	this.pop.init();
 	}
AzfPop.prototype.step = function()	{
	var searchRow = window.document.getElementById( this.searchRowId );
	var selectRow = window.document.getElementById( this.selectRowId );
	if( this.isOpen && !this.pop.visible )	{
		searchRow.style.display = '';
		selectRow.style.display = 'none';
		this.pop.transition = "wipeInFromTop";
		}
	else if( !this.isOpen && this.pop.visible )	{
		searchRow.style.display = 'none';
		selectRow.style.display = '';
		this.pop.transition = "snapOut";
		}
	this.pop.step();
	}
AzfPop.prototype.getDisplayValue = function()	{
	if( this.getValue() )	{
		return this.getValue();
		}
	else	{
		return azfGeenVoorkeurString;
		}
	}
AzfPop.prototype.getValue = function()	{
	}
AzfPop.prototype.setPosition = function()	{
	this.pop.layer.style.left = arguments[ 0 ];
	this.pop.layer.style.top = arguments[ 1 ];
	}




window. azfCollection = new Array();
function Azf()	{
	this.toString = new Function( "return 'window.azfCollection[ " + window.azfCollection.length + " ]';" )
	window.azfCollection[ window.azfCollection.length ] = this;

	this.imageSrc = "/azf/images/zoeknavigatie/lblauw_groot_rechts.gif";
	this.imageSrcOpen = "/azf/images/zoeknavigatie/lblauw_groot_beneden.gif";
	this.valueStyleClass = "zoekenTekst";
	this.titleStyleClass = "zoekenKop";
	this.valueElementId = arguments[ 0 ];

	this.pop = new Array();

	addInitFunction( new Function( this + ".init();" ) );
	addStepFunction( new Function( this + ".step();" ) );
	}
Azf.prototype.imageHTML = function()	{
	var s = '';
	s += '<a';
	s += ' href="javascript: void( ' + this + '.click() );"';
	s += ' onclick = "' + this + '.click(); return false;" ';
	s += ' onfocus = "this.blur();" ';
	s += '>';
	s += ( this.multiImage = new MultiImage( eImageArray( this.imageSrc, this.imageSrcOpen ) ) ).HTML();
	s += '</a>';
	return s;
	}
Azf.prototype.valueHTML = function()	{
	var s = '';
	s += layerStartHTML( this.valueLayerId = UI(), "position:relative; width:100%; height:100%" );
	s += '';
	s += endHTML();
	return s;
	}
Azf.prototype.valueContentHTML = function()	{
	var s = '';
	s += '<a';
	s += ' href="javascript: void( ' + this + '. click() );"';
//	s += ' onclick = "' + this + '.click(); return false;" ';
	s += ' onfocus = "this. blur();" ';
	s += ' class="' + this. valueStyleClass + '"';
	s += '>';
	s += this. activePop. getDisplayValue();
	s += '</a>';
	return s;
	}
Azf.prototype.titleHTML = function()	{
	var s = '';
	s += '<a';
	s += ' href="javascript: void( ' + this + '. click() );"';
//	s += ' onclick = "' + this + '.click(); return false;" ';
	s += ' onfocus = "this.blur();" ';
	s += ' class="' + this.titleStyleClass + '"';
	s += '>';
	s += arguments[ 0 ];
	s += '</a>';
	return s;
	}
Azf.prototype.init = function()	{
	for( var c = 0; c < this.pop.length; c++ )	{
		this.pop[ c ].init();
		}
	this.valueLayer = window.document.getElementById( this.valueLayerId );
	this.valueElement = window.document.getElementById( this.valueElementId );
	this.multiImage.init();
	this.updateValue();

//--- elmer 20020304 debug begin
	this.complete	=	true;
//--- elmer 20020304 debug einde
 	}
Azf.prototype.step = function()	{
	for( var c = 0; c < this.pop.length; c++ )	{
		this.pop[ c ].step();
		}
	this.multiImage.set( this.activePop.isOpen ? 1 : 0 );
	}
Azf.prototype.updateValue = function()	{
	this.valueElement.value = this.activePop.getValue();
	this.valueLayer.innerHTML = this.valueContentHTML();
	}
Azf.prototype.click = function()	{
//--- elmer 20020304 debug begin
	if(	this.complete	)	{
		if( window.azfIsOpen == this )	{
			this.close();
			}
		else	{
			this.open();
			}
		}
//--- elmer 20020304 debug einde
	}
Azf.prototype.open = function()	{
	if( window.azfIsOpen )	{
		window.azfIsOpen.close();
	}
	window.azfIsOpen = this;
	this.activePop.setPosition( getPageX( this.multiImage.image ), getPageY( this.multiImage.image ) + this.multiImage.image.height );
	this.activePop.isOpen = true;
	}
Azf.prototype.onClose = function()	{
	}
Azf.prototype.close = function()	{
	window.azfIsOpen = null;
	for( var c = 0; c < this.pop.length; c++ )	{
		this.pop[ c ].isOpen = false;
		}
	this.updateValue();
	this.onClose();
	}
Azf.prototype.appendPop = function()	{
	this.pop[ this.pop.length ] = arguments[ 0 ];
	if( !this.activePop )	{
		this.activePop = this.pop[ 0 ];
		}
	}
Azf.prototype.setActivePop = function()	{
	this.activePop = this.pop[ arguments[ 0 ] ];
	this.close();
	}
Azf. prototype.ok = function()	{
	this.close();
	}
Azf.prototype.wis = function()	{
	for( var c = 0; c < this.pop.length; c++ )	{
		this.pop[ c ].form.reset();
		}
	}

jsLoaded = true;

/*  code from anwb.migratie.default.js */
initFunctions = new Array();
function init()	{
	loadEImages();
	for( var c = 0; c < initFunctions. length; c++ )	{
		initFunctions[ c ]();
		}
	setInterval( "step();", 50 );
	}
function addInitFunction()	{
	initFunctions[ initFunctions. length ] = arguments[ 0 ];
	}
stepFunctions = new Array();
function step()	{
	for( var c = 0; c < stepFunctions. length; c++ )	{
		stepFunctions[ c ]();
		}
	}
function addStepFunction()	{
	stepFunctions[ stepFunctions. length ] = arguments[ 0 ];
	}

eImageCollection = new Array();
function EImage()	{
	this. toString = new Function( "return 'eImageCollection[ ' + eImageCollection. length + ' ]';" )
	eImageCollection[ eImageCollection. length ] = this;
	this. src = null;
	}
EImage. prototype. load = function()	{
	with( this. image = new Image() )	{
		src = this. src;
		this. src = src;
		}
	}
function loadEImages()	{
	for( var c = 0; c < eImageCollection. length; c++ )	{
		eImageCollection[ c ]. load();
		}
	}
function eImageArray()	{
	var a = new Array();
	for( var c = 0; c < arguments. length; c++ )	{
		with( a[ c ] = new EImage() )	{
			src = arguments[ c ];
			}
		}
	return a;
	}
	
multiImageCollection = new Array();
function MultiImage()	{
	this. toString = new Function( 'return "multiImageCollection[ ' + multiImageCollection. length + ' ]";' )
	multiImageCollection[ multiImageCollection. length ] = this;
	this. images = arguments[ 0 ];
	this. alt = arguments[ 1 ];
	this. imageIndex = 0
	}
MultiImage. prototype. HTML = function()	{
	this. currentImageIndex = this. imageIndex;
	var s = '';
	s += imageHTML( this. imageId = UI(), this. images[ this. currentImageIndex ]. src, this. alt );
	return s;
	}
MultiImage. prototype. init = function()	{
	this. image = window. document. getElementById( this. imageId );
	}
MultiImage. prototype. step = function()	{
	if( this. imageIndex != this. currentImageIndex && this. image )	{
		this. currentImageIndex = this. imageIndex;
		if( window. mouseoverAan )	{
			this. image. src = this. images[ this. currentImageIndex ]. src;
			}
		else	{
			this. image. src = this. images[ this. currentImageIndex & !1 ]. src;
			}
		}
	}
MultiImage. prototype. set = function()	{
	this. imageIndex = arguments[ 0 ];
	this. step();
	}
	
function moImageHTML()	{
	var m = new MultiImage( arguments[ 0 ] );
	m. alt = arguments[ 2 ]
	addInitFunction( new Function( m + ". init();" ) );
	var s = '';
	s += '<a';
	s += ' href="' + arguments[ 1 ] + '"';
	s += ' onmouseover="' + m + '. set( 1 );"'
	s += ' onmouseout="' + m + '. set( 0 );"'
	s += '>';
	s += m. HTML();
	s += '</a>';
	return s;
	}
	
layerTransitionCollection = new Array();
function LayerTransition()	{
	this. toString = new Function( 'return "layerTransitionCollection[ ' + layerTransitionCollection. length + ' ]";' )
	layerTransitionCollection[ layerTransitionCollection. length ] = this;

	this. layerId = UI();

	this. speed = 0.5;
	}
LayerTransition. prototype. init = function()	{
	this. layer = window. document. getElementById( this. layerId );
	this. visible = this. layer. style. visibility != "hidden";
	this. visibleWidth = this. visible ? this. layer. offsetWidth : 0;
	this. visibleHeight = this. visible ? this. layer. offsetHeight : 0;
	}
LayerTransition. prototype. step = function()	{
	if( !this. transition )	{
		return false;
		}
	if( this. transition == "snapIn" )	{
		this. visible = true;
		this. visibleWidth = this. layer. offsetWidth;
		this. visibleHeight = this. layer. offsetHeight;
		if( document. all )	{
			this. layer. style. visibility = "hidden";
			}
		this. layer. style. clip = "rect(0px " + this. layer. offsetWidth + "px " + this. layer. offsetHeight + "px 0px)";
		this. layer. style. visibility = "inherit";
		this. transition = "";
		}
	else if( this. transition == "snapOut" )	{
		this. visible = false;
		this. visibleWidth = 0;
		this. visibleHeight = 0;
		this. layer. style. visibility = "hidden";
		this. transition = "";
		}
	else if( this. transition == "wipeInFromTop" )	{
		this. visible = true;
		this. visibleHeight += ( this. layer. offsetHeight - this. visibleHeight ) * this. speed;
//		if( document. all )	{
//			this. layer. style. visibility = "hidden";
//			}
		this. layer. style. clip = "rect(0px " + this. layer. offsetWidth + "px " + this. visibleHeight + "px 0px)";
		this. layer. style. visibility = "inherit";
		if( this. layer. offsetHeight - this. visibleHeight <= 1 )	{
			this. transition = "snapIn";
			}
		}
	else if( this. transition == "wipeInFromLeft" )	{
		this. visible = true;
		this. visibleWidth += ( this. layer. offsetWidth - this. visibleWidth ) * this. speed;
//		if( document. all )	{
//			this. layer. style. visibility = "hidden";
//			}
		this. layer. style. clip = "rect(0px " + this. visibleWidth + "px " + this. layer. offsetHeight + "px 0px)";
		this. layer. style. visibility = "inherit";
		if( this. layer. offsetWidth - this. visibleWidth <= 1 )	{
			this. transition = "snapIn";
			}
		}
	return true;
	}
	
/* GLOBAL300.JS voor gemigreerde applicaties */

 /*DomPatch v2.13 (c) 2001 Elmer Bulthuis, Fabrique*/if( window. Layer && window. Document && !window. Document. prototype. getElementById ){var eventWatch = function(){var e = Event[ arguments[ 0 ]. substring( 2 ). toUpperCase() ];if( arguments[ 2 ] ){this. captureEvents( e );}else{this. releaseEvents( e );}return arguments[ 2 ];};window. Document. prototype. getElementById = function(){if( this. layers[ arguments[ 0 ] ] ){return this. layers[ arguments[ 0 ] ];}for( var c = 0; c < this. layers. length; c++ ){var f = this. layers[ c ]. document. getElementById( arguments[ 0 ] );if( f ){return f;}}if( this. anchors[ arguments[ 0 ] ] ){this. anchors[ arguments[ 0 ] ]. offsetParent = this. layer;this. anchors[ arguments[ 0 ] ]. parentElement = this. layer;this. anchors[ arguments[ 0 ] ]. offsetLeft = this. anchors[ arguments[ 0 ] ]. x;this. anchors[ arguments[ 0 ] ]. offsetTop = this. anchors[ arguments[ 0 ] ]. y;return this. anchors[ arguments[ 0 ] ];}if( this. images[ arguments[ 0 ] ] ){this. images[ arguments[ 0 ] ]. offsetParent = this. layer;this. images[ arguments[ 0 ] ]. parentElement = this. layer;this. images[ arguments[ 0 ] ]. offsetLeft = this. images[ arguments[ 0 ] ]. x;this. images[ arguments[ 0 ] ]. offsetTop = this. images[ arguments[ 0 ] ]. y;return this. images[ arguments[ 0 ] ];}if( this. forms[ arguments[ 0 ] ] ){return this. forms[ arguments[ 0 ] ];}for( var c = 0; c < this. forms. length; c++ ){var f = this. forms[ c ]. elements[ arguments[ 0 ] ];if( f ){return f;}}if( this. applets[ arguments[ 0 ] ] ){return this. applets[ arguments[ 0 ] ];}if( this. embeds[ arguments[ 0 ] ] ){return this. embeds[ arguments[ 0 ] ];}return null;};window. Layer. prototype. onload = function(){this. document. layer = this;if( this. parentLayer != window ){this. offsetParent = this. parentLayer;this. parentElement = this. parentLayer;}this. offsetWidth = this. clip. width;this. offsetHeight = this. clip. height;this. watch( "innerHTML", function(){this. document. open();this. document. write( arguments[ 2 ] );this. document. close();return arguments[ 2 ];});if( this. onmousedown ){this. captureEvents( Event. MOUSEDOWN );}if( this. onmouseup ){this. captureEvents( Event. MOUSEUP );}if( this. onclick ){this. captureEvents( Event. CLICK );}if( this. ondblclick ){this. captureEvents( Event. DBLCLICK );}this. watch( "onmousedown", eventWatch );this. watch( "onmouseup", eventWatch );this. watch( "onclick", eventWatch );this. watch( "ondblclick", eventWatch );this. style = new Object();this. style. layer = this;if( this. visibility == "show" ){this. style. visibility = "visible";}else if( this. visibility == "hide" ){this. style. visibility = "hidden";}else{this. style. visibility = this. visibility;}this. style. watch( "visibility", function(){if( arguments[ 2 ] == "visible" ){this. layer. visibility = "show";}else if( arguments[ 2 ] == "hidden" ){this. layer. visibility = "hide";}else{this. layer. visibility = arguments[ 2 ];}return arguments[ 2 ];});this. style. left = this. left;if( this. offsetLayer ){this. offsetLeft = this. pageX - this. offsetLayer. pageX;}else{this. offsetLeft = this. pageX;}this. style. watch( "left", function(){this. layer. left = arguments[ 2 ];if( this. layer. offsetLayer ){this. layer. offsetLeft = this. layer. pageX - this. layer. offsetLayer. pageX;}else{this. layer. offsetLeft = this. layer. pageX;}return arguments[ 2 ];});this. style. top = this. top;if( this. offsetLayer ){this. offsetTop = this. pageY - this. offsetLayer. pageY;}else{this. offsetTop = this. pageY;}this. style. watch( "top", function(){this. layer. top = arguments[ 2 ];if( this. layer. offsetLayer ){this. layer. offsetTop = this. layer. pageY - this. layer. offsetLayer. pageY;}else{this. layer. offsetTop = this. layer. pageY;}return arguments[ 2 ];});this. style. zIndex = this. zIndex;this. style. watch( "zIndex", function(){this. layer. zIndex = arguments[ 2 ];return arguments[ 2 ];});this. style. backgroundColor = this. bgColor;this. style. watch( "backgroundColor", function(){if( arguments[ 2 ] ){this. layer. bgColor = arguments[ 2 ];}else{this. layer. bgColor = null;}return arguments[ 2 ];});this. style. watch( "clip", function(){var clipArray = arguments[ 2 ]. substring( arguments[ 2 ]. indexOf( "(" ) + 1, arguments[ 2 ]. indexOf( ")" ) ). split( " " );this. layer. clip. left = parseFloat( clipArray[ 3 ] );this. layer. clip. top = parseFloat( clipArray[ 0 ] );this. layer. clip. right = parseFloat( clipArray[ 1 ] );this. layer. clip. bottom = parseFloat( clipArray[ 2 ] );return arguments[ 2 ];});};window. document. watch( "onkeydown", eventWatch );window. document. watch( "onkeyup", eventWatch );window. document. watch( "onkeypress", eventWatch );window. document. watch( "onmouseover", eventWatch );window. document. watch( "onmouseout", eventWatch );window. document. watch( "onmousedown", eventWatch );window. document. watch( "onmouseup", eventWatch );window. document. watch( "onclick", eventWatch );window. document. watch( "ondblclick", eventWatch );window. document. watch( "onmousemove", eventWatch );}else if( !window. document. getElementById && window. document. all ){window. document. getElementById = function(){return this. all[ arguments[ 0 ] ];};}
/*JsHTML v1.06 (c) 2001 Elmer Bulthuis*/endHTMLs = new Array();function endHTML(){var e = endHTMLs[ endHTMLs. length - 1 ];endHTMLs. length --;return e;}if( window. document. layers ){layerStartHTML = function(){var styleArray = new Array();if( arguments[ 1 ] ){styleArray = arguments[ 1 ]. split( ";" );}for( var c = 0; c < styleArray. length; c ++ ){var a = styleArray[ c ]. split( ":" );styleArray[ a[ 0 ] ] = a[ 1 ];}var s = '';var e = '';if( styleArray[ "position" ] == "absolute" ){s += '<layer';}else if( styleArray[ "position" ] == "relative" ){s += '<ilayer';if( styleArray[ "z-index" ] ){s += ' z-index="' + styleArray[ "z-index" ] + '"';}else{s += ' z-index="0"';}s += '>';s += '<layer';}else{s += '<ilayer';}if( arguments[ 0 ] ){s += ' name="' + arguments[ 0 ] + '"';}if( styleArray[ "visibility" ] ){if( styleArray[ "visiblity" ] == "hidden" ){s += ' visibility="hide"';}else if( styleArray[ "visiblity" ] == "visible" ){s += ' visibility="show"';}else{s += ' visibility="' + styleArray[ "visibility" ] + '"';}}if( styleArray[ "left" ] ){s += ' left="' + styleArray[ "left" ] + '"';}if( styleArray[ "top" ] ){s += ' top="' + styleArray[ "top" ] + '"';}if( styleArray[ "width" ] ){s += ' width="' + styleArray[ "width" ] + '"';}if( styleArray[ "height" ] ){s += ' height="' + styleArray[ "height" ] + '"';}if( styleArray[ "z-index" ] ){s += ' z-index="' + styleArray[ "z-index" ] + '"';}else{s += ' z-index="0"';}if( styleArray[ "background-color" ] ){s += ' bgcolor="' + styleArray[ "background-color" ] + '"';}if( styleArray[ "background-image" ] ){s += ' background="' + ( styleArray[ "background-image" ]. substring( styleArray[ "background-image" ]. indexOf( "(" ) + 1, styleArray[ "background-image" ]. indexOf( ")" ) ) ) + '"';}s += '>';if( styleArray[ "position" ] == "absolute" ){e += '</layer>';}else if( styleArray[ "position" ] == "relative" ){e += '</layer>';e += '</ilayer>';}else{e += '</ilayer>';}endHTMLs[ endHTMLs. length ] = e;return s;};}else{layerStartHTML = function(){var s = '';var e = '';s += '<div';if( arguments[ 0 ] ){s += ' id="' + arguments[ 0 ] + '"';}s += ' style="';if( window. document. all && ( !arguments[ 1 ] || arguments[ 1 ]. indexOf( "width" ) < 0 ) ){s += "width:1;";}if( arguments[ 1 ] ){s += arguments[ 1 ];}s += '"';s += '>';e += '</div>';endHTMLs[ endHTMLs. length ] = e;return s;};}function imageHTML(){var s = '';s += '<img';if( arguments[ 0 ] ){if( document. layers ){s += ' name="' + arguments[ 0 ] + '"';}else{s += ' id="' + arguments[ 0 ] + '"';}}if( arguments[ 1 ] ){s += ' src="' + arguments[ 1 ] + '"';}if( arguments[ 2 ] ){s += ' alt="' + arguments[ 2 ] + '"';}s += ' hspace="0"';s += ' vspace="0"';s += ' border="0"';s += '>';return s;}
/*Funk v1.06 (c) 2000 Elmer Bulthuis*/browser = new Object();browser. mac = navigator. appVersion. toLowerCase(). indexOf( 'mac' ) >= 0;browser. win = navigator. appVersion. toLowerCase(). indexOf( 'win' ) >= 0;browser. unix = navigator. appVersion. toLowerCase(). indexOf( 'unix' ) >= 0;browser. ie = navigator. appName. toLowerCase(). indexOf( 'microsoft internet explorer' ) >= 0;browser. ns = navigator. appName. toLowerCase(). indexOf( 'netscape' ) >= 0;if( browser. ns ){browser. version = parseFloat( navigator. appVersion );}if( browser. ie ){browser. version = parseFloat( navigator. appVersion. substring( navigator. appVersion. toLowerCase(). indexOf( "msie" ) + 4 ) );}if( document. all ){getWindowWidth = new Function( 'return window. document. body. clientWidth;' );getWindowHeight = new Function( 'return window. document. body. clientHeight;' );getPageWidth = new Function( 'return window. document. body. scrollWidth;' );getPageHeight = new Function( 'return window. document. body. scrollHeight;' );getScrollX = new Function( 'return window. document. body. scrollLeft;' );getScrollY = new Function( 'return window. document. body. scrollTop;' );}else{getWindowWidth = new Function( 'return window. innerWidth;' );getWindowHeight = new Function( 'return window. innerHeight;' );getPageWidth = new Function( 'return window. document. width;' );getPageHeight = new Function( 'return window. document. height;' );getScrollX = new Function( 'return window. pageXOffset;' );getScrollY = new Function( 'return window. pageYOffset;' );}function getPageX(){var t = 0;for( var l = arguments[ 0 ]; l; l = l. offsetParent ){t += l. offsetLeft;}return t;};function getPageY(){var t = 0;for( var l = arguments[ 0 ]; l; l = l. offsetParent ){t += l. offsetTop;}return t;};UICount = 0;function UI(){return "UI" + ( new Date() ). valueOf() + "UI" + ( UICount ++ );}
/*ENode v1.01 (c) 2001 Elmer Bulthuis, Fabrique*/window. eNodeCollection = new Array();function ENode(){this. toString = new Function( "return 'window. eNodeCollection[ " + window. eNodeCollection. length + " ]';" );window. eNodeCollection[ window. eNodeCollection. length ] = this;this. childNodes = new Array();this. attributes = new Object();if( arguments[ 0 ] ){for( i in arguments[ 0 ] ){this. attributes[ i ] = arguments[ 0 ][ i ];}}this. firstChild = null;this. lastChild = null;this. previousSibling = null;this. nextSibling = null;this. parentNode = null;};ENode. prototype. appendChild = function(){if( this. lastChild ){this. lastChild. nextSibling = arguments[ 0 ];arguments[ 0 ]. previousSibling = this. lastChild;}this. lastChild = arguments[ 0 ];this. lastChild. parentNode = this;if( !this. hasChildNodes() ){this. firstChild = this. lastChild;}this. childNodes[ this. childNodes. length ] = this. lastChild;return this. lastChild;};ENode. prototype. hasChildNodes = function(){return this. childNodes. length != 0;};


