var initialObjectID = null;	//If a hash-bang is received then this gets populated by func: app_spiSwitchboard
var pfax_HashBang_PathSeperator = "products";
var pfax_HashBang_Handler = "/products.php";

var userID = 0;

var previousLayout = 'home';

var itemsPerPage = 5

var theBreadcrumb = '';

var itemStart = 0;
var searchPage = 0;
var currentCat = '';
var currentSearchText = '';

var pageLayouts = {};

var itemBeingDragged = 0;
var itemBeingDraggedIncludeChildren = 0;

var activeCartItems = new Array();

var activeCartItemsInfo = {};

var userLists = new Array();



pageLayouts['home'] = {};

pageLayouts['home']['welcome-heading'] = 'WELCOME TO OUR MEDIA CENTRE';
pageLayouts['home']['welcome-text-box'] = 'Here you will find all the information you\'ll need about the Goodyear Team as well as our groundbreaking products and services.';
pageLayouts['home']['visibleComponents'] = new Array(
		//'L-welcome-box'
		//,
		'L-latest-news-box'
		,
		'L-your-downloads-box'
		//,
		
		//'R-resources-box'
		,
		'R-resources-box'
		,
		'R-register-now-box'
		,
		'R-live-feeds-box'
		,
		'R-contact-us-box'
		,
		'R-suggestion-box-box'
		,
		'R-media-feeds-box'
);


pageLayouts['listItems'] = {};

pageLayouts['listItems']['welcome-heading'] = 'LATEST MEDIA ITEMS';
pageLayouts['listItems']['welcome-text-box'] = '';
pageLayouts['listItems']['visibleComponents'] = new Array(
		//'L-welcome-box'
		//,
		'L-itemsBox'
		,
		'L-paginationBox'
		,
		
		//'R-resources-thin-box'
		//,
		//'R-register-now-box'
		//,
		//'R-contact-us-box'
		//,
		//'R-suggestion-box-box'
		
		'R-contact-us-box'
		,
		'R-suggestion-box-box'
		

		,
		'R-cartBox'
);
//		,'R-moreNewsBox'


pageLayouts['search'] = {};

pageLayouts['search']['welcome-heading'] = 'SEARCH';
pageLayouts['search']['welcome-text-box'] = '';
pageLayouts['search']['visibleComponents'] = new Array(
		//'L-welcome-box'
		//,
		'L-searchFormBox'
		,
		'L-itemsBox'
		,
		'L-paginationBox'
		,
		
		//'R-resources-thin-box'
		//,
		//'R-register-now-box'
		//,
		//,
		//'R-contact-us-box'
		//,
		//'R-suggestion-box-box'
		
		'R-contact-us-box'
		,
		'R-suggestion-box-box'
		,
		'R-cartBox'
);


pageLayouts['checkOut'] = {};
pageLayouts['checkOut']['welcome-heading'] = 'PROCESS YOUR CART';
pageLayouts['checkOut']['welcome-text-box'] = '';
pageLayouts['checkOut']['visibleComponents'] = new Array(
		//'L-welcome-box'
		//,
		'L-checkOutBox'
		,
		//'R-resources-thin-box'
		//,
		//'R-register-now-box'
		//,
		//,
		//'R-contact-us-box'
		//,
		//'R-suggestion-box-box'
		
		'R-contact-us-box'
		,
		'R-suggestion-box-box'
);

// PRELOADING IMAGES
if (document.images) {
	 img_on =new Image();  img_on.src ="i/live-feeds/twitter-on.png"; 
	 img_off=new Image();  img_off.src="i/live-feeds/twitter-off.png"; 
}



/*
var allComponents = new Array(
		'welcome-box'
		,
		'latest-news-box'
		,
		'your-downloads-box'
		
		
		,
		'resources-box'
		,
		'register-now-box'
		,
		'live-feeds-box'
		,
		'contact-us-box'
		,
		'suggestion-box-box'
		,
		'media-feeds-box'
		,
		'live-feeds-box'
);
*/

