var arrText=new Array()

arrText[0] = "You can obtain a photochromic effect with as little as 0.01% concentration!...";
arrText[1] = "Reversacols are available in 22 vibrant colours!...";
arrText[2] = "Reversacols can be combined with other coloured dyes to produce interesting effects..."
arrText[3] = "The rate of fade can range from a few seconds to a few hours!...";
arrText[4] = "Less is more! Adding too much dye can result in no effect...";
arrText[5] = "Reversacols can be incorporated into many different systems like inks, plastics, coatings or fibres...";

// the string number to start with (0 is first)
var iCurItem = 0;
// the numbers of items to display. if this is "null" then the browser
// is really old and we should do nothing
var iNumItems = arrText.length;
// the length (in milliseconds) for which each item will be displayed
var iDelayMilliseconds = 5000;


function showNextItem() {
	var sIEHTML;
	
	// show the text
	if (iNumItems != null) {
			sIEHTML = arrText[iCurItem];
			divDidYouKnow.innerHTML = sIEHTML
		} 
		// set the next item, roll-over to the start of the list, if needed
		iCurItem = (iCurItem + 1) % iNumItems;
		// run this function again after a delay
		setTimeout("showNextItem()", iDelayMilliseconds);
	}


function buttonMaker(sBut,sMenu,sMouse) {

if (sMouse == 'over') {
document.all[sBut].style.backgroundColor='#56595C';
HM_f_PopUp(sMenu,event);
document.body.style.cursor = 'hand';
}

if (sMouse == 'out') {
document.all[sBut].style.backgroundColor='#009530';
HM_f_PopDown(sMenu);
document.body.style.cursor = 'default'; }

}  function Validator()
  {

	docObj = document.frmSearch

	if (docObj.pnumber.value == "")
		{
		alert("Please enter a full or partial product number");
		docObj.pnumber.focus();
		return(false);
		}
else if (docObj.pnumber.value != "")
		{
location.href=("http://www.james-robinson.ltd.uk/jr/products.nsf/$searchview?SearchView&Query=*"+docObj.pnumber.value+"*&SearchOrder=4");
		docObj.pnumber.focus();
		return(false);
		}}