// <!-- MAR 2003 -->
// rootsettings.js : generated from cufw_root.htm for MyShop
//  ==================================================
//  Entry point for Shop@ssistant site
//  Set startup window characteristics
//  Feb 03 : Support for sized/centered windows
//  Copyright © 2001-2003, Shop@ssistant eCommerce Solutions Ltd.
//  Created by Rodney Myers
//  ==================================================


var Path,System,Entrance;
var win_w,win_h,win_w_max,win_h_max;
var w_adjust,h_adjust;
var windowSizing,win_w_pct,win_h_pct;
var top_coord,left_coord;
var myToolbar,myLocation,myDirectories,myStatus,myMenubar;
var myResizable,myScrollbars;
var newWindowOpen,immediateStart;

var defaultStartFile="index.html"; // For use in NOSCRIPT case after script re-enabled

function settings() {

// ENSURE THAT THESE RELATIVE ADDRESSES TO KEY FILES ARE CORRECT
//
Path     = currentPath(window.location.href);
System   = Path+"system/index.html";
Entrance = Path+"pages/index.html";
OldBrows = Entrance; // Change to re-direct old browsers
// true : Open a new window for the shop  false : same window
newWindowOpen=false;
// true : start shop onload  false : wait for link to be clicked
immediateStart=false;

// Where new window is to be opened

// Section not fully supported by inputs in createuserfiles STARTS
windowSizing="maxxed"; // default
// windowSizing="centred-pixelsize"; // suitable for sites with large fixed size graphics
// windowSizing="centred-percent"; // sized and centred window, adjusted for screen resolution

if (windowSizing=="maxxed")
{
// Default dimensions for window - used in old browsers (if any) and adjusted for actual resolution
win_w=790;
win_h=552;

// Max pixel dimensions - these are adjusted for borders & co with w_adjust,h_adjust
win_w_max=1024;
win_h_max=768;
w_adjust=10; // Reduce width of maxxed window
h_adjust=190;// Reduce height of maxxed window
// 190 optimises window height in XP on 1024 width screen with single depth task bar at bottom of screen

}
else if (windowSizing=="centred-pixelsize")
{
win_w=900; win_h=600; // set these to the exact window size required
}
else if (windowSizing=="centred-percent")
{
win_w_pct=90; // set to percentage of screen width required for window
win_h_pct=82; // set to percentage of screen height required for window
}
// Section not fully supported by inputs in createuserfiles ENDS

// Window Features
myToolbar=1;
myLocation=1;
myDirectories=0;
myStatus=1;
myMenubar=1;
myResizable=0;
myScrollbars=1;
Top_coord=0;
Left_coord=0;


}//

// Message for js equipped browsers that do not qualify
var nqmsg="On-line shopping is not supported for this browser.\nPlease enjoy looking around our site\nand contact us by phone, fax or e-mail\nwith your requirements."

// Message for older AOL browsers, where identifiable. AOL5 is OK
var AOL_Message ="Welcome AOL3/AOL4 user!\n\n"
+  "AOL have provided you with TWO ways to browse the InterNet.\n"
+  " 1. The internet window inside the AOL start-up window\n"
+  " 2. A browser that you can start separately\n\n"
+  "In our experience, while both are just fine for looking around\n"
+  "(1) can give problems when trying to place an order\n"
+  " . . . so naturally we would like you to load our shop with\n"
+  "(2) the 'external' browser, most probably Internet Explorer.\n\n"

+  "We recommend that you click [Cancel] now and start the external browser.\n"
+  "Alternatively, click OK to continue with your present configuration.";

var AOL_Alert = "Thank you for your attention\n\n"
+ "Please start your 'external' browser\n"
+ "and return to us\n"
+ "at " + self.location.href;  // Automatic insertion of this page's full URL


settings_ok=true;
start();



