/* --------------------------------------------

	main.js
	* Loads init(s) for application

------------------------------------------------*/
window.addEvent('domready', function(){
	// init all functions required on dom load
	addToolsEventHandlers();
	
});

//function to handle all event handlers for items on page after domready
function addToolsEventHandlers()
{
	
	/* ===================================================
	* Event handlers for Tools menu
	* =================================================== */
	//add event handlers and stuff for all common toolbox links
	$('toolsLocationRow').addEvents({
		mouseover: function() {
			this.setStyles({
						   backgroundColor: '#F7941E',
						   color:'White',
						   cursor: 'pointer' 
						   });
			},
		mouseout: function() {
			this.setStyles({
						   	backgroundColor: '#F2F2F2',
							color:'Black',
							cursor: 'pointer'
							});
			},
		click: function(){
			document.location = 'relocation_advisor.php';
		}
	});	
	
	$('toolsBuyersRow').addEvents({
		mouseover: function() {
			this.setStyles({
						   backgroundColor: '#F7941E',
						   color:'White',
						   cursor: 'pointer' 
						   });
			},
		mouseout: function() {
			this.setStyles({
						   	backgroundColor: '#F2F2F2',
							color:'Black',
							cursor: 'pointer'
							});
			},
		click: function(){
			document.location = 'buyers_guide.php';
		}
	});	
	
	$('toolsSellersRow').addEvents({
		mouseover: function() {
			this.setStyles({
						   backgroundColor: '#F7941E', 
						   color:'white',
						   cursor: 'pointer' 
						   });
			},
		mouseout: function() {
			this.setStyles({
						   	backgroundColor: '#F2F2F2',
							color:'black',
							cursor: 'pointer'
							});
			},
		click: function(){
			document.location = 'sellers_guide.php';
		}
	});	
}