﻿//file per funzioni Javascript custom

function showSinopsy(idShow){
    //alert(idShow);
    document.location.href= '/showDetail.athx?idShow=' + idShow;
}

function checkCalendar(){
    var cal =querySt('idControl');
    if(cal == 'ArenaCalendar2') 
    {
        $('cal1Body').style.display = 'none';
        $('cal2Body').style.display = 'block';
    }
}

function querySt(ji) {
    hu = window.location.search.substring(1);
    gy = hu.split("&");
    for (i=0;i<gy.length;i++) {
        ft = gy[i].split("=");
        if (ft[0] == ji) {
        return ft[1];
        }
    }
}

// carico il contenuto con ajax
function fillIt(month){
    //if (month.startsWith('month') && ($(month).innerHTML == 'toLoad...')){
        //alert('fillIt :' + month);
        new Ajax.Updater(month, '/layout/www1/custom/PerformanceArchive.aspx' ,{ 
            method: 'get', 
            parameters: { month: month}
//            ,onLoading: function(){
//                $(month).setStyle({display: 'none'});
//                alert('Alert...');
//                $(month).setStyle({display: 'block'});
//                }
        });
    //}

}

function toggleArticle(idblock){
    $('article_' + idblock).toggle();
    $('articleLabelOn_' + idblock).toggle();
    $('articleLabelOff_' + idblock).toggle();
}
