<!--
/* La_Lib version 2.21 [an easy to use interface to Dynamic HTML]
Most recent version + manual: http://www.welkweb.com/scripts/js/la_lib
© MD 2001 - This script may be used and modified freely providing this message remains intact
------------------------------------------------------------------------------------------------*/
if(document.layers){document.captureEvents(Event.MOUSEMOVE);document.captureEvents(Event.MOUSEUP);document.captureEvents(Event.MOUSEDOWN)}document.onmousemove=moveMe;document.onmouseup=up;document.onmousedown=down;layerisbeingdragged=0;currLay="";correctX=0;correctY=0;curX=0;curY=0;onMouseMoveFunction="";onMouseUpFunction="";onMouseDownFunction="";_at=new Array();runTimercount=-1;LAYERS=new Array();function Layer(jop){var screen_width = (document.layers ? window.innerWidth : document.body.clientWidth);var screen_height= (document.layers ? window.innerHeight : document.body.clientHeight);cols=new Array('red', 'blue','black', 'yellow','pink','lightgreen','orange','steelblue','beige','#aabcff','purple','red','blue');clockSpeed=(document.layers ? 1.2 : 1);params=jop.split(',');for(tel_=7;tel_<params.length;tel_++){params[6]+=","+params[tel_]}this.name=(params[0].substr(0,1)=="~" ? eval(params[0].substr(1,params[0].length-1)) : params[0]);this.left=(params[1].substr(0,1)=="~" ? eval(params[1].substr(1,params[1].length-1)) :  parseInt(params[1]));this.top=(params[2].substr(0,1)=="~" ? eval(params[2].substr(1,params[2].length-1)) : parseInt(params[2]));this.width=(params[3].substr(0,1)=="~" ? eval(params[3].substr(1,params[3].length-1)) : parseInt(params[3]));this.height=(params[4].substr(0,1)=="~" ? eval(params[4].substr(1,params[4].length-1)) : parseInt(params[4]));this.visibility=(params[5].substr(0,1)=="~" ?(document.layers ? (parseInt(eval(params[5].substr(1,1))) ? "show" : "hide") : (parseInt(eval(params[5].substr(1,1))) ? 'visible' : 'hidden')) : (document.layers ? (parseInt(params[5]) ? "show" : "hide") : (parseInt(params[5]) ? 'visible' : 'hidden')));	this.content=(params[6].substr(0,1)=="~" ? eval(params[6].substr(1,params[6].length-1)) : params[6]);this.sliding_speed=0;this.bgcolor='not defined';this.curcol=this.bgcolor;this.pinXbackup=0;this.pinYbackup=0;this.slide_status=0;layerisbeingdragged=0;this.isDrag=0;this.xbackup=0;this.ybackup=0;this.pinSpeed=0;this.move=move;this.getLayer=getLayer;this.slide=slide;this.show=show;this.hide=hide;this.show_hide_switch=show_hide_switch;this.write=write;this.slide_proc=slide_proc;this.setZ=setZ;this.setBc=setBc;this.setbc=setbc;this.clip=clip;this.flash=flash;this.scroll=scroll;this.scroll_proc=scroll_proc;this.getWidth=getWidth;this.getHeight=getHeight;this.getLeft=getLeft;this.getTop=getTop;this.getCliptop=getCliptop;this.getClipTop=getClipTop;this.getClipleft=getClipleft;this.getClipLeft=getClipLeft;this.getClipbottom=getClipbottom;this.getClipBottom=getClipBottom;this.getClipright=getClipright;this.getClipRight=getClipRight;this.getSlideStatus=getSlideStatus;this.getContents=getContents;this.getZ=getZ;this.getScrollX=getScrollX;this.getScrollx=getScrollx;this.getScrollY=getScrollY;this.getScrolly=getScrolly;this.getVis=getVis;this.getPushLeft=getPushLeft;this.getPushBottom=getPushBottom;this.getCenterX=getCenterX;this.getCenterY=getCenterY;this.colorize=colorize;this.sclip=sclip;this.sclip_proc=sclip_proc;this.hold=hold;this.hold_proc=hold_proc;this.dragable=dragable;this.isHit=isHit;this.getName=getName;if (document.layers){document.writeln('<layer name="' + this.name + '" left=' + this.left + ' top=' + this.top + 	' width=' + this.width + ' height=' + this.height +  ' visibility=' + this.visibility+'>');document.writeln(this.content);document.writeln('</layer>');this.layer = getLayer(this.name);this.layer.width = this.width;this.layer.height = this.height;}if (document.all){document.writeln('<div id="' + this.name + '" style="position:absolute; overflow:none; left:' + this.left + 'px; top:' + this.top + 'px; width:' + this.width + 'px; height:' + this.height + 'px;' + ' visibility:' + this.visibility +  '">');	document.writeln(this.content);document.writeln('</div>');this.layer=getLayer(this.name);}this.clip(0, 0, this.height, this.width);LAYERS[LAYERS.length]=this.name;}function getLayer(name){if (document.layers) return(document.layers[name]);else if (document.all){layer = eval('document.all.' + name + '.style');return(layer);}else return(null);}function move(x,y){this.left=x;this.top=y;if(document.layers){document.layers[this.name].moveTo(this.left,this.top);}else if(document.all){document.all[this.name].style.left = this.left; document.all[this.name].style.top =this.top;}}function slide(xx,yy,sl_speed,caller){cllr=caller;this.rememberIsDrag=this.isDrag;if(caller!='hold'||typeof(caller)=='Undefined'){this.xbackup=xx;this.ybackup=yy;this.rememberHoldStatus=this.holdStatus;}if(this.slide_status==1){setTimeout(eval('this.name')+'.slide('+xx+','+yy+','+sl_speed+')',25);return}stepcount=1;this.slide_x=xx;this.slide_y=yy;this.sliding_speed=sl_speed;this.step_x=(this.slide_x-this.left)/((this.sliding_speed/1000)*20);this.step_y=(this.slide_y-this.top)/((this.sliding_speed/1000)*20);naam=eval(this);naam.slide_proc(cllr);}function slide_proc(caller){stepcount+=.01;cllr=caller;this.left = this.left+this.step_x;this.top=this.top+this.step_y;xx=this.left;yy=this.top;this.move(xx,yy);if(Math.abs(this.slide_x-this.left)>1 || Math.abs(this.slide_y-this.top)>1){this.isDrag=0;this.slide_timer=setTimeout(eval('this.name')+'.slide_proc(cllr)',25);this.slide_status=1;}else{this.slide_status=0;this.isDrag=this.rememberIsDrag;if(caller!='hold'||typeof(caller)=='Undefined'){this.holdStatus=this.rememberHoldStatus;if(this.holdStatus==1){this.hold_proc()};}}}function show(){if(document.all){this.visibility="visible"};if(document.layers){this.visibility="show"};	this.show_hide_switch();}function hide(){if(document.all){this.visibility="hidden"};if(document.layers){this.visibility="hide"};this.show_hide_switch();}function show_hide_switch(){if(document.layers){document.layers[this.name].visibility=this.visibility;}else if (document.all){document.all[this.name].style.visibility=this.visibility;}}function write(cn){ddd=this.name;if (document.layers){document.layers[ddd].document.open();document.layers[ddd].document.write(cn);	document.layers[ddd].document.close();}else if(document.all){document.all[ddd].innerHTML=cn;}this.content=cn;}function setZ(zind){if(document.layers){document.layers[this.name].zIndex=zind;}if(document.all){document.all[this.name].style.zIndex=zind;}}function setBc(c){this.bgcolor=c;if(document.layers){document.layers[this.name].bgColor=c;}if(document.all){document.all[this.name].style.background=c;}}function clip(cl1,cl2,cl3,cl4){this.clip_top=cl1;this.clip_left=cl2;this.clip_bottom=cl3;this.clip_right=cl4;if(document.all){str="rect("+cl1+" "+cl4+" "+cl3+" "+cl2+")";document.all[this.name].style.clip=str;}if(document.layers){document.layers[this.name].clip.top=cl1;document.layers[this.name].clip.left=cl2;document.layers[this.name].clip.bottom=cl3;document.layers[this.name].clip.right=cl4;}}function flash(flick_speed){this.flick_speed = (flick_speed>15 ? 15 : flick_speed);if (this.flick_speed==0){clearTimeout(this.flick_timer);return;}else{if(this.visibility=='hide'){this.visibility='show'}else{if(this.visibility=='hidden'){this.visibility='visible'}else{if(this.visibility=='show'){this.visibility='hide'}else{if(this.visibility=='visible'){this.visibility='hidden'}}}}}this.show_hide_switch();flashhulp=this.flick_speed;this.flick_timer=setTimeout(eval('this.name')+'.flash(flashhulp)',1000/flashhulp);}function scroll(t,l,b,r,speed){if(speed==0){clearTimeout(this.scroll_timer);this.scroll_status=0;return;}if(this.scroll_status==1){setTimeout(eval('this.name')+'.scroll('+t+','+l+','+b+','+r+','+speed+')',25);return;}this.clip(t,l,b,r)	;this.scrolling_speed=speed;this.scrollbackupleft=this.left;this.scrollbackuptop=this.top;this.scrollbackupclip_top=t;this.scrollbackupclip_bottom=b;this.scrollbackupclip_left=l;this.scrollbackupclip_right=r;this.scroll_proc();}function scroll_proc(){if(this.clip_bottom>this.height){this.scroll_status=0;sx=this.scrollbackupleft;sy=this.scrollbackuptop;this.move(sx,sy);sl=this.scrollbackupclip_left;sr=this.scrollbackupclip_right;st=this.scrollbackupclip_top;sb=this.scrollbackupclip_bottom;this.clip(st,sl,sb,sr);this.scroll_status=0;}else{this.scroll_status=1;sx=this.left;sy=this.top-(this.scrolling_speed/20);this.move(sx,sy);sl=this.clip_left;sr=this.clip_right;st=this.clip_top+(this.scrolling_speed/20);sb=this.clip_bottom+(this.scrolling_speed/20);this.clip(st,sl,sb,sr);}this.scroll_timer=setTimeout(eval('this.name')+'.scroll_proc()',50);}function sclip(tt,ll,bb,rr,scl_speed){this.go_top=tt;this.go_left=ll;this.go_bottom=bb;this.go_right=rr;this.sclipping_speed=scl_speed;this.scliptopstep=(this.go_top-this.clip_top)/((this.sclipping_speed/1000)*20.01);this.sclipleftstep=(this.go_left-this.clip_left)/((this.sclipping_speed/1000)*20.01);this.sclipbottomstep=(this.go_bottom-this.clip_bottom)/((this.sclipping_speed/1000)*20.01);this.scliprightstep=(this.go_right-this.clip_right)/((this.sclipping_speed/1000)*20.01);this.sclip_proc();}function sclip_proc(){this.clip_top+=this.scliptopstep;this.clip_left+=this.sclipleftstep;this.clip_bottom=this.clip_bottom+this.sclipbottomstep;this.clip_right+=this.scliprightstep;tt=this.clip_top;ll=this.clip_left;bb=this.clip_bottom;rr=this.clip_right;this.clip(tt,ll,bb,rr);if(Math.abs(this.go_top-this.clip_top)>1 || Math.abs(this.go_bottom-this.clip_bottom)>1 || 	Math.abs(this.go_left-this.clip_left)>1 || Math.abs(this.go_right-this.clip_right)>1){this.sclip_timer=setTimeout(eval('this.name')+'.sclip_proc()',45);}}function getContents(){return this.content};function getWidth(){return this.width};function getHeight(){return this.height};function getClipTop(){return this.clip_top};function getClipLeft(){return this.clip_left};function getClipBottom(){return this.clip_bottom};function getClipRight(){return this.clip_right};function getLeft(){return this.left};function getTop(){return this.top};function getSlideStatus(){return this.slide_status;}function getZ(){return this.Zindex};function getCurX(){return curX};function getCurY(){return curY};function getScrollX(){if(document.layers){return window.pageXOffset}if(document.all   ){return document.body.scrollLeft}}function getScrollY(){if(document.layers){return window.pageYOffset}if(document.all){aaaa=document.body.scrollTop;return aaaa;}}function getVis(){if(this.visibility=='hidden'||this.visibility=='hide'){return 0}else{return 1}}function getWinWidth(){if(document.layers){return window.innerWidth}if(document.all){return document.body.clientWidth}}function getWinHeight(){if(document.layers){return window.innerHeight}if(document.all){return document.body.clientHeight}}function getPushLeft(){return getWinWidth()-this.getWidth()};function getPushBottom(){return getWinHeight()-this.getHeight()};function getCenterX(){return this.getPushLeft()/2};function getCenterY(){return this.getPushBottom()/2};	function getDragging(){if(currLay!='undefined'){return currLay;}else{return;}}function getName(){return this.name}function colorize(speed){if(speed<=0){clearTimeout(this.color_timer);}else{hulp=speed;this.newcol=cols[Math.round(Math.random()*12)];this.curcol=this.newcol;this.setBc(this.newcol);this.color_timer=setTimeout(eval('this.name')+'.colorize('+hulp+')',1000/hulp);}}function timer(ms,instr){if(instr==""){_at[ms]="";}else{	if(_at.length<=ms){_at[ms]=instr;}	else{_at[ms]+=instr;}}}function runTimer(_t){__t=_t;runTimercount++;if(typeof(_t)=='undefined'){_t=0;}if(_at.length==runTimercount){if(_t){runTimercount=-1}else{return}}else{if(_at[runTimercount]){eval(_at[runTimercount])};}runTimerTimer=setTimeout("runTimer("+_t+")",100*clockSpeed);}function hold(speed){if(speed==0)	{if(this.holdStatus){clearTimeout(this.holdTimer);this.holdStatus=0;}return;}if(this.getSlideStatus()){this.xbackup=this.slide_x;this.ybackup=this.slide_y;this.rememberHoldStatus=1;}else{this.xbackup=this.left;this.ybackup=this.top;this.holdStatus=1;}this.pinSpeed=(speed>9 ? 3000 : speed*200);this.pinSpeed=(speed<2 ? 50 : speed*200);if(this.holdStatus){this.hold_proc()};}function hold_proc(){if(document.layers){this.pinX=window.pageXOffset;this.pinY=window.pageYOffset;}if(document.all){this.pinX=document.body.scrollLeft;this.pinY=document.body.scrollTop;}_x=this.xbackup+this.pinX;_y=this.ybackup+this.pinY;hulp=this.pinSpeed;if(this.slide_status==0){this.slide(_x,_y,hulp,'hold')};this.holdTimer=setTimeout(eval('this.name')+'.hold_proc()',100)}function clearTimer(){_at=new Array();if(typeof(runTimerTimer)!='undefined'){clearTimeout(runTimerTimer)};runTimercount=-1;}function dragable(tok){if(tok==0){this.isDrag=0;return};this.isDrag=1;this.rememberIsDrag=1;}function down(e){if(document.all){curX=event.x;curY=event.y;}if(document.layers){curX=e.pageX-getScrollX();curY=e.pageY-getScrollY();}for(tel_=0;tel_<LAYERS.length;tel_++){currLay=eval(LAYERS[tel_]);if(currLay.isHit(curX,curY)==1 && currLay.isDrag==1){currLay=eval(LAYERS[tel_]);correctX=curX-currLay.getLeft();	correctY=curY-currLay.getTop();layerisbeingdragged=1;currLay.rememberHoldStatus=currLay.holdStatus;currLay.hold(0);eval(onMouseDownFunction);return;}}eval(onMouseDownFunction);}function moveMe(e){if(document.all){curX=event.x;curY=event.y;}if(document.layers){curX=e.pageX-getScrollX();curY=e.pageY-getScrollY();}if(layerisbeingdragged&&currLay.isDrag==1){currLay.move(curX-correctX,curY-correctY);}eval(onMouseMoveFunction);}function up(e){eval(onMouseUpFunction);if(layerisbeingdragged){	layerisbeingdragged=0;currLay.xbackup=currLay.getLeft()-getScrollX();currLay.ybackup=currLay.getTop()-getScrollY();if(currLay.rememberHoldStatus){currLay.holdStatus=1;currLay.rememberholdStatus=0;currLay.hold_proc();}}	currLay='undefined';};function isHit(_x,_y,xt,xl,xb,xr){xl=(typeof(xl)=='undefined' ? this.getLeft() : this.getLeft()+xl);xr=(typeof(xr)=='undefined' ? this.getLeft()+this.getWidth() : (this.getLeft()+this.getWidth())-xr);xt=(typeof(xt)=='undefined' ? this.getTop()  : this.getTop()+xt);xb=(typeof(xb)=='undefined' ? this.getTop()+this.getHeight() : (this.getTop()+this.getHeight())-xb);if(_x+getScrollX()>xl && _x+getScrollX()<xr	&& _y+getScrollY()>xt && _y+getScrollY()<xb){return 1;}else{return 0;}}function onMouseMove(some_code){onMouseMoveFunction=some_code;}function onMouseDown(some_code){onMouseDownFunction=some_code;}function onMouseUp(some_code){onMouseUpFunction=some_code;}function setbc(color){this.setBc(color)};function getScrollx(){this.getScrollX()};function getScrolly(){this.getScrollY()};function getCliptop(){this.getClipTop()};function getClipbottom(){this.getClipBottom()};function getClipleft(){this.getClipLeft()};function getClipright(){this.getClipRight()};
//-->