function document_information ( file_name, last_modified, last_editor, created, type) {	
	document.getElementById("file_name").innerHTML="File name: " + file_name;
	document.getElementById("last_modified").innerHTML="Last modified:<br>&nbsp;&nbsp;&nbsp;&nbsp; " + last_modified;
	document.getElementById("created").innerHTML="Created:<br>&nbsp;&nbsp;&nbsp;&nbsp; " + created;
	document.getElementById("last_editor").innerHTML="Last edited by: " + last_editor;
	document.getElementById("type").innerHTML="Type: " + type;
}

function hint_help ( hint ) {
	var hint_text;
	if      ( hint == "file_hover" )			{ hint_text = "Click to view your editing options for this page. Then use the navigation links on the right."; }
	
	else if ( hint == "edit_page_content" )		{ hint_text = "This link will let you edit the content on this webpage."; }
	else if ( hint == "add_list_item" )			{ hint_text = "Click to add a new list item to your webpage."; }
	else if ( hint == "edit_list_item" )		{ hint_text = "Click to choose a list items on your webpage, and then edit it."; }
	else if ( hint == "delete_list_item" )		{ hint_text = "Click to choose lists items to remove from your webpage."; }
	else if ( hint == "plugin" )				{ hint_text = "Click this icon to edit the page's content that is controlled by this plugin."; }
	
	else if ( hint == "add_page" )				{ hint_text = "Click to add a new webpage to your website."; }
	else if ( hint == "add_sub_page" )			{ hint_text = "Click to add a new sub-page to the current page you are editing."; }
	else if ( hint == "edit_page_design" )		{ hint_text = "Click to edit the content design make-up for this page."; }
	else if ( hint == "delete_page" )			{ hint_text = "Click to delete this page from your website."; }
	else if ( hint == "server_side_file" )		{ hint_text = "Click to view how to update your webpages on the server to use SpryPanel content."; }
	
	else if ( hint == "add_new_page" )			{ hint_text = "Click to add a new page or sub-page to SpryPanel."; }
	else if ( hint == "add_new_user" )			{ hint_text = "Click to add a new SpryPanel user."; }
	else if ( hint == "edit_user_details" )		{ hint_text = "Click to edit the user details for SpryPanel."; }
	else if ( hint == "edit_user_privileges" )	{ hint_text = "Click to edit user privileges for the different files."; }
	else if ( hint == "personal_preferences" )	{ hint_text = "Click to change and set your own personal preferences for SpryPanel."; }
	else if ( hint == "system_preferences" )	{ hint_text = "Click to edit the system preferences from all SpryPanel users (SU only)."; }
	else if ( hint == "global_content" )		{ hint_text = "Click to reveal editing options for global content available on all SpryPanel page (SU only)."; }
	else if ( hint == "install_addons" )		{ hint_text = "Click to install additional themes and plugins from SpryPanel (SU only)."; }
	else if ( hint == "system_backup" )			{ hint_text = "Click to preform backup/restore of all content information (SU only)."; }
	else if ( hint == "logout" )				{ hint_text = "Click to logout of SpryPanel."; }
	
	else if ( hint == "show_admin" )			{ hint_text = "Click to show administration options for this page."; }
	else if ( hint == "hide_admin" )			{ hint_text = "Click to hide administration options for this page."; }
	
	else if ( hint == "std" )					{ hint_text = "To edit the content on one of your website's pages, use the icons to the right of the file name."; }

	document.getElementById("nav_hints").innerHTML=hint_text;
}

function view_web_site ( link ) {
	var page = window.open( link, 'site_view' );
	window.blur()
}

function admin_vis ( name ) {
	if ( document.getElementById('file_'+name+'_long').style.display == "none" ) {
		document.getElementById('file_'+name+'_short').style.display = "none";
		document.getElementById('file_'+name+'_long').style.display = "inline";
	} else {
		document.getElementById('file_'+name+'_long').style.display = "none";
		document.getElementById('file_'+name+'_short').style.display = "inline";
	}
}