// JavaScript Document


if (document.images) {
    homebutton = new Image
    homebuttonov = new Image
	homebutton = 'images/nav/home.jpg'
    homebuttonov =  'images/nav/homeov.jpg'
	
	historybutton = new Image
    historybuttonov = new Image
	historybutton = 'images/nav/history.jpg'
    historybuttonov =  'images/nav/historyov.jpg'
	
	collbutton = new Image
    collbuttonov = new Image
	collbutton = 'images/nav/collections.jpg'
    collbuttonov =  'images/nav/collectionsov.jpg'
	
	stockistsbutton = new Image
    stockistsbuttonov = new Image
	stockistsbutton = 'images/nav/stockists.jpg'
    stockistsbuttonov =  'images/nav/stockistsov.jpg'
	
	testimonialsbutton = new Image
    testimonialsbuttonov = new Image
	testimonialsbutton = 'images/nav/testimonials.jpg'
    testimonialsbuttonov =  'images/nav/testimonialsov.jpg'
	
	newsbutton = new Image
    newsbuttonov = new Image
	newsbutton = 'images/nav/news.jpg'
    newsbuttonov =  'images/nav/newsov.jpg'
	
	contactbutton = new Image
    contactbuttonov = new Image
	contactbutton = 'images/nav/contact.jpg'
   	contactbuttonov =  'images/nav/contactov.jpg'
	
	pressbutton = new Image
    pressbuttonov = new Image
	pressbutton = 'images/nav/press.jpg'
   	pressbuttonov =  'images/nav/pressov.jpg'
}


function buildEmail(x,y,a)
{
user = a;
site = "lisajaynedann.co.uk";
subject = "?subject=" + x;
document.write('<a href=\"mailto:' + user + '@' + site + subject +'\">');
//document.write(user + '@' + site + '</a>');
document.write(y+'</a>');
}

function buildEmailCo(x,y,a)
{
user = a;
site = "lisajaynedann.co.uk";
subject = "?subject=" + x;
document.write('<a href=\"mailto:' + user + '@' + site + subject +'\">');
//document.write(user + '@' + site + '</a>');
document.write('<span class="linkText">'+y+'</span></a>');
}


// Set the message for the alert box
am = "Sorry all pictures are the \xA9copyight property of lisajaynedann.co.uk!";
bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"
function nrc(e) {
   if (bNS && e.which > 1){
      alert(am)
      return false
   } else if (bIE && (event.button >1)) {
     alert(am)
     return false;
   }
}
document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;