function myOnLoad()
{
	var sendText = "ok";
	if(window.document.indexSWF) window.document.indexSWF.SetVariable("docLoaded", sendText);
	if(window.document.img_bel_01) window.document.img_bel_01.SetVariable("docLoaded", sendText);
}

function go(obj,num)
{
    obj.filters[0].Apply();

    if (obj.style.visibility == "visible")
    {
        obj.style.visibility = "hidden";
        obj.filters.revealTrans.transition=num;
    }
    else
    {
        obj.style.visibility = "visible";
        obj.filters[0].transition=num;
    }
    obj.filters[0].Play();
}

function getImgFile(obj)
{
	MM_openBrWindow('contentImages.php?id='+obj.id,'contentImagesWin','status=yes,resizable=yes,scrollbars=yes,width=450,height=550,top=0,left=0');
}

function getImgUrl()
{
	MM_openBrWindow('contentImages.php?url=1','contentImagesWin','status=yes,resizable=yes,scrollbars=yes,width=450,height=550,top=0,left=0');
}

function setValue(id, val){ document.getElementById(id).value = val; }

function clearIfVal(obj, val){ if(obj.value == val) obj.value=''; }

function setAlpha(obj, val){ obj.style.filter=val; }

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
  return false;
}

function show_hide(id, h1, h2)
{
	obj = document.getElementById(id);
	h = parseInt(obj.style.height);
	if(!h || h <= h1) obj.style.height = h2
	else  obj.style.height = h1
} 
	
