// JavaScript Document

//DELCLARES THE GLOBAL VARIABLES FOR THE SCRIPT

var blind_type = null; // will contain the type of blind as it is being defined
var blind_colour = null; // will contain the reference to the coour selected by the user
var blind_control_position = null; // will contain the position of the blind
var blind_control_drop = null; //will contain the drop length of the controls
var control_colour = null // will contain the colour of controls selected
var control_upgrade = false; // will contain any information upgrading the controls
var blind_measurement_fit = null; //will contain the measurement fit details either inside fit or outside fit
var blind_width = null; // will contain the current width of a blind as it is being defined
var blind_drop = null; // will contain the current height of a blind as it is being defined
var stacked_height = null; // will contain the current stacked height or 'drop' of a blind as it is being defined
var blind_price = null; // will contain the current price of a blind as it is being defined

var blind_array = Array(); // array will contain all the elements of a defined blind before it is committed to the stack
var blind_stack = Array(); // will contain all the blind_array objects


//DECLARES EXTRA, POTENTIALLY CHANGEABLE VARIABLES

var chain_price = 10; // this is the cost of adding a silver coloured chain to a roller blind

function reInitialiseGlobals() {
	blind_type = null;
	blind_colour = null;
	blind_control_position = null;
	blind_control_drop = null;
	control_colour = null;
	control_upgrade = false;
	blind_measurement_fit = null;
	blind_width = null;
	blind_drop = null;
	stacked_height = null;
	blind_price = null;
	
	blind_array = Array();
}