// lod364.js
//  ===============================================================
//  "Load on Demand" SCRIPT
//  for Shop@ssistant Version 3.6 by Rodney Myers
//  Copyright © 2000,  The Floyd Consultancy Ltd.
//  ===============================================================
var INSASS=false;
var outsideSystemHandler=1;
var currencyCode="£";
function start_shop(){ if(common_test() && !top.INSASS) { document.cookie = "LOADTHISPAGENOW" + "=" + escape(window.location.href)+"; path=/"; top.location.href =startup; }} //
function pages_browser_test(){ /* Adapted from Ultimate client-side JavaScript client sniff. (C) Netscape Communications 1999.  Permission granted to reuse and distribute. */ var agt,is_major,is_nav,is_nav3up,is_ie3up; agt=navigator.userAgent.toLowerCase(); is_major = parseInt(navigator.appVersion); is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1)); is_nav3up = (is_nav && (is_major >=3)); is_ie3up  = ((agt.indexOf("msie") != -1)  && (agt.indexOf('opera')==-1) && (is_major >=2)); return(is_nav3up||is_ie3up); }// end pages_browser_test

function common_test(){
var ret=pages_browser_test();
if(!ret){alert("Sorry, your browser is not supported");}
return(ret);
}


function nosass(){ /* Used if system not loaded and functions in "For LOD" section are called */
if(confirm("Load shopping system,then\nreturn to this page to continue?"))
{ start_shop(); } else {return(' ');} }//

// For LOD
// -------
function ToLobby()      { nosass(); }
function reviewbasket() { nosass(); }
function terms()        { nosass(); }
function checkout()     { nosass(); }
function newchoice()    { nosass(); }
function grabEntrance() { nosass(); }
function multiproduct_start() { nosass(); }

// For display of prices
function MCP(V){
V=Math.floor(V*100)/100;
if(V==Math.floor(V)){V+=".00";}else if(10*V==Math.floor(10*V)){V+="0";} return(currencyCode+V);}
function wMCP(V){document.write(MCP(V));}
function wCMCP(V){wMCP(V);}
var MC=new MCF();
function MCF(){
this.MCPrice=MCP;
return(this);
}

// For quantity/remove checkbox features in Review
function noremove(V){return(""+-1*parseFloat(V))+"!";}
function revQfix(a,i,n,x){i=(i==null)?1:i;n=(n==null)?1:n;x=(x==null)?999999:x;return (""+a+";"+i+";"+n+";"+x);}
function qlock(V){return(-1*parseFloat(V));}

// for Quantity inputs
function qty_fix(elem,Increment,qMin,qMax) { elem.value=Math.abs(elem.value); if(elem.value=="NaN"){elem.value="1";} }

// for SELECT boxes
function listvalue(List){return(List.options[List.selectedIndex].value);}
function listtext(List){return(List.options[List.selectedIndex].text);}



