function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function toggleNews() {
		
		e = $('news_background');
		f = $('news_content');
		
		if (e.style.display == 'none') {
					
				Effect.Appear(e, { duration:0.3, from:0.0, to:0.6 } );
				Effect.Appear(f, { duration:0.3, from:0.0, to:1.0 } );
				
			} else {

				Effect.Fade(e, { duration:0.3, from:0.6, to:0.0 } );
				Effect.Fade(f, { duration:0.3, from:1.0, to:0.0 } );
				
			}	
	
	}
	
	function toggleGalleries(layer, gallery, image) {
		
		e = $('news_background');
		f = $('galleries_1');
		
		if (layer == 1) {
		
			new Ajax.Updater('gallery_content', 'misc/gallery_1.callback.php' , { asynchronous:true, method:'post', parameters: { action: 'load' }, evalScripts: true } );
						
			if (e.style.display == 'none') {
				Effect.Appear(e, { duration:0.3, from:0.0, to:0.6 } );
				Effect.Appear(f, { duration:0.3, from:0.0, to:1.0 } );
			}
			
		}
		
		if (layer == 2) {
		
			new Ajax.Updater('gallery_content', 'misc/gallery_2.callback.php' , { asynchronous:true, method:'post', parameters: { galleryId: gallery }, evalScripts: true } );

		}
		
		if (layer == 3) {
		
			new Ajax.Updater('gallery_content', 'misc/gallery_3.callback.php' , { asynchronous:true, method:'post', parameters: { galleryId: gallery, imageId: image }, evalScripts: true } );

		}
		
		if (layer == 4) {
		
			new Ajax.Updater('gallery_content', 'misc/gallery_3.callback.php' , { asynchronous:true, method:'post', parameters: { galleryId: gallery, imageId: image }, evalScripts: true } );
			
			if (e.style.display == 'none') {
				Effect.Appear(e, { duration:0.3, from:0.0, to:0.6 } );
				Effect.Appear(f, { duration:0.3, from:0.0, to:1.0 } );
			}			

		}

		
		if (layer == 'hide') {

			Effect.Fade(e, { duration:0.3, from:0.6, to:0.0 } );
			Effect.Fade(f, { duration:0.3, from:1.0, to:0.0 } );
			
		}
	
	}
	
	function showNews(id) {
	
		if (current != '') $('news_' + current).style.display = 'none';
		
		$('news_' + id).style.display = '';
		
		current = id;

	}
	
	var current = '';
