function init(toOpen)
{
	
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});

//myAccordion.showThisHideOpen(myDivs[toOpen]);
//not need if we dont print the class if the session is set.......

	}
	
	//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 pop_open_applicationform(url){
	fullurl = document.getElementsByTagName('base')[0].href + url;
	newwindow = window.open(fullurl, 'Application_Form', 'height=1000, width=800, location=0, status=1, scrollbars=1, toolbar=0');
	if(window.focus)
		newwindow.focus();
}
