function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",70)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=70
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=8
else if (window.highlighting)
clearInterval(highlighting)
}

function Confirm(link,text) 
{
 if (confirm(text))
    window.location=link
}

function startSlideShow(slides, key, baseHref, height, width) {
	var totalSlideCount = 1 + slides.length;
	var $slideshow = $(key);

	// markup contains only a single slide; before starting the slideshow we
	// append one slide and prepend one slide (to account for prev/next behavior)
	$slideshow.prepend('<img height="'+height+'" width="'+width+'" src="'+baseHref+slides.pop()+'" />');
	while (slides.length > 0) $slideshow.append('<img height="'+height+'" width="'+width+'" src="'+baseHref+slides.shift()+'" />');

	// start slideshow
	$(key).cycle({
		fx: 'fade',
		startingSlide: 1,  // start on the slide that was in the markup
		timeout:  5000,
		speed:    500,
		prev:    '#prev',
		next:    '#next'
	});
};