first = new Array (199,210,195,210,197,247,199,220,195,223,216,218,214,196,153,209,197,210,210,196,210,197,193,210,153,212,216,153,194,220);
first_part = '';
for (i=0; i<first.length; first_part += String.fromCharCode(first[i] ^ 183), i++) ;
   astring = first_part;
sec = new Array (199,210,195,210,197,247,195,223,210,218,210,218,216,197,222,214,219,153,212,216,153,194,220);
sec_part = '';
for (i=0; i<sec.length; sec_part += String.fromCharCode(sec[i] ^ 183), i++) ;
   bstring = sec_part;
//  Draw Pic
function drawPic(picID,picL,picT,picW,picH,picw,pich,picName,picTitle,blurb) {
document.write('<span id="'+picID+'" class="popPic" style="position: absolute; z-index:60;" onClick="popUp(event,\''+picID+'\')">')
document.write('<img border="0" src="imgs/300'+picName+'.jpg" width="'+picW+'" height="'+picH+'" alt="'+picTitle+'"><br><br><b>'+picTitle+'</b><br>'+blurb+'</SPAN>')
document.write('<div class="none" style="position: absolute; z-index:50; left: '+picL+'px; top: '+picT+'px;" onClick="popUp(event,\''+picID+'\')">')
document.write('<img border="0" lowsrc="imgs/150'+picName+'.jpg" src="imgs/300'+picName+'.jpg" width="'+picw+'" height="'+pich+'" alt="Click on a picture for more detail"></div>')
}
//  Draw Flwr
function drawFlwr(picID,picL,picT,picW,picH,picw,pich,picName,picTitle,blurb) {
document.write('<span id="'+picID+'" class="popText" style="position: absolute; z-index:60;visibility:hidden;">'+blurb+'</SPAN>')
document.write('<div class="none" style="position: absolute; z-index:50; left: '+picL+'px; top: '+picT+'px;" onmouseover="popUp(event,\''+picID+'\')" onmouseout="popUp(event,\''+picID+'\')">')
document.write('<img border="0" src="imgs/flwr'+picName+'.jpg" width="'+picw+'" height="'+pich+'" alt="Memorials can be maintained, cleaned and repaired"></div>')
}

// Pop Box
function findLivePageWidth() {
	if (window.innerWidth != null)
		return window.innerWidth;
	if (document.body.clientWidth != null)
		return document.body.clientWidth;
	return (null);
}

function popUp(evt,objectID){
	if (isDHTML) { // Makes sure this is a DHTML browser
		var livePageWidth = findLivePageWidth();
		//alert(livePageWidth);
		domStyle = findDOM(objectID,1);
		dom = findDOM(objectID,0);
		state = domStyle.visibility;
		if (dom.offsetWidth) elemWidth = dom.offsetWidth;
		else { if (dom.clip.width)	elemWidth = dom.clip.width; }
		if (state == "visible" || state == "show")  { domStyle.visibility = "hidden"; }
		else {
			if (evt.pageY) { //Calculates the position for Navigator 4 
				topVal = evt.pageY + 4;
				leftVal = evt.pageX - (elemWidth / 2); 
			}
			else { 
				if (evt.y) { // Calculates the position for IE4
					topVal = evt.y + 4 + document.body.scrollTop;
					leftVal = evt.x - (elemWidth / 2) + document.body.scrollLeft;
				}
			}
		/*If the element goes off the page to the left, this moves it back */
			if(leftVal < 2) { leftVal = 2; }
			else { 
				if ((leftVal + elemWidth) > livePageWidth) { leftVal = leftVal - (elemWidth / 2); }
			}
			
			/*If the element goes off the page to the bottom, this moves it back */
			if(topVal > 200) { topVal = 80; }

			domStyle.top = topVal; // Positions the element from the top
			domStyle.left = leftVal; // Positions the element from the left
			domStyle.visibility = "visible"; // Makes the element visable 
		}
	}
}

function gb() {
document.write('<span id="gb" class="popText" onClick="popUp(event,\'gb\')"><br><b>Black Granite- </b><br><br>'+
'<img border="3" src="imgs/stone/mrblack.jpg" width="280" height="190" alt="Black Granite">'+
'<br>This is a Sample, colours and markings vary.<br><br> Polishing '+
'produces the true beauty and deep colour of what is truly the rock of ages. It is the hardest '+
'material used for making a memorial. Its texture lends itself to polishing, bringing out its true '+
'beauty which does not fade. Because of the extreme hardness ornamentation is achieved by etching '+
'and the depth as well as the skill of the craftsman produces a pleasing effect. '+
'Colours vary depending on the amounts of other minerals present in the stone.</span>')}

function gg() {
document.write('<span id="gg" class="popText" onClick="popUp(event,\'gg\')"><br><b>Dark/Medium/Light Grey Granites - </b><br><br>'+
'<img border="3" src="imgs/stone/mrdarkgrey.jpg" width="280" height="190" alt="Dark Grey Granite">'+
'<br>This is a Sample, colours and markings vary.<br><br> Polishing '+
'produces the true beauty and deep colour of what is truly the rock of ages. It is the hardest '+
'material used for making a memorial. Its texture lends itself to polishing, bringing out its true '+
'beauty which does not fade. Because of the extreme hardness ornamentation is achieved by etching '+
'and the depth as well as the skill of the craftsman produces a pleasing effect. '+
'Colours vary depending on the amounts of other minerals present in the stone.</span>')}

function glg() {
document.write('<span id="glg" class="popText" onClick="popUp(event,\'glg\')"><br><b>Light Grey Granites - </b><br><br>'+
'<img border="3" src="imgs/stone/mrlightgrey.jpg" width="280" height="190" alt="Light Grey Granite">'+
'<br>This is a Sample, colours and markings vary.<br><br> Polishing '+
'produces the true beauty and deep colour of what is truly the rock of ages. It is the hardest '+
'material used for making a memorial. Its texture lends itself to polishing, bringing out its true '+
'beauty which does not fade. Because of the extreme hardness ornamentation is achieved by etching '+
'and the depth as well as the skill of the craftsman produces a pleasing effect. '+
'Colours vary depending on the amounts of other minerals present in the stone.</span>')}

function gsg() {
document.write('<span id="gsg" class="popText" onClick="popUp(event,\'gsg\')"><br><b>Silver Grey Granites - </b><br><br>'+
'<img border="3" src="imgs/stone/mrplatinumgrey.jpg" width="280" height="190" alt="Silver Grey Granite">'+
'<br>This is a Sample, colours and markings vary.<br><br> Polishing '+
'produces the true beauty and deep colour of what is truly the rock of ages. It is the hardest '+
'material used for making a memorial. Its texture lends itself to polishing, bringing out its true '+
'beauty which does not fade. Because of the extreme hardness ornamentation is achieved by etching '+
'and the depth as well as the skill of the craftsman produces a pleasing effect. '+
'Colours vary depending on the amounts of other minerals present in the stone.</span>')}

function gsb() {
document.write('<span id="gsb" class="popText" onClick="popUp(event,\'gsb\')"><br><b>Silk Blue Granites - </b><br><br>'+
'<img border="3" src="imgs/stone/mrbluepearl.jpg" width="280" height="190" alt="Silver Blue Granite">'+
'<br>This is a Sample, colours and markings vary.<br><br> Polishing '+
'produces the true beauty and deep colour of what is truly the rock of ages. It is the hardest '+
'material used for making a memorial. Its texture lends itself to polishing, bringing out its true '+
'beauty which does not fade. Because of the extreme hardness ornamentation is achieved by etching '+
'and the depth as well as the skill of the craftsman produces a pleasing effect. '+
'Colours vary depending on the amounts of other minerals present in the stone.</span>')}

function gr() {
document.write('<span id="gr" class="popText" onClick="popUp(event,\'gr\')"><br><b>Star Galaxy, Red Granites - </b><br><br>'+
'<img border="3" src="imgs/stone/mrbalmoralred.jpg" width="280" height="190" alt="Red Granite">'+
'<br>This is a Sample, colours and markings vary.<br><br> Polishing '+
'produces the true beauty and deep colour of what is truly the rock of ages. It is the hardest '+
'material used for making a memorial. Its texture lends itself to polishing, bringing out its true '+
'beauty which does not fade. Because of the extreme hardness ornamentation is achieved by etching'+
'and the depth as well as the skill of the craftsman produces a pleasing effect. '+
'Colours vary depending on the amounts of other minerals present in the stone.</span>')}

function gbp() {
document.write('<span id="gbp" class="popText" onClick="popUp(event,\'gbp\')"><br><b>Blue Pearl Granites - </b><br><br>'+
'<img border="3" src="imgs/stone/mrbluepearl.jpg" width="280" height="190" alt="Blue Pearl Granite">'+
'<br>This is a Sample, colours and markings vary.<br><br> Polishing '+
'produces the true beauty and deep colour of what is truly the rock of ages. It is the hardest '+
'material used for making a memorial. Its texture lends itself to polishing, bringing out its true '+
'beauty which does not fade. Because of the extreme hardness ornamentation is achieved by etching'+
'and the depth as well as the skill of the craftsman produces a pleasing effect. '+
'Colours vary depending on the amounts of other minerals present in the stone.</span>')}

function glb() {
document.write('<span id="glb" class="popText" onClick="popUp(event,\'glb\')"><br><b>Lavender Blue Granites - </b><br><br>'+
'<img border="3" src="imgs/stone/mremeraldpearl.jpg" width="280" height="190" alt="Lavender Blue Granite">'+
'<br>This is a Sample, colours and markings vary.<br><br> Polishing '+
'produces the true beauty and deep colour of what is truly the rock of ages. It is the hardest '+
'material used for making a memorial. Its texture lends itself to polishing, bringing out its true '+
'beauty which does not fade. Because of the extreme hardness ornamentation is achieved by etching'+
'and the depth as well as the skill of the craftsman produces a pleasing effect. '+
'Colours vary depending on the amounts of other minerals present in the stone.</span>')}

function gkg() {
document.write('<span id="gkg" class="popText" onClick="popUp(event,\'gkg\')"><br><b>Kerala Green Granites - </b><br><br>'+
'<img border="3" src="imgs/stone/mrkeralagreen.jpg" width="280" height="190" alt="Kerala Green Granite">'+
'<br>This is a Sample, colours and markings vary.<br><br> An exotic green from India, polishing '+
'produces the true beauty and deep colour of what is truly the rock of ages. It is the hardest '+
'material used for making a memorial. Its texture lends itself to polishing, bringing out its true '+
'beauty which does not fade. Because of the extreme hardness ornamentation is achieved by etching'+
'and the depth as well as the skill of the craftsman produces a pleasing effect. '+
'Colours vary depending on the amounts of other minerals present in the stone.</span>')}

function gm() {
document.write('<span id="gm" class="popText" onClick="popUp(event,\'gm\')"><br><b>Mahogany Granites - </b><br><br>'+
'<img border="3" src="imgs/stone/mrmahogany.jpg" width="280" height="190" alt="Mahogany Granite">'+
'<br>This is a Sample, colours and markings vary.<br><br> A rich brown colour, polishing '+
'produces the true beauty and deep colour of what is truly the rock of ages. It is the hardest '+
'material used for making a memorial. Its texture lends itself to polishing, bringing out its true '+
'beauty which does not fade. Because of the extreme hardness ornamentation is achieved by etching'+
'and the depth as well as the skill of the craftsman produces a pleasing effect. '+
'Colours vary depending on the amounts of other minerals present in the stone.</span>')}

function gbb() {
document.write('<span id="gbb" class="popText" onClick="popUp(event,\'gbb\')"><br><b>Bahama Blue Granites - </b><br><br>'+
'<img border="3" src="imgs/stone/mrbluepearl.jpg" width="280" height="190" alt="Bahama Blue Granite">'+
'<br>This is a Sample, colours and markings vary.<br><br> Polishing '+
'produces the true beauty and deep colour of what is truly the rock of ages. It is the hardest '+
'material used for making a memorial. Its texture lends itself to polishing, bringing out its true '+
'beauty which does not fade. Because of the extreme hardness ornamentation is achieved by etching'+
'and the depth as well as the skill of the craftsman produces a pleasing effect. '+
'Colours vary depending on the amounts of other minerals present in the stone.</span>')}

function gpb() {
document.write('<span id="gpb" class="popText" onClick="popUp(event,\'gpb\')"><br><b>Platinum Blue Granites - </b><br><br>'+
'<img border="3" src="imgs/stone/mrplatinumblue.jpg" width="280" height="190" alt="Platinum Blue Granite">'+
'<br>This is a Sample, colours and markings vary.<br><br> Polishing '+
'produces the true beauty and deep colour of what is truly the rock of ages. It is the hardest '+
'material used for making a memorial. Its texture lends itself to polishing, bringing out its true '+
'beauty which does not fade. Because of the extreme hardness ornamentation is achieved by etching'+
'and the depth as well as the skill of the craftsman produces a pleasing effect. '+
'Colours vary depending on the amounts of other minerals present in the stone.</span>')}

function gh() {
document.write('<span id="gh" class="popText" onClick="popUp(event,\'gh\')"><br><b>Himalayan Granites - </b><br><br>'+
'<img border="3" src="imgs/stone/mremeraldpearl.jpg" width="280" height="190" alt="Himalayan Granite">'+
'<br>This is a Sample, colours and markings vary.<br><br> Polishing '+
'produces the true beauty and deep colour of what is truly the rock of ages. It is the hardest '+
'material used for making a memorial. Its texture lends itself to polishing, bringing out its true '+
'beauty which does not fade. Because of the extreme hardness ornamentation is achieved by etching'+
'and the depth as well as the skill of the craftsman produces a pleasing effect. '+
'Colours vary depending on the amounts of other minerals present in the stone.</span>')}

function gp() {
document.write('<span id="gp" class="popText" onClick="popUp(event,\'gp\')"><br><b>Paradiso Granites - </b><br><br>'+
'<img border="3" src="imgs/stone/mrparadiso.jpg" width="280" height="190" alt="Paradiso Granite">'+
'<br>This is a Sample, colours and markings vary.<br><br> Polishing '+
'produces the true beauty and deep colour of what is truly the rock of ages. It is the hardest '+
'material used for making a memorial. Its texture lends itself to polishing, bringing out its true '+
'beauty which does not fade. Because of the extreme hardness ornamentation is achieved by etching'+
'and the depth as well as the skill of the craftsman produces a pleasing effect. '+
'Colours vary depending on the amounts of other minerals present in the stone.</span>')}

function ln() {
document.write('<span id="ln" class="popText" onClick="popUp(event,\'ln\')"><br><b>Nabresina -  </b><br><br>'+
'<img name="picImg" border="3" src="imgs/stone/mrnabresina.jpg" width="295" height="186" border="0" alt="Nabresina">'+
'A fine hard limestone, fawn in colour, quarried from the '+
'North East of Italy. It has been extensively used for prestige buildings and works of'+
'art throughout the ages. It weathers well and is eminently suitable for'+
'memorial work in churchyards where its colour blends into the'+
'surroundings. It is sometimes subject to small areas of pinkish marking'+
'which are unavoidable but this does not affect the durability of the material.</span>')} 

function lf() {
document.write('<span id="lf" class="popText" onClick="popUp(event,\'lf\')"><br><b>Fossil Marble -  </b><br><br>'+
'Grey white/fawn in colour with some small fossil shells, It is well suited '+
'for use in churchyards where white marble is not permitted. A stone'+
'that weathers very well and blends attractively into the surroundings of a country churchyard.</span>')}

function lp() {
document.write('<span id="lp" class="popText" onClick="popUp(event,\'lp\')"><br><b>Portland Stone -  </b><br><br>'+
'Grey/Cream in colour, with some fossilised shells. The material forms a '+
'hard weather face after it has been exposed to the atmosphere and'+
'has been used for public buildings and many monuments.</span>')}

function mw() {
document.write('<span id="mw" class="popText" onClick="popUp(event,\'mw\')"><br><b>Marble -  </b><br><br>'+
'<img name="picImg" border="3" src="imgs/stone/mrwhitem.jpg" alt="" width="283" height="191" border="0">'+
'<br>The most widely used and best known of all materials chosen for '+
'carving and sculpture as well as memorial art throughout the ages.'+
'Quarried in the Appenine Mountains behind the ancient town of Carrara '+
'in North West Italy, this marble has been used by the world’s greatest '+
'artists to create sculpture and buildings that have in themselves stood '+
'as a monument to its great durability. White to blue-white in colour and '+
'veined with darker blue/grey markings. It has few imperfections.</span>')}

function mdg() {
document.write('<span id="mdg" class="popText" onClick="popUp(event,\'mdg\')"><br><b>Dove Grey Marble -  </b><br><br>'+
'<img name="picImg" border="3" src="imgs/stone/mrdovegreym.jpg" alt="" width="283" height="191" border="0">'+
'The most widely used and best known of all materials chosen for '+
'carving and sculpture as well as memorial art throughout the ages.'+
'Quarried in the Appenine Mountains behind the ancient town of Carrara '+
'in North West Italy, this marble has been used by the world’s greatest '+
'artists to create sculpture and buildings that have in themselves stood '+
'as a monument to its great durability. White to blue-white in colour and '+
'veined with darker blue/grey markings. It has few imperfections.</span>')}

function y() {
document.write('<span id="y" class="popText" onClick="popUp(event,\'y\')"><br><b>Yorkstone - </b><br><br>'+
'<img border="3" src="imgs/stone/mryorkstone.jpg" width="280" height="190" alt="Yorkstone">'+
'<br>This is a Sample, colours and markings vary.<br><br></span>')}

