// JavaScript Document
var formatSize = 16;
var formatFactor = 0;

function setFormat(formatNumber)
{
	
	//formatFactor = 0;
	formatFactor = formatNumber * formatSize;
	//set background colour
	document.bgColor = themeArray[0 + formatFactor];
	//set logo colour and logo border colour
	var logoFormat = document.getElementById('logo');
	logoFormat.style.color = themeArray[1 + formatFactor];
	logoFormat.style.borderBottomColor = themeArray[6 + formatFactor];
	//set print info text and border colours
	var infoFormat = document.getElementById('printInfo');
	infoFormat.style.color = themeArray[6 + formatFactor];
	infoFormat.style.borderBottomColor = themeArray[6 + formatFactor];
	infoFormat.style.borderLeftColor = themeArray[6 + formatFactor];
	infoFormat.style.borderTopColor = themeArray[0 + formatFactor];
	infoFormat.style.backgroundColor = themeArray[0 + formatFactor];
	//set nav borders
	var navFormat = document.getElementById('nav');
	navFormat.style.borderTopColor = themeArray[6 + formatFactor];
	navFormat.style.borderBottomStyle = themeArray[8 + formatFactor];
	navFormat.style.borderBottomColor = themeArray[6 + formatFactor];
	//set Nav text colour
	
	var navItemFormat = document.getElementById('navItems');
	navItemFormat.style.color = themeArray[1 + formatFactor];
	var navItemFormat2 = document.getElementById('galleryItems');
	navItemFormat2.style.color = themeArray[1 + formatFactor];
	var navItemFormat3 = document.getElementById('classroomItems');
	navItemFormat3.style.color = themeArray[1 + formatFactor];
	var navItemFormat4 = document.getElementById('newsItems');
	navItemFormat4.style.color = themeArray[1 + formatFactor];
	var navItemFormat5 = document.getElementById('themeItems');
	navItemFormat5.style.color = themeArray[1 + formatFactor];
	var livePageFormat = document.getElementById('livePage');
	livePageFormat.style.color = themeArray[15 + formatFactor];
	
}

/*function setMenuHeaderColour()
{
	var navItemHome = document.getElementById('home');
	navItemHome.style.Color = themeArray[1 + formatFactor];
	var navItemGallery = document.getElementById('gallery');
	navItemGallery.style.Color = themeArray[1 + formatFactor];
	var navItemClassroom = document.getElementById('classroom');
	navItemClassroom.style.Color = themeArray[1 + formatFactor];
	var navItemNews = document.getElementById('news');
	navItemNews.style.Color = themeArray[1 + formatFactor];
	var navItemThemes = document.getElementById('themes');
	navItemThemes.style.Color = themeArray[1 + formatFactor];
	var navItemContact = document.getElementById('contact');
	navItemContact.style.Color = themeArray[1 + formatFactor];
}*/

