function init() {
	toggle_nav1 = new fx.Height('nav1', {duration: 500 } ) ;
	toggle_nav1.hide();	
	
	toggle_nav2 = new fx.Height('nav2', {duration: 500});
	toggle_nav2.hide();	
	
	toggle_nav4 = new fx.Height('nav4', {duration: 500});
	toggle_nav4.hide();	
	
	toggle_nav6 = new fx.Height('nav6', {duration: 500});
	toggle_nav6.hide();	
	
	var myDivs = document.getElementsByClassName('stretcher');
	var myLinks = document.getElementsByClassName('stretchtoggle');

	//then we create the effect.
	var view_msg = new fx.Accordion(myLinks, myDivs, {opacity: true});
	
	if (typeof start_map == "function"){
		start_map ( );
	}
}
	
var newwindow;
function pop_open (url, height, width ){
	newwindow=window.open(url,'Photo','height='+height+',width='+width+'location=0,status=1,scrollbars=1,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 remove_confirm (id){
	if ( confirm ( 'Delete This Item?') ){
		new fx.Opacity("ID_"+id).toggle();
		new fx.Height("ID_"+id).toggle();
		xajax_remove(id);
	}
}
	
function quick_remove_confirm ( id, image ){
	if ( confirm ( 'Delete This Image?') )
		xajax_quick_remove( id, image );
}

function remove_add_confirm ( id ){
	if ( confirm ( 'Delete This Item?') ){
		new fx.Opacity("ID_"+id).toggle();
		new fx.Height("ID_"+id).toggle();
		// delete item from DB
		xajax_remove( id );
	}
}