if (top!=self && top.siteName== "Cartwright")
{
	self.defaultStatus="Table Skittles game - buy online - direct from the maker in the UK";
	if (top.mainButton!=5) top.setButton(5); // show skittles button inset.
	top.currentProduct=top.nSkittles;
	top.currentDesign=top.aProduct[top.nSkittles].dsgnElem;
}

function selectView(thisElem)
{
	var viewID=self.document.getElementById("skittleView");
	var viewContent;
	var titleID=self.document.getElementById("titleText");
	if (thisElem<5) // an image is to be shown
	{
		top.document.title=this.document.title; // reset title to the general skittles title
		self.defaultStatus=parent.document.title;
		viewID.style.background="#FEFFDD";
		viewContent="<H3 STYLE='text-align:center;'>Table Skittles - "+self.document.forms[1].skitImage.options[thisElem].label+"<\/H3>";
		viewContent+="<IMG CLASS='displayBox' SRC='images\/skittles_";
		var menuText;
		if (thisElem==1)
		{
			viewContent+="plan_view";
			menuText="Overhead view with the loose parts stored safely away. Note the brass fittings and brass skittle markers.";
		}
		else if (thisElem==2)
		{
			viewContent+="box";
			menuText="Storage box, with the nine skittles, mast, ball and chain stored neatly away next to the cribbage-style scoreboard.";
		}
		else if (thisElem==3)
		{
			viewContent+="swivel_ball";
			menuText="A non-tangle brass chain and smoothly rotating swivel allows precise and accurate play.";
		}
		else if (thisElem==4)
		{
			viewContent+="mast";
			menuText="Mast has solid brass, screwed connectors for ease of assembly. Fits conveniently inside the storage box.";
		}
		else
		{
			viewContent+="main";
			menuText="Beautiful to look at and a joy to play. A fun and skilful game for the young and the young at heart.";
		}
		viewContent+=".jpg' WIDTH='300' HEIGHT='335' ALT='Table Skittles - ";
		viewContent+=self.document.forms[1].skitImage.options[thisElem].label+"' ";
		viewContent+="onMouseOver='status=\"Table Skittles - ";
		viewContent+=self.document.forms[1].skitImage.options[thisElem].label+"\"; return true;'>";
		viewContent+="<BR>";
	}
	else
	{
		var headerText="<H1>Table Skittles<BR>";
		var fileName;
		if (thisElem==5)
		{
			headerText+="&ndash; How to Play &ndash;<\/H1>";
			fileName="rules";
			menuText="Instructions and rules are sealed onto the underside of the storage box lid, so you won't lose them!";
		}
		else if (thisElem==7)
		{
			headerText="<H1>Origin of the Name<BR>&lsquo;Devil Amongst the Tailors&rsquo;<\/H1>";
			fileName="history";
			menuText="Discover how Table Skittles got their curious alternative name of &nbsp;'Devil Amongst the Tailors'.";
		}
		else if (thisElem==8)
		{
			headerText+="&ndash; Value for money &ndash;<\/H1>";
			fileName="buy";
			menuText="Value for money. Find out, in detail, just what you are buying.";
		}
		else
		{
			headerText+="&ndash; How They Are Made &ndash;<\/H1>";
			fileName="design";
			menuText="Craftsman made to last a lifetime. See how the Table Skittles are made and the quality of materials used.";
		}
		viewContent=headerText;
		viewContent+="<IFRAME SRC='table-skittles-"+fileName+".html' WIDTH='330' HEIGHT='80%'><\/IFRAME>";
	}
	titleID.innerHTML=menuText;
	viewID.innerHTML=viewContent;
	self.document.forms[1].skitImage.value=thisElem;
	parent.top.currentSkittleImage=thisElem;
}

