
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
function tip(item){
	switch (item){
	case 1:
		tiptext="Who is Galvatech?"; tiptop=142;
	break;
	case 2:
		tiptext="What does Galvatech do?"; tiptop=159;
	break;
	case 3:
		tiptext="Show examples of Galvatech's work.";tiptop=176;
	break;
	case 4:
		tiptext="Technical information regarding galvanising.";tiptop=193;
	break;
	case 5:
		tiptext="Where is Galvatech?";tiptop=210;
	break;
	case 6:
		tiptext="A full list of Galvatech news items.";tiptop=227;
	break;
	case 7:
		tiptext="Relevant galvanising links.";tiptop=244;
	break;
	case 8:
		tiptext="Contact Galvatech for feedback or information.";tiptop=261;
	break;
	}
	tooltip.innerHTML=tiptext;
	MM_showHideLayers('tooltip','','show');
	//tooltip.style.top=50 //tiptop;
	tempX=document.body.clientWidth/2 -130;
	tooltip.style.left=tempX;
	
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function showpic(obj){
	l=document.getElementById('bigpiclayer');
	sHTML="<img src=\"" + obj.src.replace("sm","lg") + "\" name=\"bigpic\" border=\"3\" bordercolor=\"#fdecbd\" onclick=\"hide()\" alt=\"Click to Close\">";
	l.innerHTML=sHTML;
	b=document.body;
	p=document.bigpic;
	l.style.top= b.scrollTop + (b.clientHeight)/2 - (p.height)/2; 
	l.style.left= b.scrollLeft + (b.clientWidth)/2 - (p.width)/2;
	l.width=p.width + 6;
	l.height=p.height + 6;
	l.style.visibility="visible";
//alert(sHTML);
}
function hide(){
	piclay=document.getElementById('bigpiclayer');
	piclay.style.visibility="hidden";
}

