		function HideDiv()	{
			d = document.getElementById("d1");
			p = document.getElementById("d2");
			d.style.display="none";
			p.style.display="none";
		}
		function ShowDiv()	{
			d = document.getElementById("d1");
			p = document.getElementById("d2");
			d.style.display="inline";
			p.style.display="inline";
		}
		function OnPLAYOVER(who)	{
			tI1 = document.getElementById("DISP_PLAY1");
			tI2 = document.getElementById("DISP_PLAY2");
			browser_version = parseInt(navigator.appVersion);
			browser_type = navigator.appName;

			if (browser_type == "Microsoft Internet Explorer" && (browser_version > 4)) {
				if (who=="DP1")	{
					tI1.style.cursor="pointer";				
					tI1.style.display='inline';
				}
				if (who=="DP2")	{
					tI2.style.cursor="pointer";
					tI2.style.display='inline';
				}
			}
			else									{
				if (who=="DP1")	{
					tI1.style.display='inline';
				}
				if (who=="DP2")	{
					tI2.style.display='inline';
				}
			}
		}
		function OnPLAYOUT(who)	{
			tI1 = document.getElementById("DISP_PLAY1");
			tI2 = document.getElementById("DISP_PLAY2");
			if (who=="DP1")	{
				tI1.style.display='none';
			}
			if (who=="DP2")	{
				tI2.style.display='none';
			}
		}

function MAIN_PLAY_CLOSE()	{
		DC = document.getElementById("MAIN_MOVIE");
		DC.style.display='none';
}



function OnPLAY(WHO, WHICH)
{



var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {

	var STR = xmlHttp.responseText;
	if (WHICH=="DP1")	{
		DC = document.getElementById("MPLAY1");
		tI1 = document.getElementById("DISP_PLAY1");
		tI1.style.display='none';
		DC.innerHTML= STR;

	}
	if (WHICH=="DP2")	{
		DC = document.getElementById("MPLAY2");
		tI1 = document.getElementById("DISP_PLAY2");
		DC.innerHTML= STR;
		tI1.style.display='none';
	}
	if (WHICH=="DP1H" || WHICH=="DP2H")	{
		DC = document.getElementById("MAIN_MOVIE");
		tI1 = document.getElementById("DISP_PLAY1");
		tI1.style.display='none';
		DC.innerHTML = "<table bgcolor=black><tr><td style=\"border-bottom: 1px solid gold;\"><span style=\"cursor: pointer;\" onclick=\"MAIN_PLAY_CLOSE()\"><font color=red face=arial size=3>X close</span></td></td></tr><tr><td width=800 height=600 id=D1H>"+ STR +"</td></tr></table>";

	}
	if (WHICH=="PLV")	{
		DC = document.getElementById("MAIN_MOVIE");
		DC.innerHTML = "<table bgcolor=black><tr><td style=\"border-bottom: 1px solid gold;\"><span style=\"cursor: pointer;\" onclick=\"MAIN_PLAY_CLOSE()\"><font color=red face=arial size=3>X close</span></td></td></tr><tr><td width=800 height=600 id=D1H>"+ STR +"</td></tr></table>";


	}


      }
    }

	var sWHO = WHO.toString();



	sWHO = sWHO.substr(1,sWHO.length);

	if (WHICH=="DP1")	{
		wURL = "/video/play_movie.asp?WHO="+WHO;
		DC = document.getElementById("MPLAY1");
		DC.innerHTML = "<table width=270px height=217><tr><td align=center><img src=\"/images/loader_rect.gif\"></td></tr></table>";
	}

	if (WHICH=="DP2")	{
		wURL = "/video/play_movie.asp?WHO="+WHO;
		DC = document.getElementById("MPLAY2");
		DC.innerHTML = "<table width=270px height=217><tr><td align=center><img src=\"/images/loader_rect.gif\"></td></tr></table>";
	}
	if (WHICH=="DP1H" || WHICH=="DP2H")	{
//******************************AKO TREBA DA SE PROMENI PATEKATA PROMENUVAJ JA VO: /inc/lang_eng.inc*********************
		ShowDiv();
		MP1 = document.getElementById("MPLAY1");
		MP2 = document.getElementById("MPLAY2");
		VI1 = document.getElementById("VIMAGE1").value;
		VI2 = document.getElementById("VIMAGE2").value;
		VP1 = document.getElementById("VPATH1").value;
		VP2 = document.getElementById("VPATH2").value;
		MP1.innerHTML = "<img src=\""+ VI1 +"\" style=\"cursor: pointer;\" width=270px onmouseover=\"OnPLAYOVER('DP1')\" onmouseout=\"OnPLAYOUT('DP1')\" onclick=\"OnPLAY('"+ VP1 +"', 'DP1')\">";
		MP2.innerHTML = "<img src=\""+ VI2 +"\" style=\"cursor: pointer;\" width=270px onmouseover=\"OnPLAYOVER('DP2')\" onmouseout=\"OnPLAYOUT('DP2')\" onclick=\"OnPLAY('"+ VP2 +"', 'DP2')\">";
		wURL = "/video/play_movie.asp?WHO="+WHO;
		DC = document.getElementById("MAIN_MOVIE");
		DC.style.display='inline';
		DC.innerHTML = "<table bgcolor=black><tr><td style=\"border-bottom: 1px solid gold;\"><span style=\"cursor: pointer;\" onclick=\"MAIN_PLAY_CLOSE()\"><font color=red face=arial size=3>X close</span></td></td></tr><tr><td width=800 height=600 id=D1H><img src=\"/images/loader_rect.gif\"></td></tr></table>";
	}

	if (WHICH=="PLV")	{
		ShowDiv();
		wURL = "/video/play_movie.asp?WHO="+WHO;
		DC = document.getElementById("MAIN_MOVIE");
		DC.style.display='inline';

		DC.innerHTML = "<table bgcolor=black><tr><td style=\"border-bottom: 1px solid gold;\"><span style=\"cursor: pointer;\" onclick=\"MAIN_PLAY_CLOSE()\"><font color=red face=arial size=3>X close</span></td></td></tr><tr><td width=800 height=600 id=D1H><img src=\"/images/loader_rect.gif\"></td></tr></table>";
	}

  xmlHttp.open("GET", wURL,true);
  xmlHttp.send(null);

  }

function OnPLAYLOGED()		{
		ShowDiv();
		DC = document.getElementById("MAIN_MOVIE");
		tI1 = document.getElementById("DISP_PLAY1");
		tI1.style.display='none';
//		DC.innerHTML = "<table bgcolor=black width=800><tr><td style=\"border-bottom: 1px solid gold;\"><span style=\"cursor: pointer;\" onclick=\"MAIN_PLAY_CLOSE()\"><font color=red face=arial size=3>X close</span></td></td></tr><tr><td width=800 height=600 id=D1H align=center valign=middle><font color=gray size=2 face=tahoma>You must be loged in to view this video!</font></td></tr></table>";
//		DC.innerHTML = "<table bgcolor=black width=800><tr><td style=\"border-bottom: 1px solid gold;\"><span style=\"cursor: pointer;\" onclick=\"MAIN_PLAY_CLOSE()\"><font color=red face=arial size=3>X close</span></td></td></tr><tr><td width=800 height=600 id=D1H align=center valign=middle><img src=\"/images/video_login.gif\"></td></tr></table>";
		DC.innerHTML = "<table bgcolor=black width=800><tr><td style=\"border-bottom: 1px solid gold;\"><span style=\"cursor: pointer;\" onclick=\"MAIN_PLAY_CLOSE()\"><font color=red face=arial size=3>X close</span></td></td></tr><tr><td width=800 height=600 id=D1H align=center valign=middle><div style=\"width: 800px; height: 20px\"><font color=gray size=2 face=tahoma>You must be loged in to view this video!</font></div></td></tr></table>";
}
function OnPLAYLOGED_small(who)		{
		if(who=="DP1")	{
			DC = document.getElementById("MPLAY1");
			tI1 = document.getElementById("DISP_PLAY1");
			tI1.style.display='none';
			DC.innerHTML= "<table width=270><td width=269 height=219  bgcolor=black align=center valign=middle><font color=gray size=2 face=tahoma>You must be loged in to view this video!</font></td></tr></table>";
		}
		if(who=="DP2")	{
			DC = document.getElementById("MPLAY2");
			tI1 = document.getElementById("DISP_PLAY2");
			DC.innerHTML= "<table width=270><td width=270 height=219 bgcolor=black align=center valign=middle><font color=gray size=2 face=tahoma>You must be loged in to view this video!</font></td></tr></table>";
			tI1.style.display='none';
		}

}