    function get_scroll_position() 
    {
     var scroll_x = 0, scroll_y = 0;
     if (typeof( window.pageYOffset ) == 'number') { // Netscape
      scroll_y = window.pageYOffset; scroll_x = window.pageXOffset;
     }
     else if (document.body && (document.body.scrollLeft || document.body.scrollTop)) { // DOM
      scroll_y = document.body.scrollTop; scroll_x = document.body.scrollLeft;
     }
     else if (document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) { // IE6
      scroll_y = document.documentElement.scrollTop; scroll_x = document.documentElement.scrollLeft;
     }
     return [scroll_x,scroll_y];
    }
    function get_width_height() {
      var myWidth = 0, myHeight = 0;
      if( typeof( window.innerWidth ) == 'number' ) {
        //Non-IE
        myWidth = window.innerWidth;
        myHeight = window.innerHeight;
      } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
        //IE 6+ in 'standards compliant mode'
        myWidth = document.documentElement.clientWidth;
        myHeight = document.documentElement.clientHeight;
      } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
      }
      return [myWidth, myHeight];
    }    
    
    function show_m(object)
    {
        document.getElementById("p_desc").style.display = "none";
        document.getElementById("p_wash").style.display = "none";
        document.getElementById("p_desc_header").className = "description_m"
        document.getElementById("p_desc_header_end").className = "description_m_end"
        document.getElementById("p_wash_header").className = "description_m"
        document.getElementById("p_wash_header_end").className = "description_m_end"
        if (object == 0)
        {
            document.getElementById("p_desc_header").className = "description_m description_m_select";
            document.getElementById("p_desc_header_end").className = "description_m_end description_m_end_select";
            document.getElementById("p_desc").style.display = "block";
        }
        else if (object == 2)
        {
            document.getElementById("p_wash_header").className = "description_m description_m_select";
            document.getElementById("p_wash_header_end").className = "description_m_end description_m_end_select";
            document.getElementById("p_wash").style.display = "block";
        }
    }
    function m_show_picture(pic)
    {
        var window_w = get_width_height();
        var scroll_pos = get_scroll_position();
        var window_width = window_w[0];
        var window_height = window_w[1];
        document.getElementById('picture_n').src = pic; 
        document.getElementById('overlay').style.top = parseInt(scroll_pos[1] + 50) + 'px';
        document.getElementById('overlay').style.left = parseInt((window_width / 2) - 300) + 'px';
        document.getElementById('overlay').style.display = 'block';
        // set left and next element
        // get the actual element
        var element_count = pic.match(/-(\d+)\.jpg/);
        act_pic = parseInt(element_count[1]);
        if (parseInt(element_count[1]) <= 1)
            document.getElementById('prevlabel').style.display = 'none';
        else
            document.getElementById('prevlabel').style.display = 'block';
        if (parseInt(element_count[1]) == pic_counter)
            document.getElementById('nextlabel').style.display = 'none';
        else
            document.getElementById('nextlabel').style.display = 'block';
    }     
    function m_show_next() {
        m_show_picture(pic_array[act_pic+1-1]);
    }
    function m_show_prev() {
        m_show_picture(pic_array[act_pic-1-1]);
    }  
