	<!--

// ----------------------------
// CSS BROWSER SPECIFIC INSERT
// ----------------------------
isMac = ((navigator.appVersion.indexOf("Mac") != -1) && (navigator.appName == "Netscape") && (parseInt(navigator.appVersion) <= 4 ));
if (isMac) {
document.write("<link rel='stylesheet' type='text/css' href='/morrells/includes/css/mac_ns4.css'>");
} else {
document.write("<link rel='stylesheet' type='text/css' href='/morrells/includes/css/style.css'>");
}


// --------------------
// BREAK OUT OF FRAMES
// --------------------
if (document.location.href.search(/live/) == -1 && document.location.href.search(/lotframe/) == -1 && top.location != self.location) {
top.location = self.location;
}
 

// -------------------
// CRYPTIC STATUS BAR
// -------------------
var data = "Morrells... ";
var done = 1;

function statusIn(text) {
decrypt(text, 2, 1);
}

function statusOut() {
self.status = '';
done = 1;
}

function decrypt(text, max, delay) {
if (done) {
done = 0;
decrypt_helper(text, max, delay,  0, max);
   }
}

function decrypt_helper(text, runs_left, delay, charvar, max) {
if (!done) {
runs_left = runs_left - 1;
var status = text.substring(0, charvar);
for (var current_char = charvar; current_char < text.length; current_char++) {
status += data.charAt(Math.round(Math.random()*data.length));
}
window.status = status;
var rerun = "decrypt_helper('" + text + "'," + runs_left + "," + delay + "," + charvar + "," + max + ");"
var new_char = charvar + 1;
var next_char = "decrypt_helper('" + text + "'," + max + "," + delay + "," + new_char + "," + max + ");"
if(runs_left > 0) {
setTimeout(rerun, delay);
}
else {
if (charvar < text.length) {
setTimeout(next_char, Math.round(delay*(charvar+3)/(charvar+1)));
}
else {
done = 1;
         }
      }
   }
}


// ---------------
// GOTO WITH PAGE
// ---------------
function gotoWithPage(url) {
var currentPage = escape(document.location);
var tempPage = escape("http://" + env + "/catalog.do?auctionId=" + auctionId + "&page=1");
var livePage = escape("http://" + env + "/morrells/live/index.jsp?auctionId=" + auctionId);

if (document.location.href.search(/ITVAuctionWebApp/) != -1 || document.location.href.search(/AuctionMetroTv/) != -1)
newurl = url + "?auctionId=" + auctionId + "&saleLocation=" + saleLocation + "&env=" + env + "&securePath=" + securePath + "&tempdir=" + tempdir + "&accountType=" + accountType + "&page=" + tempPage;
else if (document.location.href.search(/live/) != -1)
newurl = url + "?auctionId=" + auctionId + "&saleLocation=" + saleLocation + "&env=" + env + "&securePath=" + securePath + "&tempdir=" + tempdir + "&accountType=" + accountType + "&page=" + livePage;
else
newurl = url + "?auctionId=" + auctionId + "&saleLocation=" + saleLocation + "&env=" + env + "&securePath=" + securePath + "&tempdir=" + tempdir + "&accountType=" + accountType + "&page=" + currentPage;

document.location = newurl;
return false;
}


// -----------------
// GOTO MY AUCTIONS
// -----------------
function gotoMyAuctions(url) {
newurl = url + "?auctionId=" + auctionId + "&saleLocation=" + saleLocation + "&env=" + env + "&securePath=" + securePath + "&tempdir=" + tempdir + "&accountType=" + accountType + "&page=1" + "&type=losing";
document.location = newurl;
return false;
}

function gotoMyAuctionsWinning(url) {
newurl = url + "?auctionId=" + auctionId + "&saleLocation=" + saleLocation + "&env=" + env + "&securePath=" + securePath + "&tempdir=" + tempdir + "&accountType=" + accountType + "&page=1" + "&type=winning";
document.location = newurl;
return false;
}

function gotoMyAuctionsTracking(url) {
newurl = url + "?auctionId=" + auctionId + "&saleLocation=" + saleLocation + "&env=" + env + "&securePath=" + securePath + "&tempdir=" + tempdir + "&accountType=" + accountType + "&page=1" + "&type=onlybookmarked";
document.location = newurl;
return false;
}

function gotoMyAuctionsWon(url) {
newurl = url + "?auctionId=" + auctionId + "&saleLocation=" + saleLocation + "&env=" + env + "&securePath=" + securePath + "&tempdir=" + tempdir + "&accountType=" + accountType + "&page=1" + "&type=won";
document.location = newurl;
return false;
}

function gotoMyAuctionsLost(url) {
newurl = url + "?auctionId=" + auctionId + "&saleLocation=" + saleLocation + "&env=" + env + "&securePath=" + securePath + "&tempdir=" + tempdir + "&accountType=" + accountType + "&page=1" + "&type=lost";
document.location = newurl;
return false;
}


//-->