<!--
function init_dw_Scroll() {
    var wndo = new dw_scrollObj('wn', 'lyr1');
    wndo.setUpScrollbar("dragBar", "track", "v", 1, 1);
    // id, autohide (hide when not needed), axis
    wndo.setUpScrollControls('scrollbar', true, 'v');
    
    // Links to swap content 
   // wndo.setUpLoadLinks('extra_controls');
    // Demonstrating jump to top and scroll to ID controls 
    //wndo.setUpScrollControls('extra_controls');

    // Demonstrating how you can include a jump to top link inside the scroll area 
    wndo.setUpScrollControls('wn');
    
}

// if code supported, link in the style sheet and call the init function onload
if ( dw_scrollObj.isSupported() ) {
    dw_writeStyleSheet('div_scroll.css');
    // Enable printing here if you like 
    dw_scrollObj.printEnabled = true;
    dw_Event.add( window, 'load', init_dw_Scroll);
}
function info_window(datei, width, height, scrollbar)
{
var info_window = window.open( "./"+datei, "verwaltung", "toolbar=no,location=no,status=no,statusbar=no,menubar=no,scrollbars="+scrollbar+",resizabel=no,width="+width+",height="+height+",left=10,top=10 " );
}
function infowindow(datei, width, height, scrollbar)
{
var infowindow = window.open( "./info.php?link="+datei, "info", "toolbar=no,location=no,status=no,statusbar=no,menubar=no,scrollbars="+scrollbar+",resizabel=no,width="+width+",height="+height+",left=10,top=10 " );
}

function popup(navi, width, height, scrollbars, resizable)
{
var popup = window.open( "./"+navi, "popup", "toolbar=no,location=no,status=no,statusbar=no,menubar=no,scrollbars="+scrollbars+",resizable="+resizable+",width="+width+",height="+height+",left=10,top=10 " );
}

function show_pic(pic, opener, name, folder, pics, width, height)
{
var popup = window.open( "./inhalt/galerie/show_pic.php?pic="+pic+"&opener="+opener+"&name="+name+"&dir="+folder+"&pics="+pics, "show_pic", "toolbar=no,location=no,status=yes,statusbar=no,menubar=no,scrollbars=no,resizable=no,width="+width+",height="+height+",left=10,top=10 " );
}

function window_link(link_target)
{
var window_link = window.open( "./content/weiterleitung.php?link="+link_target, "externlink");
}

function scrollDiv(strId,intSpd) {
if ( objScrll=document.getElementById(strId) ) {
var top = parseInt(objScrll.style.top);
if ( (intSpd>0) ? (top<0) : (top>parseInt(objScrll.parentNode.style.height)-objScrll.offsetHeight) )
objScrll.style.top = (top + intSpd) +"px";
eval( 'tvar' + strId +'= setTimeout("scrollDiv(\''+ strId +'\',' + intSpd + ')",50)' );
if (objSelf=scrollDiv.arguments[2])
objSelf.onmouseup = objSelf.onmouseout = new Function('fx','clearTimeout(tvar' + strId + ')');
}
}
-->
