	
jQuery.preloadImages = function()
{
  for(var i = 0; i<arguments.length; i++)
  {
    jQuery("<img>").attr("src", arguments[i]);
  }
}

$(document).ready(function(){
	
	$.preloadImages(ROOT + "/images/header/services_up.png'");
	$.preloadImages(ROOT + "/images/loader.gif'");
		
	$(".menu-button DIV.div-off").bind("mouseenter", function() {  
		$(this).animate({backgroundColor: "#7C166D"}, 200);});
		
	$(".menu-button DIV.div-off").bind("mouseleave", function() {  
		$(this).animate({backgroundColor: "#450C3D"}, 600);});
	   
	$(".sub-menu-button DIV.div-off").bind("mouseenter", function() {  
		$(this).animate({backgroundColor: "#666"}, 100);});
		
	$(".sub-menu-button DIV.div-off").bind("mouseleave", function() {  
		$(this).animate({backgroundColor: "#c0c0c0"}, 300);});
	   
	   
	$(function(){
		$('.menu-button DIV#services_button').toggle(function(){
			$('#services').stop().animate({ 'top' : '0px' },700);
			$('SPAN#services_image').html("<img src='"+ROOT+"/images/header/services_up.png' width='116' height='30'>");
		}, function(){
			$('#services').stop().animate({ 'top' : '-150px' },700);
			$('SPAN#services_image').html("<img src='"+ROOT+"/images/header/services.png' width='116' height='30'>");
		});
	});
		
		
});
