// JavaScript Document
function showhidehtmlele(tagname,action) 
{
	var y = document.getElementsByTagName(tagname);
	for (i = 0; i < y.length; i++) 
	{
	   y[i].style.display = action;
	}
}
function show(id)
{
	document.getElementById(id).style.display = "block"
}
function hide(id)
{
	document.getElementById(id).style.display = "none"
}
function getevedets(url)
{
	
	new show('eventlistdets');
	new hide('evelist');
	new NA_evilpage(url,'eventdetstd','Loading');
	new enableslider();
}
function enableslider(){
  $("#content-slider").slider({
    animate: true,
    handle: ".content-slider-handle",
    change: handleSliderChange,
    slide: handleSliderSlide
  });
};

function handleSliderChange(e, ui)
{
  var maxScroll = $("#content-scroll").attr("scrollHeight") -
                  $("#content-scroll").height();
  $("#content-scroll").animate({scrollTop: ui.value *
     (maxScroll / 100) }, 1000);
}

function handleSliderSlide(e, ui)
{
  var maxScroll = $("#content-scroll").attr("scrollHeight") -
                  $("#content-scroll").height();
  $("#content-scroll").attr({scrollTop: ui.value * (maxScroll / 100) });
}
function showevelistbox(url)
{
	//new show('evelistcontanier');
	new NA_evilpage(url,'evenlistajax','Loading');
	new showhidehtmlele('select','none');
}
function hideevelistbox()
{
	new hide('evelistcontanier');
	new showhidehtmlele('select','block');
}