var icDHTMLStyles;
var screenWidth = screen.width;

if (screenWidth < 700)
{
setupStyles(8, 14, 12, 8, 12, 10);
}
else if (screenWidth < 900)
{
setupStyles(10, 18, 14, 10, 14, 12);
}
else
{
setupStyles(12, 30, 18, 12, 30, 14);
}

function constructicDHTMLStyles (body, title, letter, menu, h1, h2)
{
	this.bodyBackgroundColor = "white";
	this.bodyBackgroundRepeatIE = "no-repeat";
	this.bodyBackgroundRepeatNS = "repeat-y";
	this.bodyBackground = "URL("
	                      + strRelFolder
	                      + strBackground
	                      + ")";
	                      
	this.bodyFontFamily = "Verdana, Arial, 'Comic Sans MS', helvetica, sans-serif";
	this.bodyFontSize = body;
	this.bodyScoll = "no";
	
	this.linkTextDecoration = "none";
	
	this.h1Color = "black";
	this.h1FontWeight = "bolder";
	this.h1FontSize = h1;
	
	this.h2Color = "black";
	this.h2FontWeight = "bolder";
	this.h2FontSize = h2;
	
	this.menuColor = "black";
	this.menuFontWeight = "bolder";
	this.menuFontSize = menu;
	
	this.menulinkColor = "navy";
	this.menulinkFontWeight = "bolder";
	this.menulinkFontSize = menu;

	this.menulinkColorOver = this.menulinkColor;
	this.menulinkColorOff = "black";

	this.menulinkFontStyleOver = "italic";
	this.menulinkFontStyleOff = "";
	
	this.menucategoryColor = "maroon";
	this.menucategoryFontWeight = "bolder";
	this.menucategoryFontSize = menu;
	
	this.titleColor = "green";
	this.titleFontWeight = "bolder";
	this.titleFontSize = title;
	
	this.letterColor = "black";
	this.letterFontWeight = "bolder";
	this.letterFontSize = letter;
}

function setupStyles(body, title, letter, menu, h1, h2)
{
	icDHTMLStyles = new constructicDHTMLStyles(body, title, letter, menu, h1, h2);
}
//
