function show_picture(name, width, height)
{
win_pic = window.open("","" + name + "" ,"width=" + width+ ", height=" + height + ", resizable=0");
win_pic.document.write("<html><title>M &#350;</title><body bgcolor=\"#2287bb\" topmargin=0 leftmargin=0 marginwidth=0 marginheight=0><img src=../img/" + name + ".jpg height="+height+" width="+width+"></body></html>");
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}






function expand( id) 
{ 
    whichEl = document.getElementById( "faq_"+id);
    if (whichEl.style.display == "none" || whichEl.style.display=="") 
    {
                whichEl.style.display = "block";
    }
    else 
    {
                whichEl.style.display = "none";
    }
    event.cancelBubble = true;

}
// todo: 1 - expand, 0 - collapse;

function openAll( todo)
{
    if( todo)
    {
        stylename="block";

    }
    else
    {
        stylename="none";
    }
    divColl = document.getElementsByTagName( "div");
    for (i = 0; i < divColl.length; i++) 
    {
        if (divColl[i].id.substring(0, 3) == "faq") // faq_23
        {
            id = divColl[i].id;         
            msgId=id.substring( 8);
            divColl[i].style.display = stylename;
        }
    }
}

