function makeTextEditWindow(link)
{
	var xpos;
	var ypos;
	var hei = 280;
	var wid = 500;
	xpos = (screen.width / 2) - (wid / 2);
	ypos = (screen.height / 2)- (hei / 2);
	window.open(link,'','height='+hei+',width='+wid+',left='+xpos+',top='+ypos);
}
function changecolorIn(pos,col,tcol,lp)
{
	var xxx;
	xxx = document.getElementById('listitem'+pos);
	xxx.bgColor=col;
	xxx.style.cursor='hand';
	xxx = document.getElementById('listtext'+pos);
	xxx.style.color=tcol;
	if( lp == 1 )
		changecolorIn(pos+1,col,tcol,0);
	if( lp == -1 )
		changecolorIn(pos-1,col,tcol,0);
}

function changecolorOut(pos,col,tcol,lp)
{
	var xxx;
	xxx = document.getElementById('listitem'+pos);
	xxx.bgColor=col;
	xxx.style.cursor='auto';
	xxx = document.getElementById('listtext'+pos);
	xxx.style.color=tcol;
	if( lp == 1 )
		changecolorOut(pos+1,col,tcol,0);
	if( lp == -1 )
		changecolorOut(pos-1,col,tcol,0);
}
function runSlideShow()
{
	/* onSBLoad();*/
	if ( pau > 0 )
	{
       document.images.SlideShow.src = preLoad[j].src;
       j = j + 1;
  		if (j > (p-1)) j=0;
  	}
   t = setTimeout('runSlideShow()', speed);
}
function ppause()
{
	if ( pau > 0 ) pau = 0
		else pau = 1
}
function slower()
{
	if ( speed < 2000 ) speed = speed + 200
}
function faster()
{
	if ( speed > 200 ) speed = speed - 200
}
function submitform()
{
var xxx;
xxx = document.getElementById('myform');
xxx.submit();
}














/*
 * code copied from
 *   http://devedge.netscape.com/viewsource/2003/windows-media-in-netscape/first-detection.js.txt
 *
 */
function detectWMP()
{
	var wmpInfo = {
	installed: false,
	scriptable: false,
	type: null,
	versionInfo: null
	};
	var wmp64 = "MediaPlayer.MediaPlayer.1";
	var wmp7 = "WMPlayer.OCX.7";
	if((window.ActiveXObject && navigator.userAgent.indexOf('Windows') != -1) || window.GeckoActiveXObject)
	{
	wmpInfo.type = "ActiveX";
	var player = createActiveXObject(wmp7);
	if(player)
	{
	wmpInfo.installed = true;
	wmpInfo.scriptable = true;
	wmpInfo.versionInfo = player.versionInfo;
	return wmpInfo;
	}
	else
	{
	player = createActiveXObject(wmp64);
	if(player)
	{
	wmpInfo.installed = true;
	wmpInfo.scriptable = true;
	wmpInfo.versionInfo = "6.4";
	return wmpInfo;
	}
	else
	{
	wmpInfo.versionInfo = "none";
	return wmpInfo;
	}
	}
	}
	else if(navigator.mimeTypes)
	{
	wmpInfo.type = "NetscapePlugin";
	var player = navigator.mimeTypes['application/x-mplayer2'].enabledPlugin;
	if(player)
	{

	wmpInfo.installed = true;
	//wmpInfo.scriptable = false;
	wmpInfo.versionInfo = "PluginVersion";
	return wmpInfo;
	}
	return wmpInfo;
	}
}

function createActiveXObject(id)
{
	var error;
	var control = null;

	try
	{
		if (window.ActiveXObject)
		{
		control = new ActiveXObject(id);
		}
		else if (window.GeckoActiveXObject)
		{
		control = new GeckoActiveXObject(id);
		}
	}
	catch (error)
	{
		;
	}
	return control;
}


function printResults()
{
	var detectionResults = detectWMP();
	document.write("Browser architecture supports: " + detectionResults.type + "\n");
	document.write("Windows Media Player Installed: " + detectionResults.installed + "\n");
	if(detectionResults.installed)
	{
	document.write("Windows Media Scriptable: " + detectionResults.scriptable + "\n");
	document.write("Windows Media Version: " + detectionResults.versionInfo + "\n");
	}
}

function pasteMovie(file_wmp, file_indeo,width,height)
{
	var file = file_indeo;
	var res = detectWMP();

	height = height + 75;

	if(res.versionInfo.indexOf('9.0') != -1 )
		file = file_wmp;
	//22D6F312-B0F6-11D0-94AB-0080C74C7E95 --wmp9=wimmer
	//6BF52A52-394A-11d3-B153-00C04F79FAA6 --netscape
	// 98a6cb2d-6659-485e-b1f9-2c0d9bf6c328 - wmp
	document.write(
	'<BR><TABLE ALIGN="center"><TR><TD>'+
	'<object width="'+width+'" height="'+height+'" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" '+
	'id="mediaplayer1" standby="Downloading..." type="application/x-oleobject" >'+
	'<param name="Filename" value="'+file+'">'+
	'<param name="ShowStatusBar" value="True">'+
	'<param name="AutoStart" value="True">'+
	'<param name="ShowControls" value="True">'+
	'<param name="ShowDisplay" value="False">'+
	'<param name="AutoRewind" value="False">'+
	'<param NAME="animationatStart" VALUE="true">'+
	'<param NAME="transparentatStart" VALUE="false">'+
	'<param name="Volume" value="0">'+
	'<embed type="application/x-mplayer2" name="MediaPlayer1"'+
	'width="'+width+'" height="'+height+'" src="'+file+'" filename="'+file+'" autostart="True" '+
	'showcontrols="True" showstatusbar="False" showdisplay="False" autorewind="False">'+
	'</embed> '+
	'</object>'+
	'</TD></TR></TABLE><BR>');
}

function preloadsl()
{
/* copied from www.eldakar.demon.pl  (2004-06-12) */
var yourImages = new Array(
"grafika/aa.jpg",
"grafika/ab.jpg",
"grafika/ac.jpg",
"grafika/ad.jpg",
"grafika/ba.jpg",
"grafika/bb.jpg",
"grafika/bc.jpg",
"grafika/bd.jpg",
"grafika/ca.jpg",
"grafika/cb.jpg",
"grafika/cc.jpg",
"grafika/cd.jpg",
"grafika/da.jpg",
"grafika/db.jpg",
"grafika/dc.jpg",
"grafika/dd.jpg")

       for (i = 0; i < yourImages.length; i++) { 
               preImages[i] = new Image()
               preImages[i].src = yourImages[i]
       }
}

