<!--
function showInfo( infoURL, infoWidth, infoHeight )
	{
	if ( window.screen )
		{
		sw = screen.availWidth;
		sh = screen.availHeight;
		}
	else
		{
		sw = 640;
		sh = 480;
		}
	options = "width="+infoWidth+",height="+infoHeight
	+",left="+(sw-infoWidth)/2+",top="+(sh-infoHeight)/2 
	+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no";
	var w = window.open( infoURL, "infoWindow", options );
	}
	
function showShortTopic( type ) 
	{
	var replace;
	var path = new String();
	path = location.pathname;
	if ( path.indexOf( "index.php", 0 ) >= 0 )
		replace = true;
	else
		replace = false;
	var newpath = new String();
	switch(type)
		{
		case 0:
			newpath = "index.php";
			break;
		case 10:
			newpath = "index.php?topicId=10";
			break;
		case 20:
			newpath = "index.php?topicId=20";
			break;
		case 30:
			newpath = "index.php?topicId=30";
			break;
		case 40:
			newpath = "index.php?topicId=40";
			break;
		case 50:
			newpath = "index.php?topicId=50";
			break;
		case 100:
			newpath = "index.php?topicId=100";//"imprek.html");
			break;
		case 110:
			newpath = "index.php?topicId=110";//"impspo.html");
			break;
		case 120:
			newpath = "index.php?topicId=120";//"mosir.html");
			break;
		case 130:
			newpath = "index.php?topicId=130";//"fitness.html");
			break;
		case 140:
			newpath = "index.php?topicId=140";//"restsites.html");
			break;
		case 190:
			newpath = "index.php?topicId=190";
			break;
		case 500:
			newpath = "index.php?topicId=500";//"links.html");
			break;
		case 1000:
			newpath = "index.php?topicId=1000";//".html");
			break;
		default:
			newpath = path;
			replace = true;
		}
	if ( replace == true )
		location.replace(newpath);
	else
		location.href = newpath;
	}

function showTopic( type, subtopicId ) 
	{
	if ( subtopicId == null )
		subtopicId = 0;
	subtopicId = subtopicId.toString();
	switch(type)
		{
		case 0:
			location.href = "news.php";
			break;
		case 10:
			location.href = "news.php?topicId=10";
			break;
		case 20:
			location.href = "news.php?topicId=20";
			break;
		case 30:
			location.href = "news.php?topicId=30";
			break;
		case 40:
			location.href = "news.php?topicId=40";
			break;
		case 50:
			location.href = "news.php?topicId=50";
			break;
		case 100:
			location.href = "imprek.php";
			break;
		case 110:
			location.href = "impspo.php";
			break;
		case 120:
			location.href = "mosir.php";
			break;
		case 130:
			location.href = "fitness.php";
			break;
		case 140:
			location.href = "restsites.php";
			break;
		case 190:
			location.href = "pubs.php";
			break;
		case 500:
			location.href = "links.php?topicId="+subtopicId;
			break;
		case 1000:
			location.href = "vulcan.php?topicId="+subtopicId;
			break;
		case 1020:
			location.href = "Tliga/index.php";//".html");
			break;
		case 1031:
			location.href = "talk.php";
			break;
		case 1032:
			location.href = "talkarch.php";
			break;
		case 1033:
			location.href = "forum.php";
			break;
		}
	}
//-->
