window.addEvent('domready', function() {
  $each($$('.over'),function(ob,ind){
    ob.addEvent('mouseover',function(){      
      new Element('img', {'src': ob.get('rel'), 'id': 'overimage', 'style':'position:absolute;left:209px;top:175px;z-index:99;'}).inject($('containerLeft'));
      ob.addEvent('mouseout',function(){        
	if ($('overimage'))
	  $('overimage').destroy();
	this.removeEvent('mouseout');
      });
    });
  });
});

function ajaxRequest(url, id){    
  document.getElementById(id).innerHTML='<img src="/images/loading.gif">';     

  var myAjax = new Request(
  						 {  url: url, 
                  method: 'get', 
									evalScripts: true,
									evalResponse: false,
									onFailure: function(){
									  document.getElementById(id).innerHTML="Ajax Request Error";
									},
									onComplete: function(){
											  $(id).set('html',this.response.text);											  																									
									}
							 }).send();						
	}
function doSearch(){    
  if (document.getElementById('search').value!=''){ 
    //Element.setOpacity('searchButton',0.5);    
    //Element.setOpacity('search',0.5);
    document.getElementById('searchForm').submit();
  } 
}
