function help()
{
	//--------register page----------
	this.helpRegisterInterests="Your interests could be companies, technologies, places, or Universities for example. Your keywords and phrases actually define the working groups within eurekahub which you would like to join (e.g. sustainable development). It is very easy to add more groups to your profile once you have registered, it is not necessary to think of all your interests at this stage!<br><br><i>Please do not leave a space at the end of an entered keyword or phrase, just hit carriage return to start a new row, or save when finished.</i>";
	this.helpRegisterSummary="Although it is laborious to punch in details about yourself it is a requirement that we know the salient points about your career. Why? Because this content enters our internal search engine and creates links with other members, adds you to working groups automatically and suggests which other groups might be of interest to you. Later on you may upload your CV into eurekahub, to establish deeper links with other members.";
	//------end of register page-----

	//------my profile page----------
	this.helpProfileInterests="These keywords define your ongoing participation in selected working groups within Gaia-kens. You can add new groups from the index by clicking on the blue cross against each working group. You can remove a group by editing the list in your profile.";
	this.helpProfileSummary="In Gaia-kens the \"career summary to date\" is considered as a document (in group and member lists) even though it is actually a field in a database. The important point is that these words hold valuable links to other members and groups that may be interested in your career and achievements.";
	this.helpProfileDocuments="You can upload documents into Gaia-kens in a range of formats (word, ppt, doc, txt, pdf) which may demonstrate your interests, skills, and experience (the logging report is therefore a good document in this regard). Each document enters our internal search engine and automatically links up with other consultants, who will be notified of their arrival (the who, the what, and importantly the why).";
	this.helpProfileDocumentsMap="Each document has a map of linked consultants, sorted by logging Co. or country (by %'s). It is useful to see which consulants hold similar experience or interests as you.</i>";
	this.helpProfileDocumentsRff="RFF stands fo Request for Feedback. When you upload a document you can ask linked members for guidance and feedback. It might be an executive summary to a business plan, a new technology or service that needs marketing help, or perhaps your CV, should you be looking for a new opportunity. Linked members form a working group around the document, and group replies can be posted/read on the RFF board in the forum.<br><br><i>The RFF process is not instantaneous, the re-indexing and link builder operates twice daily. Please be patient in this regard - we hope to optimise RFF in due course (as you can imagine it is computationally intensive).</i>";
	this.helpProfileDocumentAppear="\"Groups I also appear in\" are not defined by a list in your profile, they are created by inbound links to your profile and documents. You may be surprised by your membership to some of these groups, but you can always see the context in which you belong by rolling over your document links in the group members list.<br><br><i>If your career summary to date is blank and you have not uploaded any documents  then \"Groups I also appear in\" may remain empty.<br><br>If a member posts a query to either your working groups, or \"groups I also appear in\" then you will be notified at the time of login.</i>";
	//------end of my profile page----------
	
	//------index page---------
	this.helpIndexFilter="When you first click on the index page you see all the groups alaphabetically sorted. When you use the filter option you can see all groups that are within specific industry sectors.<br><br><i>If you are wondering what other groups exist within your industry sector then select the filter and scroll down the resulting group list. If you see a group that you would like to join just click on the blue cross adjacent to the group name.</i>";
	this.helpIndexSearch="To save time in searching for relevant groups you can enter the first few characters of the group and you will get a list of relevant groups, which you can then explore or join if you wish.";
	this.helpIndexSearch+="<br><br>For example, if I type tech and then click the go button I get the following groups (subject to change of course!)";
	this.helpIndexSearch+="<br><br>Technip";
	this.helpIndexSearch+="<br>Technology management";
	this.helpIndexSearch+="<br>technology park";
	this.helpIndexSearch+="<br>technology planning";
	this.helpIndexSearch+="<br>technology roadmapping";
	this.helpIndexSearch+="<br>technology strategy";
	this.helpIndexSearch+="<br>technology transfer";
	this.helpIndexSearch+="<br>Technopole";
	this.helpIndexSearch+="<br>Textile technology";
	this.helpIndexSearch+="<br>Training Technology";
	this.helpIndexDefine="If you cannot find a working group of interest to you then you can define one. Type in the keyword or phrase and click the define button the system will drill into the hub and populate the new group with relevant members and content.<br><br><i>We would ask you search carefully before creating a new group, we would like to avoid duplication if possible.</i>";
	this.helpIndexDocs="These are the documents or career summaries that possess the group keywords. If you rollover the document link you can see the context in which the member belongs to the group. If you click on the document link you may open the document (in line with our terms and conditions protecting members' intellectual property).<br><br><i>If there is no document link against a member\'s profile it just means that the member has joined the group but has not written about the subject.</i>";
	this.helpIndexInboundMap="These are the same maps as seen against members documents in their profiles. They represent inbound links from other members, sorted by industry sector or country.";
	//------end of index page---------
	
	//--------- forum-------
	this.helpForumFilter="If you select \"Filter to my groups only\" it means you only see forum postings that are relevant to you. If you deselect this option then you will see all postings to all groups.";
	//-- end of  forum-------
	
	//---search in indexers page---
	this.helpSearchQuery="use double quotes for exact phrases: \"my phrase\";\
						<br>\
						<br>\
						use sybmol * for similar words: canad*\
						<br>\
						will be found canada and canadian\
						<br>\
						<br>\
						use symbol ? for 1 letter: river?\
						<br>\
						will be found river and rivers\
						";

	this.createDiv=helpCreateDiv;
	this.setHelp=helpSet;
	this.showHelp=helpShow;
	this.hideHelp=helpHide;
}


function helpCreateDiv()
{
	var div = document.createElement("div");
	var bod=document.getElementsByTagName('body')[0];
	//var bod=document.getElementById('in_table');
	div.setAttribute("id", "helpDiv");
	div.setAttribute("align", "justify");
	//div.setAttribute("class", "helpDiv");//located in css/styles.css
	div.style.visibility='hidden';
	div.style.position='absolute';
	div.style.width='300px';
div.style.borderStyle='solid';
div.style.borderColor='#000000';
div.style.borderWidth='1px';
div.style.backgroundColor='#f5f5f5';
div.style.padding='3px';
div.style.zIndex='1000';
div.style.filter= "progid:DXImageTransform.Microsoft.Alpha(opacity=85)";

div.style.MozOpacity='0.85';
div.style.opacity='0.85';
	bod.appendChild(div);
}

function helpSet(html)
{
	help=document.getElementById("helpDiv");
	help.innerHTML=this[html];
	//---------
	var evt=null;
	if(document.createEvent)
	{
	evt = document.createEvent("MouseEvents");
  		evt.initMouseEvent("mousemove", true, true, window,0, 0, 0, 0, 0, false, false, false, false, 0, null);
  	}
	//-------
	helpShow(evt);
	help.style.visibility='visible';
}

function helpShow(aEvent)
{
	var myEvent = window.event ? window.event : aEvent;

	_x=myEvent.clientX; 
	_y=myEvent.clientY; 
	_dx=5; 
	left=false;
	right=false;
	var myalt=document.getElementById('helpDiv');
if(document.body.clientWidth-10>(_x+10+myalt.clientWidth))
	myalt.style.left=_x+10;
else
	myalt.style.left=document.body.clientWidth-myalt.clientWidth-10;
var wid=_y+myalt.clientHeight+20;
if (document.body.clientHeight>wid)
	myalt.style.top=_y+document.body.scrollTop+20;
else
	myalt.style.top=_y+document.body.scrollTop-15-myalt.clientHeight;
}

function helpHide()
{
	help=document.getElementById("helpDiv");
	help.style.visibility='hidden';
}

var eurekaHelp=new help();
eurekaHelp.createDiv();

//--\/--- user auto logout---\/------
window.setTimeout("jsLogout()",1000*60*30);//30 minutes

function jsLogout()
{
//	alert('test');
	window.location.href="http://www.gaia-kens.co.uk/logout.php";
}
