// JavaScript Document
<!--



// Page template set up by Jethro ~ 24-09-2002 ~ 13:00



//  ===============================================================

//  All rights reserved.  Copyright 2000 The Floyd Consultancy Ltd.

//  Shop@ssistant by Rodney Myers                      Version 3.6

//  ===============================================================

// This function demonstrates the loading on demand of Shop@ssistant's 

// system/index.html beneath a page for use if that page is accessed 

// directly e.g. from a search engine.



function start_shop(){

// browser tests

// BROWSER TEST is applied to prevent losing customers using NN2

// users, who are left on the page they have found, like those without js.

var INSASS=false;

// NN2 users refused entry

if(!pages_browser_test()){alert("Sorry, your browser is not supported");}

else

{

if (!top.INSASS)

{

     // STEP 1 

     //        Leave a note to tell Shop@ssistant's system/index.html

     //        to load THIS page in place of the regular entrance

     //        Make sure that this page provides navigation

     //        to the rest of your site!

        document.cookie = "LOADTHISPAGENOW" + "=" + 

                escape(window.location.href)+"; path=/"



     // STEP 2

     //        Load Shop@ssistant's (system/)index.html

     // This example assumes that THIS PAGE is in a directory/folder

     // /pages folder (default)

        top.location.href = "../index.html"  

	 

   } // if

 }  //else

}  // end of function



function pages_browser_test(){

// Adapted from Ultimate client-side JavaScript client sniff.

// (C) Netscape Communications 1999.  Permission granted to reuse and distribute.

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) && (is_major >=2)); // NB 2 not 3

return(is_nav3up||is_ie3up);

}// end pages_browser_test



function nosass(){ // invoked if 'buy' attempted when shopsys not loaded

if(confirm("Load shopping system,then\nreturn to this page to continue?"))

{ start_shop(); }

else

{return(' ');}

}



// For loading outside system

function wMCP(V){if(V==Math.floor(V)){V+=".00";}else if(10*V==Math.floor(10*V)){V+="0";}document.write("£"+V);}

function wCMCP(V){wMCP(V);}

function newchoice()    { nosass(); }

function ToLobby()      { nosass(); }

function reviewbasket() { nosass(); }

function terms()        { nosass(); }

function checkout()     { nosass(); }

function qty_fix()      { nosass(); }

function revQfix()      { return('')}

function listtext()     { return(nosass()); }

function listvalue()    { return(nosass()); }

// Load on Demand extension for Multi Currency

function cChange()      { nosass(); }

//-->
