var timer_id;
function scroll_iframe(frm,inc,dir) {
  if (timer_id) clearTimeout(timer_id);
  if (window.frames[frm]) {
    if (dir == "v") window.frames[frm].scrollBy(0, inc);
    else window.frames[frm].scrollBy(inc, 0);
    timer_id = setTimeout("scroll_iframe('" + frm + "'," + inc + ",'" + dir + "')", 20);
  }
}

function stopScroll() { if (timer_id) clearTimeout(timer_id); }

function checkSrcoller () {
  var y = 0;
  if (window.pageYOffset) {
    y = window.pageYOffset;
    //alert("eins");
  } else if (document.body && document.body.scrollTop) {
    y = document.body.scrollTop;
    //alert("zwei");
  }
  alert(y);
 /*
  if (y > 0) {
    window.scrollBy(0, -10);
    setTimeout("NachOben()", 10);
  }
 */
}

function show(elem,style) {
 	document.getElementById(elem).className = style;
}


var show_stat = false;

function show_txtDetail(elem) {
   /*
   //if(document.getElementById(elem).className=='show') {
   var opacity;
    if( opacity = document.getElementById(elem).style.opacity ) {
        opacity =  parseFloat(opacity);
    	  //	alert("erster if");
    } else {
    	//alert("weiter mit else");
    	if( opacity = (document.getElementById(elem).style.filter || '').match(/alpha\(opacity=(.*)\)/) )
        if( opacity[1] ) opacity = parseFloat(opacity[1]) / 100;
    }
    //alert(opacity);

	//alert(opacity);



   if(opacity>0.5) {
      //$('text_detail_box').fade({ duration: 1.0, from:100, to:0 });
      new Effect.Opacity('text_detail_box', { from: 1, to: 0, duration : 0.6 });
   	//document.getElementById(elem).className='close';
   } else {
      //($('text_detail_box').fade({ duration: 1.0, from:0, to:100 });
      new Effect.Opacity('text_detail_box', { from: 0, to: 1, duration : 0.6 });
   	//document.getElementById(elem).className='show';
   }
    */
   if(show_stat==false) {
    	//alert("das ding soll gezeigt werden");
      show_stat = true;
      //$('#text_detail_box').fadeIn('slow');
      new Effect.Opacity('text_detail_box', { from: 0, to: 1, duration : 0.6 });
      //Effect.toggle('text_detail_box', 'appear');
      //Effect.Fade('text_detail_box',{  from: 0, to: 1, duration : 0.6});
   } else {
   	//alert("das ding soll wieder zu gemacht werden");
      show_stat = false;
      //$('#text_detail_box').fadeOut('slow');
		new Effect.Opacity('text_detail_box', { from: 1, to: 0, duration : 0.6 });
      //Effect.toggle('text_detail_box', 'appear');
      //Effect.Fade('text_detail_box',{  from: 1, to: 0, duration : 0.6});

   }




}

function action1() {
 	window.location="./admin/";
}
