// JavaScript Document

//
// By Dimitar 
//

var blnIE5    = false;
var userAgent = navigator.userAgent;
var MSIEIndex = userAgent.indexOf("MSIE");

var gIndex1 = 0;
var gIndex2 = 0;

if (userAgent.indexOf("Win")  != -1 &&
	userAgent.indexOf("MSIE") != -1 &&
	userAgent.substring((MSIEIndex + 5),(MSIEIndex + 6)) > 4)
{
	blnIE5 = false; // !!!!!
}


function popUpVideo(objid)
{
	if (blnIE5)
		{window.showModalDialog(objid, "popup", "dialogHeight:550px; dialogWidth:770px; center:1 ; scroll:1; status:1; resizable:1; unadorned:1; help:0; ");}
	else
		{var winNew = window.open(objid, "popup", "width=770,height=550,scrollbars=1,status=yes,resizable=1");	winNew.focus();}
}


function getObjStyle(name)
{
	if (document.getElementById)
		return document.getElementById(name).style
	else if (document.all)
		return document.all[name].style
	else
		return null;
}

function ShowHtml(show)
{
	if (show.length > 0)
	{
		var as = show.split(',');
		for(i = 0; i < as.length; ++i)
			if (obj = getObjStyle(as[i]))
				obj.display = '';
	}
}