//---------------------------------- 
 function doExit(message, url) 
 { if (confirm(message)) location.href = url; 
 }
//---------------------------------- 
 function SP (id, width, height)
 {
 win=window.open("/showpic/"+id+"/","w"+id,"toolbar=no,menubar=no,height="+height+",width="+width); 
 } 
//---------------------------------- 
 function SPD(id, img, width, height, browser)
 {
  var scrollTop = 0;
  if (browser=='Explorer') scrollTop = document.documentElement.scrollTop;   
  else scrollTop = window.pageYOffset;
  scrollTop=scrollTop+20;
  $('block'+id).setStyle('top', scrollTop);	
  $('block'+id).setStyle('display', "block");
  $('showimage').setStyle('display', "block");  
  $('img'+id).src=img;  
  $('img'+id).setStyles({opacity:0,width:1,height:1}).morph({opacity:1,width:width,height:height}); 	
 }
//---------------------------------- 
 function SPDOff(id)
 {
  $('block'+id).setStyle('display', "none");
  $('showimage').setStyle('display', "none");    
 } 
//---------------------------------- 
window.addEvent('domready', function() {
    $$(".menuflow").addEvents({
        'mouseover':function() {
            this.getNext("div").setStyles({opacity:0,'display':'block'}).morph({opacity:1});
        }
    })
	
});
 //mopen=0;
 function PutTMenu0(i)
 {
// if (mopen==0) {
// for (j=1;i<$('menucol').value;j++) if (i!=j) $('lfm'+j).setStyle('display', 'none');   	
 $('lfm'+i).setStyles({opacity:0.1,'display':'block'}).morph({opacity:1}); 	
// mopen=1;
               //}
 }
//---------------------------------- 
 function HideTMenu(i)
 {
 //mopen=0; 	
 $('lfm'+i).setStyle('display', 'none'); 	
 }  
//----------------------------------  
 function fD()
 { if(window.innerWidth){ 
   width = window.innerWidth; 
                        } 
  else if(document.documentElement && document.documentElement.clientWidth){ 
  width = document.documentElement.clientWidth;                
                                                                           } 
  else if(document.body && document.body.clientWidth){ 
  width = document.body.clientWidth; 
                                                     } 
  return(width); 
 }   
//----------------------------------
 function MakeAjax(browser) 
 {
 var request_type;
 if(browser == "Explorer") request_type = new ActiveXObject("Microsoft.XMLHTTP");
 else request_type = new XMLHttpRequest();
 return request_type;
 }
 var http = MakeAjax();
//----------------------------------
 function Actions() 
 {
 http.open('get', '/sce/');
 if(http.readyState == 4) {
//var response = http.responseText;
//document.getElementById('search-result').innerHTML = response;
                          }
 http.send(null);
 }
