// JavaScript Document

var timeout         = 500;
var closetimer		= 0;
var ddmenuitem      = 0;
var glob_opacity	= 1;
var div_id			= null;

function fade_out(div_id)
{
	info = document.getElementById(div_id);
	
	var current_opacity=info.style.opacity;
	
	if(current_opacity<0.001)
	{
		info.style.visibility='hidden';
		document.body.removeChild(document.getElementById(div_id));
		return 0;
	}
	info.style.opacity=0.5*current_opacity;

	
	setTimeout('fade_out(div_id)',50);
}

function hide_info()
{
	var info = document.getElementById('action_info_window');
	div_id='action_info_window';
	if( info != null )
	{
		info.style.opacity=1;
		fade_out(div_id);
	}
	else
		return 0;

}

function show_information_error(message)
{
	var info_window;
	
	info_window=document.getElementById('action_info_window');
	
	if( info_window==null || info_window==undefined )	
  {	
		info_window = document.createElement("div");
	 
	}
	
	info_window.setAttribute("id","action_info_window");
	info_window.visibility="visible";
	info_window.innerHTML="<div id='action_error'>"+message+"</div>";
		
	document.body.appendChild(info_window);
	
	setTimeout("hide_info();",2000);
}


var slideimages=new Array()
function slideshowimages()
{
     for (i=0;i<slideshowimages.arguments.length;i++){
         slideimages[i]=new Image()
         slideimages[i].src=slideshowimages.arguments[i]
    }
}

