function setPointerRow(theRow, thePointerColor)
{

    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        var theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        var theCells = theRow.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++) 
	{
			theCells[c].className = thePointerColor;
    }

    return true;
}

function setPointerCell(theCell, thePointerColor)
{
    if (thePointerColor == '' || typeof(theCell.style) == 'undefined') {
        return false;
    }

    theCell.className = thePointerColor;

    return true;
}

/**
 * Initialize the document (called on page load)
 * 
 * @return
 */
function docInit() {
	jQuery.noConflict();
	if (GBrowserIsCompatible() && document.getElementById("event-map-canvas") != null) {
		loadMap();
	}
	
	jQuery('ul#news-ticker').newsticker();
	jQuery('.list-youtube-playlists li a').click(function(){
		var s_name = jQuery(this).find('input').attr('value');
		//jQuery('#youtube-player').load('load_channel.php?channel='+s_name);
		jQuery('.wrap-youtube-player').css('display','none');
		jQuery('#youtube-player-'+s_name).css('display','block');
		
	});
	
	Shadowbox.init();
}