timers = new Array();

speed=25;
speed_auf=17;

function blobb(id) {

if ((uploading==0) && (fitzgerald == 0)) {

a=man("o" + id).className;

a=a.split("c")[1];
if (a==0) a=1;
a=(a-1)*40;
a=-a;
mancss("o"+id).backgroundPosition = "0px " + a + "px";

bla = "nextImagePlus('" + id + "')";

idd = id.split("b")[0] + id.split("b")[1];
idd= parseInt(idd);

if (timers[idd] != "")  {
clearTimeout(timers[idd]);
}

if (a<0) timers[idd] =self.setTimeout(bla, speed_auf);

}

}


function start_up(id) {
stoptimer = true;
mancss('knopf').backgroundImage='';

mancss('durchsuchending').visibility = 'hidden';
try{
mancss('configsbutton').visibility = 'hidden';
}catch(e){}
mancss('leiste').visibility = 'visible';

update_progress(id);
uploading=1;
return true;

}

function reset_all() {

mancss('durchsuchending').visibility = 'visible';
mancss('leiste').visibility = 'hidden';
  document.title = "daunlaut! - Imagehosting";

}


function blobbZu(id) {
if ((uploading==0)&& (fitzgerald == 0)) {
a=man("o"+id).className;

a=a.split("c")[1];
a=(a)*40;
a=-a;


bla = "nextImageMinus('" + id + "', " + a + ")";

idd = id.split("b")[0] + id.split("b")[1];
idd= parseInt(idd);

if (timers[idd] != "")  {
clearTimeout(timers[idd]);
}

timers[idd]= self.setTimeout(bla, speed);

}

}

function nextImageMinus(id, min) {

a = mancss("o"+id).backgroundPosition.split(" ")[1];
if (a == null) return;
a=a.split("p")[0];

a=parseInt(a)-40;

bla = "nextImageMinus('" + id + "', " + min + ")";

mancss("o"+id).backgroundPosition = "0px " + a +"px";

idd = id.split("b")[0] + id.split("b")[1];
idd= parseInt(idd);

if (a > min) timers[idd] = self.setTimeout(bla, speed);

}


function nextImagePlus(id) {

a = mancss("o"+id).backgroundPosition.split(" ")[1];
if (a == null) return;
a=a.split("p")[0];

a=parseInt(a)+40;

bla = "nextImagePlus('" + id + "', " + a + ")";

mancss("o"+id).backgroundPosition = "0px " + a +"px";

idd = id.split("b")[0] + id.split("b")[1];
idd= parseInt(idd);

if (a < 0) timers[idd]  = self.setTimeout(bla, speed_auf);

}





function blibb(id) {
if ((uploading==0) && (fitzgerald == 0)){
a=man("o"+id).className;

a=a.split("c")[1];
if (a==0) a=1;
a=(a-1)*40;
a=-a;
mancss("o"+id).backgroundPosition = "0px " + a + "px";

bla = "nextImagePlusZ('" + id + "')";

idd = id.split("b")[0] + id.split("b")[1];
idd= parseInt(idd);

if (timers[idd] != "")  {
clearTimeout(timers[idd]);
}

if (a>-640) timers[idd] =self.setTimeout(bla, speed_auf);

}
}



function blibbZu(id) {
if ((uploading==0)&& (fitzgerald == 0)) {
a=man("o"+id).className;

a=a.split("c")[1];
if (a==0) a=1;
a=(a-1)*40;
a=-a;


bla = "nextImageMinusZ('" + id + "', " + a + ")";

idd = id.split("b")[0] + id.split("b")[1];
idd= parseInt(idd);

if (timers[idd] != "")  {
clearTimeout(timers[idd]);
}

timers[idd]= self.setTimeout(bla, speed);

}

}

function nextImageMinusZ(id, min) {

a = mancss("o"+id).backgroundPosition.split(" ")[1];
if (a == null) return;
a=a.split("p")[0];

a=parseInt(a)+40;

bla = "nextImageMinusZ('" + id + "', " + min + ")";

if (!(a>0)) mancss("o"+id).backgroundPosition = "0px " + a +"px";

idd = id.split("b")[0] + id.split("b")[1];
idd= parseInt(idd);

if (a < min) timers[idd] = self.setTimeout(bla, speed);

}


function nextImagePlusZ(id) {

a = mancss("o"+id).backgroundPosition.split(" ")[1];
if (a == null) return;
a=a.split("p")[0];

a=parseInt(a)-40;

bla = "nextImagePlusZ('" + id + "', " + a + ")";

mancss("o"+id).backgroundPosition = "0px " + a +"px";

idd = id.split("b")[0] + id.split("b")[1];
idd= parseInt(idd);

if (a > -640) timers[idd]  = self.setTimeout(bla, speed_auf);

}

function dim(from) {

for (i=1;i<2;i++) {

	for (a=1;a<2;a++) {
	
	if (man("o" + i + "b" + a) != null) {
	man("o" + i + "b" + a).style.opacity="0." + from;
try{man("o" + i + "b" + a).style.filter="alpha(opacity = " + (from*10) + ")";}catch(bla){}
	
	
	}}

	if (from >2) self.setTimeout("dim(" + (from-1) + ")",100);
}



}

