var eventIE='';
var page = new setPageCoords()

function isIE() {
	if((navigator.appName.indexOf("Internet Explorer") != -1) && (navigator.appVersion.substring(0, 1) >= 4) && (navigator.userAgent.indexOf("Mac_PowerPC") == -1) && (navigator.userAgent.indexOf("Opera") == -1)){
		return true;
	}
	else {
		return false;
	}
}

function isNC() {
	if(((navigator.appName.indexOf("Netscape") != -1) && (navigator.appVersion.substring(0, 1) >= 4) && (navigator.appVersion.substring(0, 4) != 4.08) && (navigator.appVersion.substring(0, 4) != 4.05) && (navigator.appVersion.substring(0, 4) != 4.04)) || (navigator.userAgent.indexOf("Mac_PowerPC") != -1) || (navigator.userAgent.indexOf("Opera") != -1)){
		return true;
	}
	else {
		return false;
	}	
}

function isNN7() {
	if (navigator.product == 'Gecko') {
//	if((navigator.appName.indexOf("Netscape") != -1) && (navigator.appVersion.substring(0, 1) >= 7)){
		return true;
	}
	else {
		return false;
	}	
}

function OverOut(imgDocID, imgObjName){
	if (document.images)
	document.images[imgDocID].src = eval(imgObjName + ".src")
}

function writeMenu() {
	if (isIE() == true) {
		document.write('<table border="0" cellspacing="0" cellpadding="0" width="480"  bgcolor="#ABB0D3" align="center">\n')
		document.write('<tr>\n');
		document.write('<td width="720"><script language="javascript">divMenu()</script></td>\n');
		document.write('</tr>\n');
		document.write('</table>\n');
		
		
	
		
		
		
	}
	else if (isNC() == true) {
		if (document.images){
			contents_out = new Image();
			contents_out.src = "images/contents.gif";
					
			contents_over = new Image();
			contents_over.src = "images/contents_01.gif";
			
			ent_shop_out = new Image();
			ent_shop_out.src = "images/ent_shop.gif";
					
			ent_shop_over = new Image();
			ent_shop_over.src = "images/ent_shop_01.gif";
		
			contact_out = new Image();
			contact_out.src = "images/contact.gif";
					
			contact_over = new Image();
			contact_over.src = "images/contact.gif";
		
			home_out = new Image();
			home_out.src = "images/home2.gif";
					
			home_over = new Image();
			home_over.src = "images/home_01.gif";
		
		
		}

		var contentsMouseover = "OverOut('contents','contents_01');"
		var contentsMouseout = "OverOut('contents','contents');"
		
		var ent_shopMouseover = "OverOut('ent_shop','ent_shop_01');"
		var ent_shopMouseout = "OverOut('ent_shop','ent_shop');"

		var contactMouseover = "OverOut('contact','contact_01');"
		var contactMouseout = "OverOut('contact','contact');"

		var homeMouseover = "OverOut('home','home_01');"
		var homeMouseout = "OverOut('home','home2');"

		
		document.write('<table border="0" cellspacing="0" cellpadding="0" bgcolor="#ABB0D3" align="left" width="320"><tr>\n');
		document.write('<td align="left"><a href="content.htm" onmouseover="' + contentsMouseover + '" onmouseout="' + contentsMouseout +'"><img src="images/contents.gif" name="contents" border="0" width="94" height="20" alt="contents"></a><a href="contact.htm" onmouseover="' + contactMouseover + '" onmouseout="' + contactMouseout +'"><img src="images/contact.gif" name="contact" border="0" width="94" height="20" alt="contact us"></a><a href="https://cst3.web.ifb.net/scottishsilver/shop/shop.htm" onmouseover="' + ent_shopMouseover + '" onmouseout="' + ent_shopMouseout +'"><img src="images/ent_shop.gif" name="ent_shop" border="0" width="94" height="20" alt="enter shop"></a><a href="index.htm" onmouseover="' + homeMouseover + '" onmouseout="' + homeMouseout +'"><img src="images/home2.gif" name="home" border="0" width="94" height="20" alt="home"></a></td></tr>\n');
document.write('</table>');
	}
	else {
		window.location.replace('incompatible.htm');
	}
}
function writeDMenuRight(){
	oMenu = new menuObj('oMenu');
	oMenu.clMain = 'padding:3; font-family:arial,verdana; font-size:10px; font-weight:bold; color:#ffffff';
	oMenu.clSub = 'padding:3; font-family:arial,verdana; font-size:11px;';
	oMenu.clAMain = 'text-decoration:none; color:#000000';
	oMenu.clAMainHover = 'text-decoration:none; color:#ffffff';
	oMenu.clASub = 'text-decoration:none; color:#000000';
	oMenu.clASubHover = 'text-decoration:none; color:#ffffff';
	oMenu.textcoloron = '#ffffff';
	oMenu.textcoloroff = '#000000';
	oMenu.backgroundbar = 0;
	oMenu.backgroundbarfromleft = 0;
	oMenu.backgroundbarfromtop = 0;
	oMenu.backgroundbarsize = 0;
	oMenu.backgroundbarcolor = '#ffffff';
	oMenu.mainheight = 20;
	oMenu.mainwidth = 94;
	oMenu.subwidth = 140;
	oMenu.subheight = 17;
	oMenu.writeStyle();
	oMenu.subplacement = oMenu.mainheight;
	oMenu.mainbgcoloroff = '#ABB0D3';
	oMenu.mainbgcoloron = '#9E93D7';
	oMenu.subbgcoloroff = '#9E93D7';
	oMenu.subbgcoloron = '#9E93D7';
	oMenu.stayoncolor = 1;
	oMenu.menuspeed = 20;
	oMenu.menurows = 1;
	oMenu.menueventon = 'mouse';
	oMenu.menueventoff = 'mouse';
	oMenu.menuplacement = 0;
	oMenu.pxbetween = 0;
	oMenu.fromleft = 0;
	oMenu.fromtop = 0;

	//MAIN 0
	oMenu.writeMain(0,'CONTENTS','')
		oMenu.writeSub(0,0,'about us','about.htm',6)
		oMenu.writeSub(0,1,'ordering & paying','order.htm',6)
		oMenu.writeSub(0,2,'customer protection','cust.htm',6)
		oMenu.writeSub(0,3,'faqs & glossary','faq.htm',6)
		oMenu.writeSub(0,4,'favourite links','favlinks.htm',6)
		oMenu.writeSub(0,5,'guestbook','gbook.htm',6)
		oMenu.writeSub(0,6,'newsletter','news.htm',6)
		
		
		//MAIN 1		
	oMenu.writeMain(1,'CONTACT US','contact.htm')
	

	//MAIN 3
	oMenu.writeMain(3,'HOME','index.htm')
		
		
	//MAIN 2		
	oMenu.writeMain(2,'ENTER SHOP','https://cst3.web.ifb.net/scottishsilver/shop/shop.htm')
	
		
			
	
	oMenu.construct();
}

function divMenu(){
	document.write('<div style="position:absolute; width:500px; height:20px; z-index:99;">');
	writeDMenuRight();
	document.write('</div>');	
}

function setPageCoords(){
	this.x = 0;
	this.y = 0;
	this.x2 = 0;
	this.y2 = 0;
	this.x50 = this.x2/2;
	this.y50 = this.y2/2;
	return this;
}

function generateMenu(parent,obj,nest,type,num,subnum){
	this.css = document.all[obj].style;
	this.evnt = document.all[obj];
	this.moveIt = b_moveIt;
	this.bgChange = b_bgChange;
	this.textChange = b_textChange
	this.clipTo = b_clipTo;
	this.parent = parent;
	this.active = 0;

	if(type == 0){
		this.evnt.onmouseover = new Function("mmover("+num+","+this.parent.name+")");
		this.evnt.onmouseout = new Function("mmout("+num+","+this.parent.name+")");
	}else if(type == 1){
		this.clipIn = b_clipIn;
		this.clipOut = b_clipOut;
		this.clipy = 0;
	}else if(type == 2){
		this.evnt.onmouseover = new Function("submmover("+num+","+subnum+","+this.parent.name+")");
		this.evnt.onmouseout = new Function("submmout("+num+","+subnum+","+this.parent.name+")");
	}
	this.tim = 100;
    this.obj = obj + "Object";
    eval(this.obj + " = this");
	return this;
}

function b_clipTo(t,r,b,l,h){
	this.css.clip = "rect("+t+","+r+","+b+","+l+")";
	this.clipx = r;
	if(h){
		this.css.height = b;
		this.css.width = r;
	}
}

function b_moveIt(x,y){
	this.x = x;
	this.y = y;
	this.css.left = this.x;
	this.css.top = this.y;
}

function b_bgChange(color){
	this.css.backgroundColor = color;
}

function b_textChange(color){
	this.css.color = color;
}

function b_clipIn(speed){
	if(this.clipy > 0){
		this.clipy -= speed;
		if(this.clipy < 0) this.clipy = 0;
		this.clipTo(0,this.clipx,this.clipy,0,1)
		this.tim = setTimeout(this.obj+".clipIn("+speed+")",10)
	}
	else{
		this.clipy = 0;
		this.clipTo(0,this.clipx,this.clipy,0,1);
	}
}

function b_clipOut(speed){
	if(this.clipy < this.clipheight){
		this.clipy += speed
		this.clipTo(0,this.clipx,this.clipy,0,1)
		this.tim = setTimeout(this.obj+".clipOut("+speed+")",10)
	}
	else{
		this.clipy = this.clipheight;
		this.clipTo(0,this.clipx,this.clipy,0,1);
	}
}

function checkp(num,lefttop){
	if(num){
		if(num.toString().indexOf("%")!=-1){
			if(this.menurows)num = (page.x2*parseFloat(num)/100);
			else num = (page.y2*parseFloat(num)/100);
		}else num = parseFloat(num);
	}else num = 0;
	return num;
}

function menuObj(name){
	this.writeStyle = writeStyle;
	this.writeMain = writeMain;
	this.writeSub = writeSub;
	this.mainmenus = 0; 
	this.submenus = new Array();
	this.construct = constructMenu;
	this.checkp = checkp;
	this.name = name;
	this.menumain = menumain;
	this.hidemain = hidemain;
	this.hideactive = hideactive;
	this.menusub = menusub;
	this.hidesubs = hidesubs;
}

function constructMenu(){
	page = new setPageCoords()
	//Checking numbers for %
	this.mainwidth = checkp(this.mainwidth,0)
	this.mainheight = checkp(this.mainheight,1)
	this.subplacement = checkp(this.subplacement,1)
	this.subwidth = checkp(this.subwidth,0)
	this.subheight = checkp(this.subheight,1)
	if(this.backgroundbar){ //Backgroundbar part
		this.oBackgroundbar = new generateMenu(this,'div'+this.name+'Backgroundbar','',-1);
		this.oBackgroundbar.moveIt(this.checkp(this.backgroundbarfromleft,0),this.checkp(this.backgroundbarfromtop,1));
		if(this.menurows) this.oBackgroundbar.clipTo(0,this.checkp(this.backgroundbarsize),this.mainheight,0,1);
		else this.oBackgroundbar.clipTo(0,this.mainwidth,this.checkp(this.backgroundbarsize),0,1);
		this.oBackgroundbar.bgChange(this.backgroundbarcolor);
	}
	this.x = this.checkp(this.fromleft,0);
	this.y = this.checkp(this.fromtop,1);
	for(i = 0; i < this.mainmenus; i++){
		this[i] = new generateMenu(this,'div'+this.name+'Main'+i,'',0,i);
		this[i].clipTo(0,this.mainwidth,this.mainheight,0,1);
		if(this.menuplacement != 0){
			if(this.menurows) this.x = this.checkp(this.menuplacement[i]);
			else this.y = this.checkp(this.menuplacement[i]);
		}
		this[i].moveIt(this.x,this.y);
		this[i].bgChange(this.mainbgcoloroff);
		if(!this.menurows) this.y += this.mainheight+this.checkp(this.pxbetween);
		else this.x += this.mainwidth + this.checkp(this.pxbetween);
		if(this.submenus[i] != 'nosub'){
			this[i].subs = new generateMenu(this,'div'+this.name+'Sub'+i,'',1,i,-1);
			if(!this.menurows) this[i].subs.moveIt(this.subplacement+this[i].x,this[i].y);
			else this[i].subs.moveIt(this[i].x,this[i].y+this.subplacement);
			this.suby = 0;
			this[i].sub = new Array();
			for(j = 0; j < this.submenus[i]["main"]; j++){
				this[i].sub[j] = new generateMenu(this,'div'+this.name+'Sub'+i+'_'+j,'div'+this.name+'Sub'+i,2,i,j);
				this[i].sub[j].clipTo(0,this.subwidth,this.subheight,0,1);
				this[i].sub[j].moveIt(0,this.suby);
				this[i].sub[j].bgChange(this.subbgcoloroff);
				this.suby += this.subheight;
			}
			this[i].subs.clipTo(0,this.subwidth,0,0,1);
			this[i].subs.clipheight = this.suby;
		}else this[i].subs = 0;
	}
	if(this.menueventoff == "mouse"){
		eventIE += this.name+".hidemain(-1);"
		document.onmouseover = new Function(eventIE);
	}
}

function cancelEv(){
	window.event.cancelBubble = true;
}

function mmover(num,name){
	name[num].bgChange(name.mainbgcoloron);
	name[num].textChange(name.textcoloron);
	if(name.menueventon == "mouse") name.menumain(num,1);
	cancelEv();
}

function mmout(num,name){
	if(!isNaN(num)){
		if(name[num].subs==0 || !name.stayoncolor || !name[num].active)
		name[num].bgChange(name.mainbgcoloroff); 
		name[num].textChange(name.textcoloroff);
	} 
	cancelEv();
}

function submmover(num,subnum,name){
	name[num].sub[subnum].bgChange(name.subbgcoloron);
	if(name.menueventon == "mouse") {
		name.menusub(num,subnum,1);
	}
	cancelEv();
}

function submmout(num,subnum,name){
	if(!isNaN(subnum)){
		if(!name.stayoncolor || !name[num].sub[subnum].active || name[num].sub[subnum].subs==0)
		name[num].sub[subnum].bgChange(name.subbgcoloroff);
	}
	cancelEv();
}

function menumain(num,mouse){
	if(this[num].subs!=0){
		clearTimeout(this[num].subs.tim);
		if(this[num].subs.clipy==0 || mouse){
			this.hidemain(num);
			this[num].subs.clipOut(this.menuspeed);
			this[num].active = 1;
		}else{
			this.hidemain(-1);
			this[num].active = 0;
		}
	}
}

function menusub(num,sub,mouse){
	this.hidesubs(num,sub);
}

function hidemain(num){
	for(i = 0; i < this.mainmenus; i++){
		if(this[i].subs!=0){
			if(this[i].subs.clipy <= this[i].subs.clipheight){
				this.hidesubs(i,100);
				if(i!=num){
					clearTimeout(this[i].subs.tim);
					this[i].active = 0;
					this[i].bgChange(this.mainbgcoloroff);
					if(this.menurows)this[i].subs.clipIn(this.menuspeed);
					else{
						this[i].subs.clipy = 0;
						this[i].subs.clipTo(0,this[i].subs.clipx,this[i].subs.clipy,0,1);
					}
				}
			}
		}else this[i].bgChange(this.mainbgcoloroff);
	}
}

function hideactive(num){
	if(this[num].subs!=0){
		this.hidesubs(num,100)
		clearTimeout(this[num].subs.tim)
		this[num].active=0
		this[num].bgChange(this.mainbgcoloroff)
		if(this.menurows)this[num].subs.clipIn(this.menuspeed)
		else{
			this[num].subs.clipy = 0;
			this[num].subs.clipTo(0,this[num].subs.clipx,this[num].subs.clipy,0,1);
		}
	}
}

function hidesubs(num,sub){
	for(j = 0; j < this[num].sub.length; j++){
		if(j!=sub){
			if(this[num].subs.clipy < this[num].subs.clipheight){
				this[num].sub[j].active = 0;
				this[num].sub[j].bgChange(this.subbgcoloroff);
			}
		}
	}
}

function writeStyle(){
	str='\n<style type="text/css">\n'
	str+='\tDIV.cl'+this.name+'Main{position:absolute; z-index:51; border-color:#000000; border-style:solid; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; border-right-width:0px; clip:rect(0,0,0,0); overflow:hidden; width:'+(this.mainwidth-10)+'; '+this.clMain+'}\n'
	str+='\tDIV.cl'+this.name+'Sub{position:absolute; z-index:52; clip:rect(0,0,0,0); overflow:hidden; width:'+(this.subwidth-10)+'; '+this.clSub+'}\n'
	str+='\tDIV.cl'+this.name+'Subs{position:absolute; z-index:53; clip:rect(0,0,0,0); overflow:hidden;}\n'
	str+='\t#div'+this.name+'Backgroundbar{position:absolute; z-index:50; clip:rect(0,0,0,0); overflow:hidden}\n'
	str+='\tA.clA'+this.name+'Main{'+this.clAMain+'}\n'
	str+='\tA.clA'+this.name+'Main:hover{'+this.clAMainHover+'}\n'
	str+='\tA.clA'+this.name+'Sub{'+this.clASub+'}\n'
	str+='\tA.clA'+this.name+'Sub:hover{'+this.clASubHover+'}\n'
	str+='</style>\n\n'
	
	document.write(str);
}

function writeMain(num,text,link,target){
	str=""
	if(this.backgroundbar && num==0){
		str+='\n<div id="div'+this.name+'Backgroundbar"></div>\n'
	}
	str+='<a href="'+link+'"><div id="div'+this.name+'Main'+num+'" class="cl'+this.name+'Main" align="center">'
	if(link){
		str+='<a href="'+link+'"'; this.submenus[num]='nosub'
	} else str+='<a onclick="'+this.name+'.menumain('+num+'); return false"'
	if(target) str+=' target="'+target+'" '
	str+=' class="clA'+this.name+'Main">'+text+'</a></div></a>\n'
	this.mainmenus++; 
	
	document.write(str);
}

function writeSub(num,subnum,text,link,total,target){
	str=""
	if(subnum == 0) str='<div id="div'+this.name+'Sub'+num+'" class="cl'+this.name+'Subs">\n'
	str+='\t<a href="'+link+'"><div id="div'+this.name+'Sub'+num+'_'+subnum+'" class="cl'+this.name+'Sub" align="left">'
	if(link) str+='<a href="'+link+'"'; else str+='<a onclick="'+this.name+'.menusub('+num+','+subnum+'); return false"'
	if(target) str+=' target="'+target+'" '
	str+=' class="clA'+this.name+'Sub">'+text+'</a></div></a>\n'
	if(subnum == total-1){
		str+='</div>\n'; this.submenus[num] = new Array();
		this.submenus[num]["main"] = total;
		this.submenus[num]["submenus"] = new Array();
	}
	document.write(str);
}

<!-- Hide from old browsers

var today = new Date();
var expiry = new Date(today.getTime() + 28 * 24 * 60 * 60 * 1000);
var namePart = (today.getMonth()+1) + "" + today.getDate() + today.getYear() + today.getHours() + today.getMinutes() + today.getSeconds() + today.getMilliseconds() + Math.round(100000 * Math.random());

function getCookie() {
	var index = document.cookie.indexOf("Positiontech=");
	if (index == -1) {
		document.cookie="Positiontech=" + namePart +"; expires=" + expiry.toGMTString() + "; domain=.totaljobs.com; path=/";
	}
	
    index = document.cookie.indexOf("Positiontech=", index) + 13;

	if (index == 12) {
		return unescape("0000000000");
	}
	else {
		var endstr = document.cookie.indexOf(";", index);
		
		if (endstr == -1) endstr = document.cookie.length;
		return unescape(document.cookie.substring(index, endstr));
	}
}

 var userName = getCookie();
 stat = new Image(1,1);
 stat.src = "http://169.207.238.151/stats/se_Cookie.cfm?ptechCustomerID=1526&ptechRef=" + document.referrer + "&ptechUser=" + userName + "&" +  location.search.substring(1);
 
// End hiding -->