var helpObjectsArray= new Array();
var helpMessagesArray= new Array();

function setUpHelpInfo() 
  {
   var helpMessage0;
   var helpMesasge1;
   var helpMessage2;
   var helpMessage3;
   var helpMessage4;  
   var helpMessage5;  
   var helpMessage6;
   var helpMessage7;
   
   helpMessage0 = [[270,173],4,"#bacae8",
   					['Usage Information',
					'To view information such as size, price and pack size'+
					' of an item please select a picture from above.',
					'Below you will see two views of the same item.',
					'While the pictures are loading a progress bar will appear between '+
					'the two windows.'] ];

	helpMessage1 = [[270,202], 4,"#bacae8",
					['View Information',
					'The left window displays the main picture of the item. '+
					'You can enlarge the main picture by selecting the magnifying glass.',
					'The right window displays alternative views of the item. '+
					'If there are multiple views a number of buttons will appear '+
					'under the window on the right. Select a button to show a different '+
					'view.',
					'When you are viewing a magnified area a white '+
					'frame will appear on the left picture to highlight the magnified area.']];

	helpMessage2 = [[460,318], 4,"#bacae8",
					['Price Information',
					'UK and EEC prices include VAT.', 
					'USA prices do not include VAT and do not include any destination'+
					' import taxes due, which must be paid by the client.' ,
					'All prices exclude packaging and delivery. ']];

	helpMessage3 = [[430,230], 4,"#bacae8",
					['Company Information',
					'www.vetrame.com is the trading name of J.D. Advanced Systems Ltd.', 
					'J.D. Advanced Systems Ltd  is incorporated in England, United Kingdom.' ,
					'Company Reg. No. : 2916663  VAT Reg. No. : 730 6714 48']];

  	helpMessage4 = [[260,55],3,"#bacae8",
   					['Usage Information',
					'Below you see two views of the same item.',
					'While the pictures are loading a progress bar will appear between '+
					'the two windows.',
					 '']];

	helpMessage5 = [[260,400], 2,"#bacae8",
					['Navigation Information',		
					'You can view a page either by selecting a page number from the drop down menu or  '+
					'by using the NEXT , PREVIOUS arrows at each end of the line.',
					'','']];
					
// Below are the help messages for the configuration screen
  helpMessage6 = [[131,308],2,"#e9edf7",
   					['Pictures Information',					
					'"Pictures per page" controls the number of items you can view on a page.',
					'The default value is 9 items per page.','']];

  helpMessage7 = [[131,335],2,"#e9edf7",
   					['Prices Information',
					
					'All prices will be displayed in at least £ British Pounds (GBP).',
					'This value can not be modified.','']];

 helpMessage8 = [[131,372],2,"#e9edf7",
   					['Prices Information',
					
					'You can view item prices in one additional currency.',
					'The default value is € EURO (EEC).','']];

helpMessage9 = [[131,387],2,"#e9edf7",
   					['Dimensions Information',					
					'You can view the dimensions of an item in either centimeters or inches.',
					'The default value is Centimeters.','']];

helpMessage10 = [[131,387],2,"#e9edf7",
   					['Saving Information',					
					'You can save the setting on your local machine for future visits.',
					'The default value is to discart the settings when you leave our website.','']];

helpMessage11 = [[131,387],2,"#e9edf7",
   					['Product Information',					
					'You can select a Product.',
					'Leave this option to -- Products -- if you want to search across all Products.','']];

helpMessage12 = [[131,387],2,"#e9edf7",
   					['Colour Information',					
					'You can select a Colour.',
					'Leave this option to -- Colours -- if you want to search across all Colours.','']];

helpMessage13 = [[131,387],2,"#e9edf7",
   					['From Price Information',					
					'You can specify a minimum Price. Price should be in UK Pounds (£).',
					'If you enter only one price we will search a range of £20 (Pounds) difference.','']];

helpMessage14 = [[131,387],2,"#e9edf7",
   					['To Price Information',					
					'You can specify a maximum Price. Price should be in UK Pounds (£).',
					'If you enter only one price we will search a range of £20 (Pounds) difference.','']];

helpMessage15 = [[131,387],2,"#e9edf7",
   					['Actions Information',					
					'Select Reset Values to reset all settings .',
					'The Search button will be enabled when you select at least a product, colour , enter a price or a dimension.','']];

helpMessage16 = [[131,387],3,"#e9edf7",
   					['Dimensions Information',					
					'Enter a value for one of the dimension fields if you are looking for a specific size product .',
					'Only your first entry will be used in the search.  Values are in centimeters.',
					'We will search for a range of +/- 1 centimeter to your value.']];
										
	helpMessagesArray = [helpMessage0,helpMessage1,helpMessage2,helpMessage3,helpMessage4,
						 helpMessage5,helpMessage6,helpMessage7,helpMessage8,helpMessage9,helpMessage10,
						 helpMessage11,helpMessage12,helpMessage13,helpMessage14,helpMessage15,helpMessage16];
	locateHelpObjects();
   };

function locateHelpObjects()
   {	
	var tempObject = findObject("help",1);
  	var tempObject0 = findObject("helpHeading",0);
  	var tempObject1 = findObject("helpParagraph1",0);
  	var tempObject2 = findObject("helpParagraph2",0);
  	var tempObject3 = findObject("helpParagraph3",0);
	var tempObject4 = findObject("helpTable3",1);
	helpObjectsArray = [tempObject, tempObject0, tempObject1, tempObject2,
					   tempObject3, tempObject4];
	};


function hideHelp() 
  {
  	helpObjectsArray[0].visibility = 'hidden';
  };
  
function showHelp(aNumber) 
 {  var message;
	message = helpMessagesArray[aNumber];
	displayHelp(message[3],message[1], message[2], message[0][0],message[0][1],0,0);
				
  };
  
function showHelp0(aNumber,aColour,xPos,yPos,xOffset,yOffset) 
 {  var message;
	message = helpMessagesArray[aNumber];
	displayHelp(message[3],message[1], aColour,xPos,yPos,xOffset,yOffset);				
  };
  
function showHelp1(aNumber,aColour,xPos,yPos) 
 {  var message;
	message = helpMessagesArray[aNumber];
	displayHelp(message[3],message[1], aColour,xPos,yPos,0,0);
				
  };
  
 function showHelp2(aNumber,xPos,yPos) 
 {  var message;
	message = helpMessagesArray[aNumber];
	displayHelp(message[3],message[1], message[2],xPos,yPos,0,0);
				
  };
function displayHelp(aTextArray,numberOfMessages, aColour,xPos, yPos,xOffset, yOffset) 
 {
	  var j;
	  for (j = 1; j< 5; j++)
		   {helpObjectsArray[j].innerHTML 	= aTextArray[j-1];
		    if (j>1)
			  helpObjectsArray[j].style.backgroundColor = aColour;
			
		   };
		   
	 
	  if ( numberOfMessages < 3)
	  	   {helpObjectsArray[5].display = 'none'}
	  else
	       {helpObjectsArray[5].display = 'block'}; 
	
	helpObjectsArray[0].left = xPos + xOffset;
	helpObjectsArray[0].top  = yPos + yOffset;
    helpObjectsArray[0].visibility = 'visible';
  };

  

					   