function load_div( el, url ) {
	return $('#'+el).load( url );
	//var au = new Ajax.Updater( el, url, {asynchronous:true, evalScripts:true} );
	return au;
}

function show_popup( el ) {
	showopacity();
	//opera Netscape 6 Netscape 4x Mozilla 
	if (window.innerWidth || window.innerHeight){ 
		docwidth = window.innerWidth; 
	} else 
	//IE Mozilla 
	if (document.body.clientWidth || document.body.clientHeight){ 
		docwidth = document.body.clientWidth; 
	} else
		docwidth = 640;
	t = document.body.parentNode.scrollTop + 110;
	l = document.body.parentNode.scrollLeft + docwidth / 2 - 320;
	$('#'+el).css( 'top', t );
	$('#'+el).css( 'left', l );
	$('#'+el).show();
	showopacity();
}

function hide_popup( el ) {
	$('#'+el).hide();
	hideopacity();
}

function showopacity() {
	$('#screen_opacity').height( document.body.parentNode.scrollHeight );
	$('#screen_opacity').width( document.body.parentNode.scrollWidth );
	$('#screen_opacity').show();
}

function hideopacity() {
	$('#screen_opacity').hide();
}

function in_array( el, arr ) {
	for( j = 0; j < arr.length; j++ )
		if( arr[j] == el )
			return true;
	return false;
}

function please_wait() {
	d = $('#please_wait_div');
	d.width( 640 );
	d.height( 200 );
	show_popup( d.id );
	setTimeout( 'alternate_dots()', 400 );
}

function alternate_dots() {
	$('#blinking_dots').toggle();
	setTimeout( 'alternate_dots()', 400 );
}