	// constants/configuration
	if(typeof arrLinkIds == 'undefined'){
		var arrLinkIds =	new Array(
								new Array('homepage','/resources/styles_*.css')
							);
	}

	// primary functions - functionality
		// apply a stylesheet's URL to a <link> tag with an Id (also in easystyles.js)
		function loadStylesheet(strId,strStylesheetUrl){
			if(dom){
				document.getElementById(strId).href = strStylesheetUrl;
			}
		}


	// secondary function - construction


	// ternary function - operation 
		// set and save the theme
		function setTheme(strTheme) {
			if(dom) {
				// change the theme settings
				for(var intA=0; intA<arrLinkIds.length; intA++){
					arrCssUrl = arrLinkIds[intA][1].split('*');
					loadStylesheet(arrLinkIds[intA][0],arrCssUrl[0]+strTheme+arrCssUrl[1]);
				}
				// store the theme setting
				//if(strTheme!='print') setCookie('wlytheme0', strTheme, getDaysFromNow(30), '/');
			}
		}

	

	



