var clickMessage = "Post click processing";

var erules = {
	
'#fo' : function(element)
{
	element.onmouseover = function()
	{
		this.src = "images/financeoptionsHL.jpg";
	};
	element.onmouseout = function()
	{
		this.src = "images/financeoptions.jpg";
	};	
	
},
'#sl' : function(element)
{
	element.onmouseover = function()
	{
		this.src = "images/salesHL.jpg";
	};
	element.onmouseout = function()
	{
		this.src = "images/sales.jpg";
	};	
	
},
'#nw' : function(element)
{
	element.onmouseover = function()
	{
		this.src = "images/newvehicleHL.jpg";
	};
	element.onmouseout = function()
	{
		this.src = "images/newvehicle.jpg";
	};	
	
},
'#po' : function(element)
{
	element.onmouseover = function()
	{
		this.src = "images/previouslyownedHL.jpg";
	};
	element.onmouseout = function()
	{
		this.src = "images/previouslyowned.jpg";
	};		
},

'ul.car_summary_list li' : function(elemenet)
{
	element.onclick = function()
	{
		//alert('Looking for maker: ' + this.getAttribute('id'));
		window.location.href = "makelistings.php?mk=" + this.getAttribute('id');
	};
}


};

// Load the rules into the behaviour System
Behaviour.register(erules);
