function Open_Window( url , flnm){
 	
    var height = 560;
    var width = 1000;
    
    var left = parseInt((window.screen.width - width) / 2) - 6;
    var top = parseInt((window.screen.height - height) / 2) - 15;
    
    foobar = window.open( url, "foobar", "width=" + width + ",height=" + height + ",scrollbars=no,top=" + top + ",left=" + left);
 	
    foobar.flnm = flnm;
    foobar.focus();
//	setTimeout( 'foobar.focus();', 100 );
//	if( foobar && window.focus && foobar.focus ){
//		window.focus(); // focus the opener
//		if( window.blur ) // check if we can blur
//			window.blur(); // blur the opener explicitely
//		foobar.focus(); // focus the popup
//	}
//	return false;
}

function Open_Big_Picture( filename )
{
	var w = 660;
	var h = 500;
	var l = Math.round( window.screen.width / 2  - w / 2 );
	var t = Math.round( window.screen.height / 2 - h / 2 );
	var	w2 = window.open(
			'/images/image_win.php?' + filename,
			'win_2',
			'height='+h+',width='+w+',location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0,top='+t+',left='+l
			);
	w2.focus();
	return false;
}

function _Open( url, filename )
{
	try {
		if (Open_Article_Gallery)
			Open_Window( url , filename);
	}catch(e){
		Open_Big_Picture( filename );
	}
}