window.addEvent('domready', function() {
			
			
			//store titles and text
			$$('a.tipz').each(function(element,index) {
				var content = element.get('title').split('::');
				element.store('tip:title', content[0]);
				element.store('tip:text', content[1]);
			});
			
			//create the tooltips
			var tipz = new Tips('.tipz',{
				className: 'tipz',
				fixed: true,
				hideDelay: 50,
				showDelay: 50
			});
						
			tipz.addEvents({
				'show': function(tip) {
					tip.fade('in');
				},
				'hide': function(tip) {
					tip.fade('out');
				}
			});
			
		});

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();
  } 
}
