var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;

function checkIt(string)
{
place = detect.indexOf(string) + 1;
thestring = string;
return place;
}

if (checkIt('msie')) browser = "Internet Explorer";
if (checkIt('opera')) browser = "Opera";

if ( browser == "Internet Explorer" )  {
     document.write("<link rel=stylesheet href=css/ie.css type=text/css>");
      } 
	else {
      document.write("<link rel=stylesheet href=css/sonst.css type=text/css>");
      }

function openPopUpWindow( side, width, height, top, left, scrolling )
{
	if (side && side != null)
	{
		var parameters = "";
		if ( width != null )
		{
			parameters += ",width=" + width;
		}
		if ( height != null )
		{
			parameters += ",height=" + height;
		}
		if ( top != null )
		{
			parameters += ",top=" + top;
		}
		if ( left != null )
		{
			parameters += ",left=" + left;
		}
		if ( scrolling == "true" )
		{
			parameters += ",scrollbars=auto";
			parameters += ",scrollbars=yes";
		}
		else
		{
			parameters += ",scrollbars=no";
		}
		var newWindow = window.open( side, "_blank","toolbar=no,status=no,location=no,menubar=no,directories=no,resizable=yes" + parameters );  
		newWindow.focus();
	}
	return;
}

