function fixforOthers()
{
	var agent = navigator.userAgent;
	var right,left;
	// check opera and mozilla
	var opera = /Opera/g.test(agent);
	var mozilla = /Gecko/g.test(agent);

	// check internet explorer major version 

	/MSIE (\d+)/g.exec(agent);
	msiever=RegExp.$1;

	if (msiever < 6)
	{
		document.getElementById("leftcontent").style.width="147px";
		document.getElementById("rightcontent").style.width="637px";
	}
	if(opera || mozilla || msiever>=6)
	{	
		// I am calculating "right" here, since usually the right pane is bigger than the navigation pane 
		right = document.getElementById("rightcontent").offsetHeight-6;	
		left = document.getElementById("leftcontent").offsetHeight-6;
		if (left<right)
		{
			document.getElementById("leftcontent").style.height=right+"px";
		}
		else
		{
			document.getElementById("rightcontent").style.height=left+"px";
		}
	}
}

/*
function lookforPlugin()
{
	if ((navigator.mimeTypes["audio/wav"] && navigator.mimeTypes["audio/wav"].enabledPlugin!=null)||
       (navigator.mimeTypes["audio/x-wav"] && navigator.mimeTypes["audio/x-wav"].enabledPlugin!=null)) 
		alert("dziala");
}
*/

function toggleSound(invalue)
{
	//lookforPlugin();
	if (invalue)
	{
		document.getElementById("sound").src="http://swidzinski.com/images/noise_on.gif";
		document.getElementById("silence").src="http://swidzinski.com/images/silence_off.gif";
		document.getElementById("blekot").innerHTML='<embed src="bkgrnd.wav" hidden="true" loop="true" autostart="true"></embed>';
	}
	else
	{
		document.getElementById("sound").src="http://swidzinski.com/images/noise_off.gif";
		document.getElementById("silence").src="http://swidzinski.com/images/silence_on.gif";
		document.getElementById("blekot").innerHTML='';
 	}
}

