var menuitem=0;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;

function cmenu_rz(h){document.getElementById("cmenu").style.height=h; document.getElementById("cmenu1").style.height=h;  }

/*
function display(id){
	
    var container = document.getElementById("item_" + id);		
	var curl =document.getElementById("url_"+id);
	
	var last =document.getElementById("item_"+menuitem);
	
	if (last) 
	{ 
		last.style.display = 'none'; 
		var url=document.getElementById("url_" + menuitem);
		url.className="l1"; 
	}
	
	menuitem=id;
	
    if ( container)
    {    
                curl.className="l1_select"; 
				
				if (container.style.display != "none")   
                {
                        container.style.display = 'none';
                }
                else
                {
                        container.style.display = 'block';
                }
    }

}
*/

function image(type, image, width, height)
{	
	Firefox = navigator.userAgent.indexOf("Firefox") >= 0;
	
	if (isOpera==true)
	{
		window.open("/image.php?type="+type+"&image="+image, '', 'left='+(parseInt(window.screen.width/2)-275)+'px, top=0px, width='+width+'px, height='+height+'px, location=no, resizable=yes, menubar=no, scrollbars=no');
	} 
	else if (Firefox)
	{
		window.open("/image.php?type="+type+"&image="+image, '', 'left='+(parseInt(window.screen.width/2)-275)+'px, top=0px, width='+width+'px, height='+height+'px, location=no, resizable=yes, menubar=no, scrollbars=no');	
	}
	else
	{
		var param="dialogWidth:"+width+"px;dialogHeight:"+height+"px;center:1;dialogHide:0;edge:raised;help:0;resizable:0;scroll:0;status:0"
		var mydate = window.showModalDialog("/image.php?type="+type+"&image="+image,"",param);
	}
	
	return false;
}