function show(){document.getElementById('enlargedImagePopupMask').style.display='block';changeOpac(0,'enlargedImagePopupMask');document.getElementById('enlargedImagePopup').style.display='block';document.getElementById('enlargedImagePopupImage').style.display='block';layerShow('enlargedImagePopupMask',0,70,1);setTimeout("layerShow('enlargedImagePopup',0,100,100);",0.1);frameHeight=document.getElementById('everythingFrame').offsetHeight;document.getElementById('enlargedImagePopupMask').style.height=frameHeight+'px';document.getElementById('enlargedImagePopup').style.top=70+'px';return;}function layerShow(id,opacStart,opacEnd,millisec){var speed=Math.round(millisec/100);var timer=0;object=document.getElementById(id).style;for(i=opacStart;i<=opacEnd;i++){showTimeout=setTimeout("changeOpac("+i+",'"+id+"')",(timer*speed));timer++}clearTimeout(showTimeout);return}function layerShow2(id,opacStart,opacEnd,millisec){var speed=Math.round(millisec/1);var timer=0;object=document.getElementById(id).style;for(i=opacStart;i<=opacEnd;i++){showTimeout=setTimeout("changeOpac("+i+",'"+id+"')",(timer*speed));timer++}clearTimeout(showTimeout);return}function hide(){document.getElementById('enlargedImagePopupMask').style.display='none';document.getElementById('enlargedImagePopup').style.display='none';document.getElementById('enlargedImagePopupImage').style.display='none';changeOpac(0,'enlargedImagePopup')}function changeOpac(opacity,id){var object=document.getElementById(id).style;object.opacity=(opacity/100);object.MozOpacity=(opacity/100);object.KhtmlOpacity=(opacity/100);object.filter="alpha(opacity="+opacity+")"}function getkey(e){if(window.event){if(window.event.keyCode==27){hide();if(flyoutOpen){document.onmousemove="";CloseMenu();flyoutOpen=false}}}else if(e){if(e.which==27){hide();if(flyoutOpen){document.onmousemove="";CloseMenu();flyoutOpen=false}}}else return;}
function attachGetKey()
{
 document.body.onkeydown=getkey;
}
function attachFFGetKey()
{
 document.onkeydown=getkey;	
}



