    
/**
     * sendStatOnClick - zaznamena statistiky na onclick event daneho elementu
     * @param int action_id
     * @param int id_pozicia
     * @param string cykl_text
     * 
     * _trackEvent(category, action, opt_label, opt_value, opt_noninteraction)
     * ----USAGE OF _trackEvent google analytics method----
     *string category (required)
     *  The name you supply for the group of objects you want to track.
     *string action (required)
     *  A string that is uniquely paired with each category, and commonly used to define the type of user interaction for the web object.
     *string label (optional)
     *  An optional string to provide additional dimensions to the event data.
     *string value (optional)
     *  An integer that you can use to provide numerical data about the user event.
     *boolean non-interaction (optional)
     *  A boolean that when set to true, indicates that the event hit will not be used in bounce-rate calculation.
     *  
     *  returns
            Boolean whether the event was successfully sent.
     *  
     *  Async Snippet (recommended)
        This section shows two ways to set up tracking using the Asynchronous syntax. With Event Tracking, the onclick handler uses the exact same syntax.
        _gaq.push(['_setAccount', 'UA-XXXXX-X']);
        _gaq.push(['_trackPageview']);
        ...
        <a onclick="_gaq.push(['_trackEvent', 'category', 'action', 'opt_label', opt_value]);">click me</a> 
     *  
     *  Traditional (ga.js) Snippet
        var pageTracker = _gat._getTracker('UA-XXXXX-X');
        pageTracker._trackPageview();
        ...
        <a onclick="pageTracker._trackEvent('category', 'action', 'opt_label', opt_value);">click me</a>
     */
    
function sendStatOnClick(action_id,id_pozicia,cykl_text){
    var actionsArr = new Array("HP cyklovac left nav click","HP cyklovac baner click"),
    category ='HP cyklovac',
    action = actionsArr[action_id], 
    opt_label = id_pozicia+'_'+cykl_text ,
    opt_value = undefined,
    opt_noninteraction = true;
    //        _gaq.push(['_trackEvent', 'name', value])
    //           console.log(_gaq.push(['_trackEvent', category, action, opt_label, opt_value]));
    //console.log(pageTracker._trackEvent(category, action, opt_label, opt_value));
    pageTracker._trackEvent(category, action, opt_label, opt_value, opt_noninteraction);
//    console.log("AKCIA:"+action+" POZICIA CYKLOVACA:"+opt_label+" TEXT CYKLOVACA:"+opt_value);
    if(action_id==0){
        return false;
    }else{
        return true;
    }
}
