// 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}//winX=(parent.window.innerWidth)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;}}var curwork=0function choose(i) {n=i-1; curwork=i;writeimage(folders[n]+'/images/'+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txt+='<br><a href="javascript:next()">next<\/a>'wH(z,txt); //sZ(z,oldz); oldz++sW(z,wid);z=gE("loader"); //sE(z);sX(z,0); sY(z,0);//center();}function center() {//alert("center?")z=gE('content');hh=findHeight(z);sX(z,(winX-curW)/2); sY(z,(winY-hh)/2);z=gE("loader"); //hE(z);sX(z,-3000); sY(z,-3000);}function hideimg() {z=gE('content'); sX(z,-3000); sY(z,-3000);}function next() {curkind=folders[curwork-1]; curwork++if (folders[curwork-1]!=curkind) {curwork=findfirst(curkind)}choose(curwork);}function last() {}function findfirst(which) {for (i=0;i<srcs.length;i++) {if (folders[i]==which) {return i+1}}}function findlast() {}
