

var browserName=navigator.appName;
if (browserName == "Microsoft Internet Explorer")
{
document.write('<link TYPE="text/css" REL="stylesheet" HREF="../../style/IEstyle.css">');
}
else
{
if ((parseFloat(navigator.appVersion)) >= 5 )
{
document.write('<link TYPE="text/css" REL="stylesheet" HREF="../../style/IEstyle.css">');
} else {
document.write('<link TYPE="text/css" REL="stylesheet" HREF="../../style/NETstyle.css">');
}
}



function processForm(GoWhere) {
var vPicPath = document.BuyProduct.PicPath.value;
var vArtist = document.BuyProduct.Artist.value;
var vTitle = document.BuyProduct.Title.value;
var vProdNo = document.BuyProduct.ProdNo.value;
var vPriced = document.BuyProduct.Priced.value;
var vPricev = document.BuyProduct.Pricev.value;
vPicPath = escape(vPicPath);
vArtist = escape(vArtist);
vTitle = escape(vTitle);
vProdNo = escape(vProdNo);
vPriced = escape(vPriced);
vPricev = escape(vPricev);
if (GoWhere == 'FULL')
parent.window.location = '../full_screen.htm' + '?PicPath=' + vPicPath + '&Artist=' + vArtist + '&Title=' + vTitle + '&ProdNo=' + vProdNo + '&Priced=' + vPriced;
if (GoWhere == 'EMAIL')
window.location = '../../contact/interested.htm' + '?PicPath=' + vPicPath + '&Artist=' + vArtist + '&Title=' + vTitle + '&ProdNo=' + vProdNo + '&Priced=' + vPriced;
if (GoWhere == 'BUY')
window.location = '../../purchase/default.htm' + '?PicPath=' + vPicPath + '&Artist=' + vArtist + '&Title=' + vTitle + '&ProdNo=' + vProdNo + '&Priced=' + vPriced + '&Pricev=' + vPricev;
if (GoWhere == 'LINKTO')
window.location = 'mailto:?subject=Link to art I found:' + vTitle + '&body=' + 'By Artist: ' + vArtist + '%20%0DHere is the link: %20%0D' + location.href;
}


function addToFavorites() {
window.external.addFavorite('http://www.harrisongalleries.com','Harrison Galleries');
}


function showpic(src, w, h, alt, aln, pw, ph, bw, bh) {
if (src == null) return;
var iw, ih;
if (window.innerWidth == null) {
iw = document.body.clientWidth - 268;
ih = document.body.clientHeight - 68;
}
else {
iw = window.innerWidth - 268;
ih = window.innerHeight - 68;
}
if (w == null) w = iw;
if(h == null)  h = ih;
if(alt == null) alt = "Picture";
if(aln == null) aln = "middle";
if(pw == null) pw = 100;
if(ph == null) ph = 100;
if(iw > 640) iw = 640;
if(ih > 480) ih = 480;
if(bw == null) bw = 24;
if(bh == null) bh = 24;
var sw = Math.round((iw - bw) * pw / 104);
var sh = Math.round((ih - bh) * ph / 104);
if ((w * sh) / (h * sw) < 1) sw = Math.round(w * sh / h);
else sh = Math.round(h * sw / w);
if (w > iw)
if (w > h)
document.write('<img src="'+src+'" alt="'+alt+'" border="0" height="'+sh+'" align="'+aln+'" class="artPic">');
else
document.write('<img src="'+src+'" alt="'+alt+'" border="0" width="'+sw+'" align="'+aln+'" class="artPic">');
else
if (w > h)
document.write('<img src="'+src+'" alt="'+alt+'" border="0" height="'+sh+'" align="'+aln+'" class="artPic">');
else
document.write('<img src="'+src+'" alt="'+alt+'" border="0" width="'+sw+'" align="'+aln+'" class="artPic">');
}





