function copyright()
{
	document.write('<font class="copyright"><br>2003-2012&nbsp;&copy; Unison Ltd. All Rights Reserved</font><br>');

}

function getparam(name){
	var pname = name + '='
	var ps    = window.location.search
	if(ps.length>0){
		var start=ps.indexOf(pname)
		if(start!=-1){
			start+=pname.length
			var end=ps.indexOf('&',start)
			if(end==-1) end=ps.length
			return unescape(ps.substring(start,end))
		}
	}
	return null
}

function refdir()
{
 this.atitles=new Array();
 this.ahrefs=new Array();
 this.add=addrefdir;
 this.addparam=addparam;
 this.count=0;
 this.show=showrefdir;
}

function addrefdir(name,ref)
{
 this.atitles[ this.count ] = name;
 this.ahrefs[ this.count ] = ref;
 this.count++; 
}

function addparam(byname,param)
{

 for(i=0; i<this.count; i++){
   name = this.atitles[ i ];
   
   if(name.indexOf(byname)!=-1){
    this.ahrefs[ i ] = this.ahrefs[ i ] + param;

   }
 } 
 
}



function showrefdir(byname)
{
 outs="";
 for(i=0; i<this.count; i++){
   name = this.atitles[ i ];
   ref = this.ahrefs[ i ];
   if(name.indexOf(byname)==-1){
    outs = outs + "<a class='titleref' href='"+ref+"' title='"+name+"'>"+name+"</a>&nbsp;";
   }else{
    outs = outs + "<span class='techref'><b>"+name+"</b></span>&nbsp;";
   }
 } 

 document.write (outs)
}

myrefdir=new refdir();

myrefdir.add("Bars", "Product_reference_bars.htm");
myrefdir.add("Ingots", "Product_reference_ingots.htm");
myrefdir.add("Bands", "Product_reference_bands.htm");
myrefdir.add("Wires", "Product_reference_wires.htm");
myrefdir.add("Chromium", "Products.htm#CHROMIUM");
myrefdir.add("Refractory metals", "Refractory_metals.htm");

myrefp=new refdir();

myrefp.add("Bars", "Products.htm#BARS");
myrefp.add("Ingots", "Products.htm#INGOTS");
myrefp.add("Bands", "Products.htm#BANDS");
myrefp.add("Wires", "Products.htm#WIRES");
myrefp.add("Chromium", "Products.htm#CHROMIUM");
myrefp.add("Refractory metals", "Products.htm#Refractory metals");



myrefpag=new refdir();

myrefpag.add("Products", "Products.htm");
myrefpag.add("Technical reference", "");



