/**
 * SeedPaintball web Javascript support functions.
 * 
 * Copyright (c) 2009 SeedPaintball. All Rights Reserved.
 */

/**
 * Namespace: SeedPaintball
 * Global namespace for all SeedPaintball related Javascript classes
 */
var SeedPaintball = {};

/**
 * Object: SeedPaintball.Config
 * Configuration for this Site
 */
SeedPaintball.Config = {
	// URL for content files
	url: "content/",
	// 
	// Main content area
	content: "bottomContent",

	// Default page
	defaultPage: "html/main.html;html;main",

	// Slider images for the top component
	topImages: [ "img/top_background_slide1.jpg",
		"img/top_background_slide2.jpg" ],

	// Default image to use when top component inactive
	topInactiveImage: "img/top_background_inactive.jpg",

	// Width (approximate) of the top images, used to hide/show content on the
	// page depending on the browser size. TODO: initial size?
	topImageWidth: 900,

	// Main page top area components
	topContent: {
		// List of available images to use in top slideshow
		"content": "topContent",
		"leftButton": "topSlideLeft",
		"rightButton": "topSlideRight",
		"logo": "topLogo"
	},

	// Menu provider
	menu: "json/menu.json;json;menu",

	// Main page menu area
	menuContent: {
		"content": "menuContent",
		"links": [ {
				"url": "html/news.html;html;content",
				"img": "img/menu_news.png"
			}, {
				"url": "json/products.json;json;content",
				"img": "img/menu_products.png"
			}, {
				"url": "html/support.html;html;content",
				"img": "img/menu_support.png"
			}, {
				"url": "html/contact.html;html;content",
				"img": "img/menu_contact.png"
			}, {
				"url": "html/buy.html;html;content",
				"img": "img/menu_buy.png",
				"visible": true
			} ]
	},

	// Product page additional menu ocntent
	productMenuContent: {
		"content": "menuContent",
		"links": [ {
				"url": "json/buy.json;json;content;product=$PRODUCT$",
				"img": "img/menu_buy.png"
			} ]
	},

	// Product pages that are visible in the product chooser. Order is the array
	// they are wrapped in. Please mind the commas and brackets, it's an array
	// containing hashes.
	products: [ {
		"label": "Seed RTR",
		"img": [ "img/products/rtr1.jpg", "img/products/rtr2.jpg",
			"img/products/rtr3.jpg" ],
		"titleimg": "img/products/rtr_title.png",
		"description": "The Seed RTR is a complete Rotor Loader upgrade kit"
			+ " that improves the performance and reliability of the Rotor Loader."
			+ " The kit comes with a advanced circuit board, two motors"
			+ " for both high speed and high torque and reverse capable gears. This"
			+ " package allows the Rotor loader to shoot both soft paintballs as well"
			+ " as Reballs without jamming issues and improves the overall reliability"
			+ " of the Rotor Loader to a whole new level!",
		"content": "html/products/rtr/content.html"
	} ]
}
