// JavaScript Document// JavaScript Document
function showDetalii(tipID) 
{
	var i=0;
	var divElement=document.getElementById('port'+tipID);
	
	if ( divElement.style.display == "none" ) 
		{
				divElement.style.display = "block";
/*				for(i=1;i<20;i++)
				{
					if(i!=tipID)
						{
							document.getElementById('port'+i).style.display = 'none';	
						}
				}*/
		
		} 
		else 
			{ 
				divElement.style.display = "none";	
			}
}

function openwind(file_link, width, height, scrollbar) {
    var parameters;
    var winx = (screen.width - width) / 2;
    var winy = (screen.height - height) / 2;
	
    parameters = "width="+width+", height="+height+", top="+winy+", left="+winx+", status=no, scrollbars="+scrollbar;
	
    win = window.open(file_link,'view',parameters);
    win.window.focus();
}

function changeImages(id)
{
	var thisImage = document.getElementById("img");
	thisImage.src = id+".jpg";
/*	alert(id+".jpg");*/
}