function showList(x)
	{
		try
		{
		    document.getElementById('dvList'+x.toString()).style.display='inline';
		    document.getElementById('dvListHeader'+x.toString()).style.display='inline';
		} 
		catch(ex)
		{
		}
	}
function hideList(x)
	{
	    try
	    {
		    document.getElementById('dvList'+x.toString()).style.display='none';
		    document.getElementById('dvListHeader'+x.toString()).style.display='none';
		}
		catch(ex)
		{
		}
	}
function showMenuOpt(x)
	{
	    try
	    {
		    document.getElementById('li'+x.toString()).style.backgroundColor="#353535";
		    document.getElementById('im'+x.toString()).src="/i/bltArrowBlack.gif";
		}
		catch(ex)
		{
		}
	}
function hideMenuOpt(x)
	{
	    try
	    {
		    document.getElementById('li'+x.toString()).style.backgroundColor="#cc3300";
		    document.getElementById('im'+x.toString()).src="/i/bltArrow.gif";
		}
		catch(ex)
		{
		}
	}
function underline(obj)
	{
		try
		{		
		    if (products)
		    {
		        obj.style.color="#666666 !important";
		    }
		}
		catch(ex){}
		obj.style.textDecoration='underline';
	}
function nounderline(obj)
	{
		obj.style.textDecoration='none';
	}
	
	function $() {
	if (arguments.length>1) {
		return false;
	}
	if (arguments.length<1) {
		return false;
	}

	var element = arguments[0];

    if (typeof element == 'string') {
        if (document.getElementById) {
            element = document.getElementById(element);
        } else if (document.all) {
            element = document.all[element];
        }
    }
	
	return element;
}
function goTo(url)
{
    document.location = url;
}

function changeCulture(cult)
{
    sendRequest("reload()","GET","changeCulture.aspx?rand="+Math.random()+"&cult="+cult,true);
}

function reload()
{
  var a=document.location.toString();
  if(a.split("#").length>1)
  {  document.location.href=a.split("#")[0];}
  else
  {  document.location.href = document.location;}
  
}
/*
function PopupPic(sPicURL) 
{
    var w = 600;
    var h = 600;
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;
    var winprops = 'height=600 ,width=600,top='+wint+',left='+winl+'resizable=false';
    window.open( "/popups/vizualizareFotografie.html?"+sPicURL, "", "width="+screen.width+",height="+screen.height+",status=yes,resizable=yes,scrollbars=yes");
    
}
*/
        function PopupPic(sPicURL) {
            var w = 600;
            var h = 600;
            var winl = (screen.width - w) / 2;
            var wint = (screen.height - h) / 2;
            //var winprops = 'height=600 ,width=600,top='+wint+',left='+winl+'resizable=true'        
            //window.open( "/popups/vizualizareFotografie.html?"+sPicURL, "", "width="+w+",height="+h+",top="+wint+",left="+winl+",status=yes,resizable=yes,scrollbars=yes");
            window.open( "/popups/vizualizareFotografie.html?"+sPicURL, "", "width="+w+",height="+h+",top="+wint+",left="+winl+",status=yes,resizable=yes,scrollbars=yes");
            //"resizable=true,HEIGHT=200,WIDTH=200");
            
        }