function pb(a,b,c,d) {
var to = "office\@cameo-auctioneers.co.uk";
var subject = "Lot: "+a+" - " + b + " " + c + " " + d + " email bid";
var body = "My maximum bid for lot "+a+" in " + b + " " + c + " " + d + " sale, in pounds sterling (GBP) is: \n\n" +
"My name, address and telephone number are; \n\n\n" +
"Bids are subject to 15% buyers premium, bids will not be processed or accepted without full contact details provided above."
var em = "mailto:" + to + "?subject=" + escape(subject) + "&body=" + escape(body);
window.location.href=em;
}

function aq(a,b,c,d) {
var to = "office\@cameo-auctioneers.co.uk";
var subject = "Question for lot: "+a+ " - " + b + " " + c + " " + d;
var body = "Please provide with more information on lot number "+a+" in " + b + " " + c + " " + d + " sale, My question is; \n\n\n" +
"My name, address and telephone number are; "
var em = "mailto:" + to + "?subject=" + escape(subject) + "&body=" + escape(body); 
window.location.href=em;
}

function ca(x,y) {
document.getElementById('p'+x).src=y.src;
document.getElementById('p'+x).style.height='400px';
document.getElementById('p'+x).style.width='300px';
document.getElementById('p'+x).style.marginRight='110px';
}

function cb(x,y) {
document.getElementById('p'+x).src=y.src;
document.getElementById('p'+x).style.height='300px';
document.getElementById('p'+x).style.width='400px';
document.getElementById('p'+x).style.marginRight='10px';
}

function ra(x,y,z) {
if (x.width <= 36) {
x.style.height='400px';
x.style.width='300px';
x.style.marginRight='110px';
x.src='img/'+z+'.jpg';
document.getElementById('dv'+y).style.height='415px';
document.getElementById('mp'+y).style.display='block';
} else {
x.style.height='48px';
x.style.width='36px';
document.getElementById('mp'+y).style.display='none';
document.getElementById('dv'+y).style.height='auto';
x.style.marginRight='12px';
x.src='tn/'+z+'.jpg';
}
}

function rb(x,y,z) {
if (x.width <= 48) {
x.style.height='300px';
x.style.width='400px';
x.style.marginRight='10px';
x.src='img/'+z+'.jpg';
document.getElementById('dv'+y).style.height='415px';
document.getElementById('mp'+y).style.display='block';
} else {
x.style.height='36px';
x.style.width='48px';
document.getElementById('mp'+y).style.display='none';
document.getElementById('dv'+y).style.height='auto';
x.style.marginRight='10px';
x.src='tn/'+z+'.jpg';
}
}


