function  selecturl(obj){ 
var mylayers  = document.getElementById("mylayer").getElementsByTagName("DIV"); 
for(var i=0; i <mylayers.length; i++){ 
mylayers[i].style.display  = "none"; 
} 
mylayers[obj.selectedIndex].style.display = "block"; 
} 

function popImage(obj,img,href,num) 
{ 
 var layer = document.getElementById("popImageLayer"+num);
 var t=obj.offsetTop;
 var l=obj.offsetLeft;
 while(obj=obj.offsetParent){
  t+=obj.offsetTop;
  l+=obj.offsetLeft;
 }
 var content = "<div style='width:182; height:360; margin:0;'>\n"+
 "<A href="+href+" target=_blank><IMG src='"+img+"' onload='DrawImage(this,182,360);'border='0' onMouseOut='low(this);hideLayer("+num+");' onMouseOver=high(this) style='FILTER: alpha(opacity=100)'></A></div>"; // onClick='hideLayer();'

   layer.innerHTML=content;
   layer.style.left =l;
   layer.style.top = t;
   layer.style.visibility='visible';
   
} 
function DrawImage(img,width,height){ 
 if(DrawImage.arguments.length <= 1) 
  width=height=70;
 var image=new Image(); 
 image.src=img.src; 
 if(image.width>0 && image.height>0)
 {
   if(image.width>width)
   {
    rate=image.height/image.width;
    newHeight=rate*width;
    img.width=width;
    img.height=newHeight;
   } 
 }
 if(img.height>height)
 {
  rate=image.width/image.height;
  newWidth=rate*height;
  img.height=height;
  img.width=newWidth;
 }
}
function hideLayer(num)
{ 
 var layer = document.getElementById("popImageLayer"+num);
 layer.style.visibility='hidden';
} 
function low(which2){
 clearInterval(highlighting);
 which2.filters.alpha.opacity=40;
}
function high(which2){
 theobject=which2;
 highlighting=setInterval("highlightit(theobject)",10);
}
function highlightit(cur2){
 if (cur2.filters.alpha.opacity<100)
  cur2.filters.alpha.opacity+=5
 else if (window.highlighting)
  clearInterval(highlighting)
}