
function add_style()
{
   if (screen.width >= "1200")
   {
		style = '<style type="text/css"><!-- .dynamic_width {width:800;} .td_left_width {width:100%;} .submit600 {width:130px; background-color : #FAFAFA; font-weight : normal;} --></style>';
   }
   else if (screen.width >= "1000")
   {
		style = '<style type="text/css"><!-- .dynamic_width {width:800px;} .submit600 {width:130px; background-color : #FAFAFA; font-weight : normal;} --></style>';
   }
   else
   {
		style = '<style type="text/css"><!-- .dynamic_width {width:600px;} .submit600 {width:80px; background-color : #FAFAFA; font-weight : normal;} .topnav {font-size:9px; background: #C7D0D7 url(\'forum/templates/subSilver/images/cellpic_nav.gif\') repeat-x;color:#dd6900; height: 21px; white-space: nowrap; border: 0px solid #91a0ae; border-width: 1px 1px 1px 1px} p, td { font-size : 10; color : #006699;} .gensmall {font-size : 9px; font-family: Arial, Helvetica, sans-serif;}  --></style>';
   }
   return style;
}

function add_forum_style()
{
   if (screen.width >= "1200")
   {
		style = '<style type="text/css"><!-- .dynamic_forum_width {width:100%;} --></style>';
   }
   else if (screen.width >= "1000")
   {
		style = '<style type="text/css"><!-- .dynamic_forum_width {width:100%;} --></style>';
   }
   else
   {
		style = '<style type="text/css"><!-- .dynamic_forum_width {width:765px;} --></style>';
   }
   return style;
}

function write_logo()
{
   if (screen.width >= "1000")
   {
      logo = '<img src="forum/images/logo_przemo.gif" height="73" width="160" border="0" alt="Logo phpBB by Przemo" />';
   }
   else
   {
      logo = '<img src="forum/images/logo_przemo600.gif" height="46" width="100" border="0" alt="Logo phpBB by Przemo" />';
   }
   return logo;
}

function footer()
{
	return '</td></tr></table></td></tr></table>';
}

function SwitchMenu(obj)
{
	if(document.getElementById)
	{
		var el = document.getElementById(obj);
		var ar = document.getElementById("masterdiv").getElementsByTagName("span");
		if(el.style.display != "block")
		{
			for (var i=0; i<ar.length; i++)
			{
				if (ar[i].className=="submenu")
				{
					ar[i].style.display = "none";
				}
			}
			el.style.display = "block";
		}
		else
		{
			el.style.display = "none";
		}
	}
}

