	var mainColor		= prepareColor(getStyle("maincolor").color);
	var mainAlternate	= prepareColor(getStyle("mainalternate").color);
	var mainHeading		= prepareColor(getStyle("mainheading").color);
	var mainText		= prepareColor(getStyle("maintext").color);
	var mainLink		= prepareColor(getStyle("mainlink").color);
    
	var secondaryColor		= prepareColor(getStyle("secondarycolor").color);
	var secondaryAlternate	= prepareColor(getStyle("secondaryalternate").color);
	var secondaryHeading	= prepareColor(getStyle("secondaryheading").color);
	var secondaryText		= prepareColor(getStyle("secondarytext").color);
	var secondaryLink		= prepareColor(getStyle("secondarylink").color);

	getStyle("body").backgroundColor =  secondaryColor;

 	getStyle("table").backgroundColor = mainColor;
 	getStyle("tablemnshade").backgroundColor = shadeColor(mainColor, 0.25);
 	getStyle("tablesyshade").backgroundColor = shadeColor(secondaryColor, 0.10);
 	getStyle("rightborder").borderColor = mainColor;
	getStyle("line").backgroundColor = mainColor;
    getStyle("navline").backgroundColor = shadeColor(secondaryColor, 0.10);
 	getStyle("sale").backgroundColor = secondaryAlternate;
	getStyle("prodrow").backgroundColor = shadeColor(secondaryColor, 0.10);

	getStyle("borderbox").backgroundColor = shadeColor(secondaryColor, 0.10);
	getStyle("borderbox").borderColor = shadeColor(secondaryColor, 0.25);

    getStyle("text").color = secondaryText;
    getStyle("heading").color = mainHeading;
    getStyle("textmain").color = mainText;
    getStyle("saletext").color = mainColor;
    getStyle("textsale").color = secondaryAlternate;
	getStyle("textcolor").color = mainAlternate;
	getStyle("sechead").color = secondaryHeading;
	getStyle("mainhead").color = mainHeading;
	getStyle("borderlinkelements").borderColor = secondaryLink;
	getStyle("mainlinkelements").color = mainLink;

	getStyleBySelector("a:link").color = secondaryLink;
	getStyleBySelector("a:active").color = secondaryLink;
	getStyleBySelector("a:visited").color = secondaryLink;
	getStyleBySelector("a:hover").color = shadeColor(secondaryLink, 0.5);

	getStyleBySelector(".linkelements a:link").color = secondaryLink;
	getStyleBySelector(".linkelements a:active").color = secondaryLink;
	getStyleBySelector(".linkelements a:visited").color = secondaryLink;
	getStyleBySelector(".linkelements a:hover").color = shadeColor(secondaryLink, 0.5);

	getStyleBySelector(".mainlinkelements a:link").color = mainLink;
	getStyleBySelector(".mainlinkelements a:active").color = mainLink;
	getStyleBySelector(".mainlinkelements a:visited").color = mainLink;
	getStyleBySelector(".mainlinkelements a:hover").color = shadeColor(mainLink, 0.5);


    
    function drawPageName(inText, inExtra)
	{  
		attributes =  "background.fill.color=" + mainColor;
		attributes += "&label.text=" + inText;
		attributes += "&label.fill.color=" + mainHeading;
		attributes += "&stage.color=" + mainColor;
    
		drawImage("/images/site/t85/en/image/pagename.img", attributes, inExtra);
	}

	function drawNumber(inText, inExtra, inBackground, inLabel)
	{  
		attributes =  "background.fill.color=" + inBackground;
		attributes += "&label.text=" + inText;
		attributes += "&label.fill.color=" + inLabel;
		attributes += "&stage.color=" + inBackground;
    
		drawImage("/images/site/t85/en/image/number.img", attributes, inExtra);
	}
    
	function drawLabel(inText)
	{  
		attributes =  "background.fill.color=" + shadeColor(secondaryColor, 0.10);
		attributes += "&label.text=" + inText;
		attributes += "&label.fill.color=" + secondaryHeading;
		attributes += "&stage.color=" + shadeColor(secondaryColor, 0.10);

		drawImage("/images/site/t85/en/image/label.img", attributes);
	}
	function drawListHeading(inText)
	{  
		attributes =  "stage.color=" + mainColor;
		attributes += "&label.text=" + inText;
		attributes += "&label.fill.color=" + mainHeading;
		attributes += "&background.fill.color=" + mainColor;
		attributes += "&topline.fill.color=" + shadeColor(secondaryColor, 0.10);
		attributes += "&botline.fill.color=" + shadeColor(secondaryColor, 0.10);

		drawImage("/images/site/t85/en/image/listheading.img", attributes);
	}

    function drawOptionButtons(inText, inExtra, inSpace)
	{
		attributes =  "icon.fill.color=" + mainHeading;
		attributes += "&label.text=" + inText;
		attributes += "&label.fill.color=" + mainText;
		attributes += "&stage.color=" + mainColor;

		drawImage("/images/site/t85/en/image/optbuttons.img", attributes, inExtra);
	}

	function drawBigInputButtons(inText, inName, inExtra)
	{
		attributes =  "button.stroke.color=" + shadeColor(secondaryColor, 0.25);
		attributes += "&button.fill.color=" + shadeColor(secondaryColor, 0.10);
		attributes += "&label.text=" + inText;
		attributes += "&label.fill.color=" + secondaryHeading;
		attributes += "&stage.color=" + secondaryColor;
		attributes += "&stage.color=" + secondaryColor;

		drawInputImage("/images/site/t85/en/image/bigbuttons.img", attributes, inName, inExtra);
	}

	function drawBigButtons(inText, inExtra, inExtraAttributes)
	{  
		attributes =  "button.stroke.color=" + shadeColor(secondaryColor, 0.25);
		attributes += "&button.fill.color=" + shadeColor(secondaryColor, 0.10);
		attributes += "&label.text=" + inText;
		attributes += "&label.fill.color=" + secondaryHeading;
		attributes += "&stage.color=" + secondaryColor;
		attributes += "&label.opacity=" + inExtraAttributes;

		drawImage("/images/site/t85/en/image/bigbuttons.img", attributes, inExtra);
	}

	function drawSmallButtons(inText, inExtra, inExtraAttributes)
	{  
		attributes =  "button.stroke.color=" + shadeColor(secondaryColor, 0.25);
		attributes += "&button.fill.color=" + shadeColor(secondaryColor, 0.10);
		attributes += "&label.text=" + inText;
		attributes += "&label.fill.color=" + secondaryHeading;
		attributes += "&stage.color=" + secondaryColor;
		attributes += "&label.opacity=" + inExtraAttributes;

		drawImage("/images/site/t85/en/image/smallbuttons.img", attributes, inExtra);
	}

    function drawSmallInputButtons(inText, inName, inExtra, inExtraAttributes)
	{
		attributes =  "button.stroke.color=" + shadeColor(secondaryColor, 0.25);
		attributes += "&button.fill.color=" + shadeColor(secondaryColor, 0.10);
		attributes += "&label.text=" + inText;
		attributes += "&label.fill.color=" + secondaryHeading;
		attributes += "&stage.color=" + secondaryColor;
		attributes += "&label.opacity=" + inExtraAttributes;

        drawInputImage("/images/site/t85/en/image/smallbuttons.img", attributes, inName, inExtra);
	}

    function drawGoButtons(inText, inName, inExtra)
	{
		attributes =  "button.fill.color=" + shadeColor(secondaryColor, 0.10);
		attributes += "&label.text=" + inText;
		attributes += "&label.fill.color=" + secondaryHeading;
		attributes += "&stroke.fill.color=" + secondaryHeading;
		attributes += "&stage.color=" + shadeColor(secondaryColor, 0.10);

        drawInputImage("/images/site/t85/en/image/gobuttons.img", attributes, inName, inExtra);
	}

	function drawNavButtons()
	{
		attributes = "&stage.color=" + mainColor;
		attributes += "&label.fill.color=" + mainText;
		attributes += "&label.fill.color.over=" + mainAlternate;
		attributes += "&label.fill.color.selected=" + mainAlternate;
		attributes += "&label.fill.color.selectedover=" + mainText;
		attributes += "&icon.fill.color=" + mainColor;
		attributes += "&line.fill.color=" + shadeColor(secondaryColor, 0.10);
		attributes += "&icon.stroke.color=" + mainText;
		attributes += "&icon.stroke.color.over=" + mainAlternate;
		attributes += "&icon.stroke.color.selected=" + mainAlternate;
		attributes += "&icon.stroke.color.selectedover=" + mainText;
		attributes += "&icon.dropshadow.color=" + mainText;
		attributes += "&icon.dropshadow.color.over=" + mainAlternate;
		attributes += "&icon.dropshadow.color.selected=" + mainAlternate;
		attributes += "&icon.dropshadow.color.selectedover=" + mainText;

        drawTabs("vertical", 0, 0, "VSPACE=5 BORDER=0", attributes, "/images/site/t85/en/image/btn.img");
	}
