function init( toOpen )
{
	//call image right click disable...
	fncFesDisableContextMenuForImages();

	var myDivs = document.getElementsByClassName('stretcher');
	var myLinks = document.getElementsByClassName('display');

	//then we create the effect.
	var myAccordion = new fx.Accordion(myLinks, myDivs, {opacity: false, duration:350});
	
	//open this one.. 
	myAccordion.showThisHideOpen ( myDivs[toOpen] ) ;

}
	
	//used to call alert in admin for deletion
function remove_confirm (id)
{
	if ( confirm ( 'Delete This Item?') )
	{
			new fx.Opacity("ID_"+id).toggle();
			new fx.Height("ID_"+id).toggle();
			//alert("linkID"+id);
		// delete item from DB
			xajax_remove(id);
		//delete item from page
	}
}

function toggleHeight(id)
{
	new fx.Height(id).toggle();
}

function pop_open (url, height, width )
{
	newwindow=window.open(url,'Venue Image', 'height='+height+', width='+width+'location=0, status=1, scrollbars=0, toolbar=0' );
	s_width = screen.width ;
	s_height = screen.height - 50;
	
	y = (s_height - height )/2;
	x = (s_width - width)/2 ;
	
	newwindow.moveTo(x,y);
	if ( window.focus ) 
	{
		newwindow.focus()
	}
	
}

	function div_visibility ( div, visible )
	{
		if ( document.getElementById )
		{
			// this is the way the standards work
			var pointer = document.getElementById(div).style;
		}
		else if (document.all)
		{
			// this is the way old msie versions work
			var pointer = document.all[div].style;
		}
		else if (document.layers)
		{
			// this is the way nn4 works
			var pointer = document.layers[div].style;
		}
		
		pointer.visibility = visible ? "visible":"hidden";
	}