/***************************************************/
/* construct
/***************************************************/
function construct(  )
{
     // slide landingpage
    jQuery( '#intro_right' ).cycle(
    {
        fx:     'fade',
        speed:  '3000',
        timeout: 5000,
        prev:   '',
        next:   ''
    });

    // slide homebox
    jQuery( '#slider_content' ).cycle(
    {
        fx:     'scrollRight',
        speed:  'slow',
        timeout: 10000,
        prev:   '#prev',
        next:   '#next'
    });

    // slide mediadir map
    for( var i = 0; i < counterTotal+1; i++ )
    {
        jQuery( '#slider_map_' + i ).cycle(
        {
            fx:     'scrollRight',
            speed:  'slow',
            timeout: 0,
            prev:   '#image_' + i,
            next:   '#map_' +i
        });
    }

    // show mediadir map
    jQuery( '.mediadir_image' ).css(
    {
       width: '325px',
        height: '250px',
        visibility: 'visible'
    });

    // show iso logo
    var url =  window.location;
    var contentHeight = jQuery( '#content_middle' ).height() - 180;
    var strUrl = url.toString();
    var isVerwaltung = strUrl.search( 'verwaltung' );
    var isSchulung = strUrl.search( 'osc' );
    var isFeedback = strUrl.search( 'feedback' );

    if( isVerwaltung != -1 || isSchulung != -1 || isFeedback != -1)
    {
        jQuery( '#iso_logo' ).css(
        {
            'top': contentHeight + 'px',
            'display': 'block'
        });
    }
}


/***************************************************/
/* show / hide eyecatcher
/***************************************************/
function showEyecatcher( cssname )
{
    if( cssname ) 
    {
        // show eyecatcher
        jQuery( '#eyecatcher' ).css(
        {
           'height': '240px',
           'background': 'url( images/content/header/headerimg_'+cssname+'.jpg ) no-repeat left top'
        } );
    } else {
         jQuery( '#eyecatcher' ).css(
         {
           'height': '25px',
           'background': 'url( images/content/header/default.jpg ) no-repeat left top'
         } );
    }
}



