// 1k DHTML APId=document;l=(d.layers)?1:0;op=navigator.userAgent.toLowerCase().indexOf('opera')!=-1;function gE(e,f){if(l){f=(f)?f:self;var V=f.document.layers;if(V[e])return V[e];for(var W=0;W<V.length;)t=gE(e,V[W++]);return t;}if(d.all)return d.all[e];return d.getElementById(e);}function sE(e){if(l)e.visibility='show';else e.style.visibility='visible';}function hE(e){if(l)e.visibility='hide';else e.style.visibility='hidden';}function sZ(e,z){if(l)e.zIndex=z;else e.style.zIndex=z;}function sX(e,x){if(l)e.left=x;else if(op)e.style.pixelLeft=x;else e.style.left=x;}function sY(e,y){if(l)e.top=y;else if(op)e.style.pixelTop=y;else e.style.top=y;}function sW(e,w){if(l)e.clip.width=w;else if(op)e.style.pixelWidth=w;else e.style.width=w;}function sH(e,h){if(l)e.clip.height=h;else if(op)e.style.pixelHeight=h;else e.style.height=h;}function sC(e,t,r,b,x){if(l){X=e.clip;X.top=t;X.right=r;X.bottom=b;X.left=x;}else e.style.clip='rect('+t+' '+r+' '+b+' '+x+')';}function wH(e,h){if(l){Y=e.document;Y.write(h);Y.close();}if(e.innerHTML)e.innerHTML=h;}// findPos: www.quirksmode.org/js/findpos.htmlfunction findPosX(obj){var curleft = 0; if (obj.offsetParent){while (obj.offsetParent){curleft += obj.offsetLeft;obj = obj.offsetParent;}} else if (obj.x){curleft += obj.x;}; return curleft;}function findPosY(obj){var curtop = 0;if (obj.offsetParent){while (obj.offsetParent){curtop += obj.offsetTop;obj = obj.offsetParent;}}else if (obj.y){curtop += obj.y;}; return curtop;}function findWidth(obj) {if(obj.offsetWidth || navigator.appVersion.toLowerCase().indexOf('safari')!=-1){return obj.offsetWidth}else{return obj.clip.width}};function findHeight(obj) {if(obj.offsetHeight || navigator.appVersion.toLowerCase().indexOf('safari')!=-1){return obj.offsetHeight}else{return obj.clip.height}};var appvers=parseInt(navigator.appVersion)function newWin(URL,theName,menu,tool,loca,dirs,stats,scrolls,resiz,wid,hei){if(theName!=""){lefti=0; topi=0;if (appvers>3) {lefti = (screen.width) ? (screen.width-wid)/2 : 0;topi = (screen.height) ? (screen.height-hei)/2 : 0;}showWin=window.open(URL,theName,'menubar='+menu+',toolbar='+tool+',location='+loca+',directories='+dirs+',status='+stats+',scrollbars='+scrolls+',resizable='+resiz+',top='+topi+',left='+lefti+',width='+wid+',height='+hei+''); if (showWin.focus) {showWin.focus()};}};function popup(uri,nam) {newWin(uri,nam,1,0,0,0,1,1,1,480,360)}function rRand(send){return(Math.ceil(Math.random()*send))};var NS, IEvar winX=0;var winY=0;if(navigator.appName == "Netscape") {NS=true;winX = window.innerWidth;winY = window.innerHeight;}else {IE=true; winX = document.body.clientWidth;winY = document.body.clientHeight;}if (winX==0 && winY==0) {winX=parent.window.innerWidth; winY=parent.window.innerHeight}var resX=winX/2var resY=winY/2 if (NS) {document.captureEvents(Event.MOUSEMOVE);}document.onmousemove = printEvent;function printEvent(e) {if (IE){resX = event.clientX;resY = event.clientY;} else {resX = e.pageX;resY = e.pageY;}//window.status=resX+'  '+resY;}function resizeme() {if (NS) {document.location.href = document.location.href;}}function over(n) {if (mover==0) {z=gE('d'+n);//y=getStyleObject('d1');oldz++sZ(z,oldz);//alert(document.all["d1"].style.posLeft)//window.status="10000";//alert(findPosX(z));//alert(z.offsetWidth)//alert(z.clip.width);//alert(navigator.appVersion.toLowerCase().indexOf('safari'))//alert(findWidth(z)+'  '+findHeight(z));//alert(findHeight(z));//alert(z.cursor)//alert(y.zIndex)}}function out(n) {//z=gE('d'+n);//sZ(z,oldz);}var motor=setTimeout("engine()",50);var mover=0;var oldz=100;var oldmover=0;var difX=0;var difY=0;var oldX=0var oldY=0var speedX=0var speedY=0var lastdiv=0;var lastX=0var lastY=0var MARG=80;function engine() {clearTimeout(motor);if (mover!=0) {//something is being draggedif (oldmover==0) {// just started draggindifX=resX-findPosX(gE('d'+mover));difY=resY-findPosY(gE('d'+mover));oldmover=mover}z=gE('d'+mover)sX(z,resX-difX); sY(z,resY-difY);lastX=resX-difX; lastY=resY-difY;}else{//not dragginif (oldmover!=0) {// just stopped dragginspeedX=resX-oldX;speedY=resY-oldY;lastdiv=oldmover;oldmover=0;}if (lastdiv!=0){z=gE('d'+lastdiv);ww=findWidth(z); hh=findHeight(z);if (lastX+speedX>winX-ww || lastX+speedX<0) {speedX=-speedX}if (lastY+speedY>winY-hh-MARG || lastY+speedY<MARG) {speedY=-speedY}lastX=lastX+speedXlastY=lastY+speedYsX(z,lastX)sY(z,lastY)speedX=speedX*0.95speedY=speedY*0.95if ((speedX<1 && speedX>-1) || (speedY<1 && speedY>-1)) {lastdiv=0; speed=0};}//window.status="is "+oldz}motor=setTimeout("engine()",50);oldX=resX;oldY=resY;}function shuffle() {hE(gE('loader'));xmarg=100;for (i=1;i<srcs.length+1;i++) {z=gE('d'+i);x=findWidth(z); y=findHeight(z);//x=200;y=120;sX(z,xmarg+rRand(winX-x-xmarg*2)); sY(z,MARG+rRand(winY-y-MARG*2));sZ(z,rRand(srcs.length+1));}}function order() {nn=srcs.length; marg=50; l=0; t=marg;for (i=1;i<7;i++) {z=gE('d'+i);  alert(z);//x=findWidth(z); y=findHeight(z); alert(winX);l=l+marg; if (l>winX) {l=marg; t=t+marg}; //alert(l+'  '+t);//sX(z,100); sY(z,100);//sX(z,l); sY(z,t);}}function shuffle2() {//alert("shuffle?");nn=srcs.length; mar=30; sp=10; L=mar; T=MARG;//hE(gE('loader'));for (i=1;i<nn+1;i++) {z=gE('d'+i);x=findWidth(z); y=findHeight(z);sX(z,L); sY(z,T);L=L+x+sp; if ((L+x)>(winX-mar)) {L=mar; T=T+y+sp}//sZ(z,rRand(nn+1));}}var curW,curHfunction bigger(n) {writeimage('works/'+srcs[n],ws[n],hs[n],titels[n])}function writeimage(fil,wid,hei,tit) {curW=wid; curH=hei;z=gE('content');sX(z,-3000); sY(z,-3000);txt='<a href="javascript:hideimg()"><img onload="center()" src="'+fil+'" wid='+wid+' hei='+hei+' border=0><\/a>';txt+='<br>'+titwH(z,txt); sZ(z,oldz); oldz++sW(z,wid);//center();}function center() {//alert("center?")z=gE('content');hh=findHeight(z);sX(z,(winX-curW)/2); sY(z,(winY-hh)/2);}function hideimg() {z=gE('content'); sX(z,-3000); sY(z,-3000);}