var font_type  = 1;
var screensize = 'normal';

function iconsInit()
{
	var el_array = new Array('a1','a2','a3','large','small');
	var el;
	
	for(i = 0; i < el_array.length; i++)
	{
		el = document.getElementById(el_array[i]);
		el.onclick = switchStyle;
	}
}


function switchStyle()
{
	var css = '';
	
	if(this.id == 'a1')
	{
		font_type = 1;
		switch(screensize)
		{
			case 'normal':	css = 'default';		break;
			case 'wide':	css = 'altstyle_4';		break;
		}
	}
	
	if(this.id == 'a2')
	{
		font_type = 1;
		switch(screensize)
		{
			case 'normal':	css = 'altstyle_2';		break;
			case 'wide':	css = 'altstyle_5';		break;
		}
	}
	
	if(this.id == 'a3')
	{
		font_type = 3;
		switch(screensize)
		{
			case 'normal':	css = 'altstyle_3';		break;
			case 'wide':	css = 'altstyle_6';		break;
		}
	}
	
	if(this.id == 'large')
	{
		screensize = 'wide';
		switch(font_type)
		{
			case 1:			css	= 'altstyle_4';	break;
			case 2:			css	= 'altstyle_5';	break;
			case 3:			css	= 'altstyle_6';	break;
		}
	}
	
	if(this.id == 'small')
	{
		screensize = 'normal';
		switch(font_type)
		{
			case 1:			css	= 'default';	break;
			case 2:			css	= 'altstyle_1';	break;
			case 3:			css	= 'altstyle_2';	break;
		}
	}

	setActiveStyleSheet(css);
	
	var title = getActiveStyleSheet();
  	createCookie("style", title, 365);
	
	watermerkInit();
	return false;
}