function toggle_sub(id){
    if (document.getElementById(id).style.display=='none') {
        if (document.elso && document.masodik && document.elso!=id && document.masodik!=id) {
            document.getElementById(document.elso).style.display='none';
        }
        document.elso=document.masodik;
        document.masodik=id;
        
        document.getElementById(id).style.display='block';
    } else {
        if (document.masodik==id){
            document.masodik=document.elso;
            document.elso=undefined;
        }
        document.getElementById(id).style.display='none';
    }
    return false;
}
function toggle_kat(id, d){
    if (document.getElementById(id).style.display=='none') {
        document.getElementById(id).style.display='block';
        document.getElementById(d).innerHTML = "-";
    } else {
        document.getElementById(id).style.display='none';
        document.getElementById(d).innerHTML = "+";
    }
    return false;
}

/* AJAX Star Rating : v1.0.3 : 2008/05/06 */
/* http://www.nofunc.com/AJAX_Star_Rating/ */
//function $(v,o) { return((typeof(o)=='object'?o:document).getElementById(v)); }

function get(o) { 
    return (document.getElementById(o)); 
} 
//function $S(o) { return(typeof(o)=='object'?o.style:$(o).style); }
function $S(o) { return(typeof(o)=='object'?o.style:get(o).style); }
function agent(v) { return(Math.max(navigator.userAgent.toLowerCase().indexOf(v),0)); }
function abPos(o) { 
    var o=(typeof(o)=='object'?o:get(o)), z={X:0,Y:0}; 
    while(o!=null) { 
        z.X += o.offsetLeft; 
        z.Y += o.offsetTop; 
        o=o.offsetParent; 
    }; 
    return(z); 
}
function XY(e,v) { var o=agent('msie')?{'X':event.clientX+document.documentElement.scrollLeft,'Y':event.clientY+document.documentElement.scrollTop}:{'X':e.pageX,'Y':e.pageY}; return(v?o[v]:o); }

/* Univerzális AJAX motor */
function GetXmlHttpObject_2(handler){
    var xmlHttp;
    try {
        // Firefox, Opera 8.0+, Safari
        xmlHttp=new XMLHttpRequest();
        xmlHttp.onload=handler;
        xmlHttp.onerror=handler; 
    } catch (e) {
        // Internet Explorer
        try {
            xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
            xmlHttp.onreadystatechange=handler;
        } catch (e) {
            try {
                xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
                xmlHttp.onreadystatechange=handler;
            } catch (e) {
                alert("Your browser does not support AJAX!");
                return false;
            }
        }
    }
    return xmlHttp;
}
function GetXmlHttpObject(handler)
{

    var objXmlHttp=null

    if (navigator.userAgent.indexOf("MSIE")>=0)
    { 
        var strName="Msxml2.XMLHTTP"
        if (navigator.appVersion.indexOf("MSIE 5.5")>=0)
        {
            strName="Microsoft.XMLHTTP"
        } 
        try
        { 
            objXmlHttp=new ActiveXObject(strName)
            objXmlHttp.onreadystatechange=handler
            return objXmlHttp
        } 
        catch(e)
            { 
                alert("Error. Scripting for ActiveX might be disabled") 
                return 
            } 
    } 
    if (navigator.userAgent.indexOf("Mozilla")>=0 || navigator.userAgent.indexOf("Opera")>=0 || navigator.userAgent.indexOf("Safari")>=0)
    {
        objXmlHttp=new XMLHttpRequest()
        objXmlHttp.onload=handler
        objXmlHttp.onerror=handler 
        return objXmlHttp
    }
}
// --- ArtButt --- //

function artOver(id) {
    //window.alert(document.getElementById('artButt_left_'+id).className);
   document.getElementById('artButt_left_'+id).className= 'artButt_left_over';
   document.getElementById('artButt_right_'+id).className= 'artButt_right_over';
   document.getElementById('artButt_center_'+id).className= 'artButt_center_over';
   document.getElementById('tr_butt_'+id).className= 'transp_button_over';
}

function artOut(id) {
   document.getElementById('artButt_left_'+id).className= 'artButt_left';
   document.getElementById('artButt_right_'+id).className= 'artButt_right';
   document.getElementById('artButt_center_'+id).className= 'artButt_center';
   document.getElementById('tr_butt_'+id).className= 'transp_button';
}
 // -------------------------------- //
 
function call_ajax(url){
    xmlHttp=GetXmlHttpObject(handle_call);
    xmlHttp.open("GET", url , true);
    xmlHttp.send(null);
}
function handle_call(){
}