/* GLOBAL VARIABLES EXPLAINED
This files contains all GLOBAL VARIABLES used in the Jey Store.
Comments on the same line after the variables explains the type of value that variable is expected to receive.
*/
widgetArray = new Array();
widgetHover = new Array();

loadingImage = '<img class="loading" src="gfx/_loading.gif"></img>';

/* DOCUMENT DATA
The following variables stores the actual size of the browser window, not the screen size.
These variables are crucial since they are used for the absolute positioning of the SHOPPING CART and TRASHCAN.
The values of these variables are calculated when the onLoad and onResize events is activated.
*/
var _pageWidth;		// INTEGER = Width of the browse area.
var _pageHeight;	// INTEGER = Height of the browse area.

/* OBJECT SHORTHANDS
Some objects are used frequently and therefor it's convenient to have them as short hands.
*/
var shadow;
var sliding = 0;

/* TRASHCAN
The following variables are all associated with the TRASHCAN object.
*/
var trashcan;		// OBJECT = Short Hand

var tcTop = 0;		// INTEGER = Absolute Y Position
var tcLeft = 0;		// INTEGER = Absolute X Position

/* SHOPPING CART
Here comes the variables associated with the SHOPPING CART object (not the widget!)
*/
var shopping;		// OBJECT = Short Hand

var scTop = 0;		// INTEGER = Absolute Y Position
var scLeft = 0;		// INTEGER = Absolute X Position
var scBottom = 0;	// INTEGER = Absolute Y Position

/* PRICE TAG
The PRICE TAG object is the one beneath the SHOPPING CART that presents the current value of the items in (and above) the SHOPPING CART
The position values are based on the position of the SHOPPING CART.
*/
var pricetag;		// OBJECT = Short Hand

var ptTop = 0;		// INTEGER = Absolute Y Position
var ptLeft = 0;		// INTEGER = Absolute X Position

/* SAFE ZONE
The SAFE ZONE is the area to the far right at the shopping floor.
Both the SHOPPING CART and TRASHCAN are positioned in this area and none of them may be hidden by dropped widgets.
The safeZone variable is used to compare the position of recently dropped or hovering widgets and in case of overlapping take appropriate action.
*/
var safeZone = 0;	// INTEGER = Browse Area X Position

/* DATA STORAGE OBJECTS
The ITEM PRICE OBJECT is by default empty upon onLoad.
It is used to store the price of items that appears on the site in order to use them in the sum calculating process.
Whenever an item is clicked the price of that item will be added to the ITEM PRICE OBJECT.
The names for all variables are based on the items ASIN which means that any script can get the price of an item after it has been clicked once.
*/
itemPrice = new Object();	// Stores the price of each clicked item.

wO = new Object();		// wO as i widgetObject ...

// Order of items in the array = PAGE, SORT, NODE, KEYWORD
wO.topsellers = new Array("1","salesrank","501778","");
wO.shoppingcart = new Array("1","salesrank","501778","");
wO.search = new Array("1","salesrank","","");













