

if (top.location != self.location) {
	top.location = self.location
}

function changecol(){
		highlightcolor = "#9B9B9B"
		source=event.srcElement
		if (source.tagName=="TR"||source.tagName=="TABLE"){
			return
		}
		while(source.tagName=="TD"){
			source=source.parentElement
		}
		if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore"){
			source.parentElement.style.backgroundColor=highlightcolor
		}
	}


	function changecolback(){
		originalcolor = "#717171"
		source=event.srcElement
		if (source.tagName=="TR"||source.tagName=="TABLE"){
			return
		}
		while(source.tagName=="TD"){
			source=source.parentElement
		}
		if (source.style.backgroundColor!=originalcolor&&source.id!="ignore"){
			source.parentElement.style.backgroundColor=originalcolor
		}
	}
	
	


var imgs=document.images

function loadIt(imgObj,imgSrc) {
if(imgs){
    eval(imgObj+' = new Image()')
	eval(imgObj+'.src = "'+imgSrc+'"')
    }
}

loadIt('aboutusOn','images/button_aboutus_over.gif')
loadIt('aboutusOff','images/button_aboutus.gif')

loadIt('servicesOn','images/button_services_over.gif')
loadIt('servicesOff','images/button_services.gif')

loadIt('industryOn','images/button_industryexpert_over.gif')
loadIt('industryOff','images/button_industryexpert.gif')

loadIt('newsOn','images/button_news_over.gif')
loadIt('newsOff','images/button_news.gif')

loadIt('faqsOn','images/button_faqs_over.gif')
loadIt('faqsOff','images/button_faqs.gif')

loadIt('homeOn','images/button_home_over.gif')
loadIt('homeOff','images/button_home.gif')

loadIt('contactsOn','images/button_contacts_over.gif')
loadIt('contactsOff','images/button_contacts.gif')

loadIt('sitemapOn','images/button_sitemap_over.gif')
loadIt('sitemapOff','images/button_sitemap.gif')

loadIt('disclaimerOn','images/button_disclaimer_over.gif')
loadIt('disclaimerOff','images/button_disclaimer.gif')

loadIt('goOn','images/button_go_over.gif')
loadIt('goOff','images/button_go.gif')

loadIt('moreOn','images/button_more_over.gif')
loadIt('moreOff','images/button_more.gif')

loadIt('photoOn','images/button_photo_over.gif')
loadIt('photoOff','images/button_photo.gif')

loadIt('photo2On','images/button_photo_over.gif')
loadIt('photo2Off','images/button_photo.gif')

loadIt('photo3On','images/button_photo_over.gif')
loadIt('photo3Off','images/button_photo.gif')

loadIt('photo4On','images/button_photo_over.gif')
loadIt('photo4Off','images/button_photo.gif')

loadIt('photo5On','images/button_photo_over.gif')
loadIt('photo5Off','images/button_photo.gif')

loadIt('photo6On','images/button_photo_over.gif')
loadIt('photo6Off','images/button_photo.gif')

loadIt('aircraftOn','images/homepage_images/aircraft_decor_mini_over.jpg')
loadIt('aircraftOff','images/homepage_images/aircraft_decor_mini.jpg')

loadIt('musicalOn','images/homepage_images/musical_inst_mini_over.jpg')
loadIt('musicalOff','images/homepage_images/musical_inst_mini.jpg')

loadIt('playOn','images/homepage_images/play_move_over.gif')
loadIt('playOff','images/homepage_images/play_move.gif')

function changeImage(imgNam,anImg) {
 if (imgs){
 	imageOnName = imgNam
 	document.images[imgNam].src = eval(anImg+'.src')
 	}
}
//-->


//POPUP WINDOWS
if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;


function openWindow(url,w,h) {
  popupWin = window.open(url, 'remote',  'dependent,width='+w+',height='+h+',left=50,top=50')
}


//TITLE ON STATUS BAR
window.status = "FHLambert - fhlambert.com / fhlambert.co.uk"


//BOOKMARK FEATURE
function addbookmark()
{
bookmarkurl="http://www.fhlambert.com"
bookmarktitle="Musical Instrument Repairs & Decorative Precious Metal Plating: FH Lambert Ltd"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

//RANDOM IMAGE
var theImages = new Array()

theImages[0] = 'images/homepage_images/random_001.jpg'
theImages[1] = 'images/homepage_images/random_002.jpg'
theImages[2] = 'images/homepage_images/random_003.jpg'

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}



