var maxslide;
var curslide = 0;
var slidesecs = 7;
var slidetimer;

$(window).bind("load", function() { 
    $("div#mygalone").slideView() 
    maxslide = jQuery("div#mygalone").find("li").size();
	autoslide();
});

function autoslide()
{
	nextslide();
	slidetimer = setTimeout("autoslide()",(slidesecs * 1000));
}

function stopslide()
{
	if (typeof(slidetimer) != "undefined") clearTimeout(slidetimer);
	if (typeof(slideshowstarttimer) != "undefined") clearTimeout(slideshowstarttimer);
}

function ShowPop(id)
{
   document.getElementById(id).style.visibility = "visible";
}
function HidePop(id)
{
   document.getElementById(id).style.visibility = "hidden";
}