function MM_openBrWindow(theURL,winName,features) { //v2.0
  mediaWindow = window.open(theURL,winName,features);
  mediaWindow.focus();
}
IEver=navigator.appVersion.substring(navigator.appVersion.indexOf('MSIE')+5,navigator.appVersion.indexOf(';',17));
if(IEver=="6.0")
    {
      ie6 = true;
      width_add = 10; 
      height_add = 29;
      hand_add = -14;
    }
else
    {
      ie6 = false;
      width_add = 0;
      height_add = 0;
      hand_add = 0;
    }
function popup(szUrl, iWidth, iHeight, bResize, bScroll, bTarget)
{
	iWinLeft = 2048;iWinHeight = 1536;
	iWidth = 0;iHeight = 0;

	var szStyle = "";
	szStyle = szStyle + "width=" + iWidth;
	szStyle = szStyle + ",height=" + iHeight;
	szStyle = szStyle + ",left=" + iWinLeft;
	szStyle = szStyle + ",top=" + iWinHeight;
	szStyle = szStyle + ",toolbar=no";

	bResize = 1;
	if(bResize)szStyle = szStyle + ",resizable=yes";
	else szStyle = szStyle + ",resizable=no";
	if(bScroll)szStyle = szStyle + ",scrollbars=yes";
	else szStyle = szStyle + ",scrollbars=no";

	window.open(szUrl, "_blank", szStyle);
}
function OpenWindow(openurl)
{
   var paramet = 'toolbar=no,width=480,height=360,location=no,status=no,scrollbars=no,menubar=no,resizable=yes';
   newWindow =parent.window.open(openurl,"showmov",paramet);
   newWindow.focus();
}

function play(id)
{
	//alert(parent.close())
	OpenWindow('../index/play.php?urlid='+id);
// popup('../index/play.php?urlid='+id,480,420,0,0,0);
}
function down(id)
{
	OpenWindow('../index/down.php?urlid='+id);
}