<!--


function gal_menu(gal_id,totalElement,arc_id,resolution,control){
   
    var res = resolution.split("x");
    var deg = res[0]/res[1]; 
    var width,height;
    if(deg >= 1){
     width = 128;
     height = 128 / deg;
    }  
    else{
      height = 128;
      width = 128 * deg;
    }  
    
    if ( control == 0) 
      totalElement +=" Fotoğraf";
    else if ( control == 1)
      totalElement +=" Photograph";
      
    var content="<TABLE border=1 bordercolor=#325FBD WIDTH=65 CELLPADDING=2 CELLSPACING=0 "+
		"BGCOLOR=\"#F4F4F4\"><TR><TD ALIGN=left>"+
		"<TABLE style=\"border-collapse: collapse\" CELLPADDING=2 CELLSPACING=0 WIDTH=65>"+
		"<TR bgcolor=\"#F4F4F4\">"+
    "<TD ALIGN=center><font size=1 color=#FF0000>"+totalElement+"</font></TD></TR>"+
    "<TR bgcolor=\"#FFFFFF\">"+
    "<TD ALIGN=left><img src=getFileServlet?sfx=1&arcId="+arc_id+" width="+width+" height="+height+" ></TD></TR>"+
    "</TABLE></TD></TR></TABLE>";

    document.all("menuDiv").style.left = getLeft('gal_'+gal_id)+20;
    document.all("menuDiv").style.top = getTop('gal_'+gal_id);
    document.all("menuDiv").innerHTML=content;
    document.all("menuDiv").style.visibility="visible";
}


function killGallery(){

var content="";
document.all("menuDiv").innerHTML=content;
}

