var ProbText=Array();
var ProbTitle=Array(); //This array holds descriptor text for each list item
var ProbID=Array();  //This array holds descriptor text for each list item
var ProbIMG=Array(); //This array holds an IMG tag

	i=1;
	ProbTitle[i]="chimney stacks";
	ProbText[i]="Easily forgotten about, chimney pots and stacks are potentially dangerous - if they fall off in a strong wind they can kill. The pots and the stacks are all exposed to the elements and are very prone to deterioration over time. A simple visual inspection from the ground should be able to tell you whether you need to call in an expert - you're looking for brickwork falling apart, the mortar receeding between the brick courses and any signs of general unevenness.";
	ProbID[i]="x" + i;
	ProbIMG[i]="chimney.jpg";
	++i;
	
	ProbTitle[i]="Condensation";
	ProbText[i]="Condensation is a widespread problem and can be a health hazard; the problem is most common in autumn and winter when the air is colder and the amount of moisture in it higher. There are four factors to consider - the activities which generate moisture (such as cooking, washing etc); the ventilation in your home; the insulation in your home and the overall temperature. All of these play a part. If you frequently have misted up windows, it's a good indication that you need to look into the cause of the problem.";
	ProbID[i]="x" + i;
	ProbIMG[i]="condensation.jpg";
	++i;
	
	ProbTitle[i]="External Woodwork";
	ProbText[i]="All timber that's used outside has to be protected from rainwater getting into it - otherwise it will rot. Therefore, all the materials that are used to protect wood or come in contact with it have to be well maintained - paint, varnish, stain and window putty. Prevention is always better than cure - replacing timber can be very expensive. The first sign of any deterioration needs prompt investigation.";
	ProbID[i]="x" + i;
	ProbIMG[i]="external_wood.jpg";
	++i;
	
	ProbTitle[i]="Gutters, Downpipes and Overflows";
	ProbText[i]="These all carry water away from where it can cause harm, whether rainwater or water from an indoor appliance (such as a toilet cistern) that would otherwise overflow. So, if they are blocked, coming away from the wall or leaking at the joints, they can cause problems. As is often the case, getting into the routine of checking for blockages, leaks and so on - even if it does mean going out in the rain ! - will save you money in the long run.";
	ProbID[i]="x" + i;
	ProbIMG[i]="gutters.jpg";
	++i;
	
	ProbTitle[i]="Rising Damp";
	ProbText[i]="Technically, true rising damp is not very common. However, many things can cause damp - and damp is damaging to both property and - in exteme cases - health. Bad condensation damage can look like rising damp, as can the damage caused by leaking gutters etc if left for a long time. Another common cause of what appears to be rising damp is where something is bridging the damp-course - i.e. something piled up against a wall. Look out for tell-tale signs such discoloured brickwork after rain fall, and/or moss or mould growing where it shouldn't be.";
	ProbID[i]="x" + i;
	ProbIMG[i]="rising_damp.jpg";
	++i;
	
	ProbTitle[i]="Roofs";
	ProbText[i]="There's a lot that can go wrong with a roof, so keep a close eye on yours - especially after any strong winds. Look out for slipped tiles or ridge tiles (the ones that run along the top); cracked or lifted 'flashings' (the concrete or metal used at joins such as between a chimney stack and the roof tiles); bubbling or cracking flat roofs and - of course - any leaks. These might be very minor at first, but as always, time spent on checking and - if necessary - repairing problems early on will save a fortune later.";
	ProbID[i]="x" + i;
	ProbIMG[i]="roofs.jpg";
	++i;
	
	ProbTitle[i]="Sub-Floor Ventilation";
	ProbText[i]="If your house has a wooden ground floor, then it needs a continuous air flow underneath. Otherwise, the timber is at risk from wet or dry rot and wood-boring insect attack. It is easy for the air flow vents to become accidentally blocked, so keep an eye on those. Also, if you house has been extended with a concerete base, you need to make sure air ducts have been put in for the rest of the flooring.";
	ProbID[i]="x" + i;
	ProbIMG[i]="ventilation.jpg"
	
	var NumProd=i;
	
	for (i=1;i<=NumProd;++i){
		var listitem=document.getElementById(ProbID[i]);
		if (listitem){
			listitem.href="#lnkprobs";
			listitem.onmouseup=liclickfun;
		}
	}
	
function liclickfun(){
	var mynum=this.id.substring(1,3);
	var libox=document.getElementById("listbox");
	if (libox){
		libox.className="listitem";
		libox.innerHTML='<img src="lookingafter/' + ProbIMG[mynum] + '"/><a  id="liboxhide" onclick="fnliboxhide"><img src="layout/buthide.gif" class="imgelement" alt="Hide"></a><h2>' + ProbTitle[mynum] + '</h2>	<p>' + ProbText[mynum] +'</p>'
		var libhide=document.getElementById("liboxhide");
		libhide.onclick=fnliboxhide;
		
	}else{
		window.location="lookingafter.asp?listid="+mynum + "#lnkprobs";
	}
}

function fnliboxhide(){
	var libox=document.getElementById("listbox");
	if (libox){
		libox.innerHTML="";
		libox.className="hidden";
	}else{
		window.location="lookingafter.asp";
	}
}
